/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


/* Estilos Ángel - Filtros */

.filtro-categorias{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin:0 0 64px;
}

.filtro-btn{
    background:#fff;
    border:2px solid #24324d;
    color:#24324d;
    padding:12px 22px;
    font-size:13px;
    font-weight:700;
    text-transform:uppercase;
    cursor:pointer;
    transition:.25s;
}

.filtro-btn:hover,
.filtro-btn.active{
    background:#e9f1fb;
    border-color:#e9f1fb;
    color: #24324d;
}

/* Grid */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 24px;
}

@media(max-width:1024px){
    .blog-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:768px){
    .blog-grid{
        grid-template-columns:1fr;
    }
}

/* Tarjetas */

.post-item{
    background:#17233d;
    padding:32px;
    color:#fff;
    display:flex;
    flex-direction:column;
    transition:.3s;
}

.post-item:hover{
    transform:translateY(-5px);
}

.post-item img{
    width:100%;
    aspect-ratio:108/74;
    object-fit:cover;
    display:block;
    margin-bottom:18px;
}

.post-image{
    position:relative;
    margin-bottom:20px;
}

.post-cat{
    position:absolute;
    top:12px;
    left:12px;
    z-index:10;
    background:#e9f1fb;
    color:#17233d;
    padding:4px 10px;
    font-size:10px;
    font-weight:700;
    text-transform:uppercase;
}


.post-date{
    color:#c7cedc;
    font-size:12px;
    margin-bottom:15px;
}


.post-item h2{
    margin:0 0 18px;
    font-size:24px;
    line-height:1.25;
    font-weight:700;
}

.post-item h2 a{
    color:#fff;
    text-decoration:none;
}

.post-item h2 a:hover{
    color:#f8c94a;
}

.post-footer{
    margin-top:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding-top:25px;
    font-size:13px;
}

.autor{
    color:#c7cedc;
    font-style:italic;
}

.leer-mas{
    color:#f3c645;
    font-weight:700;
    text-decoration:none;
}

.leer-mas:hover{
    color:#fff;
}


.ac-contenedor-blog {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* CTA */

.ac_cta-diagnostico{
    width:100%;
    background:#eef4fc;
    padding:104px 0;
    margin-top: 100px;
}

.ac_cta-container{
    max-width:1200px;
    margin:0 auto;
}

.ac_cta-label{
    display:inline-block;
    position:relative;
    margin-bottom:35px;
    padding-bottom:14px;

    color:#355fb3;
    font-size:15px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.ac_cta-label::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;

    width:38px;
    height:2px;
    background:#355fb3;
}

.ac_cta-diagnostico h2{

    margin:0 0 18px;

    color:#1d2742;
    font-size:36px;
    font-weight:700;
    line-height:1.15;
}

.ac_cta-diagnostico p{
 
    margin:0 0 42px;

    color:#404c66;
    font-size:20px;
    line-height:1.5;
}

.ac_cta-boton{
    display:inline-flex;
    align-items:center;
    gap:14px;

    padding:18px 28px;

    background:#17233d;
    color:#fff;
    text-decoration:none;
    font-size:20px;
    font-weight:700;

    transition:.25s ease;
}

.ac_cta-boton span{
    color:#f4c431;
    font-size:20px;
    transition:.25s;
}

.ac_cta-boton:hover{
    background: white;
    border: 1px black solid;
}

.ac_cta-boton:hover span{
    transform:translateX(4px);
}

@media (max-width:768px){

    .ac_cta-diagnostico{
        padding:60px 0;
    }

    .ac_cta-container{
        padding:0 25px;
    }

    .ac_cta-diagnostico h2{
        font-size:34px;
    }

    .ac_cta-diagnostico p{
        font-size:20px;
    }



}


/* Hero Single Entradas */

.ac-single-post-hero {
    background: #121d35;
    color: #fff;
    padding: 104px 0 104px;
}

.ac-single-post-hero .ac-sph-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0px;
}

.ac-post-category {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 20px;
    background: #e8ebf0;
    color: #121d35;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    border-radius: 2px;
}

.ac-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 18px;
    font-size: 14px;
}

.ac-post-date {
    color: #f2b400;
    font-weight: 700;
}

.ac-post-author {
    color: rgba(255,255,255,.8);
    font-style: italic;
    width: 100%;
}

.ac-post-title {
    margin: 0;
    color: white;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 700;
}

@media (max-width: 768px) {
    .ac-single-post-hero {
        background: #121d35;
        color: #fff;
        padding: 64px 0 64px;
    }
}

@media (max-width: 1450px) {
    .ac-single-post-hero .ac-sph-container {
        padding: 0 40px;
    }
}

/* Entradas relacionadas */

.ac-relacionados {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0;
}

.ac-relacionados__header {
    margin-bottom: 30px;
}

.ac-relacionados__titulo {
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #14213d;
    margin: 0px 0px 16px 0px;
    position: relative;
    display: inline-block;

}

.ac-relacionados__titulo::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #14213d;
    margin-top: 20px;
}

.ac-relacionados__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .ac-relacionados__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ac-relacionados__grid {
        grid-template-columns: 1fr;
    }
}

.ac-card {
    background-color: #14213d;

    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ac-card__imagen-link {
    display: block;
}

.ac-card__imagen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ac-card__imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    padding: 32px 32px 0px 32px;
}

.ac-card__badge {
    position: absolute;
    top: 44px;
    left: 44px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    background: #e9f1fb;
    color: #17233d;
    font-size: 10px;
    font-weight: 700;
}

.ac-card__contenido {
    padding: 32px 32px 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ac-card__fecha {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.ac-card__titulo {
    font-size: 17px;
    line-height: 1.4;
    margin: 0 0 16px 0;
    flex-grow: 1;
}

.ac-card__titulo a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
}

.ac-card__titulo a:hover {
    text-decoration: underline;
}

.ac-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
   
    padding-top: 24px;
}

.ac-card__autor {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.ac-card__leermas {
    font-size: 13px;
    font-weight: 600;
    color: #e9b949;
    text-decoration: none;
    white-space: nowrap;
}

.ac-card__leermas:hover {
    text-decoration: underline;
    color: #e9b949;
}

.ac-card__flecha {
    display: inline-block;
    margin-left: 2px;
}

.ac-relacionados__cta {
    text-align: center;
    margin-top: 80px;
}

.ac-btn-todos {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #14213d;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;

    transition: background-color 0.2s ease;
}

.ac-btn-todos:hover {
    background-color: #1e2f57;
    color: #ffffff;
}

.ac-btn-todos__flecha {
    color: #e9b949;
}