/* 
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
Version: 1.0.0
*/

/* ACTIVAR/DESACTIVAR LA COLUMNA DE NEWSLETTER */

.wp-block-group.newsletter_content.has-global-padding.is-layout-constrained.wp-block-group-is-layout-constrained{
	display: none;
}


/* =========================================================
   INICI CSS DE LES ENTRADES INDIVIDUALS
   ========================================================= */

.post-toc {
    position: sticky;
    top: 80px;
    background: #fff;
    border-radius: 14px;
    padding: 18px 18px 14px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.03);
    font-size: 14px;
    line-height: 1.55;
    color: #1f2a37;
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.post-toc__title {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    text-transform: uppercase;
    font-size: 13px;
}

.post-toc__title::before {
    /* content: ""; */
    width: 18px;
    height: 18px;
    display: inline-block;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><circle cx="4" cy="6" r="1"/><circle cx="4" cy="12" r="1"/><circle cx="4" cy="18" r="1"/></svg>') no-repeat center / contain;
    background: #0f172a;
}

.post-toc__list {
    margin: 0;
    padding-left: 0;
    /* counter-reset: item; */
    list-style: none;
    text-align: left;
}

.post-toc__list > li {
    /* counter-increment: item; */
    margin: 10px 0;
    color: #334155;
}

/* .post-toc__list > li::marker {
    content: "";
} */

.post-toc__list > li::before {
    /* content: counter(item) ". "; */
    color: #64748b;
    font-weight: 600;
    margin-left: -22px;
    width: 22px;
    display: inline-block;
}

.post-toc a {
    color: #1f2a37;
    text-decoration: none;
}

.post-toc a:hover {
    text-decoration: underline;
}

.post-toc__list li ul,
.post-toc__list li ol {
    margin-top: 8px;
    padding-left: 16px;
}

.post-toc__list li ul li,
.post-toc__list li ol li {
    margin: 6px 0;
    font-size: 13.5px;
    color: #475569;
    position: relative;
    list-style: none;
}

.post-toc__list li ul li::before {
    position: absolute;
    left: -12px;
    color: #94a3b8;
}

.post-toc,
.post-toc__list li,
.post-toc__list li ul li {
  font-size: 13px;
  line-height: 1.6;
}

.wp-block-columns {
    max-width: 1300px !important;
    display: flex !important;
    margin: 0 auto;
}

/* Tarjetas varias */
.post-summary,
.newsletter_content {
    background: #ffffff;
    color: #3a3a3a;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 22px 24px;
    line-height: 1.7;
    overflow: visible;
}

.text_newsletter_content {
    text-align: center !important;
}

div.date-icon::before {
    content: "";
    background: url('/blog/wp-content/themes/twentytwentyfive-child/icons/calendar.svg') no-repeat center / contain;
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}
p.clock-icon::before {
    content: "";
    background: url('/blog/wp-content/themes/twentytwentyfive-child/icons/clock.svg') no-repeat center / contain;
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}
p.aut-icon::before {
    content: "";
    background: url('/blog/wp-content/themes/twentytwentyfive-child/icons/person.svg') no-repeat center / contain;
    width: 18px;
    height: 18px;
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
}
p.post-summary-title::before {
    content: "";
    background: url('/blog/wp-content/themes/twentytwentyfive-child/icons/edit.svg') no-repeat center / contain;
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 20px;
    vertical-align: middle;
}
.post-summary-title{
	font-size: 20px !important;
}

.social_media {
    margin-top: 120px !important;
}

.main-column-left {
    margin-top: 40px !important;
}

.main-column-center {
    font-size: 16px;
}

.a2a_button_facebook svg,
.a2a_button_twitter svg,
.a2a_button_whatsapp svg,
.a2a_button_linkedin svg,
.a2a_button_email svg,
.a2a_button_copy_link svg {
    background-color: #707070;
}

.wp-block-navigation__responsive-container .wp-block-navigation__responsive-container-content {
    padding-right: 20px;
}

/* Contenedor principal */
.wp-mas-entradas-group {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 60px 20px; */
    padding-top: 0 !important;
    padding-bottom: 20px !important;
}

.wp-date-mas-entradas {
    display: none;
}

/* Título "Más entradas" */
.wp-main-title-mas-entradas {
    margin-bottom: 40px;
}

/* Query container */
.wp-mas-entradas-query {
    width: 100%;
}

/* UL - Grid de entradas */
.wp-template-entrada {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Cada LI (entrada individual) */
.wp-template-entrada > li {
    display: block;
}

/* Contenedor interno de cada entrada */
.wp-template-entrada .wp-container-core-group-is-layout-154222c2 {
    display: flex !important;
    flex-direction: column !important;
    border: none !important;
    padding: 0 !important;
}

/* Imagen destacada */
.wp-img-mas-entradas {
    order: 1;
    margin-bottom: 15px;
    width: 100% !important;
    aspect-ratio: 16/9;
}

.wp-img-mas-entradas img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* Título */
.wp-block-post-title {
    order: 2;
    line-height: 1.4;
    margin-bottom: 10px;
}

.wp-block-post-title a {
    color: #1f2430;
    text-decoration: none;
}

.wp-title-main-post {
    font-size: 30px !important;
    color: #000000 !important;
    font-weight: 700;
}

/* Fecha */
.wp-date-mas-entradas {
    order: 3;
    font-size: 14px !important;
    color: #999 !important;
    text-align: left !important;
    align-self: flex-start !important;
    width: 100% !important;
}

.wp-date-mas-entradas a {
    color: inherit;
    text-decoration: none;
}

/* FIN CSS ENTRADAS */


/* =========================================================
   INICI DEL CSS DE LA HOME
   ========================================================= */

/* Categorías estilo tarjetas */
.categories-section {
    margin: 48px 0;
}

.categories-section h2 {
    margin-bottom: 16px;
}

.categories-grid {
    list-style: none;
    padding: 1.5rem 8rem 1.5rem;
    margin: 0;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.categories-grid li {
    margin: 0;
}

.categories-grid a {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f5f6f8;
    border-radius: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: #1f2430;
    font-weight: 600;
    position: relative;
    font-size: 1rem;
}

.categories-grid a:hover {
    background: #e0e0e0;
}

/* ===== Colores personalizados para las categorías reales ===== */
.categories-grid a::before {
    content: "";
    width: 4px;
    height: 24px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 12px;
    background: #4C52FF;
}

/* Colores únicos por categoría */
.categories-grid a.cat-categoria1::before {
    background: linear-gradient(180deg, #ff7a00, #ffae00);
}

.categories-grid a.cat-categoria2::before {
    background: linear-gradient(180deg, #00b4d8, #48cae4);
}

.categories-grid a.cat-categoria3::before {
    background: linear-gradient(180deg, #e63946, #ff6b6b);
}

.categories-grid a.cat-categoria4::before {
    background: linear-gradient(180deg, #118ab2, #06d6a0);
}

.categories-grid a.cat-categoria5::before {
    background: linear-gradient(180deg, #f72585, #b5179e);
}

.categories-grid a.cat-categoria6::before {
    background: linear-gradient(180deg, #7209b7, #9d4edd);
}

.categories-grid a.cat-categoria7::before {
    background: linear-gradient(180deg, #2b9348, #55a630);
}

.categories-grid a.cat-categoria8::before {
    background: linear-gradient(180deg, #0096c7, #48cae4);
}

.categories-grid a.cat-categoria9::before {
    background: linear-gradient(180deg, #ff006e, #fb5607);
}

/* Newsletter */
.newsletter-section {
    margin: 56px 0 0;
}

.newsletter-box {
    background: #f5f6f8;
    border-radius: 12px;
    padding: 24px;
}

/* Fondo a todo el ancho con alignfull (block theme) */
.newsletter-section.alignfull {
    background: #f5f6f8;
    padding: 60px 0;
}

/* Contenido centrado como el resto del sitio */
.newsletter-box {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    background: transparent;
    border-radius: 0;
    text-align: center;
}

.wp-block-heading.has-text-align-center {
    padding: 2rem 0 2rem;
    font-size: 1.8rem;
}

.wp-block-post-featured-image {
    height: 220px;
    overflow: hidden;
}

.wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single .wp-block-post-featured-image,
.page .wp-block-post-featured-image {
    height: auto;
    overflow: visible;
}

.single .wp-block-post-featured-image img,
.page .wp-block-post-featured-image img {
    height: auto;
    object-fit: initial;
}

.latest-posts-page .wp-block-query .wp-block-post-featured-image {
    height: 220px;
    overflow: hidden;
}

.wp-block-query.wp-block-superior .wp-block-post-featured-image {
    height: 350px;
    overflow: hidden;
}

.wp-block-query.wp-block-superior .wp-block-post-title {
    margin: 1rem 1.5rem 1rem;
}

.wp-block-query.wp-block-superior .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-posts-page .wp-block-query .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-block-superior .wp-block-post,
.wp-block-entrada .wp-block-post {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding-bottom: 20px;
    width: 100%;
}

.wp-block-superior .wp-block-post:hover,
.wp-block-entrada .wp-block-post:hover {
    /*transform: translateY(-6px);*/
	transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.wp-block-superior .wp-block-post-featured-image img,
.wp-block-entrada .wp-block-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.wp-block-superior .wp-block-post-title,
.wp-block-entrada .wp-block-post-title {
    font-size: 1.2rem;
    font-weight: 300;
    margin: 1rem 1.5rem 0.25rem;
    line-height: 1.3;
    min-height: 2.9rem;
}

.wp-block-superior .wp-block-post-terms,
.wp-block-entrada .wp-block-post-terms {
    font-size: 0.75rem;
    font-weight: 600;
    color: #00bd7e;
    margin: 0 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* .wp-block-post-terms a {
    text-decoration: none !important;
    border-bottom: none !important;
} */

.wp-block-post-author {
    margin: 0 1.5rem;
    font-size: 0.85rem;
    color: #444;
}

/* Control del gap del loop de posts (aplica a ambos loops) */
.wp-block-post-template {
    gap: 32px;
}

/* ——— MAQUETACIÓN HOME ——— */
.latest-posts-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.wp-block-query.wp-block-entrada {
    margin-bottom: 1.2rem;
}

.wp-block-group.custom-image-block .wp-block-image.size-large {
    height: 335px;
    width: 366px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: transparent;
}

.wp-block-group.custom-image-block:hover {
    /*transform: translateY(-6px);*/
	transform: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* HERO arriba */
.wp-block-group.wp-hero-banner {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Contenedor de posts solapado, sin fondo */
.wp-block-group.latest-posts-page {
    position: relative;
    z-index: 2;
    margin-top: -80px;
}

/* Treu la "banda" blanca del contenedor */
.wp-block-group.latest-posts-page .wp-block-query {
    background: transparent;
    box-shadow: none;
    padding-top: 0;
}

.wp-block-group.button-cat {
    display: flex;
    justify-content: center;
    margin: 20px 0 20px;
}

.wp-button-prev-posts {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 6px;
    color: #fff;
    background-color: #00bd7e;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wp-button-prev-posts:hover {
    background-color: #4DD1A5;
    color: #fff;
}

.wp-button-prev-posts .arrow {
    font-size: 14px;
    margin-right: 6px;
}

/* Ocultar el hero en entradas individuales */
.single .wp-hero-banner {
    display: none !important;
}

/* Treu el solapament si no n'hi ha hero */
.single .latest-posts-page {
    margin-top: 0;
}

.wp-block-group.wp-hero-single-post.has-background.has-global-padding.is-layout-constrained.wp-container-core-group-is-layout-7f6ca53d.wp-block-group-is-layout-constrained {
    margin-top: 0;
}

#submit-connectif {
    width: 205px;
    height: 42px;
    background-color: #00bd7e;
    color: white;
    font-size: 20px;
    border-radius: 3px;
    border: solid 1px #00bd7e;
    font-weight: 600;
    margin-bottom: 6px;
    cursor: pointer;
}

#submit-connectif:hover {
    background-color: #4DD1A5;
}

#email-connectif {
    height: 39px;
    width: 190px;
    font-size: 16px;
    outline: none;
    padding-left: 10px;
    margin-bottom: 10px;
}

.title_sub_newsletter {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* Botón volver al blog */
.btn-volver-blog {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #b3b3b3;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    background: transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-top: -20px;
}

.btn-volver-blog:hover {
    border-color: #888;
    color: #333;
}
/* =========================================================
   MEDIA QUERIES
   ========================================================= */

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
        padding: 0 0 1rem;
    }
    
    .entrada6 {
        margin-bottom: 20px !important;
    }
    
    .entrada3 {
        margin-bottom: 20px !important;
    }
    
    .wp-block-columns-is-layout-flex {
        gap: 20px;
    }
    
    .wp-block-group.custom-image-block .wp-block-image.size-large {
        height: 346px;
        width: 100%;
    }
    
    .wp-block-query {
        margin: 0 auto;
    }
    
    .wp-block-query.wp-block-entrada {
        margin-bottom: 0;
    }
    
    .wp-block-query.wp-block-superior .wp-block-post-featured-image {
        width: 100%;
        height: auto;
    }
    
    .wp-block-query.wp-block-superior .wp-block-post-title {
        margin: 0 auto;
        margin: 1rem 1.5rem 0.25rem;
        line-height: 1.3;
        min-height: 2.9rem;
    }
    
    .post-toc {
        display: none;
    }
    
    .newsletter_content {
        border-radius: 20px;
        box-shadow: none;
        padding: 0 24px;
        overflow: visible;
        margin-top: -40px !important;
    }
    
    .main-column-left {
        margin-top: 0 !important;
    }
    
    .wp-block-columns {
        max-width: 1300px !important;
        display: flex !important;
        margin: 0 auto;
    }
    
    .newsletter_content {
        display: none !important;
    }
    
    .wp-mas-entradas-group {
        margin: 0 auto;
        padding: 60px 20px;
    }
    
    /* Espai entre hero i resum del post */
    .main-column-center > .wp-block-group.alignfull {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Responsive - 3 columnas en tablets */
@media (max-width: 1200px) {
    .wp-template-entrada {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Responsive - 2 columnas en tablets pequeñas */
@media (max-width: 900px) {
    .wp-template-entrada {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive - 1 columna en móviles */
@media (max-width: 600px) {
    .wp-template-entrada {
        grid-template-columns: 1fr !important;
    }
    
    .wp-img-mas-entradas img {
        height: 150px;
    }
}


/* =========================================================
   CSS PARA PÁGINAS DE CATEGORÍAS
   ========================================================= */

.category-archive-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Header de la categoría */
.category-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid #f5f6f8;
}

.category-header .wp-block-query-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2430;
    margin-bottom: 16px;
}

.category-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid de posts en categoría */
.category-posts-grid {
    gap: 32px;
}

/* Paginación de categoría */
.category-pagination {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}

.wp-block-categories-list,
.wp-block-categories-list li {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.wp-column1-404 {
    align-self: flex-start;
}

.wp-block-heading.wp-title-404 {
    color: #00bd7e;
    font-size: 50px;
    font-weight: 600;
	text-align: left;
}

.wp-text-404 {
    color: #5E5D67;
    font-size: 25px;
    font-weight: 400;
	text-align: left;
}
.wp-block-column.wp-column1-404{
	width: 900px;
	height: 390px;
}
.btn-volver-blog-404 {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #00bd7e;
    color: white;
    text-decoration: none;
    font-size: 16px;
	font-weight: 600;
    background: #00bd7e;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.btn-volver-blog-404:hover {
    border-color: white;
    color: white;
	background-color: #4dd1a5;
}
.wp-block-column.wp-column1-404{
  width: 900px;
  height: 390px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.wp-column1-404 .wp-block-group{
  width: 100%;
}
.wp-column1-404 .wp-title-404{
  margin-top: 0;
  margin-bottom: 12px;
}
.wp-column1-404 .wp-text-404{
  margin-top: 0;
  margin-bottom: 18px;
}
.single-post .wp-block-post-content h2,
.single-post .wp-block-post-content h2 span,
.single-post .wp-block-post-content h2 a,
.single-post .wp-block-post-content h2 strong
{
  font-weight: 400 !important;
  color: #0f172a !important;
  font-size: 25px !important;
  padding: 15px 0px 15px 0px;
}
.single-post .wp-block-post-content h3,
.single-post .wp-block-post-content h3 span,
.single-post .wp-block-post-content h3 strong,
.single-post .wp-block-post-content h3 a{
  font-weight: 400 !important;
  color: #0f172a !important;
  font-size: 22px !important;
  padding: 15px 0px 15px 0px;
}
.single-post .wp-block-post-content h4,
.single-post .wp-block-post-content h4 span,
.single-post .wp-block-post-content h4 strong,
.single-post .wp-block-post-content h4 a{
  font-weight: 400 !important;
  color: #0f172a !important;
  font-size: 20px !important;
}
.post-summary .wp-block-post-excerpt__excerpt{
  text-align: left !important;
  line-height: 1.6 !important;
  font-size: 18px !important;
}
.post-summary .wp-block-post-excerpt__excerpt p{
  text-align: left !important;
  line-height: 1.6 !important;
  font-size: 18px !important;
}
.single-post .wp-block-post-content p {
  font-size: 18px;
  line-height: 1.6;
}
.wp-block-comments{
  display: none !important;
}
@media (max-width: 768px) {
    .wp-img-404 {
		margin-top: 20% !important;
    }
	.wp-title-main-post {
		font-size: 25px !important;
	}
}
figure:has(img[src=""]),
figure:has(img:not([src])) {
  display: none;
}