/* ============================================================
   Bruno Salud - Estilos principales
   Versión 1.0 - 2026
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --green-dark:   #2E7D32;
  --green-med:    #388E3C;
  --green-light:  #4CAF50;
  --green-pale:   #E8F5E9;
  --green-hover:  #1B5E20;
  --white:        #ffffff;
  --gray-100:     #f8f9fa;
  --gray-200:     #e9ecef;
  --gray-400:     #adb5bd;
  --gray-600:     #6c757d;
  --gray-800:     #343a40;
  --text:         #333333;
  --topbar-bg:    #1B5E20;
  --header-bg:    #ffffff;
  --footer-bg:    #1B5E20;
  --shadow:       0 2px 8px rgba(0,0,0,.12);
  --shadow-md:    0 4px 16px rgba(0,0,0,.15);
  --radius:       6px;
  --radius-lg:    12px;
  --transition:   .2s ease;
  --font:         'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height:   72px;
}

/* ── Reset base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--text);
  background-color: var(--white);   /* color solamente, no resetea background-image */
  line-height: 1.6;
}

/* Imagen de fondo fija (se activa vía clase en body) */
body.has-bg-image {
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
body.has-bg-image .main-content {
  background: rgba(255,255,255,.92);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-hover); }
ul, ol { padding-left: 1.4rem; }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  background: var(--topbar-bg);
  color: #fff;
  font-size: .85rem;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-info { display: flex; gap: 16px; flex-wrap: wrap; }
.topbar-info span { display: flex; align-items: center; gap: 5px; }
.topbar-info i  { font-size: .8rem; }
.topbar-sep { opacity: .4; }
.topbar-wa {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #25D366;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  transition: background var(--transition);
}
.topbar-wa:hover { background: #128C7E; color: #fff; }

/* ── Header / Navegación ────────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 900;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--nav-height);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.logo-text { line-height: 1.2; }
.logo-title {
  display: block;
  font-size: .85rem;
  color: var(--gray-600);
  letter-spacing: .03em;
}
.logo-title strong {
  font-size: 1rem;
  color: var(--green-dark);
  letter-spacing: .04em;
}
.logo-sub {
  display: block;
  font-size: .7rem;
  color: var(--gray-400);
  line-height: 1.3;
  margin-top: 2px;
}

/* Nav list */
.main-nav { margin-left: auto; }

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-800);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.nav-link:hover,
.nav-item.active > .nav-link {
  color: var(--green-dark);
  background: var(--green-pale);
}
.nav-link .fa-chevron-down { font-size: .65rem; transition: transform var(--transition); }
.nav-item.has-dropdown:hover > .nav-link .fa-chevron-down { transform: rotate(180deg); }

/* Privado */
.nav-privado {
  background: var(--green-dark) !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 6px 14px !important;
}
.nav-privado:hover { background: var(--green-hover) !important; }

/* Dropdown nivel 1 */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 10px 0 6px;   /* padding-top cubre el gap visual sin crear brecha de hover */
  z-index: 9000;
  border-top: 3px solid var(--green-light);
}
.nav-item.has-dropdown:hover > .dropdown,
.nav-item.has-dropdown:focus-within > .dropdown { display: block; }

.dropdown-item { position: relative; }

.dropdown-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 18px;
  font-size: .875rem;
  color: var(--gray-800);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.dropdown-link:hover { background: var(--green-pale); color: var(--green-dark); }
.dropdown-link .fa-chevron-right { font-size: .65rem; }

/* Submenu nivel 2 */
.submenu {
  display: none;
  position: absolute;
  top: 0;
  left: calc(100% - 2px); /* -2px solapa levemente para no dejar brecha */
  min-width: 250px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin: 0;
  padding: 6px 0 6px 2px;
  z-index: 9001;
  border-top: 3px solid var(--green-light);
}
.dropdown-item.has-submenu:hover > .submenu,
.dropdown-item.has-submenu:focus-within > .submenu { display: block; }

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  order: 3;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Banner Slider ──────────────────────────────────────────── */
.banner-slider {
  position: relative;
  overflow: hidden;
  background: #000;
  max-height: 480px;
}
.slides-wrapper { position: relative; }
.slide { display: none; }
.slide.active { display: block; }
.slide img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition);
  z-index: 10;
}
.slider-btn:hover { background: rgba(0,0,0,.7); }
.slider-prev { left: 14px; }
.slider-next { right: 14px; }
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}
.dot.active { background: #fff; }

/* ── Transiciones del slider ─────────────────────────────────── */

/* — corte: sin transición (hereda el display:none/block base) — */

/* — fade: fundido — */
.banner-slider[data-transicion="fade"] .slide,
.banner-slider[data-transicion="zoom"] .slide {
  display: block;
  position: absolute;
  top: 0; left: 0; width: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}
.banner-slider[data-transicion="fade"] .slide.active,
.banner-slider[data-transicion="zoom"] .slide.active {
  position: relative;   /* le da altura al wrapper */
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.banner-slider[data-transicion="fade"] .slide {
  transition: opacity .7s ease;
}

/* — zoom: escala + fundido — */
.banner-slider[data-transicion="zoom"] .slide {
  transform: scale(1.06);
  transition: opacity .7s ease, transform .7s ease;
}
.banner-slider[data-transicion="zoom"] .slide.active {
  transform: scale(1);
  transition: opacity .7s ease, transform .7s ease;
}

/* — slide: deslizamiento horizontal en el wrapper — */
.banner-slider[data-transicion="slide"] .slides-wrapper {
  display: flex;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
}
.banner-slider[data-transicion="slide"] .slide {
  display: block;
  min-width: 100%;
  flex-shrink: 0;
}

/* ── Home contact bar ───────────────────────────────────────── */
.home-contact-bar {
  background: var(--green-pale);
  border-bottom: 3px solid var(--green-light);
  padding: 20px 0;
}
.home-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-item > i {
  font-size: 1.6rem;
  color: var(--green-dark);
}
.contact-item div {
  display: flex;
  flex-direction: column;
  font-size: .9rem;
}
.contact-item strong { font-weight: 600; color: var(--gray-800); }
.contact-item a, .contact-item span { color: var(--gray-600); }
.contact-item a:hover { color: var(--green-dark); }
.btn-wa-home {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-wa-home:hover { background: #128C7E; color: #fff; transform: translateY(-1px); }
.btn-wa-home i { font-size: 1.2rem; }

/* ── Main content ───────────────────────────────────────────── */
.main-content { padding: 40px 0 60px; }

.breadcrumb {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--green-dark); }
.breadcrumb a:hover { text-decoration: underline; }

.page-title {
  font-size: 2rem;
  color: var(--green-dark);
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--green-pale);
}

.page-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 12px 0; }
.page-body video { max-width: 100%; border-radius: var(--radius); }
.page-body iframe { max-width: 100%; border-radius: var(--radius); }
.page-body ul, .page-body ol { margin-bottom: 1rem; }
.page-body li { margin-bottom: .4rem; }

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 20px 0;
  background: #000;
}
.video-responsive iframe,
.video-responsive video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Botón contacto en páginas */
.btn-contacto, .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-dark);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-primary:hover, .btn-contacto:hover {
  background: var(--green-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Formulario de contacto ─────────────────────────────────── */
.contact-form-wrapper { margin-top: 40px; }
.contact-form-wrapper hr { border: none; border-top: 2px solid var(--green-pale); margin-bottom: 28px; }
.contact-form { max-width: 680px; }

.form-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { font-weight: 500; font-size: .9rem; color: var(--gray-800); }
.form-group input,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,.2);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* Alertas */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .9rem;
}
.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.alert-success i { margin-right: 6px; }
.alert-error ul { margin: 0; padding-left: 1.2rem; }

/* ── Bloque pre-footer ───────────────────────────────────────── */
.pre-footer-block {
  background: var(--green-pale);
  border-top: 3px solid var(--green-light);
  padding: 48px 0;
}
.pre-footer-block img { max-width: 100%; height: auto; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.85);
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding: 50px 20px 40px;
}
.footer-title {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  font-weight: 400;
  letter-spacing: .05em;
  margin: 0 0 4px;
  line-height: 1.4;
}
.footer-title strong { color: #fff; font-size: 1.1rem; }
.footer-sub { font-size: .8rem; color: rgba(255,255,255,.5); margin: 0 0 16px; line-height: 1.4; }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--green-light); }

.footer-heading { color: #fff; font-size: .95rem; margin: 0 0 14px; font-weight: 600; }
.footer-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .875rem;
}
.footer-list i { margin-top: 3px; color: var(--green-light); font-size: .85rem; flex-shrink: 0; }
.footer-list a { color: rgba(255,255,255,.8); }
.footer-list a:hover { color: #fff; }
.footer-list span { color: rgba(255,255,255,.7); }

.footer-bottom {
  background: rgba(0,0,0,.2);
  text-align: center;
  padding: 14px 20px;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  z-index: 8000;
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.wa-float:hover { background: #128C7E; color: #fff; transform: scale(1.08); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .submenu { left: auto; right: 100%; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }

  .menu-toggle { display: flex; }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: #fff;
    overflow-y: auto;
    z-index: 850;
    padding: 16px 0 40px;
    border-top: 2px solid var(--green-pale);
  }
  .main-nav.open { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--gray-200); }
  .nav-link { padding: 14px 20px; border-radius: 0; font-size: 1rem; }
  .nav-link .fa-chevron-down { margin-left: auto; }

  /* Dropdowns en mobile: flujo normal (sin position absolute) */
  .nav-item.has-dropdown:hover > .dropdown { display: none; } /* anular hover de desktop */
  .dropdown {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    border-top: none;
    border-left: 3px solid var(--green-light);
    padding: 4px 0;
    min-width: auto;
    background: var(--green-pale);
    margin: 0;
  }
  .nav-item.has-dropdown.open > .dropdown { display: block; }
  .dropdown-item { border-bottom: none; }
  .dropdown-link { padding: 10px 20px 10px 32px; font-size: .9rem; }

  /* Submenus en mobile */
  .dropdown-item.has-submenu:hover > .submenu { display: none; } /* anular hover de desktop */
  .submenu {
    position: static;
    display: none;
    box-shadow: none;
    border-radius: 0;
    border-top: none;
    border-left: 3px solid var(--green-med, #66BB6A);
    padding: 2px 0;
    min-width: auto;
    background: rgba(46,125,50,.07);
    margin: 0;
  }
  .dropdown-item.has-submenu.open > .submenu { display: block; }
  .submenu .dropdown-link { padding-left: 48px; }

  .header-inner { justify-content: space-between; }
  .main-nav { margin-left: 0; }
  .topbar-info { gap: 8px; font-size: .78rem; }
  .topbar-sep { display: none; }
  .banner-slider { max-height: 280px; }
  .slide img { max-height: 280px; }
  .home-contact-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .form-row { grid-template-columns: 1fr; }
  .page-title { font-size: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 28px; }
}

/* ── Galería de fotos (embebida en páginas y standalone) ──────── */
.galeria-embebida { margin: 32px 0; }
.galeria-embebida .galeria-desc { color: #555; margin-bottom: 16px; font-size: .95rem; }
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.galeria-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  background: #ddd;
}
.galeria-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.galeria-item:hover img,
.galeria-item:focus img   { transform: scale(1.07); }
.galeria-item:focus       { outline: 2px solid var(--green-light); }
.galeria-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.38);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.5rem;
  opacity: 0; transition: opacity .25s;
}
.galeria-item:hover .galeria-overlay,
.galeria-item:focus .galeria-overlay { opacity: 1; }

/* Lightbox modal */
.lb-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.60);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box;
}
.lb-panel {
  position: relative;
  background: #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  padding: 48px 56px 20px;
  max-width: min(960px, 100%);
  max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}
.lb-imagen-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100%;
}
.lb-panel img {
  max-width: calc(min(900px, 90vw) - 112px);
  max-height: calc(100vh - 180px);
  object-fit: contain; border-radius: 4px;
  user-select: none; display: block;
}
.lb-count {
  color: rgba(255,255,255,.55);
  font-size: .82rem; margin-top: 12px; text-align: center;
}
.lb-btn-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none;
  color: rgba(255,255,255,.7); font-size: 2rem; line-height: 1;
  cursor: pointer; z-index: 1; transition: color .2s; padding: 4px;
}
.lb-btn-close:hover { color: #fff; }
.lb-btn-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none;
  color: #fff; font-size: 2.4rem; line-height: 1;
  padding: 6px 14px; border-radius: 6px;
  cursor: pointer; z-index: 1;
  transition: background .2s; user-select: none; flex-shrink: 0;
}
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-btn-nav:hover { background: rgba(255,255,255,.25); }

@media (max-width: 600px) {
  .galeria-grid  { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
  .lb-backdrop   { padding: 12px; }
  .lb-panel      { padding: 40px 8px 14px; border-radius: 8px; }
  .lb-panel img  { max-width: calc(100vw - 110px); max-height: calc(100vh - 160px); }
  .lb-btn-nav    { font-size: 1.8rem; padding: 4px 10px; }
}

@media (max-width: 480px) {
  .logo-sub { display: none; }
  .logo-title { font-size: .8rem; }
  .logo-title strong { font-size: .9rem; }
  .logo-icon img { width: 42px; height: 42px; }
}

/* ── CAPTCHA matemático propio ───────────────────────────────────────────────
   Diseño similar a Google reCAPTCHA v2 (300 × ~88px)
   ────────────────────────────────────────────────────────────────────────── */
.captcha-widget {
  display: inline-flex;
  flex-direction: column;
  width: 300px;
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 3px;
  box-shadow: 0 0 4px 1px rgba(0,0,0,.08);
  overflow: hidden;
  font-family: Roboto, Arial, sans-serif;
  margin: 4px 0 8px;
}

.captcha-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 60px;
}

.captcha-shield {
  flex-shrink: 0;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green-pale);
  border-radius: 50%;
  padding: 4px;
}

.captcha-shield svg { display: block; }

.captcha-content { flex: 1; }

.captcha-label {
  margin: 0 0 6px;
  font-size: .7rem;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.captcha-math {
  display: flex;
  align-items: center;
  gap: 7px;
}

.captcha-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
  min-width: 24px;
  text-align: center;
  line-height: 1;
}

.captcha-op {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.captcha-eq {
  font-size: 1.2rem;
  font-weight: 400;
  color: #999;
  line-height: 1;
}

.captcha-input {
  width: 50px;
  height: 36px;
  border: 2px solid #ccc;
  border-radius: 4px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  background: #fff;
  padding: 0;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -moz-appearance: textfield;
}
.captcha-input::-webkit-inner-spin-button,
.captcha-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.captcha-input:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(76,175,80,.18);
}
.captcha-input.captcha-error { border-color: #e53935; }

.captcha-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 5px 10px;
  background: #efefef;
  border-top: 1px solid #e0e0e0;
  font-size: .67rem;
  color: #aaa;
  line-height: 1;
}
.captcha-footer svg { flex-shrink: 0; opacity: .6; }

/* ── Bloques de contenido ───────────────────────────────────────────────── */

/* Bloque en posición fija (pre-footer, post-banner, etc.) */
.bloque-pos {
  width: 100%;
}

/* Zona pre-footer: franja completa antes del footer */
.bloque-pos--pre-footer {
  background: var(--green-pale);
  padding: 40px 0;
}
.bloque-pos--pre-footer > *:first-child { margin-top: 0; }
.bloque-pos--pre-footer > *:last-child  { margin-bottom: 0; }

/* Zona post-banner: debajo del slider */
.bloque-pos--post-banner {
  padding: 28px 0;
}

/* Zona encima y debajo del contenido de la página */
.bloque-pos--encima-contenido,
.bloque-pos--debajo-contenido {
  margin: 24px 0;
}

/* Bloque incrustado dentro del contenido de una página via shortcode */
.bloque-embebido {
  margin: 24px 0;
}
.bloque-embebido > *:first-child { margin-top: 0; }
.bloque-embebido > *:last-child  { margin-bottom: 0; }
