/* 
  Pinohuacho - Aventura y Naturaleza
  Design System and Styles
*/

:root {
    --primary-color: #3D6144;
    --primary-dark: #2A3B2F;
    --accent-color: #C1D6B6;
    --text-color: #1A231D;
    --text-light: #607164;
    --light-bg: #F4F7F5;
    --white: #FFFFFF;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shdw-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shdw-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shdw-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.65;
    background-color: var(--white);
    font-weight: 300;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 24px;
}

.mb-5 {
    margin-bottom: 40px;
}

.mt-4 {
    margin-top: 24px;
}

.mt-5 {
    margin-top: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shdw-md);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shdw-sm);
    display: flex;
    align-items: center;
    z-index: 9999;
    overflow: visible;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow: visible;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

#main-nav {
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10002;
}

/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh;
    padding-top: 90px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../assets/img/portadapinohuacho.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 35px;
    font-weight: 300;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shdw-lg);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* SERNATUR Badge */
.sernatur-badge {
    background: linear-gradient(145deg, #ffffff, #f9fafb);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 35px;
    border-radius: 24px;
    margin-top: 60px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.sernatur-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

.sernatur-badge::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, #DAA520, #B8860B);
}

.badge-wrapper {
    display: flex;
    gap: 35px;
    align-items: center;
}

.badge-icon-box {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 0;
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(0, 51, 153, 0.2);
    border: 5px solid #003399;
    /* Sernatur Blue */
    position: relative;
    z-index: 2;
    overflow: hidden;
    animation: badgePulse 3s infinite ease-in-out;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 51, 153, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 51, 153, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 51, 153, 0);
    }
}

.badge-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.badge-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #E0E7FF;
    color: #4338CA;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.sernatur-badge h5 {
    font-size: 1.25rem;
    color: #111827;
    margin-bottom: 8px;
    font-weight: 800;
}

.text-upper {
    text-transform: uppercase;
}

.sernatur-badge p {
    font-size: 0.95rem;
    color: #4B5563;
    margin-bottom: 20px;
    line-height: 1.5;
}

.sernatur-registros {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.registro-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reg-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6B7280;
}

.reg-btn {
    padding: 8px 16px;
    background: #F3F4F6;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #111827;
}

.reg-btn:hover {
    background: #E5E7EB;
    border-color: #9CA3AF;
}

/* Services Section */
.services {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    margin-top: 50px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card-new {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shdw-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card-new:hover {
    transform: translateY(-10px);
    box-shadow: var(--shdw-lg);
}

.service-img {
    height: 250px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card-new:hover .service-img img {
    transform: scale(1.1);
}

.service-info {
    padding: 30px;
    text-align: center;
}

.service-info h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-info p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Visitor Info Section */
.visitor-info {
    background-color: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: var(--light-bg);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.info-header i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.info-header h3 {
    font-size: 1.25rem;
    margin: 0;
    font-weight: 800;
}

.info-body li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.info-body li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.important-notice {
    margin-top: 50px;
    padding: 40px;
    background: var(--primary-dark);
    color: var(--white);
    border-radius: 24px;
}

.notice-box {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 400px;
    text-align: left;
}

.notice-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.notice-item p {
    font-size: 1.1rem;
    margin: 0;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Location Section */
.location {
    background-color: var(--white);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.navigation-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-btn-map {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: var(--white);
    border-radius: 16px;
    color: var(--text-color);
    border: 1px solid #E5E7EB;
    transition: var(--transition);
}

.nav-btn-map:hover {
    background: var(--light-bg);
    transform: translateX(10px);
    box-shadow: var(--shdw-md);
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    font-weight: 700;
}

.btn-main {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.nav-btn-map i {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.google-maps i {
    color: #4285F4;
}

.waze-map i {
    color: #33CCFF;
}

.arrival-tips {
    display: flex;
    gap: 20px;
    background: #f0f7f2;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #e0ede4;
}

.tips-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary-color);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tips-text h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.tips-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-light);
}

.location-map iframe {
    transition: var(--transition);
}

.location-map:hover iframe {
    transform: scale(1.02);
}

/* Footer Section */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    background: var(--primary-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 110px; /* Above WhatsApp button (30+60+20) */
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: var(--shdw-lg);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Floating WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shdw-lg);
    z-index: 1000;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (CLEAN)
   ========================================================================== */

@media (max-width: 992px) {
    .section {
        padding: 70px 0;
    }

    .nav-toggle {
        display: block;
    }

    .container {
        padding: 0 16px;
    }

    #main-nav {
        display: block !important;
    }

    /* Mobile Navigation Container - Improved Floating Card Style */
    #nav-menu {
        position: fixed !important;
        top: 80px !important;
        right: 20px !important;
        width: 280px !important;
        height: auto !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        display: none !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 30px 20px !important;
        margin: 0 !important;
        z-index: 1000000 !important;
        list-style: none !important;
        border-radius: 24px !important;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        transform: translateY(-10px) scale(0.95) !important;
        opacity: 0 !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        pointer-events: none !important;
    }

    #nav-menu.active {
        display: flex !important;
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
        pointer-events: all !important;
    }

    #nav-menu li {
        width: 100% !important;
        margin: 10px 0 !important;
        display: flex !important;
        justify-content: center !important;
        padding: 0 !important;
        visibility: visible !important;
    }

    #nav-menu .nav-link {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        color: #1A231D !important;
        display: inline-block !important;
        padding: 12px 25px !important;
        border: 1.5px solid rgba(61, 97, 68, 0.2) !important;
        border-radius: 50px !important;
        background: rgba(255, 255, 255, 0.6) !important;
        width: 100% !important;
        max-width: 220px !important;
        text-align: center !important;
        text-decoration: none !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
        transition: all 0.3s ease !important;
        visibility: visible !important;
    }

    #nav-menu .nav-link:hover {
        background: var(--primary-color) !important;
        color: #FFFFFF !important;
        border-color: var(--primary-color) !important;
        transform: scale(1.05) !important;
    }

    .about-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: 2;
    }

    .about-content {
        order: 1;
        text-align: center;
    }

    .about-stats {
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Menu Overlay Effect */
    body.menu-open {
        overflow: hidden;
    }

    /* Subtle Overlay */
    body.menu-open::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.2);
        z-index: 1000;
        backdrop-filter: blur(2px);
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 2.22rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 20px;
    }

    .services-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .info-card {
        text-align: center;
    }

    .btn-sm {
        display: table;
        margin: 0 auto;
    }

    .service-card-new,
    .info-card {
        padding: 25px 20px;
    }

    .location-map iframe {
        height: 380px;
        border-radius: 16px;
    }

    .notice-box {
        gap: 20px;
        padding: 30px 20px;
    }

    .notice-item {
        text-align: center;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-col img {
        margin: 0 auto 25px !important;
        height: 90px !important;
    }

    .social-links {
        justify-content: center;
    }

    .sernatur-badge {
        padding: 40px 25px;
        border-radius: 24px;
        position: relative;
    }

    .badge-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .badge-icon-box {
        width: 120px;
        height: 120px;
        margin-bottom: 5px;
        box-shadow: 0 15px 35px rgba(0, 51, 153, 0.2);
    }

    .sernatur-registros {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .reg-btn {
        width: 100%;
        justify-content: center;
    }

    .whatsapp-btn {
        width: 48px;
        height: 48px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .about-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    header {
        height: 70px;
    }

    .logo img {
        height: 44px;
    }
}