/* ========== RESET Y VARIABLES - AZUL MÁS CLARO ========== */
:root {
    --primary: #0077b6;
    --primary-dark: #005f8c;
    --primary-light: #48cae4;
    --secondary: #00b4d8;
    --accent: #ff8c00;
    --light: #f4f9ff;
    --dark: #1a1a2e;
    --white: #ffffff;
    --gray: #64748b;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Segoe UI', 'Roboto', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    background: var(--white);
    overflow-x: hidden;
}

/* ========== VIDEO FONDO ========== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* ========== UTILERÍAS ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    position: relative;
    font-weight: 700;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 4px;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.02);
}

/* ========== TOP BAR ========== */
.top-bar {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
    position: relative;
    z-index: 1001;
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.social-icons a {
    color: white;
    margin-right: 18px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

.contacto-top {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.contacto-top i {
    margin-right: 5px;
    color: var(--secondary);
}

.email-link {
    color: var(--secondary);
    text-decoration: none;
}

/* ========== MENÚ GLASS ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(0, 119, 182, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo img {
    height: 55px;
    filter: brightness(1.05);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--accent);
}

.dropdown-menu {
    position: absolute;
    top: 40px;
    left: 0;
    background: rgba(0, 119, 182, 0.95);
    backdrop-filter: blur(10px);
    min-width: 220px;
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    list-style: none;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 30px;
}

.dropdown-menu li {
    padding: 8px 20px;
}

.dropdown-menu li a {
    font-size: 0.85rem;
}

.btn-outline-light {
    border: 1px solid white;
    border-radius: 30px;
    padding: 6px 18px !important;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary) !important;
}

/* ========== HERO LANDING ========== */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    color: var(--accent);
    border-bottom: 3px solid var(--accent);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== SECCIONES GENERALES ========== */
section {
    padding: 80px 0;
}

.bg-light {
    background: var(--light);
}

.bg-white {
    background: white;
}

/* ========== PRODUCTOS GRID ========== */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.producto-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: var(--transition);
    text-align: center;
    padding: 25px 20px;
}

.producto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0,0,0,0.12);
}

.producto-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.producto-card img:hover {
    transform: scale(1.02);
}

.producto-card h3 {
    margin: 20px 0 10px;
    color: var(--primary);
    font-size: 1.4rem;
}

.product-description {
    margin: 15px 0;
}

.product-description p {
    color: var(--gray);
    font-size: 0.9rem;
}

.product-description ul {
    text-align: left;
    margin: 10px 0 10px 20px;
    color: var(--gray);
    font-size: 0.85rem;
}

.product-description li {
    margin-bottom: 5px;
}

.product-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-small {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 8px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-details {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-details:hover {
    background: var(--secondary);
    color: white;
}

/* Galería de imágenes oculta */
.d-none {
    display: none;
}

/* ========== NOSOTROS ========== */
.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.nosotros-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.nosotros-img img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

/* ========== AVISO PRIVACIDAD ========== */
.aviso-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.aviso-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/* ========== CTA WHATSAPP ========== */
.cta-whatsapp {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    text-align: center;
}

.btn-whatsapp-large {
    background: var(--whatsapp);
    padding: 16px 48px;
    font-size: 1.2rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    transition: var(--transition);
}

.btn-whatsapp-large:hover {
    background: var(--whatsapp-dark);
    transform: scale(1.02);
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark);
    color: #ccc;
    padding: 60px 0 0;
}

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

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 15px;
}

.social-footer {
    margin-top: 20px;
}

.social-footer a {
    color: white;
    margin-right: 15px;
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-footer a:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid #2c2c3a;
    margin-top: 50px;
    font-size: 0.8rem;
}

/* ========== BOTÓN FLOTANTE WHATSAPP ========== */
.float-whatsapp {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--whatsapp);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
}

.float-whatsapp:hover {
    transform: scale(1.1);
    background: var(--whatsapp-dark);
}

.tooltip {
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.float-whatsapp:hover .tooltip {
    opacity: 1;
}

/* ========== LIGHTBOX / MODAL GALERÍA ========== */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10001;
}

.close-lightbox:hover {
    color: var(--accent);
}

.lightbox-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background: var(--primary);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-caption {
    color: white;
    margin-top: 20px;
    font-size: 1rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.lightbox-counter {
    color: rgba(255,255,255,0.6);
    margin-top: 10px;
    font-size: 0.85rem;
}

/* ========== RESPONSIVE ========== */
.nav-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

@media (max-width: 992px) {
    .nav-toggle {
        display: block;
    }
    .nav-menu {
        position: fixed;
        top: 110px;
        left: -100%;
        flex-direction: column;
        background: rgba(0, 119, 182, 0.98);
        width: 75%;
        height: 100vh;
        padding: 30px;
        transition: 0.3s;
        gap: 1.2rem;
        backdrop-filter: blur(10px);
    }
    .nav-menu.active {
        left: 0;
    }
    .dropdown-menu {
        position: static;
        background: transparent;
        backdrop-filter: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .nosotros-content {
        grid-template-columns: 1fr;
    }
    .top-bar-flex {
        flex-direction: column;
        text-align: center;
    }
    .contacto-top {
        justify-content: center;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .close-lightbox {
        top: 10px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .lightbox-prev, .lightbox-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}