/* ==========================================================================
   Tienda pública — estilos
   --------------------------------------------------------------------------
   Todos los colores, letras y formas vienen de las variables de theme.css.
   Para cambiar la apariencia, edite primero theme.css; use este archivo para
   cambiar la distribución (tamaños, espacios, columnas).

   Índice
     1. Base
     2. Botones
     3. Cabecera
     4. Portada (héroe)
     5. Catálogo y tarjetas de producto
     6. Carrito y ventanas
     7. Formularios y mensajes
     8. Pie de página, WhatsApp e idioma
     9. Chat
    10. Estructura elegida en el constructor (diseno.js)
    11. Celulares
    12. Efectos modernos: fondo con color, cristal, tornasol y neón (variables de theme.css)
   ========================================================================== */


/* 1. Base ------------------------------------------------------------------ */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  line-height: 1.15;
}
img { max-width: 100%; display: block; }

button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; left: -9999px; }


/* 2. Botones --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: 0; border-radius: var(--radius-btn);
  background: var(--primary); color: var(--primary-contrast);
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: transform .12s, filter .2s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.block { width: 100%; }

.icon-btn {
  position: relative;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-btn);
  padding: 8px 14px; cursor: pointer; font-weight: 600;
}
.badge {
  position: absolute; top: -7px; right: -7px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-contrast);
  border-radius: 999px; font-size: .7rem; font-weight: 700;
}


/* 3. Cabecera -------------------------------------------------------------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.no-fija header.top { position: relative; }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; min-height: 68px; }
.h-izq, .h-der { display: flex; align-items: center; gap: 10px; }
.h-izq { order: 0; }
.h-der { order: 3; margin-left: auto; }
.brand {
  order: 1;
  font-size: 1.35rem; letter-spacing: -.01em;
  color: var(--brand-ink, var(--primary)); text-decoration: none;
}
.search { width: 260px; }
.search input {
  width: 100%; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-btn);
  background: var(--surface);
}


/* 4. Portada (héroe) ------------------------------------------------------- */
.hero {
  padding: 84px 0 68px;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
  color: var(--hero-text);
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -.02em; max-width: 16ch; }
.hero p { margin: 16px 0 28px; opacity: .9; max-width: 46ch; font-size: 1.08rem; }
.hero .btn { background: var(--hero-text); color: var(--hero-start); }


/* 5. Catálogo y tarjetas de producto -------------------------------------- */
.section { padding-top: 48px; padding-bottom: 48px; }  /* sin tocar el margen lateral de .wrap */
.section h2 { font-size: 1.7rem; margin-bottom: 20px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip {
  padding: 8px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-btn);
  background: var(--surface); cursor: pointer;
}
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .img {
  position: relative; aspect-ratio: 1 / 1; cursor: pointer; overflow: hidden;
  background: var(--surface-2) center / cover;
}
.card .img > img.foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.card .img > .tag { z-index: 1; }
.card .body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.card h3 { font-size: 1.02rem; }
.card .btn { margin-top: auto; }
.price { font-weight: 800; font-size: 1.12rem; }
.tag {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 10px; border-radius: 999px;
  background: var(--danger); color: var(--danger-contrast, #fff); font-size: .75rem; font-weight: 600;
}
.tag.low { background: var(--warning); color: #111; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }


/* 6. Carrito y ventanas ---------------------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 40; display: none; background: rgba(0, 0, 0, .45); }
.overlay.open { display: block; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(420px, 100%);
  display: flex; flex-direction: column;
  background: var(--surface);
  transform: translateX(100%); transition: transform .25s;
}
.drawer.open { transform: none; }
.drawer header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid var(--border); font-weight: 700;
}
.drawer .items { flex: 1; overflow: auto; padding: 12px 20px; }
.drawer footer { display: grid; gap: 12px; padding: 18px 20px; border-top: 1px solid var(--border); }

.line {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.line .thumb { width: 56px; height: 56px; border-radius: 10px; background: var(--surface-2) center / cover; }
.qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty button {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer;
}
.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; }

.modal { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; padding: 16px; overflow: auto; background: rgba(0, 0, 0, .45); }
.modal.open { display: grid; }
.sheet {
  position: relative; width: 100%; max-width: 560px; padding: 26px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sheet .x { position: absolute; top: 12px; right: 14px; background: none; border: 0; font-size: 1.4rem; cursor: pointer; }


/* 7. Formularios y mensajes ------------------------------------------------ */
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.field input, .field textarea, .field select {
  padding: 11px 13px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 45%, transparent);
  border-color: var(--primary);
}
.pay { display: grid; gap: 8px; margin: 6px 0 14px; }
.pay label {
  display: flex; gap: 10px; align-items: center;
  padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.pay input:checked + span { font-weight: 700; }
.pay label:has(input:checked) { border-color: var(--primary); }

.msg { padding: 12px 14px; border-radius: 10px; margin: 10px 0; font-size: .92rem; }
.msg.err  { background: color-mix(in srgb, var(--danger) 14%, var(--surface));  color: var(--danger); }
.msg.ok   { background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); }
.msg.info { background: color-mix(in srgb, var(--primary) 12%, var(--surface)); color: var(--text); }
.status {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
  font-weight: 700; font-size: .85rem;
}


/* 8. Pie de página, WhatsApp e idioma ------------------------------------- */
footer.site {
  margin-top: 48px; padding: 40px 0;
  background: var(--footer-bg); color: var(--footer-text);
  font-size: .92rem;
}
footer.site .cols { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
footer.site strong { color: inherit; font-weight: 700; }
footer.site a { color: inherit; text-underline-offset: 3px; }

.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  padding: 13px 18px; border-radius: 999px;
  background: #25d366; color: #fff;   /* verde oficial de WhatsApp */
  font-weight: 700; text-decoration: none; box-shadow: var(--shadow);
}

.lang { display: flex; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius-btn); overflow: hidden; }
.lang button { border: 0; background: none; padding: 7px 11px; cursor: pointer; font-weight: 600; font-size: .8rem; }
.lang button.on { background: var(--text); color: var(--bg); }


/* 9. Chat ------------------------------------------------------------------ */
.chat-fab {
  position: fixed; left: 18px; bottom: 18px; z-index: 30;
  padding: 13px 18px; border: 0; border-radius: 999px;
  background: var(--primary); color: var(--primary-contrast);
  font-weight: 700; cursor: pointer; box-shadow: var(--shadow);
}
.chat-fab .dot { display: none; width: 10px; height: 10px; margin-left: 6px; border-radius: 50%; background: var(--accent); }
.chat-fab.new .dot { display: inline-block; }

.chat-panel {
  position: fixed; left: 18px; bottom: 78px; z-index: 45;
  width: min(360px, calc(100vw - 36px)); height: min(520px, calc(100vh - 110px));
  display: none; flex-direction: column; overflow: hidden;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.chat-panel.open { display: flex; }
.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px;
  background: var(--primary); color: var(--primary-contrast); font-weight: 700;
}
.chat-head button { background: none; border: 0; color: inherit; font-size: 1.1rem; cursor: pointer; }
.chat-body { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: .92rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.customer { align-self: flex-end; background: var(--primary); color: var(--primary-contrast); border-bottom-right-radius: 4px; }
.bubble.bot, .bubble.agent { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble.agent { border-color: var(--accent); }
.bubble small { display: block; font-size: .7rem; opacity: .65; margin-bottom: 2px; }
.chat-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.chat-foot input { flex: 1; padding: 10px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.chat-pick { display: grid; gap: 8px; }
.chat-pick button {
  text-align: left; padding: 12px 14px; cursor: pointer; font-weight: 600;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.chat-pick button:hover { border-color: var(--primary); }
.chat-form { display: grid; gap: 8px; padding: 14px; }
.chat-form input { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }


/* 10. Estructura elegida en el constructor (diseno.js) ------------------- */
[hidden] { display: none !important; }

/* Barra de anuncio */
.anuncio {
  padding: 8px 16px; text-align: center; font-size: .88rem; font-weight: 600;
  background: var(--primary); color: var(--primary-contrast);
}

/* Logo */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; max-width: 180px; object-fit: contain; }

/* Menú: posición (linea | debajo | franja | lateral | oculto), alineación y tipo */
.menu { order: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.menu > a, .menu .m-sin, .dd-btn {
  display: inline-block; padding: 8px 12px; border-radius: var(--radius-btn); text-decoration: none;
  font-weight: 600; font-size: .95rem; background: none; border: 0; cursor: pointer; color: inherit;
}
.menu > a:hover, .dd-btn:hover { background: var(--surface-2); }
.menu a.activo, .menu-lat a.activo { color: var(--primary-ink, var(--primary)); }
.al-izquierda .menu { justify-content: flex-start; }
.al-centro .menu { justify-content: center; }
.al-derecha .menu { justify-content: flex-end; }
.menu-linea .menu { flex: 1; }
.menu-debajo .menu, .menu-franja .menu { order: 10; flex-basis: 100%; padding: 4px 0 8px; }
.menu-franja header.top { border-bottom: 0; }
.menu-franja .menu { position: relative; padding: 4px 0; }
.menu-franja .menu::before {  /* franja de color de borde a borde (sin cortar los submenús) */
  content: ""; position: absolute; top: 0; bottom: 0; left: -100vmax; right: -100vmax; z-index: -1; background: var(--primary);
}
.menu-open .menu::before { display: none; }
body.menu-franja:not(.menu-open) .menu > a, body.menu-franja:not(.menu-open) .menu > .m-sin, body.menu-franja:not(.menu-open) .menu > .dd > .dd-btn { color: var(--primary-contrast); }
.menu-franja .menu > a:hover, .menu-franja .dd-btn:hover { background: rgba(255, 255, 255, .16); }
.menu-lateral .menu, .menu-oculto .menu { display: none; }
.burger { display: none; font-size: 1.15rem; line-height: 1; }
.menu-oculto .burger { display: inline-block; }

/* Submenús desplegables y menú grande */
.dd { position: relative; }
.dd-menu {
  position: absolute; top: 100%; left: 0; z-index: 30; min-width: 210px;
  display: none; flex-direction: column; padding: 6px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.dd-menu a, .dd-menu .m-sin { padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.dd-menu a:hover { background: var(--surface-2); }
.al-derecha .dd-menu { left: auto; right: 0; }
.dd.open .dd-menu { display: flex; }
@media (hover: hover) and (min-width: 901px) { .dd:hover .dd-menu { display: flex; } }
.dd.mega { position: static; }
.mega .dd-menu { left: 0; right: 0; padding: 18px max(20px, calc((100% - var(--maxw)) / 2)); border-radius: 0 0 var(--radius) var(--radius); }
.dd.mega.open .dd-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (hover: hover) and (min-width: 901px) { .dd.mega:hover .dd-menu { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; } }
.mega-item { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.mega-item i { display: block; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--surface-2) center / cover; }
.mega-item b { font-weight: 600; font-size: .92rem; }

/* Menú lateral (columna fija a la izquierda) */
.cuerpo { flex: 1; }
.menu-lateral .cuerpo { display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.lateral {
  position: sticky; top: var(--hh, 68px); align-self: start; max-height: calc(100vh - var(--hh, 68px)); overflow: auto;
  padding: 22px 12px; border-right: 1px solid var(--border); background: var(--surface);
}
.no-fija .lateral { top: 0; max-height: 100vh; }
.menu-lat { display: flex; flex-direction: column; gap: 2px; }
.menu-lat a, .menu-lat .m-sin { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.menu-lat a:hover { background: var(--surface-2); }
.menu-lat .m-hijos { display: flex; flex-direction: column; margin: 2px 0 8px 14px; padding-left: 8px; border-left: 2px solid var(--border); }
.menu-lat .m-hijos a { font-weight: 500; font-size: .92rem; padding: 6px 10px; }

/* Logo al centro */
.logo-centro header.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; padding-top: 10px; }
.logo-centro .h-izq { grid-column: 1; grid-row: 1; }
.logo-centro .brand { grid-column: 2; grid-row: 1; justify-self: center; font-size: 1.6rem; }
.logo-centro .h-der { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; }
.logo-centro .menu { grid-column: 1 / -1; grid-row: 2; }
.logo-centro .search { width: 200px; }

/* Menú abierto con ☰ (celulares y menú oculto) */
.menu-open .menu {
  display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap;
  position: absolute; left: 0; right: 0; top: 100%; z-index: 25; padding: 10px 16px 16px;
  max-height: calc(100vh - var(--hh, 68px)); overflow: auto;
  background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
}
body.menu-open .menu a, body.menu-open .menu .dd-btn, body.menu-open .menu .m-sin { color: var(--text); text-align: left; }
.menu-open .dd { position: static; }
.menu-open .dd-menu, .menu-open .dd.mega .dd-menu { position: static; display: flex; flex-direction: column; box-shadow: none; border: 0; padding: 0 0 6px 14px; }
.menu-open .mega-item { flex-direction: row; padding: 6px 12px; }
.menu-open .mega-item i { display: none; }

/* Encabezado de cada página */
.page-head { padding-top: 34px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.migas { color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.migas a { text-decoration: none; }
.page-head + .section { padding-top: 22px; }

/* Bloques: texto e imagen, preguntas frecuentes, formulario y galería */
.bloque-texto h2 { margin-bottom: 12px; }
.bloque-texto.con-img { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.bloque-texto.con-img img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.bloque-texto.lado-izquierda img { order: -1; }
.bloque-texto.lado-derecha img { order: 2; }
.bloque-texto.lado-arriba { grid-template-columns: 1fr; }
.bloque-texto.lado-arriba img { max-height: 460px; }
.faq h2 { margin-bottom: 14px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 10px; }
.faq summary { padding: 14px 18px; font-weight: 600; cursor: pointer; }
.faq details .texto { padding: 0 18px 16px; color: var(--muted); }
.form-contacto { max-width: 680px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.form-contacto h2 { margin-bottom: 6px; }
.form-contacto .muted { color: var(--muted); margin-bottom: 14px; }
.form-contacto .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.galeria.cols-2 { grid-template-columns: repeat(2, 1fr); }
.galeria.cols-4 { grid-template-columns: repeat(4, 1fr); }
.galeria button { aspect-ratio: 1; border: 0; padding: 0; cursor: zoom-in; border-radius: var(--radius); background: var(--surface-2) center / cover; }
.foto-grande { width: 100%; max-height: 80vh; object-fit: contain; border-radius: var(--radius); }

/* Portadas */
.hero-imagen { background-size: cover; background-position: center; color: #fff; padding: 120px 0 100px; }
.hero-imagen .btn { background: #fff; color: #111; }
.hero-sencilla { background: var(--bg); color: var(--text); text-align: center; padding: 72px 0 40px; }
.hero-sencilla h1, .hero-sencilla p { margin-left: auto; margin-right: auto; }
.hero-sencilla .btn { background: var(--primary); color: var(--primary-contrast); }
.hero-dividida { padding: 48px 0; background: var(--surface-2); }
.hero-dividida .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-dividida h1 { font-size: clamp(2rem, 4.5vw, 3.3rem); letter-spacing: -.02em; }
.hero-dividida p { margin: 14px 0 24px; color: var(--muted); font-size: 1.05rem; max-width: 44ch; }
.hero-foto { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--surface) center / cover; }
.hero-mosaico { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-mosaico div { aspect-ratio: 1; border-radius: var(--radius); background: var(--surface) center / cover; }
/* Recuadro: el texto en una tarjeta clara sobre el color principal o la foto */
.hero-recuadro { padding: 96px 0; background-size: cover; background-position: center; }
.hero-recuadro .recuadro { max-width: 560px; padding: 36px 34px; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-recuadro .recuadro h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.hero-recuadro .recuadro p { color: var(--muted); opacity: 1; margin: 12px 0 22px; }
/* Título grande, estilo revista */
.hero-editorial { padding: 84px 0 52px; border-bottom: 1px solid var(--border); }
.hero-editorial h1 { font-size: clamp(2.8rem, 9vw, 6.4rem); line-height: .98; letter-spacing: -.04em; max-width: 13ch; }
.hero-editorial p { margin: 22px 0 28px; color: var(--muted); font-size: 1.15rem; max-width: 52ch; }
/* Vitrina: título centrado y tres productos debajo */
.hero-vitrina { padding: 64px 0 40px; text-align: center; }
.hero-vitrina .hv-texto h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.02em; max-width: 20ch; margin: 0 auto; }
.hero-vitrina .hv-texto p { margin: 14px auto 24px; color: var(--muted); max-width: 52ch; font-size: 1.08rem; }
.hv-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.hv-prod { display: grid; gap: 4px; text-decoration: none; color: var(--text); }
.hv-foto { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--surface-2) center / cover; transition: transform .25s; }
.hv-prod:hover .hv-foto { transform: translateY(-4px); }
.hv-prod b { margin-top: 8px; font-size: 1rem; }
.hv-prod small { color: var(--muted); }

/* Banners rotativos */
.banners { position: relative; overflow: hidden; background: var(--surface-2); }
.banners-sec.con-margen { margin-top: 22px; }
.banners-sec.con-margen .banners { border-radius: var(--radius); }
.b-pista { display: flex; transition: transform .6s ease; }
.b-slide { flex: 0 0 100%; aspect-ratio: 16 / 6; }
.b-delgado .b-slide { aspect-ratio: 16 / 5; }
.b-alto .b-slide { aspect-ratio: 16 / 9; }
.b-slide a, .b-slide img { display: block; width: 100%; height: 100%; }
.b-slide img { object-fit: cover; }
.b-flecha {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .85); color: #111; font-size: 1.6rem; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  opacity: 0; transition: opacity .2s;
}
.banners:hover .b-flecha { opacity: 1; }
.b-prev { left: 14px; } .b-next { right: 14px; }
.b-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.b-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 2px solid #111; background: rgba(255, 255, 255, .8); cursor: pointer; }
.b-dots button.on { background: #111; }

/* Beneficios */
.beneficios { border-bottom: 1px solid var(--border); background: var(--surface); }
.beneficios .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.beneficios div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.beneficios span { grid-row: span 2; font-size: 1.7rem; }
.beneficios small { color: var(--muted); }

/* Categorías en mosaico */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cat-tile {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: flex-end;
  border-radius: var(--radius); background: var(--surface-2) center / cover; text-decoration: none;
}
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .6)); }
.cat-tile span { position: relative; z-index: 1; padding: 14px 16px; color: #fff; font-weight: 700; font-size: 1.15rem; }

/* Tarjetas de producto: variantes */
.card h3 { cursor: pointer; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover, .card h3 a:focus-visible { text-decoration: underline; }
.tarjeta-minimal .card { border: 0; background: transparent; }
.tarjeta-minimal .card:hover { box-shadow: none; }
.tarjeta-minimal .card .img { border-radius: var(--radius); }
.tarjeta-minimal .card .body { padding: 12px 2px 0; }
.tarjeta-minimal .card .btn { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 8px 14px; }
.tarjeta-marco .card { padding: 10px; box-shadow: var(--shadow); text-align: center; }
.tarjeta-marco .card .img { border-radius: calc(var(--radius) * .7); }
.tarjeta-marco .card .body { align-items: center; }
/* Sobre la foto: nombre, precio y botón encima de la foto, sobre una sombra oscura */
.tarjeta-superpuesta .card { display: grid; border: 0; }
.tarjeta-superpuesta .card > .img, .tarjeta-superpuesta .card > .body { grid-area: 1 / 1; }
.tarjeta-superpuesta .card .img { aspect-ratio: 4 / 5; }
.tarjeta-superpuesta .card .body { align-self: end; z-index: 1; padding: 56px 14px 14px; color: #fff; pointer-events: none;
  background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .8) 48%); }
.tarjeta-superpuesta .card .body a, .tarjeta-superpuesta .card .body button { pointer-events: auto; }
.tarjeta-superpuesta .card .price, .tarjeta-superpuesta .card .precio-pago b { color: #fff; }
.tarjeta-superpuesta .card .antes, .tarjeta-superpuesta .card .periodo, .tarjeta-superpuesta .card .desde,
.tarjeta-superpuesta .card .precio-pago { color: rgba(255, 255, 255, .85); }
.tarjeta-superpuesta .card .ahorro { color: #fecaca; }
/* En lista: foto pequeña a la izquierda */
.grid.tarjeta-lista, .grid.cols-3.tarjeta-lista, .grid.cols-4.tarjeta-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tarjeta-lista .card { flex-direction: row; }
.tarjeta-lista .card .img { flex: 0 0 38%; aspect-ratio: 1; }
.tarjeta-lista .card .body { padding: 14px 16px; }
.tarjeta-lista .card .btn { align-self: flex-start; padding: 9px 16px; }
/* Compacta: una columna más y todo más pequeño (mercados, ferreterías) */
.grid.cols-4.tarjeta-compacta { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid.cols-3.tarjeta-compacta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-2.tarjeta-compacta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.tarjeta-compacta { gap: 12px; }
.tarjeta-compacta .card .img { margin: 8px 8px 0; border-radius: calc(var(--radius) * .6); background-color: var(--surface-2); }
.tarjeta-compacta .card .body { padding: 8px 10px 10px; gap: 3px; }
.tarjeta-compacta .card h3 { font-size: .9rem; }
.tarjeta-compacta .card .price { font-size: 1rem; }
.tarjeta-compacta .card .btn { padding: 7px 10px; font-size: .85rem; }

/* Filtros a un lado */
.with-side { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.side-filters { position: sticky; top: 90px; }
.side-filters .chips { flex-direction: column; align-items: stretch; }
.side-filters .chip { text-align: left; border-radius: 10px; }

/* Nosotros, contacto y páginas de texto */
.nosotros p { max-width: 70ch; margin-bottom: 18px; white-space: pre-line; }
.contacto {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.contacto p { margin-top: 6px; }
.pagina { max-width: 820px; }
.texto { white-space: pre-line; max-width: 75ch; }
.lookup { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.lookup input { flex: 1; min-width: 180px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.ficha-img { aspect-ratio: 4 / 3; margin: 8px 0 14px; border-radius: var(--radius); background: var(--surface-2) center / contain no-repeat; }
.ficha-img { overflow: hidden; position: relative; }
.ficha-img > img { width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
/* Galería: flechas sobre la foto, tira de miniaturas y zoom a pantalla completa */
.ficha-galeria .ficha-img { margin-bottom: 8px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: color-mix(in srgb, var(--surface, #fff) 85%, transparent); color: var(--text); font-size: 1.6rem; line-height: 1;
  cursor: pointer; box-shadow: 0 1px 6px rgba(0,0,0,.15); opacity: .85; }
.gal-nav:hover, .gal-nav:focus-visible { opacity: 1; }
.gal-nav.ant { left: 8px; } .gal-nav.sig { right: 8px; }
.ficha-tira { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 8px; scroll-snap-type: x mandatory; }
.ficha-tira button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); cursor: pointer; scroll-snap-align: start; opacity: .7; }
.ficha-tira button.on { border-color: var(--accent); opacity: 1; }
.ficha-tira img { width: 100%; height: 100%; object-fit: cover; display: block; }
.zoom { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; overflow: auto; }
.zoom > img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; touch-action: pan-x pan-y pinch-zoom; }
.zoom.cerca { align-items: flex-start; justify-content: flex-start; }
.zoom.cerca > img { max-width: none; max-height: none; cursor: zoom-out; }
.zoom-x { position: fixed; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15);
  color: #fff; font-size: 1.3rem; cursor: pointer; }
.zoom .gal-nav { position: fixed; background: rgba(255,255,255,.15); color: #fff; }
@media (hover: none) { .ficha-galeria .gal-nav { display: none; } .zoom .gal-nav { display: block; } }
.acepto { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 12px; font-size: .88rem; color: var(--muted); }
.acepto input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--primary); }

/* Pie: textos legales y versión sencilla */
footer.site .legal {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 26px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, currentColor 20%, transparent); font-size: .82rem;
}
.pie-sencillo footer.site { padding: 22px 0; }
.pie-sencillo footer.site .legal { margin-top: 12px; padding-top: 10px; }


/* 10b. Tipos de producto, citas, descargas, cuenta y pagos ------------------- */
.card .tag.tipo { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.price .periodo, .periodo { font-size: .8em; color: var(--muted); font-weight: 500; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.etiqueta { display: inline-block; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); color: var(--text); font-size: .82rem; }
.compat { font-size: .9rem; margin: -6px 0 14px; color: var(--muted); }
.agenda { display: grid; gap: 8px; margin: 4px 0 14px; }
.ag-dias, .ag-horas { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-dias .chip, .ag-horas .chip { font-size: .85rem; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.total-row.sub { font-size: .92rem; color: var(--muted); font-weight: 500; }
.vehiculo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-bg, var(--surface)); }
.vehiculo select, .vehiculo input { padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--bg); color: var(--text); min-width: 130px; flex: 1; }
.vehiculo b { flex-basis: 100%; }
.vehiculo-activo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.veh-bloque .vehiculo { margin: 0; }
.qr { display: block; max-width: 220px; margin: 12px auto 0; border-radius: 12px; background: #fff; padding: 8px; }
.comprobante { margin-top: 10px; }
.comprobante label.btn { cursor: pointer; }
.pedido-full .o-items { display: grid; gap: 12px; margin: 16px 0; }
.o-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; background: var(--card-bg, var(--surface)); }
.o-cab { display: flex; gap: 10px; align-items: baseline; }
.o-cab span { margin-left: auto; font-weight: 600; }
.licencia { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.licencia code { font-size: 1.05rem; padding: 6px 10px; border-radius: 8px; background: var(--bg); border: 1px dashed var(--border); letter-spacing: .04em; }
.licencia > small:first-child { flex-basis: 100%; color: var(--muted); }
.descargas { display: grid; gap: 8px; }
.descargas .arch { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--border); }
.descargas .arch .btn { padding: 8px 14px; text-decoration: none; }
.pagar-form { display: grid; gap: 10px; margin: 14px 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); }
.cu-lista { display: grid; gap: 8px; margin-top: 10px; }
.cu-ped { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; background: var(--card-bg, var(--surface)); }
.cu-ped:hover { border-color: var(--primary); }
.cuenta-btn { text-decoration: none; }

.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 22px 0 6px; }
.pager .chip { min-width: 38px; }
.pager small { flex-basis: 100%; text-align: center; }
.pager-gap { color: var(--muted); padding: 0 2px; }
.legal .credito, .legal .credito a { opacity: .75; }

/* 11. Celulares ------------------------------------------------------------ */
@media (max-width: 900px) {
  .grid, .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3.tarjeta-compacta, .grid.cols-4.tarjeta-compacta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .burger { display: inline-block; }
  .menu { display: none; }
  .menu-lateral .cuerpo { display: block; }
  .menu-lateral .lateral { display: none; }
  .logo-centro .search { display: none; }
  .bloque-texto.con-img { grid-template-columns: 1fr; }
  .bloque-texto.con-img img { order: -1; }
  .with-side { grid-template-columns: 1fr; }
  .side-filters { position: static; }
  .side-filters .chips { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .search { display: none; }
  header.top .wrap { gap: 10px; }
  .hero { padding: 52px 0 44px; }
  .chat-panel { left: 8px; right: 8px; width: auto; }
  .grid, .grid.cols-2, .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .grid.tarjeta-lista, .grid.cols-3.tarjeta-lista, .grid.cols-4.tarjeta-lista { grid-template-columns: 1fr; }
  .grid.cols-2.tarjeta-compacta, .grid.cols-3.tarjeta-compacta, .grid.cols-4.tarjeta-compacta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv-prods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .hv-prod b { font-size: .85rem; }
  .hero-recuadro { padding: 48px 0; }
  .hero-recuadro .recuadro { padding: 24px 20px; }
  .hero-dividida .wrap { grid-template-columns: 1fr; }
  .beneficios .wrap { grid-template-columns: 1fr; gap: 12px; }
  .logo-centro .lang { display: none; }
  .form-contacto .f2 { grid-template-columns: 1fr; }
  .galeria, .galeria.cols-3, .galeria.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .brand img { height: 34px; }
  .b-flecha { display: none; }
  .b-dots button { width: 10px; height: 10px; }
}
.grid .empty { grid-column: 1 / -1; }


/* Botones de WhatsApp con mensaje ya escrito */
.wa-btn { margin-top: 10px; text-decoration: none; }
.wa-btn::first-letter { margin-right: 2px; }

/* Redes sociales */
.redes { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.red {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent); color: inherit; text-decoration: none;
  transition: transform .15s, background .15s;
}
.red:hover { transform: translateY(-2px); background: color-mix(in srgb, currentColor 12%, transparent); }
.contacto .redes .red { color: var(--primary-ink, var(--primary)); }
.pie-der { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pie-der .redes { margin-top: 0; }

/* 12. Efectos modernos ----------------------------------------------------
   Los activa theme.css (estilos Cristal, Holográfico, Neón, Aurora...). Con un estilo
   clásico las variables valen "liso", "0px" o "transparent" y todo se ve plano. */
body {
  background: var(--page-bg, var(--bg));
  background-size: var(--page-size, auto);
  background-attachment: fixed;
  animation: var(--page-anim, none);
}
@keyframes fondo-aurora {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 60%; }
  100% { background-position: 30% 100%; }
}
@keyframes brillo-tornasol { to { background-position: 220% 0; } }

/* Cristal: superficies translúcidas con desenfoque */
header.top {
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(var(--blur, 0px)) saturate(1.5); backdrop-filter: blur(var(--blur, 0px)) saturate(1.5);
  border-bottom-color: var(--glass-border, var(--border));
}
.card, .contacto, .form-contacto, .faq details, .beneficios, .lateral, .chip, .search input, .icon-btn, .lang, .lookup input {
  background-color: var(--card-bg, var(--surface));
  border-color: var(--glass-border, var(--border));
  -webkit-backdrop-filter: blur(var(--blur, 0px)); backdrop-filter: blur(var(--blur, 0px));
}
.hero-sencilla, .hero-dividida { background: transparent; }
.card:hover { box-shadow: var(--card-glow, 0 0 0 0 transparent), var(--shadow); }

/* Tornasol y neón: botones, chips activos, aviso superior, portada y títulos */
.btn, .chip.on, .anuncio, .b-dots button.on {
  background: var(--btn-bg, var(--primary));
  background-size: var(--btn-size, 100% 100%);
  color: var(--btn-text, var(--primary-contrast));
  animation: var(--shimmer, none);
}
.chip.on { border-color: transparent; }
.btn { box-shadow: var(--glow, 0 0 0 0 transparent); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: none; animation: none; }
.hero { background: var(--hero-bg, linear-gradient(135deg, var(--hero-start), var(--hero-end))); }
.hero .btn { background: var(--hero-btn-bg, var(--hero-text)); background-size: var(--btn-size, 100% 100%); color: var(--hero-btn-text, var(--hero-start)); }
.hero h1, .page-head h1, .brand, .section h2 { text-shadow: var(--text-glow, none); }
/* Portadas sin fondo de color o con foto: el botón no toma los colores de la portada de color */
.hero.hero-sencilla .btn { background: var(--btn-bg, var(--primary)); background-size: var(--btn-size, 100% 100%); color: var(--btn-text, var(--primary-contrast)); }
.hero.hero-imagen .btn { background: #fff; color: #111; animation: none; }
.hero.hero-recuadro .btn { background: var(--btn-bg, var(--primary)); background-size: var(--btn-size, 100% 100%); color: var(--btn-text, var(--primary-contrast)); }
.hero-recuadro .recuadro h1 { text-shadow: none; }
.badge { box-shadow: var(--glow, 0 0 0 0 transparent); }

@media (prefers-reduced-motion: reduce) {
  body, .btn, .chip.on, .anuncio { animation: none !important; }
}

/* Ofertas y cupones */
.antes { color: var(--muted); font-weight: 500; font-size: .85em; }
/* «$95.000 pagando por transferencia» debajo del precio */
.precio-pago { font-size: .82rem; color: var(--muted); line-height: 1.3; }
.precio-pago b { color: var(--text); font-size: .95rem; }
.ahorro { color: var(--danger, #dc2626); font-weight: 700; font-size: .78em; }
.cupon-box { display: flex; gap: 8px; margin: 4px 0 10px; }
.cupon-box input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius, 10px); background: var(--surface, transparent); color: inherit; font: inherit; text-transform: uppercase; }
.resumen { margin: 0 0 14px; }
.resumen:empty { display: none; }
.total-row.desc span:last-child { color: var(--ok, #16a34a); font-weight: 600; }
.cupon-ok { color: var(--ok, #16a34a); font-size: .85rem; margin-top: 4px; }
.cupon-err { color: var(--danger, #dc2626); font-size: .85rem; margin-top: 4px; }
.envio-gratis { font-size: .85rem; color: var(--muted); margin: 0 0 8px; }
.envio-gratis.ok { color: var(--ok, #16a34a); font-weight: 600; }
.cupon-box input::placeholder { text-transform: none; }
/* Variantes */
.opc { margin: 0 0 12px; }
.opc b { display: block; font-size: .85rem; margin-bottom: 6px; }
.opc-vals { display: flex; flex-wrap: wrap; gap: 6px; }
.opc-vals .chip:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.desde { font-size: .75em; color: var(--muted); font-weight: 500; }

/* Protección contra spam: campo trampa que una persona no ve, y la casilla de Turnstile si aparece */
.trampa { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ts-caja { position: fixed; right: 16px; bottom: 16px; z-index: 1000; }
.ts-caja:empty { display: none; }

/* Aviso de cookies (solo si la tienda usa estadísticas) */
.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; max-width: 720px; margin: 0 auto; padding: 16px 18px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .92rem; }
.cookies p { margin: 0 0 10px; }
.cookies a { text-decoration: underline; }
.ck-ops { display: grid; gap: 8px; margin: 0 0 12px; }
.ck-ops label { display: flex; gap: 8px; align-items: flex-start; }
.ck-ops small { display: block; color: var(--muted); }
.ck-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ck-btns .btn { padding: 9px 16px; }

/* Envío con transportadora: opciones en el checkout y estado en la página del pedido */
.envios label > span { flex: 1; }
.envio-precio { float: right; margin-left: 10px; }
.envio-box { display: grid; gap: 6px; margin: 12px 0 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card-bg, var(--surface)); }
.envio-box .btn { justify-self: start; padding: 8px 14px; text-decoration: none; }
select:disabled { opacity: .6; }
/* Restaurante: adiciones y opciones del plato */
.extras { display: grid; gap: 12px; margin: 4px 0 14px; }
.ex-grupo { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px 10px; margin: 0; }
.ex-grupo legend { padding: 0 6px; }
.ex-op { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.ex-op span { flex: 1; }
.ex-op small { color: var(--muted); }
.ex-total { margin: 0; }
.ex-linea { display: block; white-space: normal; }
.cuando [data-prog] { margin-top: 8px; }
/* Reservas por noches o días: calendario del mes */
.estadia { display: grid; gap: 8px; margin: 4px 0 14px; }
.est-horas { margin: 0; font-size: .9rem; }
.est-mes { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.est-mes b { display: inline-block; }
.est-mes b::first-letter { text-transform: uppercase; }
.est-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.est-grid i { font-style: normal; text-align: center; font-size: .75rem; color: var(--muted); padding: 2px 0; }
.est-grid button { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; padding: 2px 0;
  border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; font: inherit; line-height: 1.1; }
.est-grid button small { font-size: .62rem; color: var(--muted); }
.est-grid button:disabled { opacity: .35; cursor: not-allowed; }
.est-grid button.lleno b { text-decoration: line-through; }
.est-grid button.en { background: color-mix(in srgb, var(--primary) 14%, transparent); border-color: transparent; }
.est-grid button.ini, .est-grid button.fin { background: var(--primary); border-color: var(--primary); color: var(--primary-contrast); opacity: 1; }
.est-grid button.ini small, .est-grid button.fin small { color: inherit; }
.est-res p { margin: 4px 0 0; }
/* Inmobiliaria: filtros, tarjeta y ficha */
.inm-filtro { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 16px; }
.inm-filtro select, .inm-filtro input { padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; min-width: 0; }
.inm-filtro input { width: 150px; }
.inm-lugar { margin: 2px 0; color: var(--muted); font-size: .9rem; }
.inm-datos { margin: 2px 0 6px; font-size: .88rem; }
.inm-ficha { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.inm-ficha div { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; display: grid; }
.inm-ficha small { color: var(--muted); font-size: .75rem; }
.inm-car { margin: 0 0 12px; }
.inm-visita { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 8px; }
.inm-visita h3 { margin: 0 0 10px; }
@media (max-width: 560px) { .inm-filtro select, .inm-filtro input { flex: 1 1 45%; width: auto; } }
/* Eventos: funciones, tipos de boleta y boletas con código de barras */
.evento { display: grid; gap: 8px; margin: 4px 0 14px; }
.evento p { margin: 0; }
.ev-funciones { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-funciones .chip:disabled { opacity: .4; cursor: not-allowed; }
.ev-total { display: grid; align-content: end; padding-bottom: 12px; }
.boletas { display: grid; gap: 10px; margin: 8px 0; }
.boleta { border: 1px dashed var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: var(--surface); }
.boleta > div:first-child { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.boleta .bc { display: grid; justify-items: center; gap: 4px; background: #fff; border-radius: 8px; padding: 8px; }
.boleta .bc svg { max-width: 100%; height: 64px; }
.boleta .bc code { color: #000; letter-spacing: .18em; font-size: 1rem; }
@media print {
  body * { visibility: hidden; }
  .boletas, .boletas * { visibility: visible; }
  .boletas { position: absolute; inset: 0; }
  .boletas .btn { display: none; }
  .boleta { break-inside: avoid; }
}
/* Vitrina: servicios y planes con precio que no se compran aquí */
.a-convenir { font-size: .95rem; color: var(--muted); font-weight: 600; }
.vit-car { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 4px; font-size: .9rem; }
.vit-car li { padding-left: 22px; position: relative; }
.vit-car li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.card-vit.recomendado { outline: 2px solid var(--primary); outline-offset: -2px; }
/* Contenido: videos, podcast y artículos */
.cont-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 14px; }
.cont-card { display: grid; gap: 6px; color: var(--text); text-decoration: none; }
.cont-card:hover strong { color: var(--primary); }
.cont-img { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--surface-2) center / cover no-repeat; overflow: hidden; }
.cont-img.sin { background-image: linear-gradient(135deg, var(--primary), var(--hero-end)); }
.cont-ico { position: absolute; left: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, .62); color: #fff; font-size: 1rem; }
.cont-dur { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .7); color: #fff; font-size: .75rem; padding: 2px 7px; border-radius: 6px; }
.cont-meta { color: var(--muted); font-size: .82rem; }
.cont-card strong { font-size: 1.05rem; line-height: 1.3; }
.cont-res { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.publicacion { max-width: 820px; }
.publicacion h1 { margin: 6px 0 4px; line-height: 1.15; }
.cont-medio { margin: 18px 0; }
.cont-fachada, .cont-iframe, .cont-video { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }
.cont-fachada { position: relative; cursor: pointer; background: #111 center / cover no-repeat; padding: 0; }
.cont-fachada::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .45)); }
.cont-play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: var(--primary-contrast); font-size: 1.8rem; box-shadow: 0 8px 30px rgba(0, 0, 0, .35); transition: transform .15s; }
.cont-fachada:hover .cont-play, .cont-fachada:focus-visible .cont-play { transform: translate(-50%, -50%) scale(1.08); }
.cont-iframe-audio { width: 100%; height: 166px; border: 0; border-radius: 12px; }
.cont-iframe-audio.p-spotify { height: 232px; }
.cont-iframe-audio.p-apple { height: 175px; }
.cont-audio { width: 100%; }
.cont-portada { width: 100%; border-radius: var(--radius); margin: 18px 0; }
.cont-lead { font-size: 1.12rem; color: var(--muted); }
.texto-rico { line-height: 1.7; }
.texto-rico h2 { margin: 26px 0 8px; font-size: 1.35rem; }
.texto-rico h3 { margin: 20px 0 6px; font-size: 1.12rem; }
.compartir { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 26px 0; padding-top: 16px; border-top: 1px solid var(--border); }
#contRel h2 { margin-top: 10px; }
.card-vit.sin-foto { padding-top: 6px; }
.card-vit.sin-foto > .tag { position: static; display: inline-block; margin: 12px 16px 0; }
.card-vit .body { display: flex; flex-direction: column; flex: 1; }
.card-vit .body .btn { margin-top: auto; }
.compartir a.chip { text-decoration: none; }
/* Bloques de página web: planes, equipo, proceso, cifras, opiniones, logos y mapa */
.planes { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.plan.recomendado { border: 2px solid var(--primary); box-shadow: 0 14px 40px color-mix(in srgb, var(--primary) 18%, transparent); }
.plan-rec { position: absolute; top: -12px; left: 22px; background: var(--primary); color: var(--primary-contrast); font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan-precio { font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.plan-precio small { font-size: .8rem; font-weight: 500; }
.plan .vit-car { flex: 1; }
.equipo { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.persona { text-align: center; }
.persona img, .persona .sin-foto { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 12px; }
.persona .sin-foto { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: 2.4rem; font-weight: 700; }
.persona h3 { margin: 0; font-size: 1.05rem; }
.persona .cargo { margin: 2px 0 6px; color: var(--primary); font-weight: 600; font-size: .9rem; }
.persona .muted { font-size: .9rem; margin: 0; }
.proceso { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: paso; }
.proceso li { display: flex; gap: 14px; align-items: flex-start; }
.proceso .num { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-contrast); font-weight: 800; }
.proceso h3 { margin: 6px 0 4px; font-size: 1.02rem; }
.proceso p { margin: 0; }
.cifras { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); text-align: center; }
.cifras div { display: grid; gap: 4px; padding: 18px 10px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.cifras b { font-size: 2.3rem; line-height: 1; color: var(--primary); }
.cifras span { color: var(--muted); font-size: .92rem; }
.opiniones { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.opinion { margin: 0; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 14px; }
.opinion blockquote { margin: 0; font-size: 1rem; line-height: 1.55; flex: 1; }
.opinion blockquote::before { content: "“"; display: block; font-size: 2.6rem; line-height: .8; color: var(--primary); }
.opinion figcaption { display: flex; align-items: center; gap: 10px; }
.opinion figcaption img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.opinion figcaption span { display: grid; }
.opinion small { color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 40px; }
.logos img { max-height: 56px; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos a:hover img, .logos span:hover img { filter: none; opacity: 1; }
.mapa-bloque { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; }
.mapa-fachada, .mapa-iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.mapa-fachada { cursor: pointer; background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--surface) 12px, var(--surface) 24px); color: var(--text); font: inherit; }
.mapa-fachada span { background: var(--surface); padding: 10px 18px; border-radius: 99px; border: 1px solid var(--border); font-weight: 600; }
@media (max-width: 760px) { .mapa-bloque { grid-template-columns: 1fr; } }
.descargas-web { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.descargas-web .doc { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.descargas-web .doc:hover { border-color: var(--primary); }
.descargas-web .doc > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.descargas-web small { color: var(--muted); }
.doc-ico { flex: none; width: 44px; height: 52px; border-radius: 6px; display: grid; place-items: center; background: #b91c1c; color: #fff; font-size: .72rem; font-weight: 800; }
.doc-baj { color: var(--primary); font-size: 1.2rem; }

/* 12. Botones de las páginas ---------------------------------------------- */
.hero-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-sencilla .hero-botones, .hero-vitrina .hero-botones { justify-content: center; }
.hero .btn.ghost, .hero-diagonal .btn.ghost { background: transparent; color: var(--hero-text); border: 1.5px solid currentColor; }
.hero.hero-imagen .btn.ghost { background: transparent; color: #fff; border: 1.5px solid #fff; }
.hero.hero-recuadro .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.bb-caja { display: grid; justify-items: center; gap: 10px; text-align: center; }
.bb-caja h2 { margin-bottom: 0; }
.bb-texto { max-width: 62ch; color: var(--muted); margin: 0; font-size: 1.05rem; }
.bb-fila { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.blq-botones.forma-izquierda .bb-caja { justify-items: start; text-align: left; }
.blq-botones.forma-izquierda .bb-fila { justify-content: flex-start; }
/* Franjas de color a todo lo ancho (botones y cifras) */
#view > .blq.forma-franja { --sec-bg: var(--primary); background: var(--primary); color: var(--primary-contrast); box-shadow: 0 0 0 100vmax var(--primary); clip-path: inset(0 -100vmax); margin-top: 24px; margin-bottom: 24px; }
.blq.forma-franja h2, .blq.forma-franja .bb-texto { color: inherit; }
.blq.forma-franja .bb-texto { opacity: .9; }
.blq-botones.forma-franja .btn { background: var(--primary-contrast); color: var(--primary); }
.blq-botones.forma-franja .btn.ghost { background: transparent; color: var(--primary-contrast); border: 1.5px solid currentColor; }

/* 13. Planes: tarjetas, franja de precio, tabla, zigzag y lista ------------ */
.plan-nota { font-size: .8rem; color: var(--muted); font-weight: 600; }
.plan .vit-car b, .card .vit-car b { font-weight: 800; }
.blq-planes.forma-lista .planes, .blq-planes.forma-zigzag .planes { grid-template-columns: 1fr; }
.plan-banda { padding: 0; gap: 0; text-align: center; border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.plan-banda header { padding: 28px 18px 16px; }
.plan-banda h3 { font-size: 1.9rem; letter-spacing: -.01em; }
.plan-banda .pb-precio { background: var(--primary); color: var(--primary-contrast); padding: 18px 12px; display: grid; justify-items: center; gap: 10px; }
.plan-banda .pb-precio .plan-precio { font-size: 2.3rem; }
.plan-banda .pb-precio small, .plan-banda .pb-precio .a-convenir { color: inherit; opacity: .9; }
.plan-banda .pb-precio .plan-nota { background: var(--surface); color: var(--text); border-radius: 99px; padding: 4px 14px; font-size: .75rem; }
.plan-banda .vit-car { padding: 20px 22px 10px; text-align: left; gap: 10px; font-size: .95rem; }
.plan-banda .pb-boton { padding: 8px 22px 24px; display: flex; justify-content: center; }
.plan-banda .pb-boton .btn { width: auto; min-width: 58%; }
.plan-banda .plan-rec { left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--accent); color: var(--accent-contrast); z-index: 1; }
.plan-banda.recomendado { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.plan-banda.recomendado .pb-precio { background: color-mix(in srgb, var(--primary) 78%, #000); }
.plan-banda.recomendado .vit-car li::before { color: var(--primary-contrast); }
.plan-banda.recomendado .pb-boton .btn { background: var(--primary-contrast); color: var(--primary); }
.plan-fila { flex-direction: row; align-items: center; gap: 24px; padding: 20px 24px; }
.plan-fila .pf-nombre { flex: 1; min-width: 0; }
.plan-fila .vit-car { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 8px 0 0; }
.plan-fila .pf-precio { display: grid; justify-items: end; gap: 8px; text-align: right; min-width: 190px; }
.plan-fila .plan-rec, .plan-zz .plan-rec, .tabla-planes .plan-rec { position: static; display: inline-block; margin-bottom: 6px; justify-self: start; }
.plan-zz { display: grid; grid-template-columns: 1fr 1fr; padding: 0; gap: 0; overflow: hidden; }
.plan-zz .zz-foto { min-height: 300px; background: var(--surface-2) center / cover; cursor: pointer; }
.plan-zz:nth-child(even) .zz-foto { order: 2; }
.plan-zz .zz-texto { padding: 36px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.plan-zz h3 { font-size: 1.6rem; }
.plan-zz .btn.block { width: auto; }
.plan-zz.sin-foto { grid-template-columns: 1fr; }
.tabla-planes { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tabla-planes table { width: 100%; border-collapse: collapse; min-width: 560px; }
.tabla-planes th, .tabla-planes td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.tabla-planes td:first-child, .tabla-planes th:first-child { text-align: left; font-size: .95rem; }
.tabla-planes thead th { vertical-align: bottom; padding-top: 24px; font-weight: 400; }
.tabla-planes thead th b { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.tabla-planes .plan-precio { font-size: 1.45rem; margin-top: 4px; }
.tabla-planes .recomendado { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.tabla-planes .si { color: var(--success); font-weight: 800; font-size: 1.1rem; }
.tabla-planes .no { color: var(--muted); }
.tabla-planes tfoot td { border-bottom: 0; }
@media (max-width: 760px) {
  .plan-fila { flex-direction: column; align-items: stretch; }
  .plan-fila .pf-precio { justify-items: start; text-align: left; min-width: 0; }
  .plan-zz { grid-template-columns: 1fr; }
  .plan-zz:nth-child(even) .zz-foto { order: 0; }
  .plan-zz .zz-foto { min-height: 200px; }
  .plan-zz .zz-texto { padding: 24px; }
}

/* 14. Formas de los demás bloques ----------------------------------------- */
/* Equipo */
.blq-equipo.forma-retratos .equipo { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.blq-equipo.forma-retratos .persona { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; text-align: left; color: #fff; }
.blq-equipo.forma-retratos .persona img, .blq-equipo.forma-retratos .persona .sin-foto { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; margin: 0; font-size: 5rem; }
.blq-equipo.forma-retratos .persona::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.blq-equipo.forma-retratos .persona > h3, .blq-equipo.forma-retratos .persona > p { position: relative; z-index: 1; }
.blq-equipo.forma-retratos .persona .cargo { color: #fff; opacity: .92; }
.blq-equipo.forma-retratos .persona .muted { color: rgba(255, 255, 255, .85); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blq-equipo.forma-directorio .equipo { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 32px; }
.blq-equipo.forma-directorio .persona { display: grid; grid-template-columns: 72px 1fr; column-gap: 16px; align-content: start; text-align: left; padding: 16px 0; border-bottom: 1px solid var(--border); }
.blq-equipo.forma-directorio .persona img, .blq-equipo.forma-directorio .persona .sin-foto { width: 72px; height: 72px; margin: 0; grid-row: span 3; font-size: 1.6rem; }
/* Opiniones */
.blq-opiniones.forma-destacada .opiniones { grid-template-columns: 1fr; gap: 44px; max-width: 820px; margin: 0 auto; }
.blq-opiniones.forma-destacada h2 { text-align: center; }
.blq-opiniones.forma-destacada .opinion { background: none; border: 0; box-shadow: none; padding: 0; text-align: center; align-items: center; }
.blq-opiniones.forma-destacada blockquote { font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.85rem); line-height: 1.35; }
.blq-opiniones.forma-destacada blockquote::before { font-size: 4.5rem; margin-bottom: 6px; }
.blq-opiniones.forma-mosaico .opiniones { display: block; columns: 3 260px; column-gap: 18px; }
.blq-opiniones.forma-mosaico .opinion { break-inside: avoid; margin-bottom: 18px; }
.blq-opiniones.forma-mosaico .opinion:nth-child(3n+1) { background: var(--primary); color: var(--primary-contrast); border-color: transparent; }
.blq-opiniones.forma-mosaico .opinion:nth-child(3n+1) blockquote::before, .blq-opiniones.forma-mosaico .opinion:nth-child(3n+1) small { color: inherit; opacity: .85; }
/* Cómo trabajamos */
.blq-proceso.forma-linea .proceso { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; }
.blq-proceso.forma-linea .proceso li { position: relative; flex-direction: column; align-items: center; text-align: center; padding: 0 12px; }
.blq-proceso.forma-linea .proceso li::before { content: ""; position: absolute; top: 20px; left: 0; right: 0; height: 2px; background: var(--border); }
.blq-proceso.forma-linea .proceso li:first-child::before { left: 50%; }
.blq-proceso.forma-linea .proceso li:last-child::before { right: 50%; }
.blq-proceso.forma-linea .proceso .num { position: relative; box-shadow: 0 0 0 6px var(--sec-bg, var(--bg)); }
.blq-proceso.forma-tarjetas .proceso li { flex-direction: column; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.blq-proceso.forma-tarjetas .proceso .num { display: block; width: auto; height: auto; background: none; color: var(--primary); font-family: var(--font-head); font-size: 2.6rem; line-height: 1; border-radius: 0; }
.blq-proceso.forma-tarjetas .proceso .num::before { content: "0"; }
@media (max-width: 700px) {
  .blq-proceso.forma-linea .proceso { grid-template-columns: 1fr; gap: 18px; }
  .blq-proceso.forma-linea .proceso li { flex-direction: row; text-align: left; align-items: flex-start; padding: 0; }
  .blq-proceso.forma-linea .proceso li::before { display: none; }
}
/* Cifras */
.blq-cifras.forma-franja .cifras div { background: transparent; border: 0; border-radius: 0; border-left: 1px solid color-mix(in srgb, var(--primary-contrast) 30%, transparent); }
.blq-cifras.forma-franja .cifras div:first-child { border-left: 0; }
.blq-cifras.forma-franja .cifras b, .blq-cifras.forma-franja .cifras span { color: inherit; }
.blq-cifras.forma-franja .cifras span { opacity: .88; }
.blq-cifras.forma-grandes .cifras { text-align: left; gap: 28px; }
.blq-cifras.forma-grandes .cifras div { background: none; border: 0; border-top: 2px solid var(--primary); border-radius: 0; padding: 16px 0 0; }
.blq-cifras.forma-grandes .cifras b { font-size: clamp(2.6rem, 5vw, 3.8rem); font-family: var(--font-head); color: var(--text); letter-spacing: -.03em; }
/* Preguntas en dos columnas */
.blq-faq.forma-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: start; }
.blq-faq.forma-columnas > h2 { grid-column: 1 / -1; }
@media (max-width: 760px) { .blq-faq.forma-columnas { grid-template-columns: 1fr; } }
/* Galería en mosaico */
.blq-galeria.forma-mosaico .galeria { grid-auto-flow: dense; grid-auto-rows: 170px; }
.blq-galeria.forma-mosaico .galeria button { aspect-ratio: auto; height: 100%; }
.blq-galeria.forma-mosaico .galeria button:nth-child(5n+1) { grid-row: span 2; grid-column: span 2; }
/* Texto destacado */
.blq-texto.forma-destacado { background: var(--surface); border-left: 5px solid var(--primary); border-radius: calc(var(--radius) + 6px); padding: 40px; margin-top: 28px; margin-bottom: 28px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .blq-texto.forma-destacado { padding: 24px 20px; } }

/* 15. Portadas: retrato y corte diagonal ---------------------------------- */
.hero-personal { padding: 56px 0; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 9%, var(--bg)), var(--bg)); }
.hero-personal .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-personal h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); letter-spacing: -.02em; }
.hero-personal p { margin: 16px 0 26px; color: var(--muted); font-size: 1.1rem; max-width: 46ch; }
.hp-foto { width: 100%; max-width: 430px; justify-self: end; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--radius) var(--radius); background: var(--surface-2) center / cover; display: grid; place-items: center; box-shadow: 18px 18px 0 color-mix(in srgb, var(--accent) 35%, transparent); }
.hp-foto span { font-family: var(--font-head); font-size: 8rem; color: var(--muted); opacity: .45; }
.hero-diagonal { position: relative; display: flex; align-items: center; min-height: 480px; overflow: hidden; background: var(--hero-bg, linear-gradient(135deg, var(--hero-start), var(--hero-end))); color: var(--hero-text); }
.hd-foto { position: absolute; inset: 0 0 0 46%; background: color-mix(in srgb, var(--hero-text) 12%, transparent) center / cover; clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%); }
.hero-diagonal .wrap { position: relative; width: 100%; padding-top: 72px; padding-bottom: 72px; }
.hd-texto { max-width: 520px; }
.hd-texto h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.02em; }
.hd-texto p { margin: 16px 0 26px; opacity: .9; font-size: 1.08rem; }
.hero-diagonal .btn { background: var(--hero-btn-bg, var(--hero-text)); color: var(--hero-btn-text, var(--hero-start)); }
.hero-diagonal .btn.ghost { background: transparent; color: var(--hero-text); }
@media (max-width: 800px) {
  .hero-personal .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hp-foto { max-width: 280px; justify-self: center; order: -1; }
  .hero-diagonal { flex-direction: column; align-items: stretch; min-height: 0; }
  .hd-foto { position: relative; inset: auto; height: 230px; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); order: -1; }
  .hero-diagonal .wrap { padding-top: 28px; padding-bottom: 48px; }
}

/* 16. Pies centrado y con llamado ----------------------------------------- */
.pie-centro { width: 100%; display: grid; justify-items: center; gap: 8px; text-align: center; }
.pie-marca { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 1.3rem; }
.pie-marca img { height: 36px; width: auto; }
body.pie-llamado footer.site { padding-top: 0; }
#pieLlamado { margin-bottom: 36px; }
.franja-llamado { background: var(--primary); color: var(--primary-contrast); padding: 44px 0; }
.franja-llamado .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.franja-llamado h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: inherit; }
.franja-llamado p { margin-top: 6px; opacity: .9; font-size: 1.02rem; }
.pl-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.franja-llamado .btn { background: var(--primary-contrast); color: var(--primary); text-decoration: none; }
.franja-llamado .btn.ghost { background: transparent; color: var(--primary-contrast); border: 1.5px solid currentColor; }

/* 17. Cabecera transparente sobre la portada ------------------------------- */
body.sobre-portada header.top { position: absolute; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; --cab-txt: var(--hero-text); }
body.sobre-portada.portada-imagen header.top, body.sobre-portada.portada-diagonal header.top { --cab-txt: #fff; background: linear-gradient(rgba(0, 0, 0, .38), transparent); }
body.sobre-portada:not(.bajo):not(.menu-open) header.top :is(.brand, .menu > a, .dd-btn, .m-sin, .icon-btn, .lang button, .burger) { color: var(--cab-txt); }
body.sobre-portada:not(.bajo):not(.menu-open) header.top :is(.lang, .lang button, .burger, .icon-btn) { background: transparent; border-color: color-mix(in srgb, var(--cab-txt) 45%, transparent); }
body.sobre-portada:not(.bajo):not(.menu-open) header.top .lang button.on { background: color-mix(in srgb, var(--cab-txt) 24%, transparent); }
body.sobre-portada.bajo:not(.no-fija) header.top { position: fixed; top: 0; background: var(--header-bg); border-bottom-color: var(--border); backdrop-filter: blur(10px); animation: cab-baja .25s ease; }
body.sobre-portada #view > section:first-child { padding-top: calc(var(--hh, 68px) + 64px); }
@keyframes cab-baja { from { transform: translateY(-100%); } to { transform: none; } }

/* 18. Estilos de página --------------------------------------------------- */
/* Secciones alternas con fondo a todo lo ancho (corporativo, cálido, landing) */
.est-corporativo #view > .blq.section:nth-child(even):not(.forma-franja),
.est-landing #view > .blq.section:nth-child(even):not(.forma-franja),
.est-calido #view > .blq.section:nth-child(even):not(.forma-franja) { background: var(--sec-bg); box-shadow: 0 0 0 100vmax var(--sec-bg); clip-path: inset(0 -100vmax); }
.est-corporativo #view > .blq.section:nth-child(even) { --sec-bg: var(--surface-2); }
.est-landing #view > .blq.section:nth-child(even) { --sec-bg: color-mix(in srgb, var(--primary) 7%, var(--bg)); }
.menu-lateral #view > .blq.section { clip-path: none !important; box-shadow: none !important; border-radius: var(--radius); }
.menu-lateral #view > .blq.section:nth-child(even) { padding-left: 24px; padding-right: 24px; }

/* Corporativo: serio y ordenado */
.est-corporativo header.top { border-bottom: 3px solid var(--primary); }
.est-corporativo .section { padding-top: 56px; padding-bottom: 56px; }
.est-corporativo .section h2 { border-left: 4px solid var(--primary); padding-left: 14px; font-size: 1.8rem; }
.est-corporativo .bb-caja h2 { border-left: 0; padding-left: 0; }
.est-corporativo :is(.card, .plan, .opinion, .cifras div, .proceso li) { box-shadow: none; border-radius: min(var(--radius), 6px); }

/* Clínico: limpio, mucho aire, sombras suaves */
.est-clinico .section { padding-top: 72px; padding-bottom: 72px; }
.est-clinico .section h2 { text-align: center; font-size: 2rem; margin-bottom: 36px; }
.est-clinico .section h2::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 4px; background: var(--accent); margin: 14px auto 0; }
.est-clinico .bb-caja h2 { margin-bottom: 0; }
.est-clinico :is(.card, .plan, .opinion, .cifras div, .proceso li, .tabla-planes) { border-color: transparent; border-radius: max(var(--radius), 18px); box-shadow: 0 12px 40px color-mix(in srgb, var(--primary) 11%, transparent); }
.est-clinico .plan.recomendado { border-color: var(--primary); }
.est-clinico #view > .blq.section:nth-child(odd):not(.forma-franja):not(:first-child) { --sec-bg: color-mix(in srgb, var(--primary) 4%, var(--bg)); background: var(--sec-bg); box-shadow: 0 0 0 100vmax var(--sec-bg); clip-path: inset(0 -100vmax); }

/* Editorial: como una revista */
.est-editorial #view { counter-reset: secc; }
.est-editorial header.top { border-bottom: 1px solid var(--text); }
.est-editorial .section { padding-top: 64px; padding-bottom: 44px; }
.est-editorial #view > .blq.section:not(.blq-libre) h2 { counter-increment: secc; display: grid; grid-template-columns: auto 1fr; gap: 0 18px; align-items: baseline; border-top: 1px solid var(--text); padding-top: 18px; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -.02em; }
.est-editorial #view > .blq.section:not(.blq-libre) h2::before { content: counter(secc, decimal-leading-zero); font-family: var(--font); font-size: .85rem; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.est-editorial #view > .blq-botones.blq.section h2 { display: block; border-top: 0; padding-top: 0; }
.est-editorial #view > .blq-botones.blq.section h2::before { content: none; }
.est-editorial #view > .blq-opiniones.forma-destacada.blq.section > h2 { text-align: left; }
.est-editorial :is(.card, .plan, .opinion, .cifras div, .proceso li, .tabla-planes) { border-radius: 0; box-shadow: none; }
.est-editorial .texto { font-size: 1.06rem; max-width: 68ch; }

/* Tecnológico: títulos con degradado, bordes de color, cuadrícula de fondo */
.est-tecnologico #view { background-image: linear-gradient(color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px); background-size: 48px 48px; }
.est-tecnologico .section h2 { width: fit-content; font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.est-tecnologico .bb-caja h2, .est-tecnologico .blq-opiniones.forma-destacada h2 { margin-left: auto; margin-right: auto; }
.est-tecnologico :is(.card, .plan:not(.recomendado), .opinion, .cifras div, .proceso li, .tabla-planes) { border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.est-tecnologico .plan.recomendado { box-shadow: 0 20px 60px color-mix(in srgb, var(--primary) 32%, transparent); }
.est-tecnologico .blq-opiniones.forma-mosaico .opinion:nth-child(3n+1) { background: linear-gradient(var(--primary), var(--primary)) padding-box, var(--grad) border-box; }
.est-tecnologico .btn:not(.ghost) { box-shadow: 0 8px 26px color-mix(in srgb, var(--primary) 35%, transparent); }

/* Estudio creativo: letras enormes, bordes gruesos, sombras duras */
.est-creativo .section { padding-top: 72px; padding-bottom: 72px; }
.est-creativo .section h2 { font-size: clamp(2.4rem, 7vw, 5rem); text-transform: uppercase; letter-spacing: -.04em; line-height: .95; margin-bottom: 32px; }
.est-creativo #view > .blq.section:nth-child(even) > h2 { text-align: right; }
.est-creativo :is(.card, .plan, .opinion, .cifras div, .proceso li, .descargas-web .doc, .tabla-planes) { border: 2px solid var(--text); border-radius: 0; box-shadow: 6px 6px 0 var(--text); }
.est-creativo .plan.recomendado { border-color: var(--accent); box-shadow: 6px 6px 0 var(--accent); }
.est-creativo .btn { border-radius: 0; box-shadow: 4px 4px 0 var(--text); }
.est-creativo .btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--text); filter: none; }
.est-creativo .btn.ghost { border: 2px solid var(--text); }
.est-creativo .blq-equipo img { filter: grayscale(1); transition: filter .3s; }
.est-creativo .blq-equipo .persona:hover img { filter: none; }

/* Lujo: mucho aire y letras finas */
.est-lujo .section { padding-top: 96px; padding-bottom: 96px; }
.est-lujo .section h2 { text-align: center; text-transform: uppercase; letter-spacing: .28em; font-size: 1.05rem; font-weight: 500; margin-bottom: 52px; }
.est-lujo .section h2::after { content: ""; display: block; width: 1px; height: 36px; background: var(--accent); margin: 18px auto 0; }
.est-lujo .bb-caja h2 { margin-bottom: 0; }
.est-lujo :is(.card, .opinion, .cifras div, .proceso li) { border: 0; box-shadow: none; background: transparent; }
.est-lujo .plan { border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; background: transparent; }
.est-lujo .plan.recomendado { border-top: 2px solid var(--accent); }
.est-lujo .btn { text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 500; padding: 15px 30px; }
.est-lujo h1 { font-weight: 400; }
.est-lujo .cifras b { font-weight: 300; font-family: var(--font-head); }

/* Cálido: ondas, formas suaves y redondas */
.est-calido #view { overflow-x: clip; }
.est-calido #view > .blq.section:nth-child(even) { --sec-bg: color-mix(in srgb, var(--accent) 13%, var(--bg)); }
.est-calido #view > .blq.section:nth-child(even):not(.forma-franja) { position: relative; margin-top: 30px; margin-bottom: 30px; clip-path: none; box-shadow: none; border-image: conic-gradient(var(--sec-bg) 0 0) fill 0 / / 0 100vmax; }
.est-calido #view > .blq.section:nth-child(even):not(.forma-franja)::before,
.est-calido #view > .blq.section:nth-child(even):not(.forma-franja)::after { content: ""; position: absolute; left: 50%; width: 100vw; height: 30px; background: var(--sec-bg); transform: translateX(-50%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30V15C20 3 60 3 80 15S140 27 160 15V30Z'/%3E%3C/svg%3E") repeat-x 0 0 / 160px 30px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30V15C20 3 60 3 80 15S140 27 160 15V30Z'/%3E%3C/svg%3E") repeat-x 0 0 / 160px 30px; }
.est-calido #view > .blq.section:nth-child(even):not(.forma-franja)::before { top: -29px; }
.est-calido #view > .blq.section:nth-child(even):not(.forma-franja)::after { bottom: -29px; transform: translateX(-50%) scaleY(-1); }
.est-calido .section h2 { text-align: center; text-decoration: underline wavy var(--accent) 2px; text-underline-offset: 12px; margin-bottom: 30px; }
.est-calido :is(.card, .plan, .opinion, .cifras div, .proceso li, .tabla-planes) { border-color: transparent; border-radius: max(var(--radius), 22px); box-shadow: 0 10px 30px color-mix(in srgb, var(--text) 8%, transparent); }
.est-calido .plan.recomendado { border-color: var(--primary); }
.est-calido .btn { border-radius: 999px; }

/* Marca personal: gira alrededor de la persona */
.est-personal .section h2 { text-align: center; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.est-personal .section h2::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin: 0 auto 14px; }
.est-personal #view > .blq.section:nth-child(even):not(.forma-franja) { --sec-bg: var(--surface); background: var(--surface); border-radius: calc(var(--radius) + 18px); padding-left: 40px; padding-right: 40px; margin: 28px auto; box-shadow: 0 1px 0 var(--border), 0 18px 50px color-mix(in srgb, var(--text) 6%, transparent); }
.est-personal .opinion blockquote { font-style: italic; }
@media (max-width: 640px) { .est-personal #view > .blq.section:nth-child(even):not(.forma-franja) { padding-left: 20px; padding-right: 20px; margin: 16px 10px; } }

/* Una sola página: franjas fuertes y botones grandes */
.est-landing .section { padding-top: 72px; padding-bottom: 72px; }
.est-landing .section h2 { text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; margin-bottom: 36px; }
.est-landing .bb-caja h2 { margin-bottom: 0; }
.est-landing .btn { padding: 14px 28px; font-size: 1.02rem; }

/* Institucional: ordenado, títulos con línea y tarjetas con borde superior */
.est-institucional .section { padding-top: 40px; padding-bottom: 40px; }
.est-institucional .section h2 { position: relative; font-size: 1.6rem; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.est-institucional .section h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; background: var(--primary); }
.est-institucional .bb-caja h2 { border-bottom: 0; }
.est-institucional .bb-caja h2::after { content: none; }
.est-institucional :is(.card, .plan, .opinion, .cifras div, .proceso li) { border-top: 4px solid var(--primary); border-radius: min(var(--radius), 8px); }
.est-institucional .blq-cifras.forma-franja .cifras div { border-top: 0; }

/* Movimiento: las secciones aparecen al llegar a ellas */
.con-mov .aparece { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.con-mov .aparece.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .con-mov .aparece { opacity: 1; transform: none; transition: none; } }
@media print { .aparece { opacity: 1 !important; transform: none !important; } }
.est-institucional .blq.forma-franja h2 { border-bottom-color: color-mix(in srgb, var(--primary-contrast) 30%, transparent); }
.est-institucional .blq.forma-franja h2::after { background: var(--primary-contrast); }
.est-corporativo .blq.forma-franja h2 { border-left-color: var(--primary-contrast); }

/* La portada «Sencilla» va sobre el fondo de la página aunque el tema tenga portada de color (se leía oscuro sobre oscuro) */
.hero.hero-sencilla { background: var(--page-bg, var(--bg)); background-size: var(--page-size, auto); color: var(--text); }
.hero.hero-sencilla h1 { text-shadow: none; }
.hero.hero-sencilla .btn:not(.ghost) { background: var(--btn-bg, var(--primary)); background-size: var(--btn-size, 100% 100%); color: var(--btn-text, var(--primary-contrast)); }
.hero.hero-sencilla .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }

/* 19. Ajustes de cada bloque: alineación, ancho, espacios, fondo y en qué pantallas se ve ------ */
#view { overflow-x: clip; }
.bk-al-izquierda { text-align: left; }
.bk-al-centro { text-align: center; }
.bk-al-derecha { text-align: right; }
.bk-al-centro :is(.bb-caja, .hero-botones, .bb-fila, .lib-boton, .hero-texto, .hd-texto, .hp-texto) { justify-items: center; justify-content: center; margin-left: auto; margin-right: auto; }
.bk-al-derecha :is(.bb-caja, .hero-botones, .bb-fila, .lib-boton) { justify-items: end; justify-content: flex-end; }
.bk-al-izquierda :is(.bb-caja, .hero-botones, .bb-fila, .lib-boton) { justify-items: start; justify-content: flex-start; }
.bk-al-centro :is(h1, h2, p, .texto, .bb-texto) { margin-left: auto; margin-right: auto; }
.bk-al-derecha :is(h1, h2, p, .texto, .bb-texto) { margin-left: auto; }
.bk-ancho-angosto, .bk-ancho-angosto > .wrap { max-width: 800px; margin-left: auto; margin-right: auto; }
.bk-ancho-completo, .bk-ancho-completo > .wrap { max-width: none; }
.bk-arr-ninguno { padding-top: 0 !important; margin-top: 0 !important; }
.bk-arr-poco { padding-top: 16px !important; }
.bk-arr-mucho { padding-top: 104px !important; }
.bk-abj-ninguno { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.bk-abj-poco { padding-bottom: 16px !important; }
.bk-abj-mucho { padding-bottom: 104px !important; }
/* Fondo a todo lo ancho (le gana a las franjas y ondas del estilo) */
#view > .blq.bk-fondo { position: relative; isolation: isolate; color: var(--bk-txt); background: transparent !important; box-shadow: none !important; clip-path: none !important; border-image: none !important; }
#view > .blq.bk-fondo::before { content: "" !important; display: block !important; position: absolute !important; top: 0 !important; bottom: 0 !important; height: auto !important;
  left: calc(50% - 50vw) !important; right: calc(50% - 50vw) !important; width: auto !important; transform: none !important; -webkit-mask: none !important; mask: none !important;
  z-index: -1; background: var(--bk-bg) !important; background-size: cover !important; background-position: center !important; border-radius: 0 !important; }
#view > .blq.bk-fondo::after { content: none !important; }
.menu-lateral #view > .blq.bk-fondo::before { left: 0 !important; right: 0 !important; border-radius: var(--radius) !important; }
.bk-fondo-suave { --bk-bg: var(--surface-2); --bk-txt: var(--text); --sec-bg: var(--surface-2); }
.bk-fondo-acento { --bk-bg: color-mix(in srgb, var(--accent) 14%, var(--bg)); --bk-txt: var(--text); --sec-bg: color-mix(in srgb, var(--accent) 14%, var(--bg)); }
.bk-fondo-principal { --bk-bg: var(--primary); --bk-txt: var(--primary-contrast); --sec-bg: var(--primary); }
.bk-fondo-oscuro { --bk-bg: var(--footer-bg); --bk-txt: var(--footer-text); --sec-bg: var(--footer-bg); }
.bk-fondo-foto { --bk-bg: linear-gradient(rgba(0, 0, 0, .58), rgba(0, 0, 0, .58)), var(--bk-foto, none); --bk-txt: #fff; --sec-bg: #222; }
:is(.bk-fondo-principal, .bk-fondo-oscuro, .bk-fondo-foto) :is(h2, h3, .bb-texto, .muted, .texto, .texto-rico, .cifras span, .proceso p, .cargo) { color: inherit; -webkit-text-fill-color: currentColor; background: none; }
:is(.bk-fondo-principal, .bk-fondo-oscuro, .bk-fondo-foto) .btn:not(.ghost) { background: var(--bk-txt); color: var(--bk-bg-solo, #111); }
.bk-fondo-principal .btn:not(.ghost) { color: var(--primary); }
.bk-fondo-oscuro .btn:not(.ghost) { color: var(--footer-bg); }
:is(.bk-fondo-principal, .bk-fondo-oscuro, .bk-fondo-foto) .btn.ghost { background: transparent; color: var(--bk-txt); border: 1.5px solid currentColor; }
:is(.bk-fondo-principal, .bk-fondo-oscuro, .bk-fondo-foto) .vit-car li::before { color: inherit; }
@media (max-width: 760px) { .bk-solo-computador { display: none !important; } }
@media (min-width: 761px) { .bk-solo-celular { display: none !important; } }

/* 20. Sección libre ------------------------------------------------------- */
.libre { display: grid; gap: 28px 40px; grid-template-columns: 1fr 1fr; }
.libre.lib-1 { grid-template-columns: 1fr; }
.libre.lib-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.libre.lib-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.libre.lib-2-1 { grid-template-columns: 2fr 1fr; }
.libre.lib-1-2 { grid-template-columns: 1fr 2fr; }
.libre.lib-v-centro { align-items: center; }
.lib-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lib-col > h2 { margin-bottom: 0; }
.lib-col > h3 { font-size: 1.25rem; }
.lib-col .texto-rico p { margin: 0 0 10px; }
.lib-col .texto-rico p:last-child { margin-bottom: 0; }
.lib-img { width: 100%; height: auto; border-radius: 0; }
.lib-img-redonda { border-radius: var(--radius); }
.lib-img-circulo { border-radius: 50%; aspect-ratio: 1; object-fit: cover; max-width: 280px; }
.bk-al-centro .lib-img-circulo { margin: 0 auto; }
.lib-boton { display: flex; }
.lib-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.bk-al-centro .lib-botones { justify-content: center; }
.bk-al-derecha .lib-botones { justify-content: flex-end; }
.lib-video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.lib-esp-poco { height: 8px; } .lib-esp-normal { height: 28px; } .lib-esp-mucho { height: 64px; }
.lib-hr { border: 0; border-top: 1px solid var(--border); width: 100%; margin: 4px 0; }
.lib-col .vit-car { margin: 0; font-size: .98rem; }
@media (max-width: 760px) { .libre, .libre.lib-3, .libre.lib-4, .libre.lib-2-1, .libre.lib-1-2 { grid-template-columns: 1fr; } }
@media (min-width: 761px) and (max-width: 1000px) { .libre.lib-4 { grid-template-columns: 1fr 1fr; } }

/* 21. Planes: subtítulo, íconos en lo que incluye, palabra en recuadro y color de la cinta ---- */
.plan-sub { display: flex; align-items: center; justify-content: inherit; gap: 8px; flex-wrap: wrap; margin-top: 2px; font-weight: 600; font-size: .95rem; color: var(--primary); }
.plan-banda .plan-sub { justify-content: center; }
.plan-banda.recomendado .plan-sub, .plan.recomendado.plan-banda .plan-sub { color: inherit; }
.plan-sub img { height: 22px; width: auto; max-width: 120px; object-fit: contain; }
.tabla-planes .plan-sub { justify-content: center; font-size: .82rem; }
.vit-car li:has(> .con-ico) { padding-left: 0; }
.vit-car li:has(> .con-ico)::before { content: none; }
.con-ico { display: inline-flex; align-items: flex-start; gap: 10px; }
.con-ico .ico { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--primary); }
.plan-banda.recomendado .con-ico .ico, :is(.bk-fondo-principal, .bk-fondo-oscuro, .bk-fondo-foto) .con-ico .ico { color: inherit; }
.pastilla { display: inline-block; padding: 1px 7px; margin: 0 2px; border-radius: 5px; background: var(--primary); color: var(--primary-contrast); font-size: .8em; font-weight: 700; line-height: 1.5; vertical-align: 1px; }
.plan-banda.recomendado .pastilla { background: var(--primary-contrast); color: var(--primary); }
.plan-rec.cinta-principal { background: var(--primary); color: var(--primary-contrast); }
.plan-rec.cinta-naranja { background: #c2410c; color: #fff; }
.plan-rec.cinta-azul { background: #1e3a8a; color: #fff; }
.plan-rec.cinta-verde { background: #15803d; color: #fff; }
.plan-rec.cinta-rojo { background: #b91c1c; color: #fff; }
.plan-rec.cinta-morado { background: #6d28d9; color: #fff; }
.plan-rec.cinta-oscuro { background: #111827; color: #fff; }

/* 22. Foto de la portada ajustable (velo, recorte, tamaño, altura y letras) ---------------- */
.hero-imagen, .hero-recuadro { display: flex; align-items: center; min-height: var(--hf-alto, 0); }
.hero-imagen > .wrap, .hero-recuadro > .wrap { width: 100%; }
.hero-diagonal { min-height: var(--hf-alto, 480px); }
.hero-imagen.hf-oscuras { color: #111; }
.hero-imagen.hf-oscuras .btn { background: #111; color: #fff; }
.hero-imagen.hf-oscuras .btn.ghost { background: transparent; color: #111; border-color: #111; }
.hero-imagen.hf-claras { color: #fff; }
@media (max-width: 800px) {
  .hero-imagen, .hero-recuadro { min-height: min(var(--hf-alto, 0px), 80vh); }
  .hero-diagonal { min-height: 0; }
}

/* 23. Temas de temporada: adorno bajo el menú (dibujos propios; toman los colores del tema) y efecto ---- */
.tp-adorno { height: 22px; pointer-events: none; position: relative; z-index: 5;
  background: repeating-linear-gradient(90deg, var(--primary) 0 36px, var(--accent) 36px 72px, #facc15 72px 108px);
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-position: left top; mask-position: left top; }
.tp-luces {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='22'%3E%3Cpath d='M0 3q18 8 36 0' stroke='black' stroke-width='1.6' fill='none'/%3E%3Crect x='16' y='6' width='4' height='3' fill='black'/%3E%3Cellipse cx='18' cy='14' rx='4.2' ry='6' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='22'%3E%3Cpath d='M0 3q18 8 36 0' stroke='black' stroke-width='1.6' fill='none'/%3E%3Crect x='16' y='6' width='4' height='3' fill='black'/%3E%3Cellipse cx='18' cy='14' rx='4.2' ry='6' fill='black'/%3E%3C/svg%3E"); }
.tp-guirnalda {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='22'%3E%3Cpath d='M0 2h36' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M5 2h26L18 21z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='22'%3E%3Cpath d='M0 2h36' stroke='black' stroke-width='1.5'/%3E%3Cpath d='M5 2h26L18 21z' fill='black'/%3E%3C/svg%3E"); }
.tp-corazones { height: 18px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M18 16s-6-3.7-7.7-7.4C9.1 5.7 10.8 3 13.6 3c1.8 0 2.9 1 4.4 2.6C19.5 4 20.6 3 22.4 3c2.8 0 4.5 2.7 3.3 5.6C24 12.3 18 16 18 16z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M18 16s-6-3.7-7.7-7.4C9.1 5.7 10.8 3 13.6 3c1.8 0 2.9 1 4.4 2.6C19.5 4 20.6 3 22.4 3c2.8 0 4.5 2.7 3.3 5.6C24 12.3 18 16 18 16z' fill='black'/%3E%3C/svg%3E"); }
.tp-estrellas { height: 18px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M18 2l2 4.6 5 .4-3.8 3.3 1.2 4.9L18 12.6l-4.4 2.6 1.2-4.9L11 7l5-.4z' fill='black'/%3E%3Ccircle cx='4' cy='12' r='1.2' fill='black'/%3E%3Ccircle cx='31' cy='5' r='1' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M18 2l2 4.6 5 .4-3.8 3.3 1.2 4.9L18 12.6l-4.4 2.6 1.2-4.9L11 7l5-.4z' fill='black'/%3E%3Ccircle cx='4' cy='12' r='1.2' fill='black'/%3E%3Ccircle cx='31' cy='5' r='1' fill='black'/%3E%3C/svg%3E"); }
.tp-hojas { height: 18px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M0 3h36' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M9 3c-6 1-7 8-4 12 5-1 7-6 4-12zM27 3c6 1 7 8 4 12-5-1-7-6-4-12z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cpath d='M0 3h36' stroke='black' stroke-width='1.2'/%3E%3Cpath d='M9 3c-6 1-7 8-4 12 5-1 7-6 4-12zM27 3c6 1 7 8 4 12-5-1-7-6-4-12z' fill='black'/%3E%3C/svg%3E"); }
.tp-flores { height: 18px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cg fill='black'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='18' cy='13' r='3'/%3E%3Ccircle cx='14' cy='9' r='3'/%3E%3Ccircle cx='22' cy='9' r='3'/%3E%3Ccircle cx='4' cy='14' r='1.5'/%3E%3Ccircle cx='32' cy='4' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18'%3E%3Cg fill='black'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='18' cy='13' r='3'/%3E%3Ccircle cx='14' cy='9' r='3'/%3E%3Ccircle cx='22' cy='9' r='3'/%3E%3Ccircle cx='4' cy='14' r='1.5'/%3E%3Ccircle cx='32' cy='4' r='1.5'/%3E%3C/g%3E%3C/svg%3E"); }
.tp-confeti { height: 16px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='16'%3E%3Cg fill='black'%3E%3Crect x='3' y='3' width='6' height='3' transform='rotate(20 6 4)'/%3E%3Ccircle cx='17' cy='11' r='2'/%3E%3Crect x='25' y='5' width='6' height='3' transform='rotate(-30 28 6)'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='16'%3E%3Cg fill='black'%3E%3Crect x='3' y='3' width='6' height='3' transform='rotate(20 6 4)'/%3E%3Ccircle cx='17' cy='11' r='2'/%3E%3Crect x='25' y='5' width='6' height='3' transform='rotate(-30 28 6)'/%3E%3C/g%3E%3C/svg%3E"); }
.tp-olas { height: 14px; background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14'%3E%3Cpath d='M0 0h40v6c-5 0-5 6-10 6S25 6 20 6 15 12 10 12 5 6 0 6z' fill='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14'%3E%3Cpath d='M0 0h40v6c-5 0-5 6-10 6S25 6 20 6 15 12 10 12 5 6 0 6z' fill='black'/%3E%3C/svg%3E"); }
.tp-telarana { height: 20px; background: var(--text); opacity: .55;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='20'%3E%3Cg stroke='black' fill='none' stroke-width='1'%3E%3Cpath d='M0 0q24 22 48 0M0 0q24 12 48 0M0 0q24 5 48 0M24 0v16M10 0l5 9M38 0l-5 9'/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='20'%3E%3Cg stroke='black' fill='none' stroke-width='1'%3E%3Cpath d='M0 0q24 22 48 0M0 0q24 12 48 0M0 0q24 5 48 0M24 0v16M10 0l5 9M38 0l-5 9'/%3E%3C/g%3E%3C/svg%3E"); }
.tp-cinta { height: 10px; -webkit-mask-image: none; mask-image: none;
  background: repeating-linear-gradient(-45deg, var(--primary) 0 12px, var(--text) 12px 24px); }
.tp-tricolor { height: 9px; -webkit-mask-image: none; mask-image: none; background: linear-gradient(#fcd116 0 50%, #003893 50% 75%, #ce1126 75%); }
.tp-cuaderno { height: 24px; -webkit-mask-image: none; mask-image: none;
  background: linear-gradient(90deg, transparent 0 46px, #ef4444 46px 49px, transparent 49px) no-repeat,
    repeating-linear-gradient(var(--surface) 0 5px, color-mix(in srgb, var(--primary) 55%, transparent) 5px 6.5px); }
.tp-efecto { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 35; }
.anuncio .tp-cuenta { white-space: nowrap; }
@media print { .tp-adorno, .tp-efecto { display: none; } }
