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

/* =========================================
   VARIABLES Y RESET BÁSICO
========================================= */
:root {
    --azul-oscuro: #0d2138;
    --azul-tarjeta: #11283e;
    --blanco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: var(--azul-oscuro);
    color: var(--blanco);
    line-height: 1.4;
    overflow-x: hidden;
}

/* Desplazamiento suave para la página */
html {
    scroll-behavior: smooth;
}

/* Compensación de espacio para que la barra fija no tape los encabezados */
section {
    scroll-margin-top: 90px; /* Ajusta según la altura de tu <header> */
}

/* Agrega esto a tu archivo CSS */
#soluciones-integrales {
    /* Crea un margen invisible por encima del elemento solo para el scroll */
    scroll-margin-top: 80px; /* Ajusta este valor según prefieras más o menos espacio */
}

/* =========================================
   1. MENÚ SUPERIOR
========================================= */
header {
    background-color: var(--azul-oscuro);
    padding: 20px 4%;
    display: flex;
    justify-content: flex-end;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav a {
    color: var(--blanco);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* =========================================
   2. ESTRUCTURAS DE LAYOUT (IMAGEN Y TEXTO)
========================================= */

/* Layout para la sección de Mantenimiento (Arriba) */
.top-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px auto; 
}

/* Layout para la sección de Soluciones (Evita que la imagen se aplaste) */
.split-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
}

.layout-text {
    flex: 1; 
    /* AQUI CENTRAMOS EL TEXTO Y LO BAJAMOS UN POCO */
    text-align: center; 
    margin-top: 50px; 
}

.layout-image {
    flex: 0 0 400px; /* Ancho fijo para proteger la imagen */
    display: flex;
    justify-content: flex-end;
}

/* MARCO DE IMAGEN ESTILO PDF */
.image-frame {
    width: 100%;
    height: 350px; /* Altura controlada */
    border-radius: 40px 120px 40px 120px; 
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   3. SECCIÓN INICIO / MANTENIMIENTO
========================================= */
.hero {
    background-color: var(--azul-tarjeta);
    padding: 100px 8% 50px 4%; /* Menos altura para no ocupar tanta pantalla */
}

.header-brand {
    margin-bottom: 30px;
}

.brand-title {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.brand-subtitle-line {
    display: flex;
    align-items: center;
    justify-content: center; /* ESTO CENTRA LA LÍNEA Y EL TEXTO "& SOLUTIONS" */
    gap: 10px;
    margin: 3px 0 10px 0;
}

.brand-subtitle-line .line {
    flex: 1;
    height: 2px;
    background-color: #ffffff;
}

.brand-subtitle-line .ampersand {
    font-weight: 700;
    font-size: 1rem;
}

.sub-brand {
    font-size: 0.7rem;
    letter-spacing: 2.2px;
    font-weight: 600;
}

/* Título de Mantenimiento centrado */
.hero-title-box {
    text-align: center;
    margin-bottom: 40px;
}

.hero-title-box .main-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 5px;
}

.tagline {
    font-size: 1.1rem;
    letter-spacing: 2.5px;
    font-weight: 700;
}

/* =========================================
   NUEVO LAYOUT: TARJETAS MANTENIMIENTO
========================================= */
.mantenimiento-content {
    display: flex;
    align-items: center;
    gap: 100px; /* Espacio entre la foto y las tarjetas */
    max-width: 1100px;
    margin: 0 auto;
}

/* Columna de la foto (Izquierda) */
.mantenimiento-foto {
    flex: 1.2; /* Le da un poco más de espacio a la foto que a las tarjetas */
    display: flex;
    justify-content: center;
}

.mantenimiento-foto img {
    width: 100%;
    max-width: 480px; /* Aumentamos el ancho máximo de la imagen */
    height: 360px;     /* Fijamos una altura mayor para que luzca grande */
    border-radius: 40px 120px 40px 120px; /* Mantiene la diagonal del PDF */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    object-fit: cover; /* Evita que la foto se deforme al estirarse */
    display: block;
}

/* Columna de las tarjetas (Derecha) */
.mantenimiento-tipos {
    flex: 1;
    display: flex;
    flex-direction: column; /* Apila las tarjetas hacia abajo */
    gap: 20px; /* Espacio entre cada tarjeta */
}

/* ==========================================
   ESTILO BASE Y HOVER UNIFICADO PARA TODAS LAS TARJETAS
========================================== */

/* 1. Selección general de todos los tipos de tarjetas (incluyendo Enfoque) */
.card, 
.solucion-card-resaltada, 
.prod-card-3d,
.enfoque-card,
.enfoque-paso {
    /* Fondo claro base 3D */
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #111111;
    padding: 20px;
    border-radius: 15px 40px 15px 40px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Relieve y sombra 3D base */
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid transparent;
    border-right: 1px solid transparent;
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 -3px 0 rgba(0, 0, 0, 0.15);
        
    transition: all 0.3s ease-in-out;
}

/* 2. Asegura que los textos internos inicien oscuros */
.card h3, .card h4, .card p, .card-info h3, .card-info p,
.solucion-card-resaltada h3, .solucion-card-resaltada p,
.prod-card-3d h4, .prod-card-3d p,
.enfoque-card h3, .enfoque-card h4, .enfoque-card p, .enfoque-card span,
.enfoque-paso h3, .enfoque-paso h4, .enfoque-paso p, .enfoque-paso span {
    color: #111111;
    transition: color 0.3s ease-in-out;
}

/* 3. HOVER UNIFICADO: Oscurece el fondo y activa el resplandor neón */
.card:hover, 
.solucion-card-resaltada:hover, 
.prod-card-3d:hover,
.enfoque-card:hover,
.enfoque-paso:hover {
    transform: translateY(-6px);
    background: rgba(10, 25, 47, 0.85) !important;
    border: 1px solid #00f0ff !important;
    box-shadow: 
        0 0 20px rgba(0, 240, 255, 0.4),
        0 12px 28px rgba(0, 0, 0, 0.6),
        inset 0 0 10px rgba(0, 240, 255, 0.2) !important;
}

/* 4. Mantiene el texto en blanco brillante durante el Hover */
.card:hover h3, .card:hover h4, .card:hover p, .card:hover .card-info h3, .card:hover .card-info p,
.solucion-card-resaltada:hover h3, .solucion-card-resaltada:hover p,
.prod-card-3d:hover h4, .prod-card-3d:hover p,
.enfoque-card:hover h3, .enfoque-card:hover h4, .enfoque-card:hover p, .enfoque-card:hover span,
.enfoque-paso:hover h3, .enfoque-paso:hover h4, .enfoque-paso:hover p, .enfoque-paso:hover span {
    color: #ffffff !important;
}


/* =========================================
   4. SECCIÓN SOLUCIONES / SUMINISTROS
========================================= */
.section-dark {
    padding: 60px 4%;
    background-color: var(--azul-oscuro);
}

.suministros-header {
    max-width: 1250px;
    margin: 0 auto 30px auto;
    text-align: left;
}

.suministros-header h2 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    margin-bottom: 20px;
}

/* MARCO Y OVERLAY DE IMAGEN PRINCIPAL */
.suministros-img-box {
    position: relative;
    width: 100%;
    max-width: 1250px;
    height: 380px;
    margin: 20px 0 35px 0;
    border-radius: 40px 120px 40px 120px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.suministros-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.desc-overlay {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    z-index: 2;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: left;
    max-width: 320px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* =========================================
   LAYOUT "RESPUESTA ÁGIL" ESTILO PDF (DOS COLUMNAS)
========================================= */

/* Bloque Superior (Respuesta Ágil alineado a la foto) */
.agil-top-layout {
    display: flex;
    align-items: center; /* Centra el texto verticalmente respecto a la foto */
    justify-content: space-between;
    gap: 40px;
    max-width: 1250px;
    margin: 0 auto 35px auto;
}

.agil-text-main {
    flex: 1;
    text-align: left;
}

.agil-text-main h2 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 2px;
}

.agil-text-main .sub-agil {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 15px;
}

.agil-text-main p {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.2px;
    color: #ffffff;
    max-width: 480px;
}

/* Imagen estilo PDF a la derecha */
.agil-pdf-image {
    flex: 0 0 650px;
    height: 320px; /* Ancho y alto proporcionales */
    border-radius: 40px 120px 40px 120px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.agil-pdf-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bloque Inferior (Pasa debajo de la foto) */
.agil-bottom-blocks {
    max-width: 1250px;
    margin: 0 auto 40px auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.agil-bottom-blocks .item-tag {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.agil-bottom-blocks h3 {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #ffffff;
    margin-bottom: 6px;
}

.agil-bottom-blocks p {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 1.2px;
    color: #ffffff;
}

/* =========================================
   TITULO Y TARJETAS RESALTADAS (SOLUCIONES)
========================================= */

/* Título centrado sobre las tarjetas */
.soluciones-titulo-centrado {
    text-align: center;
    max-width: 1250px;
    margin: 45px auto 25px auto;
}

.soluciones-titulo-centrado h3 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: #ffffff;
    text-transform: uppercase;
}

/* Grid de 2 recuadros lado a lado (se alinean horizontalmente) */
.soluciones-cards-grid {
    display: flex;
    gap: 25px;
    max-width: 1250px;
    margin: 0 auto 40px auto;
}

/* Diseño de la Tarjeta Resaltada (Fondo blanco, sombra y cortes diagonales) */
.solucion-card-resaltada {
    flex: 1;
    /* Fondo con gradiente sutil para dar volumen visual */
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #111111;
    padding: 30px 35px;
    border-radius: 20px 50px 20px 50px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* EFECTO 3D AVANZADO: Borde superior brillante + Sombra doble profunda */
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),    /* Sombra principal flotante */
        0 5px 15px rgba(0, 0, 0, 0.2),     /* Sombra cercana de profundidad */
        inset 0 -3px 0 rgba(0, 0, 0, 0.15); /* Bisel/Relieve en la parte inferior */
    
    /* Animación suave para interacción */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al pasar el cursor (Eleva la tarjeta aún más en 3D) */
.solucion-card-resaltada:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.solucion-card-resaltada h3 {
    color: var(--azul-oscuro);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.solucion-card-resaltada p {
    color: #222222;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.8px;
}

/* =========================================
   PROCESO NUESTRO ENFOQUE (FLECHAS NEÓN DEFINIDAS)
========================================= */
.enfoque-box {
    text-align: center;
    max-width: 1250px;
    margin: 50px auto 20px auto;
}

.pasos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 10px 0;
}

/* Recuadro base */
.paso-arrow {
    position: relative;
    flex: 1;
    max-width: 320px;
    height: 70px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 35px 0 25px;
    cursor: pointer;
    
    /* Forma recortada en flecha */
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%, 15% 50%);
    
    /* Sombra base */
    filter: drop-shadow(0px 8px 15px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out, background 0.3s ease-in-out;
}

/* Primera flecha (DIAGNÓSTICO): Plana a la izquierda */
.paso-arrow:first-child {
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
    padding-left: 20px;
}

/* Texto dentro de las flechas */
.paso-arrow span {
    position: relative;
    z-index: 2;
    color: #111111;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease-in-out;
}

/* HOVER DEFINITIVO: Traza el borde neón usando SVG Drop-Shadow sintético */
.paso-arrow:hover {
    transform: translateY(-6px);
    
    /* Cambia el fondo a azul neón sólido para obligar al contorno a brillar */
    background: #00f0ff;
    
    /* Sombra externa amplia */
    filter: drop-shadow(0px 0px 15px rgba(0, 240, 255, 0.9)) 
            drop-shadow(0px 12px 25px rgba(0, 0, 0, 0.7));
}

/* Capa interior que tapa el centro neón dejando SOLO un borde de 2px iluminado */
.paso-arrow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    z-index: 1;
   
}

.paso-arrow:hover::before {
    /* Al pasar el mouse, el interior se vuelve oscuro manteniendo el borde exterior neón */
    background: #0a192f;
    margin: 2px; /* Grosor del borde azul neón */
    clip-path: inherit;
}

.paso-arrow:hover span {
    color: #ffffff;
}
/* =========================================
   5. SECCIÓN PRODUCTOS / ABASTECIMIENTO INDUSTRIAL
========================================= */
#productos {
    background-color: var(--azul-tarjeta);
    padding: 70px 4%;
    text-align: center;
}

#productos h2 {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: #ffffff;
}

/* Grilla de 3 columnas para los productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1250px;
    margin: 0 auto 40px auto;
}

/* Tarjetas 3D sin flecha */
.prod-card-3d {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: #111111;
    padding: 30px 25px;
    border-radius: 15px 40px 15px 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 12px 28px rgba(0, 0, 0, 0.35),
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 -3px 0 rgba(0, 0, 0, 0.15);
    
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prod-card-3d h4 {
    color: var(--azul-oscuro);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.prod-card-3d p {
    font-size: 0.8rem;
    font-weight: 700;
    color: #333333;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.prod-card-3d:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 18px 36px rgba(0, 0, 0, 0.45),
        0 6px 15px rgba(0, 0, 0, 0.25),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

/* =========================================
   LO QUE TU PROYECTO REQUIERE (IMAGEN MÁS GRANDE + TARJETA DISTINTIVA)
========================================= */
.requiere-layout-split {
    display: flex;
    align-items: center;
    gap: 35px;
    max-width: 1250px;
    margin: 45px auto 0 auto;
}

/* Imagen más grande a la izquierda */
.requiere-foto-libre {
    flex: 0 0 600px; /* Aumentado de 320px a 400px */
    height: 220px;   /* Aumentado de 180px a 220px */
    border-radius: 20px 60px 20px 60px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.requiere-foto-libre img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tarjeta 3D con color azul rey distintivo y esquinas invertidas */
.requiere-card-3d {
    flex: 1;
    /* Fondo azul rey metálico para diferenciarse de los recuadros blancos */
    background: linear-gradient(145deg, #16365a, #0d233c);
    color: #ffffff;
    padding: 35px 40px;
    
    /* Forma distintiva (esquinas diagonales invertidas respecto a las de arriba) */
    border-radius: 60px 20px 60px 20px; 
    
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Bordes con luz metálica */
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 2px solid rgba(0, 0, 0, 0.6);
    
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.45),
        0 5px 15px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
        
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Tipografía en contraste brillante */
.requiere-card-3d h3 {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.requiere-card-3d p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.8px;
}

/* Elevación 3D al pasar el cursor */
.requiere-card-3d:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.55),
        0 8px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
/* =========================================
   6. SECCIÓN CONTACTO (TIPO CARTA 3D)
========================================= */
.section-contacto {
    padding: 80px 4%;
    background-color: var(--azul-oscuro);
    text-align: center;
}

.section-contacto h2 {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 40px;
    color: #ffffff;
}

.contacto-wrapper {
    max-width: 650px;
    margin: 0 auto;
}

/* Recuadro contenedor tipo carta con volumen 3D */
.contacto-card-3d {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    padding: 40px 35px;
    border-radius: 20px 60px 20px 60px; /* Bordes redondeados en diagonal tipo PDF */
    
    /* Biselado metálico y sombras de profundidad */
    border-top: 1px solid rgba(255, 255, 255, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.45),
        0 5px 15px rgba(0, 0, 0, 0.25),
        inset 0 -3px 0 rgba(0, 0, 0, 0.15);
        
    margin-bottom: 35px;
    text-align: left;
}

.contacto-card-3d form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--azul-oscuro);
}

.contacto-card-3d input, 
.contacto-card-3d textarea {
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: #f9f9f9;
    color: #222;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contacto-card-3d input:focus, 
.contacto-card-3d textarea:focus {
    border-color: var(--azul-oscuro);
    box-shadow: 0 0 8px rgba(13, 33, 56, 0.2);
    background-color: #ffffff;
}

.contacto-card-3d textarea {
    height: 120px;
    resize: vertical;
}

/* Botón de envío 3D integrado */
.btn-submit-3d {
    background: linear-gradient(145deg, #11283e, #0d2138);
    color: var(--blanco);
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.btn-submit-3d:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Datos inferiores */
.datos {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 25px;
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}


/* --- Reiniciar la sección de contacto para que no ocupe toda la pantalla --- */
section, 
#contacto, 
.contacto, 
.contacto-section {
    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
}

/* --- Reducir márgenes internos del formulario --- */
form, 
.contacto-wrapper, 
.contacto-container {
    margin-bottom: 20px !important;
    padding-bottom: 0 !important;
}

/* =========================================
   6. PIE DE PÁGINA (FOOTER)
========================================= */
footer, 
.footer-contacto {
    width: 100% !important;
    background-color: #0b1a2e;
    padding: 30px 20px !important;
    box-sizing: border-box;
}

.footer-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    gap: 15px !important;
    box-sizing: border-box;
}

/* Control estricto para que el logo NO se agrande */
.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo img {
    width: 120px !important;      /* Ancho fijo para controlar tamaño */
    max-width: 120px !important;
    height: auto !important;
    display: block;
    mix-blend-mode: screen;
}

.footer-info {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    color: #ffffff;
    font-size: 0.85rem;
    width: 100% !important;
    text-align: center;
}

.footer-info p {
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-info i {
    color: #00bcd4;
    font-size: 0.95rem;
}

/* ==========================================
   AJUSTES RESPONSIVOS GLOBALES (TABLETS Y MÓVILES)
========================================== */

/* Reglas universales para evitar desbordamientos horizontales */
*, *::before, *::after {
    box-sizing: border-box !important;
}

img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
}

/* Tablets e iPads (hasta 1024px) */
@media screen and (max-width: 1024px) {
    .mantenimiento-content,
    .top-layout,
    .split-layout,
    .agil-top-layout,
    .requiere-layout-split {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }

    .agil-pdf-image,
    .requiere-foto-libre,
    .mantenimiento-foto img {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        height: auto !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .soluciones-cards-grid {
        flex-direction: column !important;
    }
}

/* Celulares (hasta 768px) */
@media screen and (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }

    .pasos-container {
        flex-direction: column !important;
    }

    .paso-arrow {
        max-width: 100% !important;
        clip-path: none !important;
        border-radius: 12px !important;
        padding: 15px !important;
    }

    .footer-info {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .footer-info p {
        white-space: normal !important;
    }
}

/* ==========================================
   CORRECCIÓN DE TÍTULOS EN MÓVILES Y TABLETS
========================================== */
@media screen and (max-width: 1024px) {
    /* Ajuste responsivo de tipografía para evitar cortes */
    .hero-title-box .main-title,
    .suministros-header h2,
    #productos h2,
    .section-contacto h2,
    .brand-title {
        font-size: 2.2rem !important;      /* Reduce el tamaño del texto para que quepa */
        letter-spacing: 2px !important;    /* Reduce el espaciado entre letras */
        word-break: break-word !important; /* Evita desbordamiento si la palabra es larga */
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

@media screen and (max-width: 480px) {
    /* Ajuste para pantallas muy pequeñas de celulares */
    .hero-title-box .main-title,
    .suministros-header h2,
    #productos h2,
    .section-contacto h2,
    .brand-title {
        font-size: 1.7rem !important;
        letter-spacing: 1px !important;
    }
}

/* ==========================================
   MENÚ RESPONSIVO A LA DERECHA EN UNA SOLA LÍNEA
========================================== */
header {
    justify-content: flex-end !important; /* Mantiene el menú a la derecha */
    padding: 20px 4% !important;
}

nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;       /* Fuerza a mantenerse en una sola fila */
    align-items: center !important;
    justify-content: flex-end !important;/* Alinea todos los enlaces a la derecha */
    gap: 20px !important;               /* Separación entre botones */
}

nav a {
    margin-left: 0 !important;         /* Elimina el margen fijo anterior */
    white-space: nowrap !important;     /* Evita que "CONTACTO" o "SOLUCIONES" den salto de línea */
}

/* Ajuste proporcional exclusivo para tablets y celulares */
@media screen and (max-width: 768px) {
    header {
        padding: 15px 3% !important;
    }

    nav {
        gap: 10px !important;
    }

    nav a {
        font-size: 0.68rem !important;   /* Reduce ligeramente el tamaño de fuente */
        letter-spacing: 0.6px !important; /* Contrae el espacio entre letras */
    }
}

@media screen and (max-width: 400px) {
    nav {
        gap: 6px !important;
    }

    nav a {
        font-size: 0.60rem !important;   /* Ajuste para celulares muy angostos */
        letter-spacing: 0.2px !important;
    }
}

/* ==========================================
   ANIMACIONES AL HACER SCROLL (COMBINADAS)
========================================== */

/* 1. Animación de Abajo hacia Arriba (Para Textos) */
.revelar-texto {
    opacity: 0;
    transform: translateY(50px); /* Empieza 50px abajo */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.revelar-texto.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 2. Animación de Izquierda a Derecha (Para Tarjetas e Imágenes) */
.revelar-tarjeta {
    opacity: 0;
    transform: translateX(-60px); /* Empieza 60px a la izquierda */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

/* ==========================================
   ANIMACIONES + EFECTO HOVER EN TARJETAS
========================================== */

/* Estado cuando la tarjeta ya apareció en pantalla */
.revelar-tarjeta.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Restaura el efecto 3D al pasar el cursor sobre la tarjeta (incluso si ya se reveló) */
.revelar-tarjeta.visible:hover {
    transform: translateY(-6px) !important; /* Eleva la tarjeta verticalmente */
    box-shadow: 
        0 18px 36px rgba(0, 0, 0, 0.45),
        0 6px 15px rgba(0, 0, 0, 0.25),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================
   ANIMACIÓN DE SALTO (BOUNCE) PARA IMÁGENES
========================================== */
@keyframes saltoRebote {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.85); /* Empieza pequeña y abajo */
    }
    60% {
        opacity: 1;
        transform: translateY(-15px) scale(1.03); /* Se estira hacia arriba */
    }
    80% {
        transform: translateY(8px) scale(0.98);   /* Pequeño rebote de ajuste */
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);       /* Se asienta en su tamaño real */
    }
}

.revelar-imagen {
    opacity: 0;
    will-change: opacity, transform;
}

/* Se activa al entrar a la vista */
.revelar-imagen.visible {
    animation: saltoRebote 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* ==========================================
   ANIMACIÓN DE DERECHA A IZQUIERDA
========================================== */
.revelar-derecha {
    opacity: 0;
    transform: translateX(60px); /* Empieza 60px desplazada hacia la DERECHA */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.revelar-derecha.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mantiene el efecto de elevación Hover en la tarjeta revelada */
.revelar-derecha.visible:hover {
    transform: translateY(-6px) !important;
}

/* ==========================================
   ANIMACIÓN DE ATRÁS HACIA ADELANTE (ZOOM IN)
========================================== */
.revelar-zoom {
    opacity: 0;
    transform: scale(0.6); /* Empieza lejos/pequeña al fondo */
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: opacity, transform;
}

.revelar-zoom.visible {
    opacity: 1;
    transform: scale(1); /* Avanza hacia al frente en su tamaño real */
}

/* Mantiene el efecto de elevación al pasar el cursor (Hover) */
.revelar-zoom.visible:hover {
    transform: scale(1) translateY(-6px) !important;
}

/* ==========================================
   ANIMACIÓN DE DEGRADADO Y ACLARADO (FADE IN)
========================================== */
.revelar-fade {
    opacity: 0;
    transition: opacity 3.2s ease-in-out; /* Controla la velocidad del aclarado */
    will-change: opacity;
}

.revelar-fade.visible {
    opacity: 1; /* Se aclara hasta ser 100% visible */
}

/* Mantiene el efecto de elevación al pasar el cursor si es una tarjeta */
.revelar-fade.visible:hover {
    transform: translateY(-6px) !important;
}

/* Retrasos escalonados para listas y cuadrículas de tarjetas */
.delay-1 { transition-delay: 0.15s !important; animation-delay: 0.15s !important; }
.delay-2 { transition-delay: 0.30s !important; animation-delay: 0.30s !important; }
.delay-3 { transition-delay: 0.45s !important; animation-delay: 0.45s !important; }

/* Resplandor suave en botones y tarjetas */
button:hover, 
.btn:hover, 
.solucion-card-resaltada:hover {
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.4), 
                0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

@keyframes pulsoBoton {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Aplica el pulso suave al botón del formulario */
form button, input[type="submit"] {
    animation: pulsoBoton 2.5s infinite ease-in-out;
}

input:focus, textarea:focus {
    border-color: #0096ff !important;
    box-shadow: 0 0 12px rgba(0, 150, 255, 0.35) !important;
    outline: none !important;
    transition: all 0.3s ease;
}

/* ==========================================
   MANITA FLOTANTE A LA DERECHA (APUNTANDO ABAJO)
========================================== */
@keyframes flotarManitaAbajo {
    0%, 100% {
        transform: rotate(180deg) translateY(0);
    }
    50% {
        transform: rotate(180deg) translateY(-10px); /* Flota manteniendo los dedos hacia abajo */
    }
}

/* ==========================================
   MANITA FLOTANTE JUSTO DEBAJO DE CONTACTO
========================================== */
.manita-scroll {
    position: absolute;
    top: 65px;                 /* Se ubica justo por debajo de la barra del menú */
    right: 45px;               /* Alineada verticalmente con CONTACTO */
    z-index: 100;
    pointer-events: none;      /* Permite hacer clic en los botones detrás sin estorbar */
}

.manita-scroll svg {
    width: 28px;               /* Tamaño chica y elegante */
    height: 28px;
    color: #00f0ff;            /* Azul neón */
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.7));
    animation: flotarManitaAbajo 1.8s infinite ease-in-out !important;
}

@keyframes flotarManitaAbajo {
    0%, 100% {
        transform: rotate(180deg) translateY(0);
    }
    50% {
        transform: rotate(180deg) translateY(-8px); /* Flota hacia abajo manteniendo los dedos apuntando hacia abajo */
    }
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
    .manita-scroll {
        top: 55px;
        right: 20px;
    }
    .manita-scroll svg {
        width: 22px;
        height: 22px;
    }
}

/* ==========================================
   EFECTO HOVER EN BOTONES DEL MENÚ DE NAVEGACIÓN
========================================== */
nav a {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
}

/* Efecto al pasar el cursor encima (Hover) */
nav a:hover {
    color: #00f0ff !important;                   /* Texto cambia a azul neón */
    background: rgba(0, 240, 255, 0.12);         /* Fondo sutil translúcido */
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);  /* Resplandor neón alrededor */
    transform: translateY(-2px);                 /* Pequeña elevación */
}

/* Línea brillante animada por debajo de cada opción */
nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 2px;
    left: 50%;
    background-color: #00f0ff;
    box-shadow: 0 0 8px #00f0ff;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 70%; /* La línea crece horizontalmente desde el centro */
}

