/* ============================================
   Pan Y Pueblo — Custom Styles
   Deep Navy + Warm Gold | Geometric & Bold
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #091421;
    color: #ffffff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

/* ---- Background Decorative Shapes ---- */
.bg-shapes {
    overflow: hidden;
}

.shape-circle-1 {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.shape-circle-2 {
    position: absolute;
    bottom: 10%;
    left: -200px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.shape-triangle {
    position: absolute;
    top: 40%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(212, 160, 23, 0.04);
    transform: rotate(15deg);
    pointer-events: none;
}

.shape-dots {
    position: absolute;
    bottom: 20%;
    right: 10%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(212, 160, 23, 0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    pointer-events: none;
}

/* ---- Navbar ---- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(9, 20, 33, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a017;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-link {
    position: relative;
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ---- Hero Section ---- */
.hero-gradient {
    background: linear-gradient(
        135deg,
        #091421 0%,
        #1e3a5f 30%,
        #2d4a78 50%,
        #1e3a5f 70%,
        #091421 100%
    );
}

.hero-shapes {
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    opacity: 0.6;
}

.hero-shape-1 {
    top: 15%;
    left: 8%;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(212, 160, 23, 0.3);
    border-radius: 20px;
    transform: rotate(45deg);
    animation: float-rotate 8s ease-in-out infinite;
}

.hero-shape-2 {
    top: 25%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: rgba(212, 160, 23, 0.15);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-shape-3 {
    bottom: 25%;
    left: 12%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(212, 160, 23, 0.12);
    animation: float 7s ease-in-out infinite reverse;
}

.hero-shape-4 {
    bottom: 30%;
    right: 8%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    transform: rotate(30deg);
    animation: float-rotate 10s ease-in-out infinite;
}

.hero-shape-5 {
    top: 50%;
    left: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-slow 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-rotate {
    0%, 100% { transform: rotate(45deg) translateY(0px); }
    50% { transform: rotate(45deg) translateY(-15px); }
}

@keyframes pulse-slow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Hero Badge */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.2s;
}

/* Hero Title */
.hero-title {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.4s;
}

/* Hero Subtitle */
.hero-subtitle {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.6s;
}

/* Hero CTAs */
.hero-ctas {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scroll Indicator */
.scroll-indicator {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    animation-delay: 1.2s;
}

.scroll-mouse {
    animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-dot {
    animation: scroll-dot-anim 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes scroll-dot-anim {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(8px); }
}

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #d4a017;
    color: #1e3a5f;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 60px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: #efca31;
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(212, 160, 23, 0.3);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(212, 160, 23, 0.5);
    transform: translateY(-2px);
}

/* ---- Section Styles ---- */
.section-tag {
    letter-spacing: 0.02em;
}

.section-title {
    line-height: 1.1;
}

.section-desc {
    line-height: 1.7;
}

/* Accent Bar */
.accent-bar {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(212, 160, 23, 0.6) 50%, 
        transparent 100%
    );
    opacity: 0.5;
}

/* ---- Product Cards ---- */
.product-card {
    position: relative;
}

.product-card-badge {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 800;
}

.product-card:hover .product-card-badge {
    transform: scale(1.05);
}

/* ---- Visit Cards ---- */
.visit-card {
    position: relative;
    overflow: hidden;
}

.visit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #d4a017, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.visit-card:hover::before {
    opacity: 1;
}

.visit-icon {
    transition: all 0.3s ease;
}

/* ---- Stats ---- */
.stat-number {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ---- Floating Card ---- */
.floating-card {
    animation: float 4s ease-in-out infinite;
}

/* ---- Reveal Animations ---- */
.reveal-section {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Map Container ---- */
.leaflet-container,
iframe {
    border-radius: 0 0 1.5rem 1.5rem;
}

/* ---- Form Styles ---- */
#contactForm input,
#contactForm textarea {
    transition: all 0.3s ease;
}

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: rgba(212, 160, 23, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#contactForm textarea {
    resize: vertical;
    min-height: 120px;
}

/* ---- Footer ---- */
footer a {
    text-decoration: none;
}

/* ---- Mobile Menu Button ---- */
#menuBtn {
    z-index: 60;
}

.menu-line {
    display: block;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    width: 1.25rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero-shape-1 {
        width: 60px;
        height: 60px;
        top: 10%;
        left: 5%;
    }
    
    .hero-shape-2 {
        width: 40px;
        height: 40px;
        top: 20%;
        right: 5%;
    }
    
    .hero-shape-3 {
        border-left: 25px solid transparent;
        border-right: 25px solid transparent;
        border-bottom: 45px solid rgba(212, 160, 23, 0.12);
        bottom: 20%;
        left: 5%;
    }
    
    .hero-shape-4 {
        width: 50px;
        height: 50px;
        bottom: 25%;
        right: 5%;
    }
    
    .hero-shape-5 {
        width: 120px;
        height: 120px;
        left: 2%;
    }
    
    .floating-card {
        position: relative;
        margin-top: 1rem;
        animation: none;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ---- Print ---- */
@media print {
    .bg-shapes,
    .hero-shapes,
    .scroll-indicator {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
