:root {
    --primary: rgb(237, 190, 8);
    --primary-hover: rgb(210, 168, 7);
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-dark: #0a0a0a;
    --bg-light: #ffffff;
    --accent: #ffd700;
    --title-color: rgb(33, 36, 78);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--title-color);
}

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

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Archivo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

img {
    max-width: 100%;
}

/* Navbar Premium Central - Perfect Center Alignment */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.1rem 5%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.8rem;
    align-items: center;
}

.nav-links:first-of-type {
    justify-content: flex-end;
    padding-right: 3.5rem;
}

.nav-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.nav-links:last-of-type {
    justify-content: flex-start;
    padding-left: 3.5rem;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-hover);
}

.nav-logo img {
    height: 3.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.02);
}

@media (max-width: 1366px) and (min-width: 1025px) {
    .nav-links {
        gap: 1.8rem;
    }
    .nav-links:first-of-type {
        padding-right: 2rem;
    }
    .nav-links:last-of-type {
        padding-left: 2rem;
    }
    .nav-links li a {
        font-size: 0.72rem;
        letter-spacing: 1.2px;
    }
}

/* ==========================================================================
   DROPDOWN MENU - NUESTROS PRODUCTOS
   ========================================================================== */
.nav-item-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    background: #ffffff !important;
    min-width: 300px;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.09);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
    z-index: 1001;
}

/* Puente invisible para evitar que se cierre al mover el cursor */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -18px;
    left: 0;
    right: 0;
    height: 18px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-links:last-of-type .dropdown-menu {
    left: auto;
    right: 0;
    transform: translateY(14px);
}

.nav-links:last-of-type .nav-item-dropdown:hover .dropdown-menu {
    transform: translateY(0);
}

.dropdown-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 10px 16px !important;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent;
}

.dropdown-tag {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary-hover);
    line-height: 1.2;
    margin-bottom: 2px;
    text-align: left;
}

.dropdown-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--title-color);
    letter-spacing: 0.5px;
    text-transform: none !important;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(237, 190, 8, 0.1);
    border-left-color: var(--primary);
    transform: translateX(4px);
}

.dropdown-item:hover .dropdown-title {
    color: #000;
}

/* ==========================================================================
   MENÚ MÓVIL (HAMBURGUESA)
   ========================================================================== */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1002;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--title-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.mobile-logo {
    height: 2.5rem;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #333;
    cursor: pointer;
}

.mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.mobile-links a {
    text-decoration: none;
    color: var(--title-color);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    padding: 6px 0;
}

.mobile-dropdown-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--title-color);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 0;
    font-family: inherit;
}

.mobile-dropdown-btn .chevron {
    transition: transform 0.3s ease;
}

.mobile-dropdown-btn.active .chevron {
    transform: rotate(180deg);
}

.mobile-sublinks {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    border-left: 2px solid var(--primary);
}

.mobile-sublinks.active {
    display: flex;
}

.mobile-sublinks a {
    font-size: 0.85rem;
    text-transform: none;
    font-weight: 600;
    color: #444;
}

.mobile-sublinks a small {
    display: block;
    font-size: 0.65rem;
    color: var(--primary-hover);
    text-transform: uppercase;
    font-weight: 700;
}

/* Global Sections */
.section-container {
    padding: 10rem 10%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Reveal Animation */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Buttons Global */
.btn-premium {
    display: inline-block;
    padding: 1.2rem 4rem;
    background: var(--title-color);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-premium:hover {
    background: var(--primary);
    color: var(--title-color);
}

.btn-blue {
    background: var(--title-color);
    color: #fff;
}

.btn-blue:hover {
    background: var(--primary);
    color: var(--title-color);
}

.btn-yellow {
    background: var(--primary);
    color: #fff;
}

.btn-yellow:hover {
    background: var(--title-color);
    color: #fff;
}

.btn-line {
    display: inline-block;
    padding: 1rem 0;
    color: #000;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid #000;
    transition: all 0.3s;
}

.btn-line:hover {
    color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Footer Global */
footer { 
    background: var(--title-color); 
    color: #cbd5e0; 
    padding: 0; 
    border-top: 6px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.footer-cta {
    background: var(--primary);
    padding: 4rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: rgba(0,0,0,0.03);
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

.cta-content h3 {
    font-size: 2rem;
    font-weight: 900;
    color: #000;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(0,0,0,0.7);
    font-weight: 700;
}

.footer-cta .btn-premium {
    background: var(--title-color);
    color: #fff;
    white-space: nowrap;
}

.footer-cta .btn-premium:hover {
    background: #fff;
    color: var(--title-color);
}

.footer-wrap { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1.2fr; 
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 8% 6rem 8%;
    position: relative;
    z-index: 1;
}

.footer-logo { 
    height: 3.5rem; 
    filter: brightness(0) invert(1); 
    margin-bottom: 2rem;
}

.foot-col p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #a0aec0;
}

.foot-col h4 {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.foot-col a {
    display: block;
    color: #cbd5e0;
    text-decoration: none;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.foot-col a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: #fff;
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    transform: translateY(-5px);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 2.5rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #718096;
}

.back-top {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.back-top::after {
    content: '↑';
    font-size: 1rem;
    transition: 0.3s;
}

.back-top:hover {
    color: var(--primary);
}

.back-top:hover::after {
    transform: translateY(-3px);
}

/* Shared Components: Hero Slider */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #fff;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 1.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-struct {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 8%;
    align-items: center;
}

.side-content {
    position: relative;
    z-index: 5;
}

.left-text {
    padding-right: 4rem;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease 0.5s;
}

.slide.active .left-text {
    opacity: 1;
    transform: translateX(0);
}

.tag {
    display: inline-block;
    color: var(--primary-hover);
    font-weight: 900;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
}

.left-text h3 {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 8px;
    color: #888;
    margin-bottom: 1rem;
}

.left-text h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2.5rem;
}

.empty-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.main-featured-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.1));
    transform: scale(0.9);
    transition: all 1.5s ease 0.3s;
}

.slide.active .main-featured-img {
    transform: scale(1);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.slider-btn:hover { background: var(--primary); }
.prev-btn { left: 4%; }
.next-btn { right: 4%; }

.slider-dots {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.dot {
    width: 40px;
    height: 4px;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 60px;
}

@media (max-width: 1024px) {
    .navbar { 
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.9rem 5%; 
        gap: 0;
    }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .footer-cta { flex-direction: column; text-align: center; padding: 4rem 5%; }
    .footer-wrap { grid-template-columns: 1fr; gap: 3rem; padding: 4rem 6%; }
    .slider-container { height: auto; min-height: 85vh; overflow: hidden; }
    .hero-struct { grid-template-columns: 1fr; padding: 110px 5% 60px 5%; text-align: center; overflow: hidden; }
    .left-text { padding-right: 0; margin-bottom: 2rem; width: 100%; max-width: 100%; }
    .left-text h1 { font-size: 2.3rem; word-break: break-word; overflow-wrap: break-word; line-height: 1.15; }
    .main-featured-img { max-height: 40vh; }
    .slider-btn { width: 44px; height: 44px; }
}

@media (max-width: 768px) {
    .nav-logo img { height: 2.6rem; }
    .hero-struct { padding: 95px 4% 50px 4%; }
    .left-text h1 { font-size: 1.85rem; margin-bottom: 1.2rem; letter-spacing: -0.5px; }
    .left-text h3 { font-size: 0.78rem; letter-spacing: 3px; }
    .slider-btn { width: 38px; height: 38px; opacity: 0.85; }
    .prev-btn { left: 2%; }
    .next-btn { right: 2%; }
    .footer-cta { padding: 3rem 5%; }
    .cta-content h3 { font-size: 1.6rem; }
    .footer-wrap { padding: 3rem 5%; gap: 2.5rem; }
    .foot-col h4 { margin-bottom: 1.5rem; }
    .footer-bottom { 
        flex-direction: column; 
        gap: 1rem; 
        text-align: center; 
        justify-content: center; 
        padding: 2rem 5%;
    }
}

@media (max-width: 480px) {
    .navbar { padding: 0.75rem 4%; }
    .nav-logo img { height: 2.2rem; }
    .hero-struct { padding: 85px 4% 40px 4%; }
    .left-text h1 { font-size: clamp(1.35rem, 5.2vw, 1.55rem); margin-bottom: 1rem; letter-spacing: -0.5px; line-height: 1.15; word-break: break-word; }
    .left-text h3 { font-size: 0.7rem; letter-spacing: 2px; }
    .tag { font-size: 0.68rem; letter-spacing: 1.5px; margin-bottom: 0.8rem; }
    .btn-premium { padding: 0.9rem 1.6rem; font-size: 0.72rem; letter-spacing: 1.5px; width: 100%; text-align: center; }
    .slider-btn { display: none; } /* En móviles táctiles los botones de flechas ocupan pantalla; se navega con swipe o los dots */
    .slider-dots { bottom: 3%; gap: 0.5rem; }
    .dot { width: 25px; }
    .dot.active { width: 40px; }
    .section-container { padding: 3.5rem 4%; }
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.whatsapp-float-btn svg {
    width: 34px;
    height: 34px;
    fill: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

/* Efecto de onda pulsante */
.whatsapp-float-btn::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: waPulse 2s infinite ease-out;
    opacity: 0;
    pointer-events: none;
}

@keyframes waPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.whatsapp-float-badge {
    background: #ffffff;
    color: #1a1a1a;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.whatsapp-float-badge .status-dot {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    display: inline-block;
    animation: dotBlink 1.5s infinite;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.whatsapp-float-container:hover .whatsapp-float-btn {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55), 0 6px 14px rgba(0,0,0,0.2);
}

.whatsapp-float-container:hover .whatsapp-float-btn svg {
    transform: scale(1.08) rotate(5deg);
}

.whatsapp-float-container:hover .whatsapp-float-badge {
    transform: translateX(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

@media (max-width: 768px) {
    .whatsapp-float-container {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float-btn {
        width: 52px;
        height: 52px;
    }
    .whatsapp-float-btn svg {
        width: 28px;
        height: 28px;
    }
    .whatsapp-float-badge {
        display: none;
    }
}

