/* Urban Line - Estilos principales */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

:root {
    --color-negro: #111;
    --color-blanco: #fff;
    --color-azul: #007BFF;
    --color-gris: #f5f5f5;
}

/* Ajustes globales para evitar scroll horizontal */
html {
    width: 100%;
    overflow-x: hidden;
}
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    background: var(--color-blanco);
    color: var(--color-negro);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevenir scroll horizontal en móvil */
}

/* Header avanzado y centrado */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--color-negro);
    color: var(--color-blanco);
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.container-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
    padding: 0.8rem 2rem;
}
.logo {
    display: flex;
    align-items: center;
    height: 60px;
}
.logo img {
    height: 60px;
    width: auto;
}
.nav {
    display: flex;
    justify-content: flex-end;
}
.nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}
.nav a {
    color: var(--color-blanco);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.08rem;
    transition: color 0.2s;
}
.nav a:hover {
    color: var(--color-azul);
}

/* Menú hamburguesa (oculto por defecto) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-blanco);
    padding: 0.5rem;
}

.mobile-menu-toggle:hover {
    color: var(--color-azul);
}

main {
    padding-top: 80px;
    flex: 1;
    min-height: 0;
}

/* HERO SECTION NUEVO DISEÑO */
.hero {
    min-height: 72vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 15% 20%, #1b2b4a 0%, #0b1220 45%, #05070c 100%);
    width: 100%;
    overflow: hidden; /* Prevenir cualquier overflow */
    max-width: 100vw; /* Nunca exceder el ancho de la pantalla */
}
.hero::before {
    content: none;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(7,12,20,0.2) 0%, rgba(7,12,20,0.65) 65%, rgba(7,12,20,0.85) 100%);
    z-index: 1;
}
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    gap: 3rem;
    max-width: 100vw; /* En móvil, evitar desbordes horizontales */
}
.hero-content {
    text-align: left;
    color: var(--color-blanco);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.1rem;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #cfe0ff;
    background: rgba(255,255,255,0.08);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}
.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    line-height: 1.13;
    letter-spacing: -1px;
    word-wrap: break-word; /* Asegurar que el texto se ajuste */
}
.hero-content p {
    font-size: 1.12rem;
    margin-bottom: 1.2rem;
    color: #e3eafc;
    max-width: 480px;
    word-wrap: break-word; /* Asegurar que el texto se ajuste */
}
.hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap; /* Permitir que los botones se ajusten */
}

/* Estilos base para botones del hero */
.hero-buttons button,
.hero-buttons .btn-secundario {
    background: var(--color-azul);
    color: var(--color-blanco);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.hero-buttons button:hover,
.hero-buttons .btn-secundario:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.hero-buttons .btn-secundario {
    background: transparent;
    border: 2px solid var(--color-azul);
    color: var(--color-azul);
}

.hero-buttons .btn-secundario:hover {
    background: var(--color-azul);
    color: var(--color-blanco);
}

/* Estilos generales para botones fuera del hero */
button, .btn-primario {
    background: var(--color-azul);
    color: var(--color-blanco);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secundario {
    background: transparent;
    border: 2px solid var(--color-azul);
    color: var(--color-azul);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

button:hover, .btn-primario:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.btn-secundario:hover {
    background: var(--color-azul);
    color: var(--color-blanco);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.hero-visual {
    display: flex;
    justify-content: center;
}
.hero-card {
    background: rgba(255,255,255,0.96);
    border-radius: 24px;
    padding: 2rem;
    max-width: 360px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.22);
    text-align: left;
}
.hero-card img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    display: block;
    margin-bottom: 1rem;
}
.hero-card p {
    color: #243447;
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}
/* ===============================================
   RESPONSIVE DESIGN - MOBILE & TABLET
   =============================================== */

/* Tablet y pantallas medianas */
@media (max-width: 1024px) {
    .container-header {
        padding: 0.8rem 1.5rem;
    }
    
    .hero-inner {
        max-width: 900px;
        padding: 3rem 1.5rem;
        gap: 2.5rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* Tablet pequeño */
@media (max-width: 900px) {
    .hero {
        min-height: 55vh; /* Reducir un poco para tablet */
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2.5rem 1.2rem; /* Reducir padding para mejor proporción */
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        align-items: center;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        max-width: 600px;
    }
    
    /* Navegación móvil */
    .nav ul {
        gap: 1.5rem;
    }
    
    .nav a {
        font-size: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header móvil */
    .container-header {
        padding: 0.6rem 1rem;
        gap: 1rem;
        position: relative;
    }
    
    .logo {
        height: 50px;
    }
    
    .logo img {
        height: 50px;
    }
    
    /* Mostrar botón hamburguesa en móvil */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Ocultar navegación normal y convertir en menú desplegable */
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-negro);
        box-shadow: 0 4px 20px rgba(0,0,0,0.4);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
        border-top: 2px solid var(--color-azul);
        display: block; /* Cambiar de flex a block */
        justify-content: unset; /* Eliminar justify-content */
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav ul {
        display: flex;
        flex-direction: column;
        padding: 1.5rem 0rem; /* Eliminar padding horizontal */
        gap: 0.5rem;
        margin: 0;
        list-style: none;
        align-items: stretch; /* Asegurar que los enlaces ocupen todo el ancho */
        justify-content: flex-start; /* Alinear contenido al inicio */
        text-align: left; /* Alineación de texto a la izquierda */
    }
    
    .nav li {
        width: 100%;
        text-align: left;
        margin: 0;
        padding: 0;
    }
    
    .nav a {
        font-size: 1rem;
        font-weight: 500;
        display: block;
        padding: 1.2rem 2rem; /* Padding más generoso a la izquierda */
        border-radius: 0; /* Sin bordes redondeados para mejor alineación */
        transition: all 0.2s ease;
        text-align: left;
        color: var(--color-blanco);
        background: transparent;
        border: none;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav a:hover {
        background: rgba(0, 123, 255, 0.1);
        color: var(--color-azul);
        border-left: 3px solid var(--color-azul); /* Indicador visual a la izquierda */
        padding-left: calc(2rem - 3px); /* Ajustar padding para compensar el borde */
    }
    
    /* Reglas adicionales para forzar alineación izquierda en todos los casos móviles */
    .nav ul li,
    .nav ul li a {
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .nav ul {
        align-items: stretch !important;
        justify-content: flex-start !important;
    }
    
    .nav a:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    main {
        padding-top: 70px;
    }
    
    /* Hero móvil optimizado */
    .hero {
        min-height: 35vh; /* Más reducido para mejor ajuste */
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    .hero-inner {
        padding: 1.5rem 1rem; /* Padding más centrado y balanceado */
        gap: 1rem; /* Gap óptimo para móvil */
        max-width: 100%;
        grid-template-columns: 1fr; /* Una sola columna en móvil */
        text-align: center; /* Centrar todo el contenido */
    }
    
    .hero-content {
        text-align: center; /* Centrar contenido del texto */
        align-items: center; /* Centrar elementos */
    }
    
    .hero-content h1 {
        font-size: 1.5rem; /* Tamaño más compacto para móvil */
        line-height: 1.2;
        margin-bottom: 0.8rem;
        max-width: 100%;
    }
    
    .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.4;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.6rem; /* Más reducido gap */
        width: 100%;
        margin-top: 0.8rem;
    }
    
    .hero-buttons button,
    .hero-buttons .btn-secundario {
        width: 100%;
        padding: 0.55rem 0.7rem; /* Reducido para mejor proporción */
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.8rem; /* Reducido */
        max-width: 280px; /* Limitar ancho máximo */
        margin: 0 auto; /* Centrar botones */
        box-sizing: border-box;
    }
    
    .hero-visual {
        display: none; /* Ocultar toda la sección visual en móvil */
    }
    
    .hero-card {
        display: none; /* Ocultar en móvil */
    }
    
    .hero-eyebrow {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
        margin-bottom: 0.4rem;
    }
    
    /* Productos destacados móvil */
    .container-productos-destacados {
        padding: 0 1rem;
    }
    
    .productos-destacados-header {
        margin-bottom: 2rem;
    }
    
    /* Indicador visual de carrusel para móvil */
    .productos-destacados-header::after {
        content: "← Desliza para ver más →";
        display: block;
        font-size: 0.8rem;
        color: #5b6b80;
        margin-top: 0.5rem;
        font-style: italic;
    }
    
    .productos-destacados h2 {
        font-size: 1.8rem;
    }
    
    .productos-destacados .grid-productos {
        display: flex; /* Cambiar a flex para carrusel */
        overflow-x: auto; /* Scroll horizontal */
        overflow-y: hidden;
        scroll-behavior: smooth;
        gap: 1rem;
        padding: 0 1rem 1rem 1rem; /* Padding para scroll */
        margin-bottom: 1.5rem;
        /* Snap scrolling */
        scroll-snap-type: x mandatory;
        touch-action: pan-x; /* Mejor experiencia táctil en móvil */
        overscroll-behavior-x: contain; /* Contener el overscroll y evitar gesto de atrás */
        scroll-padding-left: 16px; /* Alinear primer ítem con padding del contenedor */
        scroll-padding-right: 16px;
        /* Ocultar scrollbar pero mantener funcionalidad */
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        /* Momentum scrolling en iOS */
        -webkit-overflow-scrolling: touch;
    }
    
    .productos-destacados .grid-productos::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Opera */
    }
    
    /* Cards destacadas más compactas en móvil */
    .productos-destacados .producto {
        flex: 0 0 86%;
        min-width: 86%;
        max-width: 320px;
        min-height: 250px;
        height: auto;
        padding: 0.6rem;
        scroll-snap-align: start; /* Snap al hacer scroll */
    }

    .productos-destacados .producto img {
        height: 115px;
    }

    .productos-destacados .producto h3 {
        font-size: 0.9rem;
    }
    
    /* Servicios móvil */
    .servicios {
        padding: 4rem 1rem;
    }
    
    .servicios h2 {
        font-size: 1.8rem;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .servicio {
        padding: 1.5rem 1rem;
    }
    
    /* Redes sociales móvil */
    .redes-sociales {
        gap: 1.5rem;
    }
    
    .redes-sociales a {
        min-width: 100px;
        padding: 1.5rem 1rem;
    }
}

/* Mobile pequeño optimizado */
@media (max-width: 600px) {
    .hero {
        min-height: 32vh; /* Ajustado entre 768px y 480px */
    }
    
    .hero-inner {
        padding: 0.9rem 0.7rem;
        gap: 0.7rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.88rem;
        margin-bottom: 0.9rem;
    }
    
    .hero-eyebrow {
        font-size: 0.7rem;
        padding: 0.18rem 0.45rem;
        margin-bottom: 0.35rem;
    }
    
    .hero-buttons {
        gap: 0.55rem;
        margin-top: 0.7rem;
    }
    
    .hero-buttons button,
    .hero-buttons .btn-secundario {
        padding: 0.65rem 0.75rem;
        font-size: 0.82rem;
    }
    
    
    .productos-destacados h2 {
        font-size: 1.4rem;
    }
    
    .servicios h2 {
        font-size: 1.4rem;
    }
    
    .productos-destacados .grid-productos {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
    }
    
    .servicios h2 {
        font-size: 1.5rem;
    }
    
    .redes-sociales {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .redes-sociales a {
        width: 200px;
    }
}

/* Mobile muy pequeño optimizado */
@media (max-width: 480px) {
    .container-header {
        padding: 0.4rem 0.6rem;
        gap: 0.5rem;
        /* No cambiar a columna para mantener compacto */
    }
    
    .nav ul {
        gap: 0.4rem;
        padding: 1rem 0rem; /* Sin padding horizontal */
        justify-content: flex-start; /* Asegurar alineación izquierda */
        text-align: left;
    }
    
    .nav li {
        width: 100%;
        text-align: left;
    }
    
    .nav a {
        font-size: 0.9rem;
        padding: 1rem 1.5rem; /* Padding generoso a la izquierda */
        text-align: left !important;
        width: 100%;
        display: block;
    }
    
    main {
        padding-top: 70px; /* Reducido para mejor aprovechamiento */
    }
    
    .hero {
        min-height: 28vh; /* Muy reducido para pantallas pequeñas */
    }
    
    .hero-inner {
        padding: 1rem; /* Padding uniforme y centrado */
        gap: 0.8rem;
        text-align: center; /* Centrar todo el contenido */
    }
    
    .hero-content {
        text-align: center; /* Centrar texto */
        align-items: center;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 1.3rem; /* Más pequeño para pantallas muy chicas */
        line-height: 1.2;
        margin-bottom: 0.6rem;
        text-align: center;
    }
    
    .hero-content p {
        font-size: 0.8rem; /* Más compacto */
        line-height: 1.4;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .hero-buttons {
        gap: 0.5rem;
        margin-top: 0.6rem;
        align-items: center; /* Centrar botones */
        max-width: 300px; /* Limitar ancho del contenedor */
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons button,
    .hero-buttons .btn-secundario {
        padding: 0.5rem 0.6rem; /* Más compacto para pantallas pequeñas */
        font-size: 0.75rem; /* Texto más pequeño */
        max-width: 260px; /* Ancho máximo reducido */
        margin: 0 auto;
        text-align: center !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box;
    }
    
    .hero-card {
        display: none; /* Ocultar en móvil pequeño */
    }
    
    .hero-eyebrow {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
        margin-bottom: 0.3rem;
    }
    
    /* Optimizar otras secciones para pantallas pequeñas */
    .productos-destacados {
        padding: 2rem 0.6rem;
    }
    
    .container-productos-destacados {
        padding: 0; /* Eliminar padding lateral para carrusel */
    }
    
    .productos-destacados h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        padding: 0 1rem; /* Padding para título cuando hay carrusel */
    }
    
    /* Carrusel más compacto para pantallas muy pequeñas */
    .productos-destacados .grid-productos {
        padding: 0 0.8rem 1rem 0.8rem;
        gap: 0.8rem;
    }
    
    .productos-destacados .producto {
        flex: 0 0 90%;
        min-width: 90%;
        max-width: 300px;
        min-height: 235px;
        height: auto;
        padding: 0.55rem;
    }

    .productos-destacados .producto img {
        height: 105px;
    }

    .productos-destacados .producto h3 {
        font-size: 0.85rem;
    }
    
    .servicios {
        padding: 2rem 0.6rem;
    }
    
    .servicios h2 {
        font-size: 1.3rem;
    }
    
    .servicio {
        padding: 1rem 0.8rem;
    }
    
    .redes-sociales {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .redes-sociales a {
        width: 180px;
        font-size: 0.85rem;
        padding: 1rem 0.8rem;
    }
}

/* ===============================================
   RESPONSIVE PARA PÁGINAS INDIVIDUALES
   ==========
    .hero-visual {
        justify-content: flex-start;
    }
    .hero-card {
        max-width: 100%;
    }
@media (max-width: 600px) {
    .hero-inner {
        padding: 2.2rem 1rem;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-beneficios {
        flex-direction: column;
        gap: 1.2rem;
        margin-top: 1.2rem;
        margin-bottom: 1.2rem;
    }
}
.hero-beneficios {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
}
.beneficio {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    color: var(--color-negro);
}
.beneficio img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.3rem;
    background: none;
    border-radius: 0;
    box-shadow: none;
}
/* Sección de servicios */
.servicios {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f2f7 50%, #ffffff 100%);
    padding: 5rem 1rem;
    text-align: center;
    color: var(--color-negro);
}
.servicios h2 {
    color: var(--color-azul);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.servicios-subtitle {
    color: #5b6b80;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.servicio {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0,123,255,0.15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.08);
}
.servicio:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.15);
    border-color: rgba(0,123,255,0.3);
}
.servicio-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem auto;
    background: var(--color-azul);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.servicio h3 {
    color: var(--color-negro);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.servicio p {
    color: #5b6b80;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
.redes-hero {
    background: linear-gradient(135deg, #e8f2f7 0%, #f0f4f8 50%, #ffffff 100%);
    text-align: center;
    padding: 2.5rem 1rem 1.5rem 1rem;
}
.redes-hero h2 {
    color: var(--color-azul);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}
/* Sección de productos destacados mejorada */
.productos-destacados {
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 50%, #f8fafc 100%);
    padding: 4rem 0;
    position: relative;
    overflow-x: hidden; /* Contener scroll horizontal de la sección */
}
.productos-destacados::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0,123,255,0.3) 50%, transparent 100%);
    z-index: -1; /* Colocar detrás del contenido para no cortar cards al hacer hover */
    pointer-events: none;
}
.container-productos-destacados {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.productos-destacados-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.productos-destacados h2 {
    color: var(--color-azul);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}
.productos-destacados-subtitle {
    color: #5b6b80;
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}
.productos-destacados .grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible; /* Evitar recortes cuando la tarjeta hace hover */
}
/* En destacados, evitar desplazamiento vertical en hover para que no "corte" arriba */
.productos-destacados .producto:hover {
    transform: scale(1.01);
}
.productos-destacados-cta {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,123,255,0.1);
}
.btn-ver-tienda {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-azul) 0%, #0056b3  100%);
    color: var(--color-blanco);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}
.btn-ver-tienda:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}
.productos-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #5b6b80;
    font-style: italic;
}
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 3.5rem;
}
.productos-destacados-carousel {
    position: relative;
    padding: 0 16px; /* Zona segura para evitar gesto de atrás desde el borde */
    overflow: hidden; /* Encapsular scroll del carrusel */
}
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0,123,255,0.35);
    background: rgba(255,255,255,0.85);
    color: #0a2342;
    display: none; /* Oculto por defecto, se muestra en móvil */
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    z-index: 5;
}
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }

@media (max-width: 768px) {
    .carousel-button { display: flex; }
}
.producto {
    background: linear-gradient(135deg, #fafdff 70%, #e3eafc 100%);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,123,255,0.12), 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    position: relative;
    transition: transform 0.25s cubic-bezier(.4,1.4,.6,1), box-shadow 0.25s cubic-bezier(.4,1.4,.6,1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 300px; /* Permitir crecer si el título es largo en desktop */
    padding: 0.8rem;
    border: 1.5px solid #e3eafc;
}
.producto:hover {
    transform: translateY(-6px) scale(1.015); /* Menor desplazamiento para evitar cortes perceptibles */
    z-index: 2; /* Asegurar que quede por encima de decoraciones */
    box-shadow: 0 16px 48px rgba(0,123,255,0.22), 0 4px 24px rgba(0,0,0,0.13);
    border-color: #b6d4fe;
}
.producto img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 0.6rem;
    background: white;
    transition: transform 0.3s;
}
.producto:hover img {
    transform: scale(1.04) rotate(-1deg);
    box-shadow: 0 8px 32px rgba(0,123,255,0.13);
}
.producto h3 {
    margin: 0.2rem 0 0.3rem 0;
    font-size: 0.95rem;
    color: #0a2342;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* En desktop, mostrar el título completo y permitir que la tarjeta crezca */
@media (min-width: 1025px) {
    .grid-productos .producto h3 {
        -webkit-line-clamp: unset;
        line-clamp: unset;
        max-height: none;
        overflow: visible;
        display: block;
        white-space: normal;
    }
    .grid-productos .producto { min-height: 320px; }
}
/* Card producto reorganizada */
.producto-hover {
    opacity: 1;
    position: static;
    width: 100%;
    background: none;
    color: var(--color-negro);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin-bottom: 0.7rem;
    transition: none;
    border-radius: 0;
}
.producto .precio {
    font-size: 0.95rem;
    font-weight: 600;
    color: #007BFF;
    background: #e3eafc;
    padding: 0.25rem 0.8rem;
    border-radius: 12px;
    margin-top: auto;
    margin-bottom: 0.4rem;
}
.producto .ver-mas {
    background: var(--color-azul);
    color: var(--color-blanco);
    padding: 0.45rem 1.2rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.2s;
    display: block;
    text-align: center;
}
.producto-acciones {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-comprar {
    background: #0f1c30;
    color: #ffffff;
    padding: 0.6rem 1.4rem;
    border-radius: 22px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-comprar:hover {
    background: #132a46;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.btn-comprar[data-checkout="1"] {
    background: #007BFF;
    box-shadow: 0 8px 22px rgba(0,123,255,0.25);
}
.btn-comprar[data-checkout="1"]:hover {
    background: #0056b3;
    box-shadow: 0 12px 26px rgba(0,123,255,0.32);
}
.producto .ver-mas:hover {
    background: #0056b3;
    color: var(--color-blanco);
    box-shadow: 0 4px 16px rgba(0,123,255,0.18);
}
.sobre-nosotros {
    padding: 5rem 1.5rem;
    background: radial-gradient(circle at 10% 20%, #eaf2ff 0%, #f7f9fc 45%, #ffffff 100%);
    color: var(--color-negro);
}
.sobre-nosotros-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
}
.sobre-nosotros-media,
.sobre-nosotros-card {
    flex: 1;
}
.sobre-nosotros-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.sobre-nosotros-media img {
    width: 220px;
    height: 220px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 28px;
    padding: 1.2rem;
    box-shadow: 0 18px 42px rgba(0,0,0,0.08);
}
.sobre-nosotros-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.2rem 2.4rem;
    box-shadow: 0 18px 50px rgba(0,123,255,0.08);
}
.sobre-nosotros-content h2 {
    margin-top: 0;
    color: #0a2342;
    font-size: 2rem;
}
.sobre-nosotros-card p {
    color: #243447;
    line-height: 1.7;
    margin: 0 0 1rem 0;
}
.sobre-nosotros-card p:last-child {
    margin-bottom: 0;
}
.tienda {
    padding: 4rem 1rem 2rem;
}
.producto-page {
    padding: 4rem 1rem 3rem;
    background: #f7f9fc;
}
.producto-hero {
    max-width: 1100px;
    margin: 0 auto 2.5rem auto;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}
.producto-media {
    flex: 1;
}
.producto-media > img,
.producto-media #product-image {
    width: 100%;
    height: 450px;
    object-fit: contain;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
    background: #F8FAFC;
}
.producto-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.producto-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #5b6b80;
}
.producto-desc {
    color: #425466;
    line-height: 1.7;
    margin: 0;
}
.producto-precio {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0a2342;
    background: #e3eafc;
    padding: 0.5rem 1.1rem;
    border-radius: 14px;
    width: fit-content;
}
.producto-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.producto-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.4rem;
}
.producto-meta div {
    background: #ffffff;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.producto-meta strong {
    color: #0a2342;
}
.producto-meta span {
    color: #425466;
    font-size: 0.95rem;
}
.producto-info {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}
.producto-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 1.8rem 2rem;
    box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}
.producto-card h2 {
    margin-top: 0;
    color: #0a2342;
}
.producto-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.producto-grid div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.producto-grid strong {
    color: #0a2342;
}
.producto-grid span {
    color: #425466;
}
.producto-list {
    padding-left: 1.1rem;
    margin: 0;
    color: #425466;
    line-height: 1.7;
}

/* Checkout */
.checkout {
    padding: 3rem 1rem 2rem;
    background: #f7f9fc;
}
.checkout-hero {
    max-width: 1100px;
    margin: 0 auto 1.2rem auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.checkout-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5b6b80;
}
.checkout-hero h1 {
    margin: 0.5rem 0 0.7rem 0;
    color: #0a2342;
}
.checkout-hero p {
    margin: 0;
    color: #425466;
    max-width: 520px;
}
.checkout-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}
.checkout-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}
.checkout-card h2 {
    margin-top: 0;
    color: #0a2342;
}
.checkout-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}
.checkout-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    background: #f7f9fc;
    padding: 0.8rem 1rem;
    border-radius: 14px;
}
.checkout-item strong {
    color: #0a2342;
}
.checkout-item span {
    color: #425466;
    font-size: 0.9rem;
}
.checkout-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
}
.checkout-clear {
    background: #f0f4ff;
    color: #0a2342;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
}
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.checkout-form label {
    font-weight: 600;
    color: #0a2342;
}
.checkout-form input,
.checkout-form textarea {
    padding: 0.7rem;
    border: 1px solid #d7dce4;
    border-radius: 10px;
    font-size: 1rem;
}
.checkout-shipping-note {
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #f0f4ff;
    color: #0a2342;
    font-size: 0.95rem;
}
.checkout-payments {
    margin-top: 1rem;
}
.checkout-payments h3 {
    margin: 0 0 0.6rem 0;
    color: #0a2342;
    font-size: 1.05rem;
}
.checkout-payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.checkout-payment-options span {
    background: #ffffff;
    border: 1px solid #d7dce4;
    color: #0a2342;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}
.checkout-note {
    margin: 0.6rem 0 0 0;
    color: #7b8796;
    font-size: 0.9rem;
}
.checkout-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e6eaf0;
}
.checkout-summary h3 {
    margin: 0 0 0.6rem 0;
    color: #0a2342;
    font-size: 1.05rem;
}
.checkout-summary p,
.checkout-summary span {
    color: #425466;
    line-height: 1.6;
}

/* Políticas */
.policies {
    padding: 4rem 1rem 3rem;
    background: #f7f9fc;
}
.policies-hero {
    max-width: 1100px;
    margin: 0 auto 2rem auto;
}
.policies-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #5b6b80;
}
.policies-hero h1 {
    margin: 0.6rem 0 0.6rem 0;
    color: #0a2342;
}
.policies-hero p {
    margin: 0;
    color: #425466;
}
.policies-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}
.policies-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 1.8rem 2rem;
    box-shadow: 0 14px 36px rgba(0,0,0,0.08);
}
.policies-card h2 {
    margin-top: 0;
    color: #0a2342;
}
.policies-card p {
    color: #425466;
}
.policies-card ul {
    margin: 0.6rem 0 0 1.1rem;
    color: #425466;
    line-height: 1.7;
}
.checkout-empty {
    color: #7b8796;
    margin: 0 0 1rem 0;
}

/* Carrito (demo) */
.cart-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    background: #0f1c30;
    color: #fff;
    border: none;
    border-radius: 999px;
    width: 56px;
    height: 56px;
    padding: 0;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cart-fab svg {
    width: 24px;
    height: 24px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #007BFF;
    color: #fff;
    border-radius: 999px;
    padding: 0.1rem 0.4rem;
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 0.85rem;
}

/* WhatsApp soporte */
.whatsapp-fab {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 2000;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0,0,0,0.2);
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}
.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6), 0 4px 10px rgba(0,0,0,0.3);
    background: #20BA5A;
}
.whatsapp-fab img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}
@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.6), 0 2px 6px rgba(0,0,0,0.2), 0 0 0 8px rgba(37, 211, 102, 0.1);
    }
}
@media (max-width: 768px) {
    .whatsapp-fab {
        width: 56px;
        height: 56px;
        left: 16px;
        bottom: 16px;
    }
    .whatsapp-fab img {
        width: 28px;
        height: 28px;
    }
}
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5,8,12,0.5);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.cart-panel {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: min(420px, 92vw);
    background: #ffffff;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.25);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    pointer-events: none;
}
.cart-open .cart-overlay {
    opacity: 1;
    pointer-events: auto;
}
.cart-open .cart-panel {
    transform: translateX(0);
    pointer-events: auto;
}
.cart-open {
    overflow: hidden;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid #e6eaf0;
}
.cart-header h3 {
    margin: 0;
    color: #0a2342;
}
.cart-close {
    border: none;
    background: #555555;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.cart-close:hover {
    background: #3a3a3a;
    transform: scale(1.05);
}
.cart-items {
    padding: 1rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
    overflow-y: auto;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: #f7f9fc;
    padding: 0.8rem 1rem;
    border-radius: 14px;
}
.cart-item strong {
    display: block;
    color: #0a2342;
}
.cart-item span {
    color: #425466;
    font-size: 0.9rem;
}
.cart-item-actions {
    display: flex;
    gap: 0.4rem;
}
.cart-item-actions button {
    border: none;
    background: #0f1c30;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
}
.cart-footer {
    padding: 1.2rem 1.6rem 1.6rem 1.6rem;
    border-top: 1px solid #e6eaf0;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}
.cart-actions {
    display: flex;
    gap: 0.8rem;
}
.cart-actions button {
    flex: 1;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}
.cart-clear {
    background: #f0f4ff;
    color: #0a2342;
}
.cart-checkout {
    background: #007BFF;
    color: #fff;
}
.cart-checkout[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.cart-note {
    margin: 0.8rem 0 0 0;
    font-size: 0.85rem;
    color: #7b8796;
}
.tienda-hero {
    max-width: 1100px;
    margin: 0 auto 1.2rem auto;
    background: linear-gradient(120deg, #0b1220 0%, #0f1c30 55%, #132a46 100%);
    color: #fff;
    border-radius: 26px;
    padding: 2.2rem 2.6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 18px 45px rgba(0,0,0,0.2);
}
.tienda-hero h1 {
    margin: 0.4rem 0 0.8rem 0;
    font-size: 2.2rem;
}
.tienda-hero p {
    margin: 0 0 1.2rem 0;
    color: #d8e6ff;
    max-width: 520px;
}
.tienda-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #cfe0ff;
    background: rgba(255,255,255,0.08);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}
.tienda-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.tienda-link {
    color: #cfe0ff;
    text-decoration: none;
    font-weight: 600;
}
.tienda-link:hover {
    color: #ffffff;
}
.tienda-badge {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 1.2rem 1.4rem;
    border-radius: 18px;
    text-align: center;
    min-width: 180px;
}
.tienda-badge strong {
    display: block;
    font-size: 1.1rem;
}
.tienda-badge span {
    color: #d8e6ff;
    font-size: 0.95rem;
}
/* Página de contacto mejorada */
.contacto {
    background: linear-gradient(135deg, #f8fafc 0%, #e8f2f7 50%, #ffffff 100%);
    padding: 5rem 1rem;
}
.contacto-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
.contacto-info h2 {
    color: var(--color-azul);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.contacto-info p {
    color: #5b6b80;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.contacto-directo {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,123,255,0.08);
    border: 1px solid rgba(0,123,255,0.1);
}
.contacto-directo p {
    margin-bottom: 1rem;
    font-size: 1rem;
}
.contacto-directo a {
    color: var(--color-azul);
    text-decoration: none;
    font-weight: 500;
}
.contacto-directo a:hover {
    text-decoration: underline;
}
.form-contacto {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,123,255,0.1);
    border: 1px solid rgba(0,123,255,0.1);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-contacto label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-negro);
    font-size: 0.95rem;
}
.form-contacto input,
.form-contacto textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e3eafc;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}
.form-contacto input:focus,
.form-contacto textarea:focus {
    outline: none;
    border-color: var(--color-azul);
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}
.form-contacto textarea {
    resize: vertical;
    min-height: 120px;
}
.btn-enviar {
    background: linear-gradient(135deg, var(--color-azul) 0%, #0056b3 100%);
    color: var(--color-blanco);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0,123,255,0.2);
}
.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

/* ===============================================
   MEJORAS ADICIONALES PARA MÓVIL
   =============================================== */

/* Asegurar que las imágenes no se desborden */
img {
    max-width: 100%;
    height: auto;
}

/* Mejorar el espaciado en móvil */
@media (max-width: 768px) {
    section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Asegurar que el contenido no se desborde */
    * {
        max-width: 100%;
        word-wrap: break-word;
    }
}

/* Asegurar que los botones sean tocables en móvil */
button, .btn-primario, .btn-secundario {
    min-height: 44px; /* Tamaño mínimo recomendado para touch */
    touch-action: manipulation; /* Mejorar respuesta táctil */
}

/* Responsivo para botones generales */
@media (max-width: 768px) {
    button, .btn-primario, .btn-secundario {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    button, .btn-primario, .btn-secundario {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Mejorar legibilidad del texto en móvil */
body {
    -webkit-text-size-adjust: 100%; /* Prevenir zoom automático en iOS */
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Optimización táctil para botones */
textarea, input, button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="submit"], button {
    cursor: pointer;
}

/* Prevenir zoom en inputs en iOS */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    input, textarea, select {
        font-size: 16px; /* Prevenir zoom automático en iOS */
    }
}

/* Ocultar scroll horizontal */
html, body {
    width: 100%;
}

/* ===============================================
   RESPONSIVE PARA CONTACTO
   =============================================== */

/* Responsive para contacto */
@media (max-width: 768px) {
    .contacto {
        padding: 3rem 1rem;
    }
    
    .contacto-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contacto-info h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    
    .contacto-info p {
        text-align: center;
    }
    
    .contacto-directo {
        padding: 1.5rem;
        text-align: center;
    }
    
    .form-contacto {
        padding: 2rem 1.5rem;
    }
    
    .form-contacto input,
    .form-contacto textarea {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .contacto {
        padding: 2rem 0.5rem;
    }
    
    .contacto-info h2 {
        font-size: 1.5rem;
    }
    
    .form-contacto {
        padding: 1.5rem 1rem;
    }
} 

/* ===============================================
   RESPONSIVE PARA TIENDA
   =============================================== */

/* Fix final: mantener productos destacados en carrusel horizontal en móvil */
@media (max-width: 768px) {
    .productos-destacados .grid-productos {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        grid-template-columns: none;
        scroll-snap-type: x mandatory;
    }

    .productos-destacados .producto {
        flex: 0 0 86%;
        min-width: 86%;
        max-width: 320px;
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .productos-destacados .producto {
        flex: 0 0 90%;
        min-width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .tienda-hero {
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .tienda-hero h1 {
        font-size: 2rem;
    }
    
    .tienda .grid-productos {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.65rem;
        padding: 0 0.6rem;
    }
    
    .tienda .producto {
        height: auto;
        min-height: auto;
        padding: 0.45rem 0.4rem 0.5rem 0.4rem;
    }
    
    .tienda .producto img {
        height: 85px;
        margin-bottom: 0.35rem;
    }
    
    .tienda .producto h3 {
        font-size: 0.8rem;
        margin: 0.15rem 0;
        line-height: 1.15;
    }
    
    .tienda .producto-hover {
        gap: 0.3rem;
        margin-bottom: 0;
    }
    
    .tienda .producto .precio {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
        margin-bottom: 0.3rem;
    }
    
    .tienda .producto .ver-mas {
        font-size: 0.72rem;
        padding: 0.38rem 0.6rem;
    }
}

/* Tres columnas en tienda para móviles medianos */
@media (max-width: 600px) {
    .tienda .grid-productos {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
        padding: 0 0.5rem;
        max-width: 100%;
        margin: 0;
    }
    .tienda .producto {
        height: auto;
        min-height: auto;
        padding: 0.4rem 0.35rem 0.45rem 0.35rem;
    }
    .tienda .producto img {
        height: 80px;
        margin-bottom: 0.3rem;
    }
    .tienda .producto h3 {
        font-size: 0.75rem;
        margin: 0.12rem 0;
        line-height: 1.1;
    }
    .tienda .producto-hover {
        gap: 0.28rem;
        margin-bottom: 0;
    }
    .tienda .producto .precio {
        font-size: 0.76rem;
        padding: 0.18rem 0.5rem;
        margin-bottom: 0.28rem;
    }
    .tienda .producto .ver-mas {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        font-size: 0.68rem;
        padding: 0.36rem 0.45rem;
        border-radius: 10px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    /* Tienda: tres columnas compactas en móviles pequeños */
    .tienda .grid-productos {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        padding: 0 0.4rem;
        max-width: 100%;
        margin: 0;
    }
    .tienda .producto {
        height: auto;
        min-height: auto;
        padding: 0.38rem 0.32rem 0.42rem 0.32rem;
    }
    .tienda .producto img {
        height: 75px;
        margin-bottom: 0.28rem;
    }
    .tienda .producto h3 {
        font-size: 0.72rem;
        margin: 0.1rem 0;
        line-height: 1.08;
    }
    .tienda .producto-hover {
        gap: 0.25rem;
        margin-bottom: 0;
    }
    .tienda .producto .precio {
        font-size: 0.72rem;
        padding: 0.16rem 0.45rem;
        margin-bottom: 0.25rem;
    }
    .tienda .producto .ver-mas {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        font-size: 0.65rem;
        padding: 0.34rem 0.4rem;
        border-radius: 10px;
        box-sizing: border-box;
    }
}

/* ===============================================
   RESPONSIVE PARA SOBRE NOSOTROS
   =============================================== */

@media (max-width: 768px) {
    .sobre-nosotros {
        padding: 3rem 1rem;
    }
    
    .sobre-nosotros-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .sobre-nosotros-media img {
        width: 180px;
        height: 180px;
    }
    
    .sobre-nosotros-card {
        padding: 2rem 1.5rem;
    }
    
    .sobre-nosotros-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }
}

/* ===============================================
   RESPONSIVE PARA FOOTER
   =============================================== */

@media (max-width: 768px) {
    .footer {
        padding: 1.1rem 0.85rem;
        text-align: center;
    }
    
    .footer > div {
        flex-direction: column;
        gap: 0.4rem;
        align-items: center;
    }
    
    .footer-nav {
        display: none;
    }

    .footer > div > span {
        display: block;
        max-width: 28ch;
        font-size: 1rem;
        line-height: 1.35;
    }
}

@media (max-width: 480px) {
    .footer > div > span {
        font-size: 0.95rem;
    }
}
.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.redes-sociales a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}
.redes-sociales a img {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}
.redes-sociales a:nth-child(1) {
    color: #E4405F;
}
.redes-sociales a:nth-child(1):hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(228, 64, 95, 0.4);
}
.redes-sociales a:nth-child(1):hover img {
    filter: brightness(0) invert(1);
}
.redes-sociales a:nth-child(2) {
    color: #1877F2;
}
.redes-sociales a:nth-child(2):hover {
    background: #1877F2;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}
.redes-sociales a:nth-child(2):hover img {
    filter: brightness(0) invert(1);
}
.redes-sociales a:nth-child(3) {
    color: #25D366;
}
.redes-sociales a:nth-child(3):hover {
    background: #25D366;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}
.redes-sociales a:nth-child(3):hover img {
    filter: brightness(0) invert(1);
}
.footer {
    background: var(--color-negro);
    color: var(--color-blanco);
    padding: 1.2rem 2rem;
    text-align: center;
    margin-top: auto;
}
.footer-nav {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.footer-nav a {
    color: var(--color-blanco);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: var(--color-azul);
}
@media (max-width: 900px) {
    .container-header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    .nav ul {
        gap: 1.2rem;
    }
    .sobre-nosotros-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .sobre-nosotros-media {
        align-items: flex-start;
    }
    .sobre-nosotros-media img {
        width: 180px;
        height: 180px;
    }
    .tienda-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }
    .tienda-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .tienda-badge {
        width: 100%;
        text-align: left;
    }
    .producto-hero {
        flex-direction: column;
        align-items: stretch;
    }
    .producto-meta {
        grid-template-columns: 1fr;
    }
    .producto-info {
        grid-template-columns: 1fr;
    }
    .checkout-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}
/* Galería de imágenes del producto */
.producto-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
    max-width: 100%;
}
.producto-thumbnail {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    object-fit: cover;
    border-radius: 0.375rem;
    cursor: pointer;
    border: 2px solid #E2E8F0;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background: #F8FAFC;
    display: block;
}
.producto-thumbnail:hover {
    border-color: #64748B;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
}
.producto-thumbnail.active {
    border-color: #0F172A;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}
@media (max-width: 600px) {
    .container-header {
        flex-direction: column;
        padding: 1rem;
    }
    .nav ul {
        gap: 0.7rem;
        justify-content: flex-start !important; /* Forzar alineación izquierda */
        text-align: left !important;
    }
    
    .nav li {
        width: 100%;
        text-align: left !important;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .footer-nav {
        gap: 0.7rem;
    }
}

/* Inicio: redes sociales en una sola fila y más compactas en móvil */
@media (max-width: 768px) {
    .redes-hero .redes-sociales {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        gap: 0.65rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0.75rem;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .redes-hero .redes-sociales::-webkit-scrollbar {
        display: none;
    }

    .redes-hero .redes-sociales a {
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;
        border-radius: 50%;
    }

    .redes-hero .redes-sociales a img {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .redes-hero .redes-sociales {
        gap: 0.55rem;
    }

    .redes-hero .redes-sociales a {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .redes-hero .redes-sociales a img {
        width: 18px;
        height: 18px;
    }
}

/* Fix final: footer móvil sin enlaces */
@media (max-width: 768px) {
    .footer {
        padding: 1rem 0.75rem;
    }

    .footer .footer-nav {
        display: none !important;
    }

    .footer > div > span {
        display: block;
        max-width: 24ch;
        margin: 0 auto;
        line-height: 1.35;
    }
}
/* Fin de estilos Urban Line */
