/*
 Theme Name:  Apetcra
 Theme URI:   https://flatsome.uxthemes.com
 Description: Child theme para Flatsome 3.8.x
 Author:      jlbustos
 Template:    flatsome
 Version:     1.0.0
*/


/* Que el bloque del slider se salga del contenedor y tome todo el viewport horizontal */
.hero-fullwidth-block {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Nos aseguramos de que lo de adentro tambi�n se adapte al 100% */
.hero-fullwidth-block .ux-slider,
.hero-fullwidth-block .ux_banner,
.hero-fullwidth-block .hero-fullscreen {
    width: 100%;
}

//

/* Menú e íconos: se aplican via wp_head en functions.php (ver jl_nav_color_home) */

/* Separación entre header y contenido en la home */
body.home #main {
    padding-top: 40px;
}

/* Header en la home: fondo degradado + borde inferior de 4 colores */
/* Flatsome aplica position:absolute en .header.transparent — lo revertimos con ID */
#header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
}

#header .header-wrapper {
    position: relative !important;
}

#header .header-bg-color,
#header .header-wrapper {
    background: linear-gradient(to top, #8fa4b2 0%, #c8d4dc 100%) !important;
}

/* Borde inferior de 4 colores: navy ancho + 3 iguales pequeños */
#header .header-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right,
        #051f40 0%,  #051f40 70%,
        #cc0000 70%, #cc0000 80%,
        #ffffff 80%, #ffffff 90%,
        #0cc0df 90%, #0cc0df 100%
    );
    z-index: 101;
}

//

/* El banner full-screen */
.hero-fullscreen {
    position: relative;
    overflow: hidden;
}

/* Imagen de fondo con oscurecimiento */
.hero-fullscreen .bg,
.hero-fullscreen .ux-bg,
.hero-fullscreen .banner-bg {
    background-size: cover !important;
    background-position: center center !important;

    /* Color base + transparencia */
    background-color: rgba(5, 31, 64, 0.75);

    /* Mezcla el color con la imagen */
    background-blend-mode: multiply;
}




///

.ultimos-posts-list {
    margin: 0 auto 40px;
}

.col.ultimos-post-col {
    margin-top: 30px;
}

/* Tarjeta b�sica */
.ultimos-post-item {
    background: #ffffff;
   /* border-radius: 8px; */
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ultimos-post-thumb-link {
    display: block;
}

.ultimos-post-imagen {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Contenido */
.ultimos-post-contenido {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

/* Categor�a */
.ultimos-post-categoria {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0cc0df;
    font-weight: 600;
}

/* T�tulo */
.ultimos-post-titulo {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.3;
}

.ultimos-post-titulo a {
    text-decoration: none;
    color: #051f40;
}

.ultimos-post-titulo a:hover {
    text-decoration: underline;
}

/* Extracto */
.ultimos-post-extracto {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #333;
}



///
/* Que el bloque de cuadros ocupe todo el ancho de la pantalla */
.cuadros-fullwidth {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Row sin m�rgenes extras */
.cuadros-home {
    margin: 0;
}

/* Sacamos el padding/gutter de las columnas para que queden pegadas */
.cuadros-home .col {
    padding: 0;
}

/* Cada tarjeta ocupa todo el ancho de su columna y sin bordes redondeados */
.cuadro-home-item {
    padding: 50px 40px;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 240px;
    width: 100%;
}

/* Colores intercalados */
.cuadro-azul {
    background-color: #051f40;
    color: #ffffff;
}

.cuadro-turquesa {
    background-color: #0cc0df;
    color: #051f40;
}

/* T�tulos y textos */
.cuadro-home-item h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.cuadro-home-item p {
    margin: 0 0 15px;
    font-size: 0.95rem;
}

/* Botones sin redondear */
.btn-cuadro-home {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 0;              /* SIN bordes redondeados */
    border: 2px solid currentColor;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    align-self: flex-start;
    transition: 0.2s ease;
}

/* Hover: fondo blanco, texto azul oscuro */
.cuadro-azul .btn-cuadro-home:hover,
.cuadro-turquesa .btn-cuadro-home:hover {
    background-color: #ffffff;
    color: #051f40;
}


///

/* Quitar m�rgenes extra de la fila del footer */
.footer-custom-row {
    margin-left: 0;
    margin-right: 0;
}

/* Ajustar padding de las columnas internas */
.footer-custom-row .footer-col {
    padding: 10px 15px;
}

/* En escritorio, alineamos mejor verticalmente si hace falta */
//@media (min-width: 768px) {
 //   .footer-custom-row .footer-col {
  //      display: flex;
   //     flex-direction: column;
    //    justify-content: center;
   // }
//}



///

/* Men� lineal: todo en una sola fila horizontal */
.menu-lineal {
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

/* Cada li como inline-block, en lugar de uno debajo del otro */
.menu-lineal > li {
    display: inline-block !important;
    margin: 0;
    padding: 0;
}

/* Espacio entre �tems */
.menu-lineal > li + li {
    margin-left: 10px!important;
    border-top:none!important;
}

/* Enlaces */
.menu-lineal a {
    text-decoration: none;
    font-size: 0.9rem;
    /*color: #d9d9d9; */
    color: #777 
}

/* Hover con turquesa */
.menu-lineal a:hover {
    color: #0cc0df;
}

.menu-lineal > li:nth-child(7) {
	
margin-left: 0 !important;

}


//
#hr-footer {
    border: none;
    border-top: 1px dotted #d9d9d9; /* o el color que quieras */
}
.footer-col-right .social-icons a:hover i {
    color: #0cc0df !important;
}

//

.is-outline:hover {
    background-color: #0cc0df!important;
    border-color: #0cc0df!important;
}


//

/* Secci�n completa con tu azul oscuro */
.cta-insurance-section {
    background-color: #051f40;
    color: #ffffff;
}

/* T�tulo y texto en blanco */
.cta-insurance-section .cta-insurance-title,
.cta-insurance-section .cta-insurance-text {
    color: #ffffff;
    margin: 0;
}

.cta-insurance-section .cta-insurance-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta-insurance-section .cta-insurance-text {
    font-size: 0.95rem;
}

/* Columna del bot�n alineada a la derecha en desktop */
.cta-insurance-btn-col {
    text-align: right;
}

/* Bot�n outline (usa la base de Flatsome) */
.cta-insurance-btn.button.is-outline {
    border-color: #ffffff;
    color: #ffffff;
}

/* Hover turquesa */
.cta-insurance-btn.button.is-outline:hover {
    background-color: #0cc0df;
    border-color: #0cc0df;
    color: #051f40;
}

/* Imagen + c�rculo de play */
/* Contenedor del video / imagen */
.cta-insurance-video {
    position: relative;
    width: 230px;      /* ancho fijo */
    height: 155px;     /* alto fijo */
    max-width: 100%;   /* por si se achica en mobile */
    overflow: hidden;  /* recorta la imagen que sobresalga */
}

/* Imagen dentro: que llene el contenedor sin deformarse */
.cta-insurance-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* recorta manteniendo proporci�n */
    display: block;
}

.cta-insurance-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tri�ngulo de play dentro del c�rculo */
.cta-insurance-play::before {
    content: "";
    border-left: 18px solid #ffffff;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

/* Responsive: en mobile, bot�n centrado y menos padding */
@media (max-width: 768px) {
    .cta-insurance-section .row {
        padding-left: 15px;
        padding-right: 15px;
    }

    .cta-insurance-btn-col {
        text-align: left;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .cta-insurance-video {
        width: 180px;
        height: 120px;
    }
}


//

/* Contenedor tipo "row" */
.about-two-cols {
    display: flex;
    flex-wrap: nowrap;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Columnas tipo "col" */
.about-col {
    flex: 1 1 100%;
    min-height: 260px; /* altura base, ajustable */
}

/* En desktop: 7/12 y 5/12 aprox */
@media (min-width: 768px) {
    .about-col-text {
        flex: 0 0 58%; /* ~7/12 */
    }
    .about-col-image {
        flex: 0 0 42%; /* ~5/12 */
    }
}

/* Columna de texto (izquierda) */
.about-col-text {
    background-color: #d9d9d9;   /* gris claro de tu paleta */
    padding: 60px 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;     /* centra verticalmente el contenido */
}

/* Eyebrow */
.about-eyebrow {
    margin: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #051f40;              /* azul oscuro */
}

/* T�tulo principal */
.about-title {
    margin: 0 0 20px;
    font-size: 2.2rem;
    line-height: 1.2;
    color: #051f40;
}

/* Texto */
.about-text {
    margin: 0 0 30px;
    font-size: 0.95rem;
    color: #333333;
}

/* Bot�n */
.about-btn {
display: inline-block;
    background-color: #0cc0df!important;   /* turquesa */
    color: #051f40;
    border-radius: 0;            /* sin redondeo, si quer�s */
    padding: 8px 12px!important;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Hover del bot�n */
.about-btn:hover {
    background-color: #051f40;
    color: #ffffff;
}

/* Columna de la imagen (derecha) */
.about-col-image {
    background-image: url("/apetcra/wp-content/uploads/2026/05/Trib-Santa-Fe-1024x768-1.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Mobile: apilado */
@media (max-width: 767px) {
    .about-col-text {
        padding: 40px 25px;
        text-align: left;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-col-image {
        min-height: 220px;
    }
}

/* CONTENEDOR � tipo row */
.about-two-cols {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}

/* COLUMNA IZQUIERDA (gris) */
.about-text-col {
    flex: 0 0 58%;  /* 7/12 aprox */
    background-color: #d9d9d9;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
}

/* COLUMNA DERECHA (imagen) */
.about-image-col {
    flex: 0 0 42%;  /* 5/12 aprox */
    background-image: url("/apetcra/wp-content/uploads/2026/05/Trib-Santa-Fe-1024x768-1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* QUE AMBAS COLUMNAS TENGAN IGUAL ALTURA */
.about-text-col,
.about-image-col {
    min-height: 350px;  /* ajust� libremente */
}

/* MOBILE: columnas una abajo de otra */
@media (max-width: 768px) {
    .about-two-cols {
        flex-wrap: wrap; /* ahora s� apila */
    }

    .about-text-col,
    .about-image-col {
        flex: 0 0 100%;
        min-height: 220px;
    }
}

/* Centrar el bot�n dentro del bloque gris */
.about-btn {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 8px 18px;
    align-self: center !important;  /* CLAVE: centra dentro del contenedor flex */
}



///
/* En TODAS LAS P�GINAS que NO son la home: header con fondo azul oscuro */
body:not(.home) .header-wrapper,
body:not(.home) .header-bg-color {
    background-color: #051f40 !important;
    position: relative;
}



///

/* Bloque general */
.agenda-section {
    background-color: #ffffff;
}


.agenda-col-text {
    padding-right: 30px;
}

.agenda-title {
    font-size: 2rem;
    margin: 0 0 10px;
    color: #051f40;
}

.agenda-desc {
    margin: 0 0 25px;
    font-size: 0.95rem;
}

/* Bot�n izquierdo */
.agenda-btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: #051f40;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
}

.agenda-btn:hover {
    background-color: #0cc0df;
    color: #051f40;
}

/* Ajuste del slider de Flatsome */
.agenda-ux-slider .flickity-slider > div {
    padding: 0 8px;
}

/* Alinear slider con el resto del contenido */
.agenda-section .col-inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Link overlay que cubre toda la tarjeta */
.agenda-card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* La�tarjeta� del evento */
.agenda-card-banner {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #051f40;
}

.agenda-evento-banner {
    background-color: #051f40;
    overflow: hidden;
    position: relative;
}

.agenda-evento-banner .banner-bg {
    background-size: contain !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

/* Oscurecemos un poco la imagen de fondo */
.agenda-card-banner .banner-bg {
    filter: brightness(0.75);
}

/* Contenido sobre la imagen */
.agenda-card-content {
    position: absolute;
    inset: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    background: linear-gradient(to top, rgba(5,31,64,.92) 0%, rgba(5,31,64,.4) 55%, transparent 100%);
}

.agenda-card-content h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    line-height: 1.3;
}

/* Bot�n de fecha en la tarjeta */
.agenda-card-date {
    display: inline-block;
    align-self: flex-start;
    border: none;
    border-radius: 4px;
    padding: 2px 8px;
    background-color: #0cc0df;
    color: #051f40;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .agenda-col-text {
        margin-bottom: 25px;
    }
}
