/* =========================================================
   ANTALVAC - PÁGINA DE INICIO
   Diseño inspirado en el modelo visual aprobado
   ========================================================= */

:root {
    --azul: #123b63;
    --azul-claro: #1f628f;
    --rojo: #c62828;
    --gris: #f4f6f8;
    --texto: #24313d;
    --blanco: #ffffff;
    --sombra: 0 14px 35px rgba(17, 38, 57, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.inicio {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    color: var(--texto);
    background: #fff;
}

.inicio a { color: inherit; }

/* CABECERA */
.inicio-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #e7ebef;
    backdrop-filter: blur(8px);
}

.inicio-nav {
    width: min(1180px, 92%);
    min-height: 78px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.inicio-marca {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 230px;
}

.inicio-marca img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
}

.inicio-marca strong {
    display: block;
    color: var(--azul);
    font-size: 17px;
    line-height: 1.15;
}

.inicio-marca small {
    display: block;
    margin-top: 3px;
    color: #71808d;
    font-size: 11px;
}

.inicio-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.inicio-links a {
    position: relative;
    padding: 8px 0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #344553;
}

.inicio-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--rojo);
    transition: width .25s ease;
}

.inicio-links a:hover::after { width: 100%; }

/* HERO */
.inicio-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8,27,43,.88) 0%, rgba(8,27,43,.62) 43%, rgba(8,27,43,.18) 100%),
        url('../img/v-13.png') center/cover no-repeat;
}

.inicio-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: var(--rojo);
}

.hero-contenido {
    position: relative;
    z-index: 2;
    width: min(1180px, 92%);
    margin: auto;
    padding: 70px 0;
    color: white;
}

.hero-etiqueta {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 30px;
    background: rgba(255,255,255,.10);
    font-size: 12px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.hero-contenido h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.8px;
}

.hero-contenido p {
    max-width: 610px;
    margin: 22px 0 30px;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;
    color: rgba(255,255,255,.9);
}

.hero-boton {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 21px;
    border-radius: 8px;
    background: var(--rojo);
    color: white !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease;
}

.hero-boton:hover {
    transform: translateY(-2px);
    background: #a91f1f;
}

/* BLOQUES */
.inicio-seccion {
    width: min(1180px, 92%);
    margin: auto;
    padding: 72px 0 82px;
}

.seccion-cabecera {
    max-width: 700px;
    margin-bottom: 34px;
}

.seccion-cabecera span {
    color: var(--rojo);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.seccion-cabecera h2 {
    margin: 8px 0 10px;
    color: var(--azul);
    font-size: 32px;
}

.seccion-cabecera p {
    margin: 0;
    color: #687784;
    line-height: 1.7;
}

.inicio-tarjetas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.inicio-tarjeta {
    position: relative;
    min-height: 285px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e9ed;
    border-radius: 15px;
    background: white;
    box-shadow: var(--sombra);
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
}

.inicio-tarjeta:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 45px rgba(17,38,57,.17);
}

.tarjeta-imagen {
    height: 145px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--gris);
}

.tarjeta-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.inicio-tarjeta:hover .tarjeta-imagen img { transform: scale(1.05); }

.tarjeta-icono {
    font-size: 58px;
    filter: grayscale(.15);
}

.tarjeta-texto { padding: 20px; }

.tarjeta-texto h3 {
    margin: 0 0 8px;
    color: var(--azul);
    font-size: 20px;
}

.tarjeta-texto p {
    margin: 0;
    color: #71808d;
    font-size: 13px;
    line-height: 1.55;
}

.tarjeta-flecha {
    position: absolute;
    right: 18px;
    bottom: 17px;
    color: var(--rojo);
    font-size: 20px;
    transition: transform .2s ease;
}

.inicio-tarjeta:hover .tarjeta-flecha { transform: translateX(4px); }

/* FRANJA FINAL */
.inicio-franja {
    background: var(--azul);
    color: white;
}

.franja-contenido {
    width: min(1180px, 92%);
    margin: auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.franja-contenido strong { font-size: 20px; }
.franja-contenido span { color: rgba(255,255,255,.72); font-size: 13px; }

.inicio-footer {
    padding: 22px 5%;
    text-align: center;
    color: #7a8791;
    font-size: 12px;
    background: #f7f8f9;
}

/* RESPONSIVE */
@media (max-width: 950px) {
    .inicio-nav { min-height: 70px; }
    .inicio-links { gap: 14px; }
    .inicio-links li:nth-child(n+4) { display: none; }
    .inicio-tarjetas { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
    .inicio-nav { padding: 9px 0; }
    .inicio-links { display: none; }
    .inicio-marca { min-width: 0; }
    .inicio-marca img { width: 50px; height: 50px; }
    .inicio-hero { min-height: 520px; }
    .hero-contenido { padding: 55px 0; }
    .inicio-seccion { padding: 55px 0 65px; }
    .inicio-tarjetas { grid-template-columns: 1fr; }
    .inicio-tarjeta { min-height: 260px; }
    .franja-contenido { flex-direction: column; text-align: center; }
}
/*==========================================================================================
                PORTADA IMAGEN DE FORMACIÓN
==========================================================================================*/

/*.imagen-formacion {
    width: 100%;
    max-width: 1536px;
    height: 1024px;
    height: auto;
    display: block;
    margin: 0 auto;
}*/
/*==========================================================================================
                PORTADA IMAGEN DE FORMACIÓN - CORREGIDA
==========================================================================================*/

/* 1. Contenedor principal: controla el alto de la portada en la pantalla */
.banner-contenedor {
    position: relative;
    width: 100%;
    max-width: 1536px;
    aspect-ratio: 3 / 2;
    margin: 0 auto;
    overflow: hidden;
}

/* 🛠️ CORRECCIÓN: La imagen ahora se adapta al 100% de la caja sin salirse ni deformarse */
.foto-fondo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 1. Activa el movimiento suave en toda la página web */
html {
  scroll-behavior: smooth;
}

/* 3. La caja de los bloques: se clava obligatoriamente abajo de la imagen */
.bloques-inferiores {
  position: absolute;
  bottom: 0; 
  left: 0;
  width: 100%;
  z-index: 2;
  
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas iguales */
  gap: 40px; 
  padding: 50px 40px 35px 40px; 
  box-sizing: border-box;
  
  /* 🔵 Agregamos el degradado azul de la Opción B para que tus textos se lean perfectamente */
  background: linear-gradient(to top, rgba(11, 79, 140, 0.95) 0%, rgba(11, 79, 140, 0.75) 80%, rgba(11, 79, 140, 0) 100%);
}

/* 4. Estilo de los bloques individuales */
.bloque {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
  box-sizing: border-box;
  position: relative;
  font-family: sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

/* Al pasar el ratón, el bloque entero sube un poco de forma interactiva */
.bloque:hover {
  transform: translateY(-8px); 
}

/* Colores de textos adaptados para resaltar sobre el fondo azul corporativo */
.bloque h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  text-transform: uppercase;
  font-weight: bold;
  color: #ffffff; /* Letras blancas para el título */
  letter-spacing: 0.5px;
}

.bloque p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #e2e8f0; /* Gris claro muy legible */
}

/* Compensar la altura si tu menú superior tapa contenido */
#seccion-capacitacion,
#seccion-consejero,
#seccion-adr {
  scroll-margin-top: 80px; 
}
/*==========================================================================================
                PORTADA IMAGEN DE CAPACITACIÓN - CORREGIDA
==========================================================================================*/
.capacitacion {
    max-width: 1400px;
    margin: 70px auto;
    padding: 0 30px;
}


/* CABECERA */

.capacitacion-titulo {
    text-align: center;
    margin-bottom: 45px;
}

.capacitacion-titulo span {
    display: inline-block;
    color: #c62828;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.capacitacion-titulo h2 {
    margin: 0;
    color: #123b63;
    font-size: 2.2rem;
}

.capacitacion-titulo p {
    max-width: 700px;
    margin: 15px auto 0;
    color: #5f6b75;
    font-size: 1.05rem;
}


/* CONTENEDOR DE LAS DOS TARJETAS */

.capacitacion-enlaces {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}


/* TARJETA */

.capacitacion-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;

    min-height: 250px;
    padding: 35px;

    text-decoration: none;

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 15px 40px rgba(18, 59, 99, 0.12);

    border: 1px solid #e4e9ee;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


/* LÍNEA SUPERIOR */

.capacitacion-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 6px;

    background: #123b63;
}


/* EFECTO HOVER */

.capacitacion-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 22px 50px rgba(18, 59, 99, 0.20);
}


/* ICONO */

.capacitacion-icono {
    flex: 0 0 120px;

    width: 120px;
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #edf5fb;
}

.capacitacion-icono img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}


/* TEXTO */

.capacitacion-contenido {
    flex: 1;
}

.capacitacion-etiqueta {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #c62828;
}

.capacitacion-contenido h3 {
    margin: 7px 0 10px;

    color: #123b63;

    font-size: 1.45rem;
}

.capacitacion-contenido p {
    margin: 0 0 18px;

    color: #596773;

    line-height: 1.5;
}


/* ENLACE */

.capacitacion-boton {
    display: inline-block;

    color: #123b63;

    font-weight: 700;

    transition: color 0.3s ease;
}

.capacitacion-card:hover .capacitacion-boton {
    color: #c62828;
}
