/* css/styles.css */
/* 1. Importamos Montserrat, Plus Jakarta Sans y Space Grotesk */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Tus variables originales Jomicel */
    --jomicel-blue: #1a2a5a;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* 🔥 BUENA PRÁCTICA: Hackeando Bootstrap desde adentro 🔥 */
    --bs-font-sans-serif: var(--font-body);
    --bs-body-font-family: var(--font-body);
    --bs-heading-font-family: var(--font-heading);
}

body {
    /* Con las variables sobrescritas, esto entra suavecito sin !important */
    font-family: var(--font-body); 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #333333; 
}

/* Forzamos amablemente a las clases de títulos a usar la variable de heading */
h1, h2, h3, h4, h5, h6, 
.h1, .h2, .h3, .h4, .h5, .h6,
.about-title, .display-5, .display-6 {
    font-family: var(--font-heading);
    letter-spacing: -0.03em; 
}

/* Ajuste específico para que los subtítulos en mayúsculas respiren mejor */
.text-uppercase {
    letter-spacing: 0.05em;
}

/* === HERO REDISEÑADO (EQUILIBRIO TOTAL) === */
.hero-bg {
    background-color: #000000;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -50px; /* AJUSTE FINO: Sube un poco más el bloque de texto */
    padding-left: 20px;
}

/* === TÍTULO GIGANTE (Elegante y Moderno) === */
.hero-title {
    /* Aplicamos Montserrat y vencemos a Bootstrap/Tailwind */
    font-family: 'Montserrat', sans-serif !important; 
    
    font-size: 3.5rem;
    
    /* El peso en 500 lo hace ver firme pero elegante, sin ser tan tosco como el 800 */
    font-weight: 600 !important; 
    
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px; /* Un poco de respiro entre las letras */
    max-width: 550px; 
}

/* === TEXTO PEQUEÑO DE ABAJO === */
.hero-statement {
    position: relative;
    padding-left: 25px;
    margin-top: 2rem;
    max-width: 480px;
}

.statement-text {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    font-weight: 300 !important; /* Delgadito y limpio */
}

.statement-line {
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--jomicel-blue);
    box-shadow: 0 0 15px var(--jomicel-blue);
}

/* === AJUSTE PARA LA IMAGEN FLOTANTE === */
.hero-img-wrapper {
    position: absolute;
    top: 0;
    right: -10%; 
    width: 130%; 
    height: 90%;
    transform: rotate(-10deg);
    border-radius: 40px;
    overflow: hidden;
    z-index: 1;
    background-color: #111;
}

.hero-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9; 
}

/* === CARDS === */
.card-smooth {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    height: 450px;
    transition: transform 0.3s ease;
}
.card-smooth:hover { transform: scale(1.02); }
.card-smooth img { width: 100%; height: 100%; object-fit: cover; }
.card-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}
.card-content { position: absolute; bottom: 0; padding: 2rem; width: 100%; }

/* === FOOTER STYLES === */
.footer-icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-radius: 50%;
    background-color: #f3f4f6; /* bg-gray-100 */
    color: var(--jomicel-blue);
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* === ACERCA DE (REDISEÑO EXACTO) === */

/* 1. La Mancha Negra (Fondo) */
.about-shape-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 600px; 
    height: 600px;
    background-color: #0a0a0a; /* Negro casi puro */
    /* La curva suave en la esquina inferior izquierda */
    border-bottom-left-radius: 200px; 
    /* La posición y rotación exacta de React */
    transform: translate(20%, -15%) rotate(12deg); 
    z-index: 0;
    box-shadow: -20px 20px 60px rgba(0,0,0,0.3);
}

/* 3. Título con Línea Vertical (Limpio, sin cajas) */
.about-title-border {
    border-left: 5px solid var(--jomicel-blue);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.about-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--jomicel-blue);
    text-transform: uppercase;
    letter-spacing: -1px;
}

/* 4. Imagen Flotante (Sin bordes blancos, solo sombra) */
.about-image-wrapper {
    position: relative;
    border-radius: 30px; /* Bordes muy redondeados */
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); /* Sombra fuerte para profundidad */
    z-index: 10; /* Encima de la mancha negra */
    transform: perspective(1000px) rotateY(-5deg); /* Un toquecito 3D sutil */
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Efecto Hover del Grupo */
.footer-item:hover .footer-icon-wrapper {
    background-color: var(--jomicel-blue);
    color: white;
    transform: translateY(-2px);
}

.tracking-wider { letter-spacing: 0.05em; }

/* === TEXTOS === */
.text-jomicel { color: var(--jomicel-blue); }

/* === ESTILOS PARA TABLAS Y BUSCADOR (Servicio Técnico JOMICEL) === */

/* Buscador interactivo */
.search-container { position: relative; max-width: 500px; margin: 0 auto; }
.search-container i { position: absolute; left: 18px; top: 16px; color: #aaa; }
.search-input { 
    padding-left: 50px; 
    border-radius: 25px; 
    border: 1px solid #e5e5e5; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); 
    background-color: #ffffff;
}
.search-input:focus { border-color: #1a2a5a; box-shadow: 0 0 0 0.2rem rgba(26, 42, 90, 0.1); }

/* Tabla Responsiva */
.table-responsive { 
    overflow-x: auto; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    background: #ffffff; 
    border: 1px solid #e5e5e5;
}
.table thead { background: #eaf0ff; border-bottom: none; }
.table thead th { font-weight: 600; color: #1a2a5a; border: none; padding: 1.2rem 1rem; }
.table td, .table th { vertical-align: middle; padding: 1rem; border-color: #e5e5e5; }

/* Imágenes en Tabla */
.img-table { 
    width: 45px; 
    height: 45px; 
    object-fit: cover; 
    border-radius: 50%; 
    border: 2px solid #e5e5e5; 
}

/* Botones de Acción */
.btn-action { 
    border: 1px solid #e5e5e5; 
    background: #fff; 
    border-radius: 8px; 
    transition: .2s ease; 
    padding: 8px 14px; 
    color: #333;
}
.btn-action:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    color: #000; 
}

/* Responsividad de Botones */
@media (max-width: 576px) {
    .btn-action { padding: 4px 8px; font-size: 14px; }
}