/* ========================================================================= 
   VARIABLES & RESET
========================================================================== */
:root {
    --bg-dark: #000c1a; /* Fondo más azul profundo */
    --bg-card: rgba(0, 30, 60, 0.4); /* Azul tech transparente */
    --bg-card-hover: rgba(0, 50, 100, 0.6);
    --primary: #00d2ff;
    --secondary: #005ce6;
    --accent: #2193b0;
    --text-main: #f0f4f8;
    --text-muted: #94a3b8;
    --glass-border: rgba(0, 210, 255, 0.15);
    --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

#shader-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
}

body {
    background: transparent;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: transparent;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================================================= 
   UTILITIES
========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.container-sm {
    max-width: 800px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0px transparent;
    text-shadow: none;
    paint-order: fill;
}

.section-padding {
    padding: 100px 0;
}

.bg-alt {
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 14, 0.5), transparent);
    position: relative;
}
.bg-alt::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(33, 147, 176, 0.05) 0%, transparent 70%);
    z-index: -1;
}

/* ========================================================================= 
   NAVIGATION
========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all var(--transition);
    background: transparent;
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(10, 10, 14, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 300;
}

.logo-text b {
    font-weight: 800;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.btn-back {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 6px;
}

.btn-back:hover {
    background: rgba(255,255,255,0.2);
}

.btn-back-mobile {
    display: none;
}

@media (max-width: 768px) {
    .btn-back-mobile {
        display: inline-block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        padding: 12px 16px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #fff;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        border: none;
        border-radius: 8px;
        text-decoration: none;
        transition: var(--transition);
        box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    }

    .btn-back-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
    }

    .btn-back {
        display: none;
    }
}

/* ========================================================================= 
   PRODUCT MODAL (ENHANCED WITH GALLERY & TABLES)
========================================================================== */
.product-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 10px;
}

.product-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.product-modal-content {
    width: 95vw;
    height: 90vh;
    max-width: 1500px; /* Agrandar la ventana en PC */
    position: relative;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .product-modal-content {
        height: 95vh;
        padding: 40px; /* Mas respiro en PC */
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    color: #000;
}

.modal-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    gap: 30px;
    padding-right: 10px; /* Espacio para scroll */
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
        overflow-y: hidden;
    }
}

.modal-image {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 300px;
    flex-shrink: 0; /* Que no se achique */
}

@media (min-width: 768px) {
    .modal-image {
        width: 45%; /* Fotos más amplias guardando proporción con el modal agrandado */
        height: 100%;
    }
}

.modal-main-img-container {
    width: 100%;
    max-width: 350px; /* Cuadrado más chiquito */
    aspect-ratio: 1/1; /* Siempre cuadrado */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 20px; /* Bordes suaves */
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .modal-main-img-container {
        /* Se adapta al ancho en PC conservando la proporción */
        max-width: 100%;
        height: auto;
    }
}

.modal-main-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.modal-gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.modal-gallery-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    background: #fff; /* Para las imgs PNG */
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.modal-gallery-thumbnails img:hover,
.modal-gallery-thumbnails img.active {
    opacity: 1;
    border-color: var(--primary);
}

.modal-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%; /* Para que el flex hijo (desc) pueda ser scrollable y botón abajo */
}

@media (min-width: 768px) {
    .modal-details {
        width: 55%; /* Balance para la descripción */
        padding-right: 15px;
    }
}

.modal-details h2 {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    color: var(--text-main);
    margin-bottom: 15px;
}

/* Rich text and tables from Tiendanube */
.modal-desc {
    flex: 1; /* Ocupa todo el alto sobrante */
    overflow-y: auto; /* Scroll independiente para la descripcion */
    padding-right: 10px;
    color: #e2e8f0; /* Color claro para buena lectura on dark bg */
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Forzar sobreescritura de estilos incrustados del origen (que traen letras oscuras) */
.modal-desc * {
    color: inherit !important;
    font-family: inherit !important;
    text-align: left !important;
}

.modal-desc h3, .modal-desc h4 {
    color: #fff !important;
    margin-top: 25px;
    margin-bottom: 15px;
}

.modal-desc hr {
    border: 0;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 20px 0;
}

.modal-desc table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.2) !important;
}

.modal-desc th, .modal-desc td {
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 15px;
}

.modal-desc th {
    background: rgba(0, 210, 255, 0.1) !important;
    color: var(--primary) !important;
    font-weight: 600;
}

.modal-desc ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal-desc strong, .modal-desc b {
    color: #fff !important;
    font-weight: 600;
}

.modal-actions {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
}

.modal-actions .btn {
    width: 100%;
    padding: 8px 15px;
    font-size: 0.8rem;
    min-height: 36px;
}

/* =========================================================================
   LEGIBILIDAD SOBRE SHADER Y FONDOS CLAROS
========================================================================== */
h1, h2, h3, h4 {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff !important; /* Títulos Blancos */
    font-weight: 800 !important; /* Más gorditas */
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 4px 20px rgba(0,0,0,0.6) !important; /* Sombra limpia y fuerte para contraste */
}

.hero-title {
    text-shadow: 0 4px 15px rgba(0,0,0,0.9), 0 2px 5px rgba(0,0,0,0.7) !important;
}

/* Conservamos el color llamativo solo para los gradientes */
.text-gradient {
    -webkit-text-fill-color: transparent !important;
}

/* Descripciones oscuras y nítidas overriding el gris claro */
.section-heading p,
.services-content > p,
.benefits-list li,
.step p,
.contact p,
.footer {
    color: #0b192c !important; /* Azul medianoche súper oscuro casi negro */
    text-shadow: none !important; /* Sin borrosidad */
    font-weight: 700 !important; /* Más legibilidad y cuerpo */
}

/* El subtitulo del hero y catalogo están sobre fondo oscuro, van en blanco */
.hero-subtitle,
.catalogo-header p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.9), 0 2px 5px rgba(0,0,0,0.7) !important;
    font-weight: 500 !important;
}

/* Mantemos descripciones de tarjetas con color original */
.product-desc,
.about-card p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
    font-weight: 500;
}

.modal-desc {
    color: rgba(225, 235, 248, 0.95);
    text-shadow: none;
    font-weight: 400;
}

/* =========================================================================
   HERO
========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    /* La imagen de Canva original - Ajustarlo si la descargas a otra ruta */
    background-image: url('../assets/canva_hero_bg.jpg'); 
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: #000c1a;
    opacity: 0.8;
    transform: scale(1.1); /* Margen para parallax */
    will-change: transform;
}

.glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    /* Reemplazamos filter:blur(150px) por radial-gradient: mismo efecto visual, costo GPU = 0 */
    opacity: 0.04;
    animation: drift 20s infinite alternate;
    /* Sin filter:blur — el circulo difuso es generado por el propio gradiente radial */
}

.glow-1 {
    top: -10%; left: -10%;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.5) 0%, rgba(0, 210, 255, 0.15) 30%, transparent 70%);
}

.glow-2 {
    bottom: -10%; right: -10%;
    background: radial-gradient(circle, rgba(0, 92, 230, 0.5) 0%, rgba(0, 92, 230, 0.15) 30%, transparent 70%);
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 100px) scale(1.2); }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-logo {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85vw;
    max-width: 650px; /* Redimensionado para escudo cuadrado (siendo 1000px sobraba altura) */
    height: auto;
    opacity: 0.35;
    z-index: -1;
    pointer-events: none;
    filter: drop-shadow(0 0 50px rgba(0, 210, 255, 0.6));
}

@media (max-width: 768px) {
    .hero-logo {
        top: 22%;
        width: 120vw; /* Desborde medido para un escudo cuadrado en celular */
        max-width: none;
        opacity: 0.22;
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
    overflow-wrap: break-word;
    hyphens: none;
    max-width: 100%;
    padding: 0 10px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding: 0 20px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    line-height: 1.2;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

/* ========================================================================= 
   GLASS CARDS & SECTIONS
========================================================================== */
.section-heading {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    letter-spacing: -1px;
    overflow-wrap: break-word;
    hyphens: none;
    max-width: 95vw;
    margin-left: auto;
    margin-right: auto;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

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

.about-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
    transition: var(--transition);
}

.about-card:hover .card-overlay {
    opacity: 0.4;
    transform: scale(1.05); /* Efecto zoom out cover */
}

/* Fondos para las tarjetas usando las fotos .png en la carpeta assets raíz */
#card-seguridad .card-overlay {
    background-image: linear-gradient(135deg, rgba(0,92,230,0.5), transparent), url('../../assets/card_seguridad.png');
}
#card-control .card-overlay {
    background-image: linear-gradient(135deg, rgba(0,210,255,0.5), transparent), url('../../assets/card_control.png');
}
#card-eficiencia .card-overlay {
    background-image: linear-gradient(135deg, rgba(33,147,176,0.5), transparent), url('../../assets/card_eficiencia.png');
}

.card-content {
    position: relative;
    z-index: 2;
}

.about-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.about-card p {
    color: var(--text-main);
    font-weight: 300;
}

/* ========================================================================= 
   BENEFITS
========================================================================== */
.benefits-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.benefits-list span {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: bold;
}

.benefits-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.hologram-effect {
    position: relative;
    width: 250px;
    height: 250px;
}

.hologram-effect .circle {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px dashed rgba(0, 210, 255, 0.4);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.hologram-effect .pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

/* ========================================================================= 
   CATEGORY FILTERS
========================================================================== */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 10px 25px;
    border-radius: 30px;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-body);
}

.filter-btn:hover {
    background: rgba(0, 210, 255, 0.1);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--primary);
    color: #000;
    font-weight: 600;
}

/* ========================================================================= 
   PRODUCTS CATALOG
========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    min-height: 400px;
}

.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 210, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    height: 100%;
}

.product-card .product-image {
    width: 100%;
    height: 200px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.product-category-tag {
    display: inline-flex;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--secondary) 0%, #0099cc 100%);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 20px;
    height: 60px; /* Altura fija para uniformidad */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-footer {
    margin-top: auto;
}

.btn-sm {
    padding: 12px 15px;
    font-size: 0.85rem;
    line-height: 1.2;
}

.btn-outline {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    align-self: flex-start;
}

.btn-outline:hover {
    background: var(--primary);
    color: #000;
}

/* ========================================================================= 
   SERVICES / TIMELINE
========================================================================== */
.services-layout {
    max-width: 800px;
    margin: 0 auto;
}

.services-content h2 {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    word-break: break-word;
    hyphens: auto;
}

.services-content > p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--glass-border);
}

.step {
    position: relative;
    margin-bottom: 40px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-num {
    position: absolute;
    left: -42px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.step h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #fff;
}

.step p {
    color: var(--text-muted);
}

/* ========================================================================= 
   CONTACT FORMS
========================================================================== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.contact-form input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
}

.btn-block {
    width: 100%;
}

/* ========================================================================= 
   FOOTER
========================================================================== */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    background: rgba(255,255,255,0.04);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.35);
}

.social-link svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: scale(1.1);
}


/* ========================================================================= 
   ANIMATIONS
========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================================
   RESPONSIVE DESIGN
========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Reducir letter-spacing global en mobile para evitar overflow */
    h1, h2, h3, h4 {
        letter-spacing: 0.02em;
    }

    .hero-title {
        font-size: clamp(1.9rem, 6vw, 2.8rem);
        line-height: 1.1;
        letter-spacing: -0.5px;
        padding: 0 16px;
    }

    .hero-subtitle {
        font-size: clamp(0.95rem, 2.2vw, 1.15rem);
        padding: 0 20px;
    }

    .section-heading h2 {
        font-size: clamp(1.3rem, 4vw, 2rem);
        letter-spacing: 0;
        padding: 0 10px;
    }

    .services-content h2 {
        font-size: clamp(1.2rem, 3.5vw, 1.8rem);
        letter-spacing: 0;
    }

    .benefits-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .benefits-list li {
        justify-content: center;
        text-align: left;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
    }

    .btn {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
        padding: clamp(12px, 2vw, 15px) clamp(24px, 3vw, 35px);
    }
    
    /* Layout de catálogo en 2 columnas para Móvil */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .product-card {
        padding: 10px;
    }
    
    .product-card .product-image {
        height: 130px;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .product-info h3 {
        font-size: 0.85rem;
        margin-bottom: 5px;
    }
    
    .product-category-tag {
        font-size: 0.6rem;
        padding: 2px 5px;
        margin-bottom: 5px;
    }
    
    .product-desc {
        display: none; /* Ocultamos la descripción en la vista general en móvil para limpieza */
    }
    
    .btn-sm {
        padding: 14px 8px;
        font-size: 0.75rem;
        text-align: center;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        line-height: 1.2;
    }
}

/* =========================================================================
   ULTRA MOBILE (480px and below)
========================================================================== */
@media (max-width: 480px) {
    h1, h2, h3, h4 {
        letter-spacing: 0;
    }

    .hero-title {
        font-size: clamp(1.7rem, 5.5vw, 2.4rem);
        line-height: 1.12;
        letter-spacing: -0.5px;
        padding: 0 14px;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        padding: 0 15px;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: clamp(1.1rem, 3.5vw, 1.6rem);
        padding: 0 10px;
    }

    .services-content h2 {
        font-size: clamp(1.1rem, 3.5vw, 1.6rem);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .about-card {
        padding: 35px 20px;
        min-height: auto;
    }

    .about-card h3 {
        font-size: 1.1rem;
    }

    .parallax-card, .about-card {
        transform: none !important;
    }

    .benefits-layout {
        padding: 20px 0;
    }

    .container {
        padding: 0 3%;
    }

    .section-padding {
        padding: 60px 0;
    }

    .hero-actions {
        gap: 10px;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.85rem;
    }
}

/* ========================================================================= 
   BLUR TEXT ANIMATION (React bits BlurText replication)
========================================================================== */
.blur-segment {
    display: inline-block;
    will-change: transform, opacity;
    filter: blur(10px);
    opacity: 0;
    transform: translateY(-50px);
}

@keyframes blurTextReveal {
    0%   { filter: blur(10px); opacity: 0; transform: translateY(-50px); }
    50%  { filter: blur(5px);  opacity: 0.5; transform: translateY(5px); }
    100% { filter: blur(0px);  opacity: 1; transform: translateY(0); }
}

@keyframes blurTextRevealMobile {
    /* Versión sin filter:blur para móviles Android — mismo efecto, costo GPU = 0 */
    0%   { opacity: 0; transform: translateY(-35px); }
    60%  { opacity: 0.7; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

.visible .blur-segment,
.visible.blur-segment {
    animation: blurTextReveal 0.7s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* En mobile usamos la variante sin filter:blur para evitar jank en Android */
@media (max-width: 768px) {
    .blur-segment {
        filter: none; /* No gastar GPU en blur inicial */
        transform: translateY(-35px);
    }
    .visible .blur-segment,
    .visible.blur-segment {
        animation: blurTextRevealMobile 0.6s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
    }
}

/* Parallax desactivado en mobile para evitar jank */
@media (max-width: 480px) {
    .parallax-card {
        transform: none !important;
        transition: none !important;
    }
}

/* Estilos para el contenido rico del modal de productos */
.product-modal-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

.product-modal-desc p {
    margin-bottom: 12px;
}

.product-modal-desc h4 {
    color: var(--primary);
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-modal-desc ul {
    list-style: disc !important;
    padding-left: 20px !important;
    margin-bottom: 15px;
}

.product-modal-desc ul li {
    margin-bottom: 6px;
    display: list-item !important;
}

.product-modal-desc strong {
    color: #fff;
}

