:root {
    --uss-red: #D91A2A;
    --uss-dark: #121212;
    --bg-gray: #f4f6f8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-gray);
    color: #333;
    scroll-behavior: smooth;
}

/* =========================================
   Navegación (Navbar)
========================================= */
.navbar {
    background-color: var(--uss-dark);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid #2a2a2a;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    margin-right: 12px;
    filter: drop-shadow(0px 0px 2px rgba(255, 255, 255, 0.9)) 
            drop-shadow(0px 0px 6px rgba(255, 255, 255, 0.7));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.separator {
    font-weight: bold;
    font-size: 17px;
    color: var(--uss-red);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* Insignia de Calificación del Sitio en Navbar */
.site-rating-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    user-select: none;
}

.site-rating-badge .rating-num {
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
}

.site-rating-badge .rating-stars {
    color: #FFD700;
    letter-spacing: 1px;
    font-size: 13px;
}

.site-rating-badge .rating-count {
    color: #aaa;
    font-size: 12px;
}

/* Estilo base para los enlaces */
.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-links a:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 4px;
    right: 0;
    background: var(--uss-red);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-links a:not(:last-child):hover::after {
    width: 100%;
    left: 0;
}

.nav-links a:not(:last-child):hover {
    color: white;
}

/* Animación de Pulso y Resplandor */
@keyframes ctaPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(217, 26, 42, 0.4), 0 0 0 0 rgba(217, 26, 42, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(217, 26, 42, 0.7), 0 0 0 12px rgba(217, 26, 42, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(217, 26, 42, 0.4), 0 0 0 0 rgba(217, 26, 42, 0);
    }
}

/* Botón Destacado: Contacto / Cotizar Animado */
.nav-links a:last-child {
    background-color: var(--uss-red);
    color: white;
    padding: 10px 22px;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    animation: ctaPulse 2s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
    transition: all 0.3s ease;
}

.nav-links a:last-child:hover {
    animation-play-state: paused;
    background-color: #ff1f32;
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 8px 22px rgba(217, 26, 42, 0.8);
}

/* =========================================
   Banner Principal
========================================= */
.banner-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 40px 20px;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
}

.banner-content {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.banner-content .tagline {
    color: #ff3b4e;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 15px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.banner-content h1 {
    color: white;
    font-size: 44px;
    margin: 15px 0;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.95);
}

.banner-content .highlight {
    color: #ff2b3d;
}

.banner-content .subtext {
    color: #ffffff;
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto 25px auto;
    line-height: 1.5;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.95);
}

/* =========================================
   Franja de Beneficios (Features Bar)
========================================= */
.features-bar {
    background-color: #000;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 15px 10px;
    flex-wrap: wrap;
    border-bottom: 3px solid var(--uss-red);
}

.feature-item {
    margin: 5px 10px;
}

.feature-item span {
    color: var(--uss-red);
    margin-right: 5px;
}

/* =========================================
   Sección Catálogo (Carrusel por defecto + Botón Ver Todo)
========================================= */

:root {
    --cat-bg: #0f172a;
    --cat-card-bg: #18202e;
    --cat-card-img-bg: #0b0f17;
    --cat-primary: #e51937; /* Rojo USS */
    --cat-primary-shadow: rgba(229, 25, 55, 0.4);
    --cat-primary-glow: rgba(229, 25, 55, 0.18);
    --cat-border: rgba(255, 255, 255, 0.07);
    --cat-text-bright: #ffffff;
    --cat-text-muted: #94a3b8;
    --cat-btn-bg-start: #252f3e;
    --cat-btn-bg-end: #1a222f;
}

/* Reset de cajas */
.catalog-section, .catalog-section * {
    box-sizing: border-box !important;
}

/* Contenedor Principal */
.catalog-section {
    background-color: var(--cat-bg);
    padding: 80px 20px;
    color: var(--cat-text-bright);
    width: 100%;
    overflow: hidden; 
}
.catalog-section .container {
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

/* Encabezado del Catálogo y Botón */
.catalog-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--cat-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.catalog-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--cat-text-bright);
    margin: 0 0 10px 0;
}
.section-desc {
    font-size: 1.05rem;
    color: var(--cat-text-muted);
    margin: 0 0 16px 0;
}
.red-line {
    width: 50px;
    height: 4px;
    background: var(--cat-primary);
    margin: 0 auto 20px auto;
    border-radius: 2px;
}

/* Botón Ver Todo */
.btn-ver-todo {
    background: transparent;
    border: 1px solid var(--cat-primary);
    color: var(--cat-primary);
    padding: 8px 24px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.btn-ver-todo:hover {
    background: var(--cat-primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--cat-primary-glow);
}

/* =========================================
   DISEÑO BASE (CARRUSEL PARA PC Y MÓVIL)
========================================= */
.catalog-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
}

/* Flechas visibles por defecto */
.slider-arrow {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--cat-primary);
    border: none;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.2s;
}
.slider-arrow:active { transform: translateY(-50%) scale(0.9); }
.prev-arrow { left: 0px; }
.next-arrow { right: 0px; }

/* Grilla (Funcionando como Carrusel) */
.catalog-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    gap: 20px !important;
    padding: 10px 5px !important;
    width: 100% !important;
    scrollbar-width: none; 
    -ms-overflow-style: none;
    transition: all 0.4s ease;
}
.catalog-grid::-webkit-scrollbar { display: none; }

/* Tarjeta Principal (Tamaño para Carrusel) */
.catalog-card-modern {
    background: var(--cat-card-bg);
    border: 1px solid var(--cat-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 280px !important; /* Ancho fijo para PC */
    max-width: 280px !important;
    scroll-snap-align: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.catalog-card-modern:hover {
    transform: translateY(-8px);
    border-color: var(--cat-primary);
    box-shadow: 0 16px 32px var(--cat-primary-glow);
}

/* =========================================
   ESTADO GRILLA COMPLETA (Al hacer clic en Ver Todo)
========================================= */
.catalog-grid.show-all {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
    overflow-x: visible !important;
    flex-wrap: wrap !important;
}
.catalog-grid.show-all .catalog-card-modern {
    flex: unset !important;
    max-width: 100% !important;
}


/* =========================================
   INTERIORES DE LA TARJETA (Manteniendo tus estilos)
========================================= */
.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background-color: var(--cat-card-img-bg);
}
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.catalog-card-modern:hover .card-img-wrapper img {
    transform: scale(1.08);
}
.badge-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--cat-primary);
    color: var(--cat-text-bright);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    z-index: 2;
}
.card-body-modern {
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-body-modern h3 {
    color: var(--cat-text-bright);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 14px 0;
}
.card-body-modern h3::after {
    content: '';
    display: block;
    width: 35px;
    height: 3px;
    background: var(--cat-primary);
    margin-top: 6px;
    border-radius: 2px;
}
.spec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    flex-grow: 1;
}
.spec-list li {
    color: var(--cat-text-muted);
    font-size: 0.88rem;
    margin-bottom: 9px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.check-icon {
    color: var(--cat-primary);
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
}
.card-actions {
    margin-top: auto;
    width: 100%;
}
.btn-quote-modern {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cat-btn-bg-start), var(--cat-btn-bg-end));
    color: var(--cat-text-bright);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-quote-modern:hover {
    background: var(--cat-primary);
    border-color: var(--cat-primary);
    box-shadow: 0 4px 14px var(--cat-primary-shadow);
}


/* =========================================
   RESPONSIVE (MÓVILES)
========================================= */
@media screen and (max-width: 991px) {
    .catalog-section { padding: 40px 0 !important; }
    .catalog-header { padding: 0 20px; }
    .catalog-card-modern {
        flex: 0 0 85% !important; 
        max-width: 85% !important;
    }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
    .catalog-card-modern {
        flex: 0 0 45% !important;
        max-width: 45% !important;
    }
}
/* =========================================
   Carrusel de Servicios y Maquinaria (Versión 3D Coverflow Moderna)
========================================= */
.services-section {
    position: relative;
    padding: 70px 20px;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    overflow: hidden; 
    color: #ffffff;
}

.services-section h2 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
}

.services-section > p, 
.services-section .section-desc {
    color: #94a3b8;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 40px auto;
    position: relative;
    z-index: 10;
}

/* Escenario 3D Optimizado */
.scene {
    margin: 0 auto 20px auto;
    width: 100%;
    max-width: 1100px;
    height: 420px;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.carousel-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Tarjetas Estilo Glassmorphism */
.carousel-card-3d {
    position: absolute;
    width: 280px;
    height: 390px;
    left: 50%;
    top: 50%;
    margin-left: -140px;
    margin-top: -195px;
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); 
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.6s ease, 
                filter 0.6s ease, 
                box-shadow 0.4s ease;
}

/* Posicionamiento 3D suavizado para 6 elementos (Sin deformación lateral) */
.carousel-card-3d:nth-child(1) { transform: rotateY(0deg) translateZ(360px); }
.carousel-card-3d:nth-child(2) { transform: rotateY(60deg) translateZ(360px); }
.carousel-card-3d:nth-child(3) { transform: rotateY(120deg) translateZ(360px); }
.carousel-card-3d:nth-child(4) { transform: rotateY(180deg) translateZ(360px); }
.carousel-card-3d:nth-child(5) { transform: rotateY(240deg) translateZ(360px); }
.carousel-card-3d:nth-child(6) { transform: rotateY(300deg) translateZ(360px); }

/* Imagen de la tarjeta */
.carousel-card-3d img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background-color: #0f172a; 
    border-bottom: 2px solid rgba(229, 9, 20, 0.5);
    transition: transform 0.4s ease;
}

.carousel-card-3d:hover img {
    transform: scale(1.04);
}

/* Título de la tarjeta */
.carousel-card-3d .carousel-caption {
    padding: 12px 14px 6px 14px;
    font-weight: 700;
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Descripción de la tarjeta */
.carousel-desc {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 12px;
    padding: 0 14px;
    text-align: center;
    line-height: 1.4;
    flex-grow: 1;
}

/* Botón Añadir a Cotización (Rediseñado según Marca Corporativa) */
.carousel-card-3d .btn-add-quote {
    margin: 0 14px 16px 14px;
    width: calc(100% - 28px);
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 8px;
    cursor: pointer;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
    transition: all 0.3s ease;
}

.carousel-card-3d .btn-add-quote:hover {
    background: linear-gradient(135deg, #ff1e27 0%, #d00812 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(229, 9, 20, 0.6);
}

.carousel-card-3d .btn-add-quote.added {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* Botones de Control del Carrusel */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.carousel-btn:hover {
    background: #e50914;
    border-color: #e50914;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

/* Adaptación para pantallas móviles */
@media (max-width: 768px) {
    .services-section {
        padding: 50px 10px;
    }

    .scene {
        height: 380px;
        perspective: 900px;
    }

    .carousel-card-3d {
        width: 240px;
        height: 360px;
        margin-left: -120px;
        margin-top: -180px;
    }

    .carousel-card-3d:nth-child(1) { transform: rotateY(0deg) translateZ(280px); }
    .carousel-card-3d:nth-child(2) { transform: rotateY(60deg) translateZ(280px); }
    .carousel-card-3d:nth-child(3) { transform: rotateY(120deg) translateZ(280px); }
    .carousel-card-3d:nth-child(4) { transform: rotateY(180deg) translateZ(280px); }
    .carousel-card-3d:nth-child(5) { transform: rotateY(240deg) translateZ(280px); }
    .carousel-card-3d:nth-child(6) { transform: rotateY(300deg) translateZ(280px); }

    .carousel-card-3d img {
        height: 140px;
    }
}

/* =========================================
   Contacto y Formulario (Glassmorphic Compact UI)
========================================= */
.contact-section {
    background: radial-gradient(circle at center, #1e293b 0%, var(--uss-dark, #0f172a) 100%);
    color: #ffffff;
    text-align: center;
    padding: 40px 20px; /* Reducido de 80px */
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    width: 100%;
    max-width: 620px; /* Reducido de 800px */
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 25px 30px; /* Reducido de 45px 40px */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
}

.contact-section h2 {
    font-size: 20px; /* Reducido de 28px */
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff;
    margin-bottom: 6px;
}

.contact-section .red-line {
    width: 45px;
    height: 3px;
    background: var(--uss-red, #e50914);
    margin: 0 auto 10px auto;
    border-radius: 2px;
}

.contact-section .section-subtitle {
    color: #94a3b8;
    font-size: 13.5px;
    margin-bottom: 20px; /* Reducido de 35px */
    line-height: 1.4;
}

/* Estructura del Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Reducido de 20px */
    max-width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px; /* Reducido de 20px */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Reducido de 8px */
    text-align: left;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: 0.2px;
}

.form-group label .optional {
    color: #64748b;
    font-weight: 400;
    font-size: 11.5px;
}

/* Estilos de las Entradas (Inputs, Select y Textarea) */
.contact-form input,
.contact-form textarea,
.form-select {
    width: 100%;
    padding: 9px 12px; /* Reducido de 14px 16px */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background-color: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

/* Selector Personalizado con Flecha SVG */
.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-select option {
    background-color: #0f172a;
    color: #ffffff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #64748b;
}

/* Estados de Enfoque */
.contact-form input:focus,
.contact-form textarea:focus,
.form-select:focus {
    border-color: var(--uss-red, #e50914);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
    background-color: rgba(15, 23, 42, 0.9);
}

.contact-form textarea {
    resize: vertical;
    min-height: 65px; /* Reducido de 110px */
}

/* Botón Rojo Principal (.btn-red) */
.btn-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px; /* Reducido de 16px */
    background: linear-gradient(135deg, var(--uss-red, #e50914) 0%, #b20710 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
    margin-top: 4px;
}

.btn-red:hover {
    background: linear-gradient(135deg, #ff1e27 0%, var(--uss-red, #e50914) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(229, 9, 20, 0.5);
}

.btn-red:active {
    transform: translateY(0);
}

/* Adaptabilidad Responsiva (Móvil) */
@media (max-width: 640px) {
    .contact-container {
        padding: 20px 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

/* =========================================
   Sección Reseñas y Calificaciones Compacta UI
========================================= */
.reviews-section {
    background: radial-gradient(circle at center, #2d4266 0%, var(--uss-dark, #1c3777) 100%);
    color: #ffffff;
    text-align: center;
    padding: 40px 20px; /* Reducido de 80px */
    display: flex;
    justify-content: center;
}

.reviews-container {
    width: 100%;
    max-width: 620px; /* Reducido de 850px para igualar el formulario de contacto */
    margin: 0 auto;
}

.reviews-section h2 {
    font-size: 20px; /* Reducido de 28px */
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #ffffff;
    margin-bottom: 6px;
}

.reviews-section .red-line {
    width: 45px;
    height: 3px;
    background: var(--uss-red, #e50914);
    margin: 0 auto 10px auto;
    border-radius: 2px;
}

.reviews-section .section-desc {
    color: #94a3b8;
    font-size: 13.5px;
    margin-bottom: 20px; /* Reducido de 35px */
}

/* Caja de Formulario Glassmorphism Compacta */
.review-box {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 20px 24px; /* Reducido de 35px 30px */
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
    margin-bottom: 35px; /* Reducido de 60px */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Reducido de 20px */
}

/* Sistema de Estrellas Interactivo */
.star-rating {
    display: flex;
    gap: 6px;
    font-size: 22px; /* Reducido de 32px */
    cursor: pointer;
    user-select: none;
}

.star-rating .star {
    color: #475569;
    transition: transform 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

.star-rating .star:hover,
.star-rating .star.active {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    transform: scale(1.12);
}

/* Entradas del Formulario */
.review-inputs {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Reducido de 15px */
}

.review-inputs input,
.review-inputs textarea {
    width: 100%;
    padding: 9px 12px; /* Reducido de 14px 16px */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background-color: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.review-inputs input::placeholder,
.review-inputs textarea::placeholder {
    color: #64748b;
}

.review-inputs input:focus,
.review-inputs textarea:focus {
    border-color: var(--uss-red, #e50914);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
    background-color: rgba(15, 23, 42, 0.9);
}

.review-inputs textarea {
    resize: vertical;
    min-height: 60px; /* Reducido de 100px */
}

/* Botón Rojo Compacto */
.review-box .btn-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 240px; /* Reducido de 320px */
    padding: 10px 18px; /* Reducido de 14px 24px */
    background: linear-gradient(135deg, var(--uss-red, #e50914) 0%, #b20710 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.35);
}

.review-box .btn-red:hover {
    background: linear-gradient(135deg, #ff1e27 0%, var(--uss-red, #e50914) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(229, 9, 20, 0.5);
}

/* Feed de Comentarios (Abajo) */
.reviews-feed {
    text-align: left;
    width: 100%;
}

.feed-title {
    font-size: 16px; /* Reducido de 20px */
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 15px;
    border-left: 3px solid var(--uss-red, #e50914);
    padding-left: 10px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.review-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(30, 41, 59, 0.7);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--uss-red, #e50914), #0f172a);
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.review-user-info h4 {
    margin: 0;
    font-size: 13.5px;
    color: #f1f5f9;
    font-weight: 600;
}

.card-stars {
    color: #fbbf24;
    font-size: 11px;
    margin-top: 1px;
}

.review-comment {
    color: #cbd5e1;
    font-size: 12.5px;
    line-height: 1.4;
    margin: 0 0 8px 0;
    font-style: italic;
}

.review-date {
    font-size: 10px;
    color: #64748b;
    align-self: flex-end;
}

/* Adaptación Responsiva */
@media (max-width: 640px) {
    .reviews-section {
        padding: 30px 16px;
    }
    .review-box {
        padding: 16px 14px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   FOOTER COMPACTO, MINIMALISTA Y ULTRA-MODERNO
   ========================================= */
:root {
    --footer-bg: #090a0d;
    --footer-accent: #e63946;
    --footer-text: #f1f5f9;
    --footer-muted: #94a3b8;
    --footer-border: rgba(255, 255, 255, 0.08);
}

.modern-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding: 1.5rem 0 1rem 0; /* Altura muy reducida */
    border-top: 1px solid var(--footer-border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Disposición horizontal sin cajas ni fondos */
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Bloques limpios e integrados */
.footer-block {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent; /* Eliminadas las tarjetas completas */
    border: none;
    padding: 0;
    box-shadow: none;
}

.footer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--footer-accent);
}

.footer-header h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.footer-header h4::after {
    content: ":"; /* Conecta el título con el dato en la misma línea */
    margin-right: 4px;
}

.footer-icon {
    flex-shrink: 0;
}

/* Enlaces y textos en la misma línea */
.footer-link,
.footer-text {
    font-size: 0.95rem;
    color: var(--footer-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--footer-text);
}

/* Franja inferior unificada */
.footer-bottom {
    border-top: 1px solid var(--footer-border);
    padding-top: 0.85rem;
    text-align: center;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--footer-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-tags .dot {
    color: var(--footer-accent);
}

.footer-divider {
    display: none; /* Oculto para ahorrar espacio vertical */
}

.copyright {
    display: block;
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 0.75rem;
}

/* Adaptación limpia para dispositivos móviles */
@media (max-width: 768px) {
    .modern-footer {
        padding: 1.25rem 0 0.85rem 0;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .footer-block {
        flex-wrap: wrap;
        gap: 6px;
    }

    .footer-tags {
        flex-direction: column;
        gap: 4px;
    }

    .footer-tags .dot {
        display: none;
    }
}
/* =========================================
   Botón Flotante WhatsApp
========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.15);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* =========================================
   MEDIA QUERIES - RESPONSIVO OPTIMIZADO EN MÓVIL
========================================= */

/* Tablets y pantallas medianas (<= 992px) */
@media (max-width: 992px) {
    .navbar {
        padding: 15px 20px;
    }

    .banner-content h1 {
        font-size: 36px;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Dispositivos móviles (<= 768px) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        gap: 6px;
    }

    .logo-img {
        margin-right: 0;
        height: 42px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 16px;
        width: 100%;
    }

    .site-rating-badge {
        order: -1;
        margin-bottom: 4px;
    }

    .banner-section {
        min-height: 55vh;
        padding: 30px 15px;
    }

    .banner-content h1 {
        font-size: 26px;
    }

    .banner-content .subtext {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .banner-content .tagline {
        font-size: 13px;
    }

    .features-bar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
        padding: 12px 10px;
    }

    /* ------------------------------------------------
       CATÁLOGO MÓVIL OPTIMIZADO (DESLIZABLE HORIZONTAL)
       ------------------------------------------------ */
    .catalog-section {
        padding: 35px 15px;
    }

    .catalog-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 5px 20px 5px;
        -webkit-overflow-scrolling: touch;
    }

    /* Estilizado discreto de la barra de scroll horizontal */
    .catalog-grid::-webkit-scrollbar {
        height: 5px;
    }

    .catalog-grid::-webkit-scrollbar-thumb {
        background-color: var(--uss-red);
        border-radius: 10px;
    }

    .catalog-grid::-webkit-scrollbar-track {
        background: #111;
    }

    .catalog-card {
        flex: 0 0 82%; /* Muestra el 82% de la tarjeta y asoma la siguiente */
        max-width: 270px;
        scroll-snap-align: center;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }

    .card-img {
        height: 130px; /* Tamaño reducido para compactar verticalmente */
    }

    .card-header {
        font-size: 14px;
        padding: 8px 10px;
    }

    .card-body {
        padding: 10px 12px;
    }

    .card-body li {
        font-size: 13px;
        padding: 4px 0;
    }

    .btn-add-quote {
        padding: 8px;
        font-size: 13px;
    }

    /* ------------------------------------------------
       SECCIONES RESTANTES
       ------------------------------------------------ */
    .services-section,
    .contact-section,
    .reviews-section {
        padding: 40px 15px;
    }

    .services-section h2 {
        font-size: 26px;
    }

    .services-section > p, 
    .services-section .section-desc {
        margin-bottom: 30px;
        font-size: 14px;
    }

    .scene {
        transform: scale(0.8);
        margin: -20px auto 0 auto;
    }

    .contact-form,
    .review-box {
        padding: 20px 15px;
        width: 100%;
    }

    .star-rating {
        font-size: 32px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

/* Pantallas de móviles pequeñas (<= 480px) */
@media (max-width: 480px) {
    .banner-content h1 {
        font-size: 22px;
    }

    .separator {
        font-size: 13px;
    }

    .catalog-card {
        flex: 0 0 88%; /* Ajuste para pantallas muy estrechas */
    }

    .card-img {
        height: 120px;
    }

    .scene {
        transform: scale(0.7);
        margin: -40px auto -30px auto;
    }

    .nav-links a {
        font-size: 13px;
    }

    .nav-links a:last-child {
        padding: 8px 16px;
        font-size: 12px;
    }

    .contact-form input,
    .contact-form textarea,
    .form-select,
    .review-box textarea {
        font-size: 14px;
    }
}
/* ==========================================
   Sección Quiénes Somos (Modo Oscuro Industrial)
   ========================================== */
.about-section {
    padding: 70px 20px;
    background-color: #1c2331;
    color: #ffffff;
    text-align: center;
}

.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-tag {
    display: inline-block;
    color: #ff5252;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.about-section h2 {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.about-section .section-desc {
    color: #cccccc;
    font-size: 1rem;
    max-width: 650px;
    margin: 0 auto 12px auto;
}

.about-section .red-line {
    width: 60px;
    height: 4px;
    background-color: #d32f2f;
    margin: 0 auto 40px auto;
    border-radius: 2px;
}

/* Wrapper para flechas y grid */
.about-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Flechas ocultas por defecto en PC */
.about-arrow {
    display: none;
    background: #d32f2f;
    color: #ffffff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease, transform 0.2s ease;
}

.about-arrow:active {
    transform: scale(0.9);
}

.prev-arrow { left: -10px; }
.next-arrow { right: -10px; }

/* Grilla Escritorio */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
    width: 100%;
}

.about-card {
    background: #252d3d;
    padding: 35px 28px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #ff5252);
    transition: height 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    background: #2a3345;
    box-shadow: 0 18px 35px rgba(211, 47, 47, 0.25);
    border-color: rgba(211, 47, 47, 0.4);
}

.about-card:hover::before {
    height: 6px;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(211, 47, 47, 0.2);
    color: #ff5252;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.about-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.about-card p {
    color: #cbd5e1;
    font-size: 0.93rem;
    line-height: 1.65;
    margin: 0;
}

/* ==========================================
   Modo Celular: Deslizamiento Horizontal
   ========================================== */
@media (max-width: 768px) {
    .about-section {
        padding: 45px 15px;
    }

    /* Activa las flechas en celular */
    .about-arrow {
        display: flex;
    }

    /* Transforma el Grid en Flexbox Horizontal */
    .about-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 15px !important;
        padding: 10px 5px 20px 5px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Oculta barra en Firefox */
    }

    .about-grid::-webkit-scrollbar {
        display: none; /* Oculta barra en Chrome / Safari */
    }

    /* Muestra el 85% de la tarjeta para dejar ver que hay más a la derecha */
    .about-card {
        flex: 0 0 85% !important;
        min-width: 85% !important;
        scroll-snap-align: center;
    }
}
/* ==========================================
   ESTILOS PARA NUEVOS MÓDULOS (Brochure, Stats, Certs, FAQ)
   ========================================== */

/* Banner Brochure y Stats */
.stats-brochure-section {
    background: #111622;
    padding: 60px 20px;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brochure-banner {
    background: linear-gradient(135deg, #1c2331, #252d3d);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 50px;
}

.brochure-info h3 {
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 1.2rem;
}

.brochure-info p {
    margin: 0;
    color: #aaaaaa;
    font-size: 0.9rem;
}

.btn-download-pdf {
    background: #d32f2f;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.btn-download-pdf:hover {
    background: #ff3333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-card {
    background: #1c2331;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #ff5252;
}

.stat-label {
    font-size: 0.85rem;
    color: #cccccc;
}

/* Certificaciones y Cobertura */
.cert-coverage-section {
    background: #1c2331;
    padding: 60px 20px;
    color: #ffffff;
}

.cert-coverage-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.cert-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.badge-item {
    background: #252d3d;
    border: 1px solid rgba(211, 47, 47, 0.3);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.badge-item span {
    display: block;
    font-weight: 800;
    color: #ffffff;
    font-size: 1.1rem;
}

.badge-item small {
    color: #ff5252;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.regions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.region-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #e2e8f0;
}

/* Preguntas Frecuentes (FAQ) */
.faq-section {
    background: #111622;
    padding: 60px 20px;
    color: #ffffff;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 30px auto 0 auto;
    text-align: left;
}

.faq-item {
    background: #1c2331;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px 20px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.faq-icon {
    color: #ff5252;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #161c28;
    padding: 0 20px;
}

.faq-answer p {
    color: #cccccc;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 15px 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}
