/* assets/css/style.css */

/* Colores base */
:root {
    --fiuls-azul-oscuro: #0b1f3b;
    --fiuls-rojo-sangria: #8b0016;
    --fiuls-gris-fondo: #f4f5f7;
}

/* Body general */
body {
    background-color: var(--fiuls-gris-fondo);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Navbar */
.navbar-fiuls {
    background-color: var(--fiuls-azul-oscuro);
}

.navbar-fiuls .nav-link,
.navbar-fiuls .navbar-brand {
    color: #ffffff !important;
    font-weight: 500;
}

.navbar-fiuls .nav-link:hover {
    color: var(--fiuls-rojo-sangria) !important;
}

/* Banner */
.hero-section {
    background: linear-gradient(
        to right,
        rgba(11, 31, 59, 0.9),
        rgba(139, 0, 22, 0.85)
    ),
    url('../img/banner-reclutamiento.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 80px 0;
}

.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.1rem;
}

/* Cards de ofertas */
.card-oferta {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    background-color: #ffffff;
    overflow: hidden;
}

.card-oferta:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

.card-oferta img {
    height: 180px;
    object-fit: cover;
}

.card-codigo {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fiuls-rojo-sangria);
    font-weight: 700;
}

.btn-ver-mas, 
.btn-postular {
    background-color: var(--fiuls-rojo-sangria);
    border-color: var(--fiuls-rojo-sangria);
    color: #ffffff !important;              /* 👈 TEXTO BLANCO */
}



/* Hover: que NO cambie a blanco */
.btn-postular:hover,
.btn-postular:focus,
.btn-postular:active {
    background-color: #700930 !important; /* ligeramente más oscuro */
    color: #fff !important;
    border: none;
}

.btn-ver-mas:hover,
.btn-ver-mas:focus,
.btn-ver-mas:active {
    background-color: #a3001c !important;   /* tono más oscuro */
    border-color: #a3001c !important;
    color: #ffffff !important;              /* 👈 TEXTO BLANCO SIEMPRE */
}


/* Modal */
.modal-header {
    background-color: var(--fiuls-azul-oscuro);
    color: #ffffff;
}

/* Footer */
.footer-fiuls {
    background-color: var(--fiuls-azul-oscuro);
    color: #ffffff;
    padding: 30px 0;
}

.footer-fiuls .col-footer {
    text-align: center;
    padding: 10px 20px;
}

/* Línea vertical blanca entre columnas */
.footer-fiuls .col-footer:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.6);
}

.footer-fiuls a {
    color: #ffffff;
    text-decoration: none;
}

.footer-fiuls a:hover {
    text-decoration: underline;
}

/* ===========================
   LÍNEA DE TIEMPO CALENDARIO
   =========================== */
.timeline-container {
    position: relative;
    display: flex;
    flex-wrap: nowrap;              /* 👉 NO se apilan en escritorio */
    justify-content: space-between;
    gap: 1.5rem;
    padding: 20px 10px 0;
}

/* Línea horizontal de fondo */
.timeline-container::before {
    content: "";
    position: absolute;
    top: 30px; /* alineado con el centro de los círculos */
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(11, 31, 59, 0.2); /* azul oscuro translúcido */
}

/* Cada paso */
.timeline-step {
    position: relative;
    flex: 0 0 16.7%;          /* 👉 5 pasos = 20% cada uno */
    max-width: 20%;
    text-align: center;
    padding: 0 10px;
    z-index: 1;
}

/* Círculos numerados */
.timeline-circle {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border-radius: 50%;
    background-color: var(--fiuls-azul-oscuro);
    border: 3px solid var(--fiuls-rojo-sangria);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Responsivo: en pantallas pequeñas sí dejamos que bajen */
@media (max-width: 767.98px) {
    .timeline-container {
        flex-wrap: wrap;          /* 👉 en celular se permite que se apilen */
        row-gap: 2.5rem;
    }

    .timeline-step {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.5rem;
    }

    .timeline-container::before {
        display: none;            /* Sacamos línea central en móvil para que no se vea rara */
    }
}


/* ===========================
   CARDS DE GENERALES
   =========================== */
.card-general {
    border: 1px solid rgba(11, 31, 59, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Línea de color en el borde izquierdo */
.card-general::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        var(--fiuls-rojo-sangria),
        var(--fiuls-azul-oscuro)
    );
}

/* Título de card generales */
.card-general-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--fiuls-azul-oscuro);
    margin-bottom: 0.75rem;
}
/* Asegurar orden visual: offcanvas arriba del modal */
.modal {
    z-index: 1050;
}

.offcanvas {
    z-index: 1060; /* mayor que el modal */
}
