/* 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; }
}

/* =========================================
   MODAL SERVICIO TÉCNICO
   ========================================= */

.ticket-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ticket-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.ticket-card {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15,23,42,0.22);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ticket-overlay.is-open .ticket-card {
    transform: translateY(0) scale(1);
}

.ticket-card::before {
    content: '';
    display: block;
    background: #ffffff;
    height: 68px;
}

.ticket-card:has(#ticket-step-result:not(.ticket-step--hidden))::before {
    display: none;
}

.ticket-icon {
    position: absolute;
    top: 18px;
    left: 28px;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-title {
    text-align: center;
    position: absolute;
    top: 24px;
    font-size: 17px;
    font-weight: 700;
    color: #585858;
    margin: 0;
    letter-spacing: -0.2px;
}

.ticket-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.ticket-close:hover { background: #111; color: #fff; border-color: #111; }

.ticket-step {
    padding: 26px 28px 24px;
    animation: ticketFadeIn 0.3s ease;
}
.ticket-step--hidden { display: none; }

@keyframes ticketFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ticket-sub {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px;
}

.ticket-input-wrap {
    position: relative;
    margin-bottom: 10px;
}

.ticket-input {
    width: 100%;
    padding: 13px 44px 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    letter-spacing: 0.5px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ticket-input:focus {
    border-color: #1a2a5a;
    box-shadow: 0 0 0 3px rgba(26,42,90,0.10);
    background: #fff;
}

.ticket-input::placeholder {
    color: #94a3b8;
    font-weight: 300;
    letter-spacing: 0;
}

.ticket-input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
}

.ticket-error {
    font-size: 13px;
    color: #dc2626;
    min-height: 18px;
    margin-bottom: 8px;
}

.ticket-btn {
    width: 100%;
    padding: 13px;
    background: #1a2a5a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
}

.ticket-btn:hover:not(:disabled) {
    background: #0f1a3a;
    transform: translateY(-1px);
}
.ticket-btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.ticket-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ticketSpin 0.7s linear infinite;
    display: none;
}

@keyframes ticketSpin { to { transform: rotate(360deg); } }

.ticket-privacy {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.ticket-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.ticket-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-gray  { background: #f1f5f9; color: #475569; }
.status-blue  { background: #dbeafe; color: #1d4ed8; }
.status-amber { background: #fef3c7; color: #b45309; }
.status-green { background: #dcfce7; color: #059669; }
.status-dark  { background: #1e3a5f; color: #fff;    }

.ticket-result-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-back {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}
.ticket-back:hover { border-color: #1a2a5a; color: #1a2a5a; }

.ticket-close-result {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.ticket-close-result:hover { background: #111; color: #fff; border-color: #111; }

.ticket-result-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.ticket-result-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 13px;
    background: #f8fafc;
    border-radius: 9px;
    border: 1px solid #e2e8f0;
}

.ticket-result-row--full { grid-column: 1 / -1; }

.ticket-result-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.ticket-result-val {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
}

.ticket-result-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    margin-top: 4px;
}

.ticket-result-logo {
    height: 20px;
    width: auto;
    flex-shrink: 0;
    opacity: 0.5;
}

.ticket-footer-note {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}