/* ========================================
   Variables y Configuración General
   ======================================== */
:root {
    --color-primary: #7DD1E9;
    --color-secondary: #07197d;
    --color-light: #E5E3E2;
    --color-white: #ffffff;
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --navbar-height: 70px;
}

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

body {
    font-family: var(--font-primary);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
}

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

/* ========================================
   Navbar
   ======================================== */
.navbar {
    padding: 0.5rem 0;
    transition: var(--transition);
    background: transparent;
    min-height: var(--navbar-height);
}

.navbar.scrolled {
    background: rgba(7, 25, 125, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.3rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white) !important;
    transition: var(--transition);
    padding: 0.25rem 0;
}

.navbar-brand i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.navbar-brand:hover {
    color: var(--color-primary) !important;
}

.navbar-brand .navbar-logo {
    display: inline-block;
    width: 80px;
    height: 45px;
    object-fit: contain;
    border-radius: 0;
}

.nav-link {
    color: var(--color-white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

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

/* ========================================
   Hero Section OPTIMIZADO
   ======================================== */
.hero-section {
    background-color: #07197d; /* color mientras carga */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Imagen de fondo con WebP optimizado + fallback */
.hero-section {
    background-image: 
        linear-gradient(135deg, rgba(7,25,125,0.08) 0%, rgba(10,43,158,0.03) 100%), 
        url('assets/fondo-hero.webp');
}

/* Fallback para navegadores sin soporte WebP (Safari antiguo, IE) */
.no-webp .hero-section {
    background-image: 
        linear-gradient(135deg, rgba(7,25,125,0.08) 0%, rgba(10,43,158,0.03) 100%), 
        url('assets/fondo-hero.jpg');
}

/* Efecto de carga suave */
.hero-section {
    animation: fadeInHero 0.8s ease-in;
}

@keyframes fadeInHero {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Resto de estilos del hero (mantener igual) */
#inicio.hero-section {
    transform: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(195deg, rgba(7,25,125,0.30) 0%, rgba(125,209,233,0.12) 100%);
    pointer-events: none;
}

/* Optimización móvil: imagen más pequeña */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll; /* mejora rendimiento en móvil */
    }
}
#inicio.hero-section {
    transform: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(195deg, rgba(7,25,125,0.30) 0%, rgba(125,209,233,0.12) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    transform: none !important;
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 800;
    text-shadow: 1px 1px 12px rgba(0,0,0,0.45);
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem !important;
    line-height: 1;
}

.hero-content p {
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

.hero-content .lead {
    margin-top: 0.35rem !important;
    margin-bottom: 0.25rem !important;
}

.hero-content .fs-4 {
    margin-top: 0.25rem !important;
}

.hero-logo {
    max-width: 220px;
    max-height: 290px;
    width: auto;
    height: auto;
    display: inline-block;
    margin-bottom: 0.25rem !important;
    object-fit: contain;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--color-white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-20px);
    }
    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========================================
   Secciones Generales
   ======================================== */
section {
    padding: 80px 0;
    position: relative;
}

section:not(#inicio) {
    scroll-margin-top: 80px;
    padding-top: 120px !important;
    margin-top: -20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    position: relative;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    margin: 1rem auto;
    border-radius: 2px;
}

/* ========================================
   Sección Nosotros
   ======================================== */
.info-card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
    border-top: 4px solid var(--color-primary);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(125, 209, 233, 0.3);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.info-icon i {
    font-size: 2rem;
    color: var(--color-white);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    text-align: center;
}

.info-card p {
    color: #666;
    text-align: center;
    line-height: 1.8;
}

.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    padding: 0.5rem 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.values-list i {
    color: var(--color-primary);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* ========================================
   Sección Productos
   ======================================== */
.product-card {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(7, 25, 125, 0.2);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(125, 209, 233, 0.9), rgba(7, 25, 125, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay i {
    color: var(--color-white);
}

.product-content {
    padding: 1.5rem;
}

.product-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.8rem;
}

.product-content p {
    color: #666;
    line-height: 1.6;
}

/* ========================================
   Sección Premium (video)
   ======================================== */
.section-title-image {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: inline-block;
    margin-bottom: 0.25rem !important;
}

#premium .title-divider,
#productos .title-divider {
    margin: 0.35rem auto;
    height: 3px;
}

#premium .lead,
#productos .lead {
    margin-top: 0.4rem !important;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* ========================================
   Sección Socios Comerciales
   ======================================== */
.partner-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(125, 209, 233, 0.3);
}

.partner-card img {
    max-width: 150%;
    max-height: 150%;
    object-fit: contain;
    transition: var(--transition);
}

.partner-card:hover img {
    filter: grayscale(0%);
}

/* ========================================
   Sección Contacto
   ======================================== */
.contact-info {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-info h4 {
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.3rem;
    color: var(--color-white);
}

.contact-text h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: #666;
    margin-bottom: 0.3rem;
}

.contact-form-wrapper {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-light);
    border-radius: 10px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(125, 209, 233, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(125, 209, 233, 0.4);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

.footer-logo {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin-bottom: 0.25rem !important;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-top: 0.25rem !important;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
    color: var(--color-white);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* ========================================
   WhatsApp Flotante
   ======================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: var(--color-white);
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 5px 35px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    }
}

/* ========================================
   Botón Scroll to Top
   ======================================== */
.scroll-top-btn {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(125, 209, 233, 0.4);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-5px);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 992px) {
    :root {
        --navbar-height: 60px;
    }

    html {
        scroll-padding-top: 70px;
    }

    section:not(#inicio) {
        padding-top: 100px !important;
        scroll-margin-top: 70px;
    }

    .navbar-brand .navbar-logo {
        width: 140px;
        height: 38px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 0.3rem !important;
    }

    .hero-logo {
        max-width: 220px;
        max-height: 110px;
        margin-bottom: 0.2rem !important;
    }

    .hero-content .lead {
        margin-top: 0.3rem !important;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --navbar-height: 56px;
    }

    html {
        scroll-padding-top: 60px;
    }

    section:not(#inicio) {
        padding-top: 90px !important;
        scroll-margin-top: 60px;
    }

    .navbar-brand .navbar-logo {
        width: 120px;
        height: 32px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .lead {
        font-size: 1.2rem;
    }

    .section-title-image,
    .footer-logo {
        max-width: 140px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .scroll-top-btn {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .contact-form-wrapper,
    .contact-info {
        margin-bottom: 1.5rem;
    }

    .video-container {
        border-radius: 10px;
    }
}

@media (max-width: 576px) {
    .navbar-brand .navbar-logo {
        width: 100px;
        height: 28px;
    }

    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.25rem !important;
    }

    .hero-logo {
        max-width: 160px;
        max-height: 80px;
        margin-bottom: 0.15rem !important;
    }

    .hero-content .lead {
        margin-top: 0.25rem !important;
    }

    .info-card,
    .product-card,
    .partner-card {
        margin-bottom: 1.5rem;
    }

    section {
        padding: 50px 0;
    }

    .section-title-image {
        max-width: 180px;
    }
}

/* ========================================
   Animaciones Adicionales
   ======================================== */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

/* ========================================
   Utilidades
   ======================================== */
.bg-light {
    background-color: #f8f9fa !important;
}

.text-muted {
    color: #6c757d !important;
}


/* Versión EXTRA GRANDE (si la anterior no es suficiente) */
/* NAVBAR ULTRA DELGADO (versión mínima) */
.navbar {
    padding: 0.1rem 0 !important;
}

.navbar.scrolled {
    padding: 0.05rem 0 !important;
}

.navbar-brand {
    padding: 0.1rem 0;
}

.navbar-brand .navbar-logo {
    width: 220px;
    height: 50px;  /* aún más delgado */
    object-fit: contain;
}

.nav-link {
    padding: 0.3rem 0.8rem !important;
    font-size: 0.95rem;
}



.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #07197d;
  color: #fff;
  padding: 8px 12px;
  z-index: 10000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 10px;
}