/*------------------slide------------------------*/
.slide_carrusel { background-color: #000; }
.slide_carrusel .overlay {
    position: absolute;
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.4) 100%);
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide_carrusel h1 {
    font-size: clamp(2rem, 5vw, 6rem);
    font-weight: 600;
    color: #fff;
    line-height: 110%;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .5);
}

.carousel-caption p {
    color: rgba(255, 255, 255, .9);
    font-size: 1.15rem;
    /*max-width: 520px;*/
    text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}

.carousel-caption {
    text-align: left;
    z-index: 2;
    bottom: 30%;
}

.slide_carrusel .carousel-item {
   transition: transform 0.5s ease, opacity .5s ease-out !important;
   /*height: calc(100vh - 60px) !important;*/
}

/* Altura base para XXL — descuenta la altura real del header (~145px) */
.slide_carrusel .carousel-item img {
   /* height: calc(100vh - 60px) !important;*/
    object-fit: cover;
    object-position: center;
}

/*---------------------------------------media query-----------------------------*/

/* Extra small devices — header móvil ≈ 160px */
@media (width <= 575px) {
    .slide_carrusel .carousel-item {
        height: 65vh !important;
    }

    .slide_carrusel .carousel-item img {
        height: 65vh !important;
        object-fit: cover;
    }

    .slide_carrusel h1 {
        font-weight: 600;
        -webkit-text-stroke: 0;
        text-shadow: 0 1px 1px #fff, 0 1px 0 rgba(0, 0, 0, 0.8);
        color: #fff;
    }

    .carousel-caption p { font-size: 0.875em; }
    /* Anclamos por top para que nunca quede bajo el menú */
    .carousel-caption { top: 40%; bottom: auto; right: 7%; left: 10%; }
    .carousel-caption .btn_corporativo { font-weight: 400; padding: 5px 25px; letter-spacing: 0; }
}

/* Small devices — header móvil ≈ 155px */
@media (576px <= width <= 767px) {
    .slide_carrusel .carousel-item { height: 100vh !important; }
    .slide_carrusel .carousel-item img { height:100vh !important; object-fit: cover; }
    .carousel-caption {  bottom:0px; left: 10%; }
    .carousel-caption p {   font-size:1rem; line-height: 125%;}
}

/* Medium devices (landscape) — header escritorio ≈ 145px, slide 100vh: sin riesgo de solapamiento */
@media (768px <= width <= 991px) {
    .carousel-caption { position: absolute; left: 10%; top: 38%; }
    .slide_carrusel .carousel-item { height: 110vh !important; }
    .slide_carrusel .carousel-item img { height: 110vh !important; object-fit: cover; }
     .carousel-caption p {   font-size:1rem; line-height: 125%;}
}

/* Medium devices — portrait: slide corto, anclamos por top */
@media (768px <= width <= 991px) and (orientation: portrait) {
    .slide_carrusel .carousel-item { height: 48vh !important; }
    .slide_carrusel .carousel-item img { height: 48vh !important; object-fit: cover; }
    .carousel-caption { top: 200px; bottom: auto !important; }
}

/* Large devices */
@media (992px <= width <= 1199px) {
    .carousel-caption { bottom: 12% !important; }
    .slide_carrusel .carousel-item { height: 65vh !important; }
    .slide_carrusel .carousel-item img { height: 65vh !important; object-fit: cover; }
}

/* Large devices — portrait: slide muy corto, anclamos por top */
@media (992px <= width <= 1199px) and (orientation: portrait) {
    .slide_carrusel .carousel-item { height: 45vh !important; }
    .slide_carrusel .carousel-item img { height: 45vh !important; object-fit: cover; }
    .carousel-caption { top: 145px; bottom: auto !important; }
}

/* Extra large devices */
@media (1200px <= width <= 1399px) {
    .carousel-caption { bottom: 12% !important; }
    .slide_carrusel .carousel-item { height: 65vh !important; }
    .slide_carrusel .carousel-item img { height: 65vh !important; object-fit: cover; }
}

/* Extra large devices (1400px+) */
@media (width >= 1400px) {
    .carousel-caption { bottom: 140px !important; }
}


/*------------------teaser con items-----------------------*/

.teaser_con_items .sobretitular {
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-size: .85rem;
}

.teaser_con_items h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 100%;
    color: #000;
}

.teaser_con_items figure {
    position: relative;

    img {
        border-radius: 1rem;
        box-shadow: 0 24px 60px rgba(0, 0, 0, .15);
        position: relative;
        z-index: 1;
    }
    .about-img-border {
        position: absolute;
        top: -24px;
        right: -24px;
        width: 100%;
        height: 100%;
        border: 2px solid rgba(122, 138, 60, .20);
        border-radius: 1rem;
    }
    .about-img-glow {
        position: absolute;
        bottom: -24px;
        left: -24px;
        width: 128px;
        height: 128px;
        border-radius: 50%;
        background: rgba(166, 124, 82, .10);
        filter: blur(40px);
    }
}

.teaser_con_items .check-list-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: .5rem;
    margin-left: -.5rem;
}

.teaser_con_items .check-list-table td {
    width: 50%;
    vertical-align: middle;
    color: #334155;
    font-size: 1rem;
    padding: .3rem .5rem;
}

.teaser_con_items .check-list-table .item-linea {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.teaser_con_items .check-list-table .icono-item {
    width: 2.50rem;
    height: 2.50rem;
    object-fit: contain;
    flex-shrink: 0;
}


/*---------------------- servicios_imagenes  -----------------------*/
.servicios_imagenes h2 {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px 0;
    color: #000;
    font-weight: 400;
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    letter-spacing: 0;
}
.servicios_imagenes h3 {
    color: #000;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: .6rem;
}
.servicios_imagenes .caja_areas .caja {
    width: 5rem;
    height: 5rem;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 500ms ease;
    text-wrap: pretty;
}
.servicios_imagenes hr {
    width: 96px;
    height: 4px;
    color: #7a8a3c;
    margin: 0 auto;
}
.servicios_imagenes .caja_areas .caja:hover img { filter: brightness(0) invert(1); }


/*------------------ cabecera de sección (eyebrow + título + texto) ------------------*/
/* usada por servicios_principales (index_servicios.html.twig) y por la cabecera de index_noticias.html.twig */
.sp_cabecera {
    max-width: 680px;
    margin: 0 auto 50px;
}

.sp_eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #2098d1;
    margin-bottom: 10px;
}

.sp_titulo {
    font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.6rem);
    font-weight: 800;
    color: #000;
    margin-bottom: 16px;
}

.sp_texto {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
}

.sp_texto p:last-child {
    margin-bottom: 0;
}

.sp_texto a {
    color: #2098d1;
    text-decoration: none;
}

.sp_texto a:hover {
    text-decoration: underline;
}


/*------------------ servicios principales ------------------*/
.servicios_principales {
    padding: 70px 0;
}

.servicios_principales .sp_item {
    text-align: center;
    padding: 15px 10px;
}

.servicios_principales .sp_icono {
    width: 84px;
    height: 84px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(32, 152, 209, 0.1);
    color: #2098d1;
    font-size: 2rem;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.servicios_principales .sp_item:hover .sp_icono {
    background-color: #2098d1;
    color: #fff;
    transform: translateY(-4px);
}

.servicios_principales .sp_item_titulo {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 10px;
}

.servicios_principales a.sp_item_link {
    text-decoration: none;
}

.servicios_principales a.sp_item_link .sp_item_titulo {
    transition: color 0.2s ease;
}

.servicios_principales a.sp_item_link:hover .sp_item_titulo {
    color: #2098d1;
}

.servicios_principales .sp_item_texto {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #666;
}

.servicios_principales .sp_item_texto p:last-child {
    margin-bottom: 0;
}

/* Medium devices (tablets, less than 768px) */
@media (width <= 767.98px) {
    .sp_cabecera {
        margin-bottom: 35px;
    }

    .servicios_principales {
        padding: 45px 0;
    }
}


/*------------------ noticias home ------------------*/
/* el estilo de las tarjetas (nh_*) es compartido con la banda interior de noticias y vive en noticias.css */
.noticias_home {
    padding: 70px 0;
}

@media (width <= 767.98px) {
    .noticias_home {
        padding: 45px 0;
    }
}


/*----------------------listado_productos-----------------------------*/
.bloque_listado_productos { background-color: #9c8c7850; }

.bloque_listado_productos .iconos span { font-size: 12px; text-transform: uppercase; font-weight: 400; }
.bloque_listado_productos .producto { text-align: center; }
.bloque_listado_productos .tipo_articulo { text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }
.bloque_listado_productos .btn-group > .btn { border-radius: inherit; }
.bloque_listado_productos .btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.btn-group > :not(.btn-check) + .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.bloque_listado_productos .bloque_productos .area {
    text-align: center;
    text-transform: uppercase;
    font-size: clamp(1.563rem, 2vw, 2.188rem);
    color: #000;
    position: relative;
    font-weight: 600;
    padding: 0 10px;
    display: inline-block;
}

.bloque_productos .area::before, .bloque_productos .area::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #000;
}

.bloque_productos .area::before {
    left: -20px;
    top: 50%;
}
.bloque_productos .area::after {
    top: 50%;
    right: -20px;
}

.producto .datos_producto { grid-template-rows: 42px 22px 35px 39px; display: grid; }

.bloque_productos .producto figure {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.08),
        0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bloque_productos .producto figure:hover {
    transform: translateY(-4px);
    box-shadow:
        0 6px 12px rgba(0, 0, 0, 0.10),
        0 12px 24px rgba(0, 0, 0, 0.08);
}

.bloque_listado_productos .bloque_productos h3 { font-size: 1rem; }

.bloque_listado_productos .bloque_productos .precio {
    color: red;
    padding: 4px;
    font-weight: 500;
    font-size: 1.1em;
    display: inline-block;
}

.bloque_listado_productos .bloque_productos .precio.tachado {
    text-decoration: line-through;
}

.iconos .btn-group i::before { font-size: 0.9em; }

/*---------------------------media queries---------------------------*/

/* Extra small devices (portrait phones, less than 576px) */
@media (width <= 575.98px) {
    .bloque_listado_productos .producto figure img { width: 50%; }
    .producto .datos_producto { grid-template-rows: auto 20px 40px 50px; display: grid; }
}

/* Small devices (landscape phones, 576px and up) */
@media (576px <= width <= 767.98px) {
    .bloque_listado_productos .producto figure img { width: 75%; }
}

/* Medium devices (tablets, 768px and up) */
@media (768px <= width <= 991.98px) {
    .bloque_listado_productos .producto figure img { width: 75%; }
}

/* Large devices (desktops, 992px and up) */
@media (992px <= width <= 1199.98px) {
    .producto .datos_producto { grid-template-rows: 49px 22px 35px 39px; }
}

/* Extra large devices (large desktops, 1400px and up) */
@media (width >= 1400px) {
    .bloque_listado_productos .producto figure img { width: 75%; }
}

/*------------------ formacion: proximo curso ------------------*/
.formacion_proximo_curso {
    padding: 40px 0;
}

.formacion_proximo_curso .fpc_card {
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.formacion_proximo_curso .fpc_imagen_col {
    background-color: #f3f5f6;
    padding: 24px;
}

.formacion_proximo_curso .fpc_imagen {
    position: relative;
    min-height: 340px;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.formacion_proximo_curso .fpc_imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

.formacion_proximo_curso .fpc_contenido {
    display: flex;
    align-items: center;
}

.formacion_proximo_curso .fpc_contenido_int {
    padding: 50px 60px;
}

.formacion_proximo_curso .fpc_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(32, 152, 209, 0.1);
    color: #2098d1;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 18px;
}

.formacion_proximo_curso .fpc_titulo {
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
    font-weight: 700;
    color: #000;
    margin-bottom: 14px;
}

.formacion_proximo_curso .fpc_fecha {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 20px;
}

.formacion_proximo_curso .fpc_fecha i {
    color: #2098d1;
}

.formacion_proximo_curso .fpc_texto {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 28px;
}

.formacion_proximo_curso .fpc_acciones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.formacion_proximo_curso .fpc_acciones .btn {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 12px 28px;
}

.formacion_proximo_curso .fpc_acciones .btn i {
    margin-left: 8px;
}

.formacion_proximo_curso .fpc_link_todos {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.formacion_proximo_curso .fpc_link_todos:hover {
    color: #2098d1;
    border-color: #2098d1;
}

/* Extra small devices (portrait phones, less than 576px) */
@media (width <= 575.98px) {
    .formacion_proximo_curso .fpc_card {
        border-radius: 16px;
    }

    .formacion_proximo_curso .fpc_imagen {
        min-height: 260px;
    }

    .formacion_proximo_curso .fpc_contenido_int {
        padding: 30px 20px;
    }
}
