/*
 * El Romancero Criollo — estilos del tema (front y editor).
 * Portado del clon estático v0.5 (site/src/app/globals.css, tag v0.5-static-baseline): mismo grid del
 * builder, mismos tokens. Las variables por sección/celda (--rows, --cols, --row, --col…) las imprime
 * el render de los bloques romancero/section y romancero/cell a partir de sus atributos.
 */
/* Tokens del builder (de capture/design-tokens.json) */
:root {
  --font-primary: "Spectral", serif;
  --font-secondary: "Noto Sans", sans-serif;
  --content-width: 1240px;
  --canvas-width: 1224px;
  --text-dark: #1d1e20;
  --teal: #255f71;
  --teal-dark: #0c4658;
  --ink: #1a1a1a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* como el original: body en "DM Sans" (no se carga: cae al sans-serif del sistema), enlaces heredan color */
body {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Tipografías globales del builder (capture/design-tokens.json): tamaño desktop / m-font-size.
   Los textos pueden sobreescribirlas con --fontSizeDesktop/--fontSizeMobile y
   --lineHeightDesktop/--lineHeightMobile inline, como en el original. */
:root {
  --h1-size: 160px; --h2-size: 120px; --h3-size: 54px; --h4-size: 40px; --h5-size: 32px; --h6-size: 24px;
  --body-size: 16px; --body-large-size: 18px; --body-small-size: 14px;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-primary); font-weight: 700; }
h1 { --size: var(--h1-size); letter-spacing: -0.05em; }
h2 { --size: var(--h2-size); letter-spacing: -0.04em; }
/* token -0.04em (medido en el original: h3 54px → -2.16px, 36px → -1.44px) */
h3 { --size: var(--h3-size); letter-spacing: -0.04em; }
h4 { --size: var(--h4-size); letter-spacing: -0.04em; }
h5 { --size: var(--h5-size); }
h6 { --size: var(--h6-size); }
h1, h2, h3, h4, h5, h6 { --lh: 1.3em; font-size: var(--fontSizeDesktop, var(--size)); line-height: var(--lineHeightDesktop, var(--lh)); }
p  { --size: var(--body-size); --lh: 1.5em; font-family: var(--font-secondary); font-weight: 400;
     font-size: var(--fontSizeDesktop, var(--size)); line-height: var(--lineHeightDesktop, var(--lh)); }
p.body-large { --size: var(--body-large-size); }
p.body-small { --size: var(--body-small-size); }

@media (max-width: 920px) {
  :root { --h1-size: 60px; --h2-size: 50px; --h3-size: 36px; --h4-size: 36px; --h5-size: 24px; --h6-size: 20px; }
  h1, h2, h3, h4, h5, h6, p {
    font-size: var(--fontSizeMobile, var(--size));
    line-height: var(--lineHeightMobile, var(--lh));
  }
}

/* ---------- Header (BlockNavigation del builder: CSS de block-header / layout desktop-3 / mobile-1) ---------- */
.rc-top { position: sticky; top: 0; z-index: 100; }
.rc-header {
  --nav-color: rgb(42, 54, 56);
  --nav-color-hover: rgb(22, 34, 36);
  position: relative;
  display: grid;
  background: #fff;
  transition: box-shadow 0.15s linear;
}
/* sombra del original al dejar el top (block-header--with-shadow) */
.rc-header.block-header--with-shadow { box-shadow: rgba(0, 0, 0, 0.1) 0 6px 14px 0; }
.rc-header ul { list-style: none; }
.rc-header__desktop {
  width: 100%; max-width: var(--canvas-width); justify-self: center;
  display: grid; align-items: center;
  grid-template-columns: 1fr auto 1fr; grid-template-areas: "logo nav right";
  padding: 8px 16px;
}
.rc-header__desktop .rc-header__logo { grid-area: logo; margin-right: 16px; }
.rc-header__desktop .rc-header__nav { grid-area: nav; }
/* el original sirve el logo a 375px de ancho (375×190): esa proporción fija la altura del header (60.08 / 83.38) */
.rc-header__logo { display: flex; width: var(--logo-w); aspect-ratio: 375 / 190; cursor: pointer; }
.rc-header__logo img { width: 100%; height: 100%; object-fit: contain; vertical-align: middle; }
.rc-header__links { display: flex; flex-flow: wrap; justify-content: center; column-gap: 49px; row-gap: 16px; }
.rc-header__item { display: flex; align-items: center; text-align: left; }
.rc-header__item a {
  position: relative; align-self: center;
  font-family: var(--font-secondary); font-size: 16px; font-weight: 400; line-height: 24px;
  color: var(--nav-color); text-decoration: none; white-space: pre-wrap; cursor: pointer;
}
.rc-header__item.is-active a, .rc-header__item:hover a {
  color: var(--nav-color-hover); text-decoration: underline; text-underline-offset: 7px;
}
.rc-header__right { grid-area: right; display: flex; justify-content: flex-end; align-items: center; gap: 32px; margin-left: 16px; }
.rc-header__desktop .rc-header__cart { margin-left: 32px; }
.rc-header__cart { display: flex; align-items: center; text-align: left; }
.rc-header__cart-button {
  display: inline-block; position: relative; align-self: center;
  font-family: var(--font-secondary); font-size: 16px; line-height: 24px; color: var(--nav-color); cursor: pointer;
}
.rc-header__cart-icon-container {
  display: flex; align-items: center; line-height: normal; white-space: nowrap;
  border: 1px solid transparent; border-radius: 3px; transition: border 0.3s;
}
.rc-header__cart-button:hover .rc-header__cart-icon-container { color: var(--nav-color-hover); }
.rc-header__cart-icon-wrapper { display: block; position: relative; }
.rc-header__cart-icon { width: 24px; height: 24px; }
.rc-header__mobile { display: none; }
.rc-burger {
  position: relative; width: 24px; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer;
  transition: transform 0.4s ease-in-out 0.1s;
}
.rc-burger__bun, .rc-burger__meat {
  position: absolute; left: 0; display: block; width: 100%; height: 2px; border-radius: 2px;
  background: var(--nav-color); transform-origin: 0 center;
  transition: transform 0.25s ease-in-out 0.1s, opacity 0.25s ease-in-out 0.1s, width 0.25s ease-in-out 0.1s;
}
.rc-burger__bun:first-child { top: 0; }
.rc-burger__bun:last-child { top: 16px; }
.rc-burger__meat { top: 8px; }
.rc-burger--open .rc-burger__bun:first-child { top: -1px; transform: rotate(45deg); }
.rc-burger--open .rc-burger__bun:last-child { transform: rotate(-45deg); }
.rc-burger--open .rc-burger__meat { opacity: 0; width: 0; }

/* ---------- Blocks ---------- */
.rc-block { position: relative; overflow: hidden; }
.rc-block__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* block-background__image / __overlay del builder */
.rc-block__image { position: absolute; top: 0; left: 0; width: 100%; height: 101%; object-fit: cover; object-position: center; display: block; }
.rc-block__overlay { position: absolute; inset: 0; z-index: 2; background: rgb(29, 30, 32); }
.rc-block__video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* attachment fixed: el bloque recorta un fondo fijo al viewport */
.rc-block__bg--fixed { clip-path: inset(0); backface-visibility: hidden; pointer-events: none; bottom: -1px; }
.rc-block__bg--fixed .rc-block__video { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; }
.rc-block__bg--fixed[style*="background-image"] { background-attachment: fixed; }
/* Grid del builder: filas/columnas exactas del original; las filas auto crecen con el contenido */
.rc-layout {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  max-width: var(--canvas-width);
  margin: 0 auto;
  grid-template-rows: var(--rows);
  grid-template-columns: var(--cols);
  min-height: var(--min-h);
}
.rc-el {
  position: relative;
  z-index: var(--z);
  display: flex;
  flex-direction: column;
  /* layout-element__component: align-self start; --justify del builder no centra el texto verticalmente */
  justify-content: flex-start;
  grid-row: var(--row);
  grid-column: var(--col);
  min-width: 0;
  text-align: var(--text, left);
}
.rc-el > * { width: 100%; }
.rc-el--video > *, .rc-el--button > *, .rc-el--social > * { height: 100%; }
/* grid-embed: iframe inline (con el hueco de la línea base) cuyo alto lo informa el srcdoc */
.rc-embed { width: 100%; height: auto; }
.rc-embed__iframe { width: 100%; border: none; overflow: hidden; }
.rc-layout--abs { display: block; }
.rc-el--abs { position: absolute; top: var(--top); left: var(--left); width: var(--w); height: var(--h); }
.rc-el--slide { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.rc-el--slide.rc-el--in { opacity: 1; transform: none; }
.rc-el--scale { opacity: 0; transform: scale(0.9); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.rc-el--scale.rc-el--in { opacity: 1; transform: none; }

/* GridImage: layout-element (grid) > .image-wrapper > .image > img.image__image, con el CSS del builder */
.rc-el--image { display: grid; grid-template-columns: 100%; }
.rc-el--image > .rc-imgwrap { grid-area: 1 / 1 / -1 / -1; align-self: start; width: 100%; height: 100%; max-height: calc(var(--img-h) + .5px); }
.rc-img { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; border-radius: var(--radius); }
.rc-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rc-img--mobile { display: none; }
/* image--link del builder */
a.rc-imglink { transition: filter 0.2s; }
a.rc-imglink:hover { filter: contrast(0.8); }
@media (min-width: 920px) and (max-width: 1224px) {
  .rc-img { width: var(--img-sd-w); max-width: 100%; height: var(--img-sd-h); }
}
@media (max-width: 920px) {
  .rc-el--image > .rc-imgwrap { max-height: var(--img-m-h); }
  .rc-img { border-radius: var(--m-radius); }
  .rc-img--desktop { display: none; }
  .rc-img--mobile { display: block; }
}
@media (max-width: 360px) {
  .rc-img { width: var(--img-xs-w); max-width: 100%; height: var(--img-xs-h); }
}

.rc-el-text { white-space: break-spaces; overflow-wrap: break-word; }
.rc-el-text a { color: inherit; }
/* .text-box del builder: espaciado entre bloques y compensación de line-height < 1.2 */
.rc-el-text h1 { margin-bottom: 48px; }
.rc-el-text :is(h2, h3, h4, .body-large, .body) { margin-bottom: 32px; }
.rc-el-text h5 { margin-bottom: 16px; }
.rc-el-text h6 { margin-bottom: 8px; }
.rc-el-text .body-small { margin-bottom: 24px; }
.rc-el-text :is(h1, h2, h3, h4, h5, h6, .body-large, .body, .body-small):last-child { margin-bottom: 0; }
.rc-el-text p:empty::after { content: " "; }
.rc-el-text :is(ol, ul) { padding-left: 40px; }
.rc-el-text :is(ol, ul) :is(h1, h2, h3, h4, h5, h6, .body-large, .body, .body-small) { margin-bottom: 0; }
.rc-el-text span { font-size: var(--fontSizeDesktop); }
.rc-el-text :is(h1, h2, h3, h4, h5, h6, p):last-child { padding-bottom: max(0px, (1.2 - var(--lineHeightDesktop, 1.2)) * .5em); }
@media (max-width: 920px) {
  .rc-el-text span { font-size: var(--fontSizeMobile); }
  .rc-el-text :is(h1, h2, h3, h4, h5, h6, p):first-child { padding-top: max(0px, (1.2 - var(--lineHeightMobile, 1.2)) * .5em); }
  .rc-el-text :is(h1, h2, h3, h4, h5, h6, p):last-child { padding-bottom: max(0px, (1.2 - var(--lineHeightMobile, 1.2)) * .7em); }
  /* Título del hero: el builder solo definió --fontSizeDesktop (72px) y en móvil cae al
     tamaño base del párrafo (~16px), desequilibrado contra el subtítulo. Mejora propia:
     escala fluida proporcional al desktop (aprox. 46% → ~33px en 390px). */
  .rc-el--text p[style*="--fontSizeDesktop: 72px"] > span {
    font-size: clamp(26px, 8.5vw, 44px);
    line-height: 1.15;
  }
}

/* Botón del builder (tokens grid-button-primary/secondary + overrides del elemento) */
.rc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  font-family: var(--btn-font, var(--font-secondary));
  font-weight: var(--btn-weight, 400);
  font-size: var(--btn-size, 14px);
  line-height: 1.35;
  text-decoration: none;
  color: var(--btn-color, #fff);
  background: var(--btn-bg, var(--teal));
  border: var(--btn-border, none);
  border-radius: var(--btn-radius, 8px);
  padding: var(--btn-pad, 14px 40px);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.rc-btn--secondary { padding: var(--btn-pad, 14px 32px); }
.rc-btn:hover { background: var(--btn-bg-hover, var(--btn-bg)); color: var(--btn-color-hover, var(--btn-color)); }
@media (max-width: 920px) {
  .rc-btn { white-space: normal; font-size: var(--btn-m-size, 14px); padding: var(--btn-m-pad, 0 16px); }
}
/* GridButton dentro del grid (layout-element__component--GridButton): sin padding, llena la celda,
   alto mínimo = alto del elemento; una línea solo por encima de 1191px */
.rc-el--button > .rc-btn {
  display: flex; padding: 0; min-width: 100%; min-height: var(--btn-min-h, 100%); height: min-content;
  max-width: 100%; overflow: hidden; text-overflow: clip; white-space: nowrap; justify-self: start;
}
/* defecto del original arreglado: si el texto no cabe en una línea, el botón crece hasta él */
@media (min-width: 1192px) {
  .rc-el--button > .rc-btn.rc-btn--fit { width: max-content; max-width: none; padding: 0 24px; align-self: var(--btn-fit-align, center); }
}
@media (max-width: 1191px) { .rc-el--button > .rc-btn { white-space: normal; } }
/* móvil: margen interior para que Safari (que mide el texto un poco más angosto y lo deja de borde a borde)
   no corte las letras contra las esquinas redondeadas */
@media (max-width: 920px) { .rc-el--button > .rc-btn { min-height: var(--btn-m-min-h, 100%); padding: 0 14px; } }
@media (max-width: 360px) { .rc-el--button > .rc-btn { padding: 0 14px; } }

/* GridSocialIcons (social-icons--row del builder) */
.rc-social { display: flex; flex-direction: row; justify-content: var(--icon-spacing, space-between); height: 100%; }
.rc-social__link { display: flex; align-items: center; justify-content: center; line-height: 16px; color: var(--icon-color); transition: color 0.2s; }
.rc-social__link:hover { color: var(--icon-color-hover); }
.rc-social__link svg { display: block; width: var(--icon-size); height: var(--icon-size); }

.rc-video { width: 100%; height: 100%; border: 0; display: block; }
.rc-video-cover { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #111 center/cover no-repeat; }
.rc-video-cover::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto;
  width: 68px; height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath d='M66.5 7.7c-.8-2.9-2.5-5.4-5.4-6.2C55.8.1 34 0 34 0S12.2.1 6.9 1.5c-2.9.8-4.6 3.3-5.4 6.2C.1 13 0 24 0 24s.1 11 1.5 16.3c.8 2.9 2.5 5.4 5.4 6.2C12.2 47.9 34 48 34 48s21.8-.1 27.1-1.5c2.9-.8 4.6-3.3 5.4-6.2C67.9 35 68 24 68 24s-.1-11-1.5-16.3z' fill='red'/%3E%3Cpath d='M45 24 27 14v20' fill='white'/%3E%3C/svg%3E") center no-repeat;
}

/* Video eliminado de YouTube (calavera): portada oscura que enlaza al canal */
.rc-video-cover--offline {
  display: flex; align-items: flex-end; justify-content: center; text-decoration: none;
  background: radial-gradient(ellipse at center, #2b2e33 0%, #16181b 60%, #0c0d0f 100%);
}
.rc-video-cover--offline::after { transition: transform 0.2s ease, filter 0.2s ease; }
.rc-video-cover--offline:hover::after { transform: scale(1.08); filter: brightness(1.1); }
.rc-video-cover__caption {
  margin-bottom: 9%; font-family: var(--font-secondary); font-size: 14px; letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

/* Video de Google Drive: portada + clic-para-reproducir, y luego el reproductor real, ambos con la caja
   del iframe 640×480 del builder dentro de su srcdoc (ancho tope del atributo width, borde por defecto
   del iframe, alto + hueco de línea base 4px, y debajo el hueco del iframe exterior 4px) */
.rc-drive, .rc-drive-cover {
  position: relative; display: block;
  width: min(100%, var(--w, 640px)); height: calc(var(--h, 480px) + 4px); margin-bottom: 4px;
  border: 2px inset rgb(118, 118, 118); padding: 0; background: #000;
}
.rc-drive-cover { cursor: pointer; background: #000 center/contain no-repeat; }
.rc-drive-cover::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 8px;
  background: rgba(33, 33, 33, 0.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E") center/28px no-repeat;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.rc-drive-cover:hover::after { background-color: rgba(0, 0, 0, 0.95); transform: scale(1.06); }

/* Cabecera de post (block-blog-header + blog-list-item-meta del builder) */
.rc-blog-header { display: grid; }
.rc-blog-header__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: var(--bh-align, flex-start);
  width: 100%; max-width: var(--bh-width, 954px); margin: auto;
  padding: var(--bh-pad);
}
.rc-blog-header__content { width: 100%; color: var(--text-dark); }
.rc-blog-header h1.rc-blog-header__title {
  font-family: var(--font-primary); font-weight: 700; letter-spacing: normal;
  font-size: var(--bh-title-size); line-height: 1.3em; margin-bottom: 12px;
}
.rc-blog-header p.rc-blog-header__description { opacity: 0.8; margin-bottom: 12px; }
.rc-blog-header__meta { opacity: 0.8; }
.rc-blog-header__meta p { font-family: var(--font-secondary); font-size: 16px; line-height: 1.3em; }
.rc-blog-header__meta p.rc-blog-header__author { margin-bottom: 4px; }
.rc-blog-header__subtitle span:nth-of-type(2)::before { content: " · "; }
.rc-blog-header__broken { position: absolute; top: 0; left: 0; width: 100%; height: 101%; display: block; object-fit: cover; }
@media (max-width: 920px) {
  .rc-blog-header__inner { padding: var(--bh-m-pad); }
  .rc-blog-header h1.rc-blog-header__title { font-size: var(--bh-title-size); line-height: 1.3em; }
  .rc-blog-header__meta p { font-size: 16px; line-height: 1.3em; }
}

/* Form */
/* GridForm del builder, tema light (form__control + input + grid-button--primary): grid con gap 22px,
   label inline 16px sobre input inline-block de 48px, botón alineado al inicio. El componente va
   arriba de su celda (align-self start, medido): a 1024 la celda de contacto es más alta que el form */
/* En WordPress es Contact Form 7: .wpcf7 > form.wpcf7-form (= .rc-form del clon) */
.rc-el--form { display: grid; grid-template-columns: 100%; }
.rc-el--form > .wpcf7 { grid-area: 1 / 1 / -1 / -1; align-self: start; min-width: 0; }
.rc-form, .rc-el--form .wpcf7-form { grid-area: 1 / 1 / -1 / -1; display: grid; gap: 22px; align-self: start; font-family: var(--font-secondary); font-size: 16px; line-height: 24px; color: var(--text-dark); }
.rc-el--form .wpcf7-form > .hidden-fields-container { display: none; }
.rc-el--form .wpcf7-form.init .wpcf7-response-output,
.rc-el--form .wpcf7-form.resetting .wpcf7-response-output,
.rc-el--form .wpcf7-form.submitting .wpcf7-response-output { display: none; }
.rc-el--form .wpcf7-form .wpcf7-response-output { margin: 0; padding: 8px 16px; font-size: 14px; line-height: 20px; border: 2px solid var(--teal); }
.rc-el--form .wpcf7-form.invalid .wpcf7-response-output,
.rc-el--form .wpcf7-form.unaccepted .wpcf7-response-output,
.rc-el--form .wpcf7-form.failed .wpcf7-response-output,
.rc-el--form .wpcf7-form.spam .wpcf7-response-output { border-color: #dc3232; }
.rc-el--form .wpcf7-form-control-wrap { display: inline; position: static; }
.rc-el--form .wpcf7-not-valid-tip { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: #dc3232; }
.rc-el--form .wpcf7-spinner { position: absolute; margin: 0 0 0 16px; }
.rc-form__actions { display: flex; align-items: center; justify-self: start; position: relative; }
.rc-form__field { display: block; }
.rc-form label { display: inline; font-size: 16px; color: rgb(26, 26, 26); }
.rc-form input, .rc-form textarea {
  display: inline-block; width: 100%; height: 48px; padding: 16px;
  font-family: var(--font-secondary); font-size: 16px; font-weight: 400; line-height: normal;
  color: rgb(136, 136, 136); background-color: rgb(241, 241, 241);
  border: 0 solid rgb(0, 0, 0); border-radius: 0; outline: none;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.rc-form textarea { height: 96px; min-height: 96px; resize: none; overflow: auto; }
.rc-btn.rc-form__submit {
  display: flex; justify-self: start; align-self: center;
  padding: 14px 40px; font-size: 14px; line-height: 18.9px; white-space: nowrap;
  --btn-bg: rgb(37, 95, 113); --btn-bg-hover: rgb(12, 70, 88);
  /* sin esto el texto hereda el color oscuro al pasar el mouse (defecto del clon) */
  --btn-color: #fff; --btn-color-hover: #fff;
  cursor: pointer;
}
@media (max-width: 920px) {
  .rc-btn.rc-form__submit { padding: 14px 32px; font-size: 14px; }
}

/* Instagram feed */
.rc-ig { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: var(--gap); }
.rc-ig a { display: block; overflow: hidden; aspect-ratio: 1; width: calc((100% - var(--gap) * (var(--per-row) - 1)) / var(--per-row)); }
.rc-ig img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.rc-ig a:hover img { transform: scale(1.04); }

/* Small desktop (920–1224px): filas en vw del builder */
@media (min-width: 920.1px) and (max-width: 1224px) {
  .rc-layout { grid-template-rows: var(--sd-rows, var(--rows)); min-height: auto; }
}

/* ---------- Mobile (≤920px): grid de 360px con filas t- fijas en px ---------- */
@media (max-width: 920px) {
  .rc-layout {
    max-width: 360px;
    padding: 0 16px;
    grid-template-rows: var(--t-rows);
    grid-template-columns: var(--m-cols);
    min-height: var(--t-min-h);
  }
  .rc-el { grid-row: var(--m-row); grid-column: var(--m-col); }
  .rc-el--m-hidden { display: none; }
  .rc-el--abs { top: var(--m-top); left: var(--m-left); width: var(--m-w); height: var(--m-h); }
  .rc-ig { gap: var(--m-gap); }
  .rc-ig a { width: calc((100% - var(--m-gap) * (var(--m-per-row) - 1)) / var(--m-per-row)); }
  .rc-header { padding: 0 16px; }
  .rc-header__desktop { display: none; }
  .rc-header__mobile {
    display: grid; align-items: center; padding: 8px 16px;
    grid-template-columns: auto minmax(0, max-content) max-content; grid-template-areas: "logo cart burger";
  }
  .rc-header__mobile .rc-header__logo { grid-area: logo; width: var(--m-logo-w); }
  .rc-header__mobile .rc-header__cart { grid-area: cart; overflow: hidden; }
  .rc-burger { grid-area: burger; margin-left: 32px; }
  .rc-header__dropdown {
    position: absolute; top: 100%; left: 0; width: 100%;
    display: flex; flex-direction: column; align-items: flex-end; gap: 32px;
    background: #fff; padding: 0 16px; max-height: 0; overflow-y: hidden; visibility: hidden;
    transition: max-height 0.3s ease-out 0.1s, padding 0.5s 0.1s, visibility 0.6s;
  }
  .rc-header__dropdown--open {
    visibility: visible; max-height: 50vh; padding: 24px 16px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 6px 14px -10px;
  }
  .rc-header__dropdown .rc-header__links { flex-direction: column; gap: 40px; text-align: end; }
  .rc-header__dropdown .rc-header__item { justify-content: flex-end; }
  .rc-header__dropdown .rc-header__item a { text-align: end; }
}

/* ---------- Integración con WordPress ---------- */
/* el header es una "parte de plantilla": su envoltorio es el elemento sticky (.rc-top) */
.wp-site-blocks > .rc-top { position: sticky; top: 0; z-index: 100; }
body.admin-bar .wp-site-blocks > .rc-top { top: var(--wp-admin--admin-bar--height, 32px); }
.wp-site-blocks, .rc-main, .wp-block-post-content { margin: 0; padding: 0; }
.wp-site-blocks > * + *, .wp-block-post-content > * + * { margin-block-start: 0; }
/* los textos del builder heredan el color del style de cada párrafo, también en los <mark> del editor */
.rc-el-text mark.has-inline-color { background: transparent; }
.rc-el-text :where(a) { color: inherit; }
/* feed vivo de Smash Balloon cuando hay cuenta conectada */
.rc-ig-live, .rc-ig-live #sb_instagram { width: 100%; padding: 0 !important; }
/* páginas de archivo / 404 (no existen en el original) */
.rc-archive { max-width: var(--canvas-width); margin: 0 auto; padding: 64px 16px; min-height: 50vh; }
.rc-archive .wp-block-post-title { font-size: 36px; margin-top: 32px; }
.rc-archive .wp-block-post-date, .rc-archive .wp-block-post-excerpt { font-family: var(--font-secondary); }
/* llamados del hero: solo existen en el rediseño móvil (assets/css/mobile.css) */
.rc-hero-ctas { display: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
