/* Agregados del tema WordPress sobre main.css (que es copia de styles.css del sitio estático). */

/* ── Selector de idioma (Polylang usa enlaces en vez de botones) ── */
.lang-toggle a {
  color: rgba(255,255,255,.75); text-decoration: none;
  font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 3px;
  transition: all .2s; font-family: 'Roboto', sans-serif; line-height: 1.4;
}
.lang-toggle a:hover { color: white; }
.lang-toggle a.active { background: var(--blue); color: white; }

/* ── Estilos que antes eran inline ── */
.pricing-card-cta { padding: 0 2rem 2rem; }
.pricing-card-cta a { display: block; width: 100%; text-align: center; padding: 12px 20px; font-size: 14px; }
.pricing-cta { text-align: center; margin-top: 2.5rem; }
.pricing-footer { margin-top: 1rem; }
.contact-heading { margin-bottom: 3rem; }
.contact-submit { padding: 14px; font-size: 16px; }
.contact-item-address { font-size: 14px; }
.contact-item-value a { color: inherit; text-decoration: none; }
.track-search .btn-primary { padding: 14px 28px; font-size: 15px; }
.track-help { max-width: 760px; margin: 0 auto; }

/* ── Texto libre en páginas (bloques normales de WordPress) ── */
.pbe-text { background: var(--light); padding: 80px 2rem; }
.pbe-text + .pbe-text { padding-top: 0; }
@media (max-width: 600px) { .pbe-text { padding: 60px 1.25rem; } }

.entry-content > * + * { margin-top: 1rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--dark); line-height: 1.25; margin-top: 2rem; margin-bottom: .5rem; }
.entry-content h2 { font-size: 1.6rem; font-weight: 800; }
.entry-content h3 { font-size: 1.25rem; font-weight: 700; }
.entry-content h4 { font-size: 1.05rem; font-weight: 700; }
.entry-content a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--orange); }
.entry-content a.wp-block-button__link, .entry-content .btn-primary { text-decoration: none; }
.entry-content ul, .entry-content ol { margin: 0 0 1rem 1.5rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content img { max-width: 100%; height: auto; border-radius: 12px; }
.entry-content figure { margin: 1.5rem 0; }
.entry-content figcaption { font-size: 13px; color: var(--mid); text-align: center; margin-top: .5rem; }
.entry-content blockquote {
  border-left: 4px solid var(--orange); background: var(--cream);
  padding: 1rem 1.5rem; border-radius: 0 12px 12px 0; font-style: italic; margin: 1.5rem 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content hr { border: none; border-top: 1px solid rgba(0,0,0,.1); margin: 2rem 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry-content th, .entry-content td { border: 1px solid rgba(0,0,0,.1); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--light); font-weight: 700; }
.entry-content .wp-block-button__link {
  background: var(--orange); color: white; border-radius: 6px; padding: 12px 24px;
  font-weight: 600; font-size: 15px; transition: background .2s;
}
.entry-content .wp-block-button__link:hover { background: var(--orange-dark); color: white; }
.entry-content .is-style-outline .wp-block-button__link { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.entry-content .wp-block-embed iframe { max-width: 100%; }
.entry-content .alignleft { float: left; margin: .25rem 1.5rem 1rem 0; }
.entry-content .alignright { float: right; margin: .25rem 0 1rem 1.5rem; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.has-orange-color { color: var(--orange); } .has-orange-background-color { background-color: var(--orange); }
.has-blue-color { color: var(--blue); } .has-blue-background-color { background-color: var(--blue); }
.has-dark-color { color: var(--dark); } .has-mid-color { color: var(--mid); }
.has-cream-background-color { background-color: var(--cream); } .has-white-color { color: white; }

/* ── Blog ── */
.blog-section { background: var(--light); padding: 80px 2rem; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.post-card {
  background: white; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-media { display: block; aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; }
.post-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: rgba(var(--orange-rgb), .5); }
.post-card-placeholder svg { width: 56px; height: 56px; }
.post-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.post-meta { display: flex; align-items: center; gap: .75rem; font-size: 13px; color: var(--mid); flex-wrap: wrap; }
.post-cat {
  background: rgba(var(--orange-rgb), .12); color: var(--orange-dark); text-decoration: none;
  font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 99px;
}
.post-card-title { font-size: 1.15rem; line-height: 1.3; font-weight: 700; }
.post-card-title a { color: var(--dark); text-decoration: none; }
.post-card-title a:hover { color: var(--orange); }
.post-card-excerpt { color: var(--mid); font-size: 14px; line-height: 1.6; flex: 1; }
.post-card-more { color: var(--orange); font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.post-card-more:hover { gap: 10px; }
.blog-empty { text-align: center; color: var(--mid); }

.blog-pagination { margin-top: 3rem; }
.blog-pagination .nav-links { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; }
.blog-pagination .page-numbers {
  min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: white; color: var(--dark); text-decoration: none; font-weight: 500; font-size: 14px; box-shadow: var(--shadow);
}
.blog-pagination .page-numbers.current { background: var(--orange); color: white; }
.blog-pagination a.page-numbers:hover { color: var(--orange); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

.post-hero-meta { font-size: 15px; }
.post-article { max-width: 820px; }
.post-featured { margin: -3rem -3rem 2rem; }
.post-featured img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px 20px 0 0; display: block; }
.post-tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; }
.post-tags a { background: var(--light); color: var(--mid); text-decoration: none; font-size: 13px; padding: 4px 12px; border-radius: 99px; }
.post-back { margin-top: 2.5rem; font-weight: 600; }
.post-back a { text-decoration: none; }

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .blog-section { padding: 60px 1.25rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .post-featured { margin: -2rem -1.5rem 1.5rem; }
}

/* Barra de administración de WordPress con cabecera fija */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Respuestas del FAQ: el cliente puede escribir textos más largos que los originales */
.faq-answer.open { max-height: 800px; }
