/* Cabecera, podcast y consulta: escala compacta de la revisión integral. */
/* Cabecera fija con fondo verde sólido: logo, contacto y menú siempre visibles. */
:root { --header-h: 64px; --header-ink: #00642f; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
.site-header { position: fixed; z-index: 50; height: var(--header-h); background: var(--green); box-shadow: 0 2px 12px #00331a33; }
.site-header .header-inner { height: 100%; align-items: center; }
.site-header .brand { width: 152px; height: var(--header-h); }
.site-header .header-actions { padding-top: 0; align-items: center; gap: 12px; }
.site-header .header-actions .button { height: 42px; min-height: 42px; padding: 0 18px; background: #fffdf7; color: var(--header-ink); font-weight: 600; transition: background-color .2s; }
.site-header .header-actions .button:hover { background: white; }
.site-header .header-actions .button:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.site-header .wa-icon { width: 20px; height: 20px; background: currentColor; mask: url(whatsapp-icon.svg) center / contain no-repeat; -webkit-mask: url(whatsapp-icon.svg) center / contain no-repeat; }
/* Arriba del todo: transparente y con los botones verdes originales del diseño. */
.site-header { transition: background-color .25s, box-shadow .25s; }
.at-top .site-header { background: transparent; box-shadow: none; }
.at-top .site-header .header-actions .button { background: var(--green); color: white; }
.at-top .site-header .header-actions .button:hover { background: #007e3b; }
.site-header .hamburger { border-block-color: currentColor; }
.site-header .hamburger::after { background: currentColor; }
.home-podcast { padding: 64px 0; background: var(--cream); color: var(--green); }
.podcast-heading { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 32px; }
.podcast-heading h2 { font-size: 28px; line-height: 1.25; font-weight: 700; }
.podcast-mic { width: 28px; height: 32px; flex: none; }
.podcast-mic svg { width: 100%; height: 100%; }
.podcast-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.podcast-card { min-width: 0; overflow: hidden; border: 1px solid #e8dfd0; border-radius: 16px; background: #fffdf9; }
.podcast-card a { display: block; text-decoration: none; }
.podcast-thumbnail { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #e7eadb; }
.podcast-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.podcast-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 48px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e52121; color: white; box-shadow: 0 2px 12px #0002; }
.podcast-play svg { width: 24px; height: 24px; }
.podcast-card h3 { padding: 16px 16px 0; font-size: 17px; font-weight: 700; line-height: 1.35; }
.podcast-card > p { padding: 10px 16px 20px; font-size: 13px; line-height: 1.6; color: #4c5e4e; }
.podcast-card a:focus-visible { outline-offset: -3px; }
.podcast-more { display: flex; justify-content: center; margin-top: 28px; }
.podcast-more .button { min-height: 44px; font-size: 14px; padding: 12px 22px; }
.podcast-empty { text-align: center; max-width: 540px; margin: auto; }
.site-consultation { background: #007e3b; color: white; padding: 48px 0; }
.consultation-grid { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,6fr); align-items: start; gap: 64px; }
.consultation-copy { padding-top: 20px; }
.consultation-copy .wa-icon { width: 30px; height: 30px; margin-bottom: 18px; }
.consultation-copy h2 { max-width: 360px; font-size: 28px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.consultation-copy p { max-width: 340px; margin-top: 20px; font-size: 15px; line-height: 1.6; color: #ffffffe0; }
.consultation-form { color: white; }
.consultation-form .sag-form-row { gap: 16px; }
.consultation-form .sag-field { margin-bottom: 14px; }
.consultation-form .sag-field label { margin-bottom: 5px; color: white; font-size: 13px; font-weight: 500; }
.consultation-form .sag-field :is(input,select,textarea) { min-height: 44px; border-radius: 12px; padding: 10px 14px; border-color: #ffffff70; background: #fffdf9; font-size: 16px; line-height: 1.4; }
.consultation-form .sag-field textarea { min-height: 88px; height: 88px; }
.consultation-form .sag-consent { color: #ffffffed; font-size: 12px; line-height: 1.6; margin: 6px 0 18px; }
.consultation-form .sag-consent input { accent-color: var(--lime); }
.consultation-form .sag-form-submit { width: auto; min-width: 164px; min-height: 44px; padding: 11px 24px; font-size: 14px; font-weight: 700; background: var(--cream); color: #006c34; }
.consultation-form .sag-form-submit:hover { background: white; }
.consultation-form .sag-form-result { font-size: 14px; }
@media (max-width: 1023px) {
  .podcast-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .consultation-grid { gap: 36px; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); }
  .consultation-copy h2 { font-size: 24px; }
}
@media (max-width: 767px) {
  :root { --header-h: 56px; }
  .site-header .brand { width: 96px; height: var(--header-h); }
  .site-header .header-actions { gap: 6px; }
  .site-header .header-actions .button { height: 38px; min-height: 38px; padding: 0 10px; font-size: 11px; gap: 6px; }
  .site-header .header-actions [data-menu-open] { gap: 8px; padding: 0 10px; font-size: 11px; }
  .site-header .header-actions .contact-link { display: inline-flex; }
  .site-header .wa-icon { width: 16px; height: 16px; }
  .site-header .hamburger { width: 16px; height: 12px; }
  .site-header .hamburger::after { top: 3px; width: 11px; }
  .home-podcast { padding: 48px 0; }
  .podcast-heading { gap: 8px; margin-bottom: 24px; justify-content: flex-start; }
  .podcast-heading h2 { font-size: 23px; }
  .podcast-mic { width: 24px; }
  .podcast-grid { gap: 16px; }
  .podcast-card h3 { font-size: 15px; padding: 12px 12px 0; }
  .podcast-card > p { padding: 8px 12px 16px; font-size: 12px; }
  .podcast-play { width: 40px; height: 28px; border-radius: 8px; }
  .site-consultation { padding: 40px 0; }
  .consultation-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .consultation-copy { padding-top: 0; }
  .consultation-copy h2 { font-size: 24px; max-width: 410px; }
  .consultation-copy p { margin-top: 14px; }
  .consultation-copy .wa-icon { margin-bottom: 12px; }
  .consultation-form .sag-form-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
}
@media (max-width: 479px) {
  .podcast-grid { grid-template-columns: minmax(0,1fr); }
  .podcast-card { display: grid; grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 359px) {
  .consultation-form .sag-form-row { grid-template-columns: minmax(0,1fr); gap: 0; }
}
/* Pantallas muy angostas: «Contáctanos» queda como ícono (el texto sigue para lectores de pantalla). */
@media (max-width: 349px) {
  .site-header .header-actions .contact-link { font-size: 0; gap: 0; width: 38px; padding: 0; }
  .site-header .header-actions .contact-link .wa-icon { width: 20px; height: 20px; }
}

/* Blog/archivos vacíos: sin alto mínimo para no dejar un hueco antes del bloque de consulta */
.content-page:has(.empty-state) { min-height: 0; padding-bottom: 48px; }
@media (max-width: 767px) { .content-page:has(.empty-state) { padding-bottom: 32px; } }

/* Home en celular y tablet: las fotos usaban recortes de Figma con object-fit: fill y se estiraban */
@media (max-width: 1199px) {
  .about-home .section-background img { object-fit: cover; object-position: center; }
  .about-photo { overflow: hidden; }
  .about-photo img { inset: 0; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
}
