/*
Theme Name: Gastromiun
Description: Tema hijo de Hello Elementor para Gastromiun. Contiene la cabecera, el pie, las plantillas del blog y el sistema visual. Las páginas se editan con Elementor; las clases g-* se asignan en Avanzado > Clases CSS.
Template: hello-elementor
Version: 1.0.16
Requires at least: 7.1
Requires PHP: 8.3
Text Domain: gastromiun
*/

/* ---------- 1. Fuentes y variables ---------- */
@font-face { font-family: "Source Serif 4"; font-weight: 400 650; src: url(assets/fonts/source-serif-4.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400 650; src: url(assets/fonts/source-serif-4-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Source Sans 3"; font-weight: 400 700; src: url(assets/fonts/source-sans-3.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400 700; src: url(assets/fonts/source-sans-3-italic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; src: url(assets/fonts/ibm-plex-mono.woff2) format("woff2"); font-display: swap; }

:root {
  --marino: #134489;  /* medido en el logotipo */
  --cian: #54C1E9;    /* medido en el logotipo; nunca texto sobre claro */
  --papel: #f8fbfe;
  --azul-claro: #edf5fb;
  --tinta: #101B2D;
  --filete: #d2e0eb;
  --noche: #0A1B36;   /* azul profundo: derivado del marino, para aperturas y pie */
  --serif: "Source Serif 4", serif;
  --sans: "Source Sans 3", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --margen: clamp(1.25rem, 5vw, 5rem);
  --borde: max(var(--margen), calc((100vw - 96rem) / 2));
  --aire: clamp(4.5rem, 10vw, 9rem);
  --hueco: clamp(1rem, 2vw, 2rem);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--papel); color: var(--tinta); font: 400 1.0625rem/1.55 var(--sans); overflow-x: clip;
  /* Los contenedores de Elementor parten de cero; el espaciado lo dan las clases g-* */
  --container-default-padding-top: 0px; --container-default-padding-right: 0px; --container-default-padding-bottom: 0px; --container-default-padding-left: 0px;
  --widgets-spacing: 0px 0px; --widgets-spacing-row: 0px; --widgets-spacing-column: 0px;
}
body[class*="elementor-kit-"] {
  --e-global-typography-primary-font-family: var(--serif);
  --e-global-typography-secondary-font-family: var(--serif);
  --e-global-typography-text-font-family: var(--sans);
  --e-global-typography-accent-font-family: var(--sans);
}
body :is(button, input, select, textarea) { font-family: var(--sans); }
body :is(pre, code, kbd, samp) { font-family: var(--mono); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--marino); outline-offset: 3px; }
.salto { position: absolute; left: -999rem; }
.salto:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--marino); color: var(--papel); padding: .75rem 1rem; }
.elementor-widget-text-editor p { margin: 0 0 .9em; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
body .elementor .elementor-heading-title em, em { font-style: italic; }

/* ---------- 3. Cabecera y menú ---------- */
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.1rem var(--borde); position: relative; z-index: 5; }
.marca img, .custom-logo { display: block; width: clamp(9.5rem, 14vw, 12rem); height: auto; }
.navegacion ul { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem); list-style: none; margin: 0; padding: 0; }
.navegacion a { text-decoration: none; font-weight: 500; padding: .5rem 0; display: inline-block; color: var(--tinta); }
.navegacion a:hover, .navegacion .current-menu-item > a, .navegacion .current_page_parent > a { color: var(--marino); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .45em; }
.navegacion .menu-cta > a, .boton { background: var(--marino); color: var(--papel); font-weight: 600; padding: .95rem 1.4rem; border-radius: 2px; text-decoration: none; transition: background .2s; }
.navegacion .menu-cta > a:hover, .boton:hover { background: var(--tinta); color: var(--papel); text-decoration: none; }
.menu-boton { display: none; }

/* ---------- 4. Estructura (clases para contenedores de Elementor) ---------- */
body .elementor .g-sec { --padding-left: var(--borde); --padding-right: var(--borde); --padding-top: var(--aire); }
body .elementor .g-sec-fin { --padding-bottom: var(--aire); }
body .elementor .g-rejilla { display: grid; grid-template-columns: repeat(12, 1fr); --column-gap: var(--hueco); --row-gap: 2.5rem; align-items: start; }
body .elementor .g-rejilla > * { grid-column: 4 / -1; }
body .elementor .g-rejilla > .g-lado { grid-column: 1 / span 3; }
body .elementor .g-rejilla > .g-todo { grid-column: 1 / -1; }
body .elementor .g-rejilla > .g-7 { grid-column: span 7; }
body .elementor .g-rejilla > .g-5 { grid-column: span 5; }
body .elementor .g-rejilla > .g-6 { grid-column: span 6; }
body .elementor .g-tres { display: grid; grid-template-columns: repeat(3, 1fr); --column-gap: var(--hueco); --row-gap: 2.5rem; }
body .elementor .g-pila { --row-gap: 1.5rem; }
body .elementor .g-acciones { flex-direction: row; flex-wrap: wrap; align-items: center; --column-gap: 2rem; --row-gap: 1.25rem; --margin-top: 1.25rem; }
body .elementor .g-acciones > .elementor-widget { width: auto; }

/* ---------- 5. Tipografía (clases para widgets) ---------- */
body .elementor .g-etq, .etq { font: 500 .8125rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--marino); }
body .elementor .g-etq .elementor-heading-title { font: inherit; letter-spacing: inherit; color: inherit; }
body .elementor .g-mega .elementor-heading-title, .mega { font: 400 clamp(3.35rem, 10vw, 10rem)/.98 var(--serif); letter-spacing: -.035em; color: var(--marino); margin: 0 0 0 -.04em; }
body .elementor .g-mega em { display: block; margin-left: .55em; }
body .elementor .g-mega-linea em { display: inline; margin: 0; }
body .elementor .g-titular .elementor-heading-title { font: 400 clamp(2.5rem, 6vw, 5.5rem)/1 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
body .elementor .g-h3 .elementor-heading-title { font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.1 var(--serif); }
body .elementor .g-h3s .elementor-heading-title { font: 600 1.125rem/1.3 var(--sans); color: inherit; }
body .elementor .g-manifiesto { font: 400 clamp(1.75rem, 3.6vw, 3.25rem)/1.14 var(--serif); letter-spacing: -.01em; max-width: 22em; text-wrap: pretty; }
body .elementor .g-lead { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.45; max-width: 32em; }
body .elementor .g-texto { max-width: 38em; }
body .elementor .g-peq { font-size: .9375rem; }
body .elementor .g-num { font: 400 clamp(3.5rem, 6vw, 5.5rem)/1 var(--serif); }

/* ---------- 6. Botones: uno principal, el resto enlaces con flecha ---------- */
body .elementor .elementor-button { background: var(--marino); color: var(--papel); fill: var(--papel); font: 600 1rem/1 var(--sans); padding: 1.05rem 1.6rem; border-radius: 2px; transition: background .2s, color .2s; }
body .elementor .elementor-button:hover, body .elementor .elementor-button:focus { background: var(--tinta); color: var(--papel); }
body .elementor .g-flecha .elementor-button, .flecha { background: none; color: inherit; padding: 0 0 .25em; border-radius: 0; border-bottom: 1px solid currentColor; font-weight: 600; text-decoration: none; }
body .elementor .g-flecha .elementor-button:hover { background: none; color: inherit; }
body .elementor .g-flecha .elementor-button-text::after, .flecha::after { content: "→"; display: inline-block; margin-left: .5em; transition: transform .2s; }
body .elementor .g-flecha .elementor-button:hover .elementor-button-text::after, .flecha:hover::after { transform: translateX(.3em); }

/* ---------- 8. Platos: enlaces gigantes de la home ---------- */
body .elementor .g-platos { --margin-top: clamp(2rem, 4vw, 3.5rem); }
body .elementor .g-plato { flex-direction: row; align-items: baseline; --column-gap: var(--hueco); --padding-top: clamp(1.25rem, 2.5vw, 2.25rem); --padding-bottom: clamp(1.25rem, 2.5vw, 2.25rem); --padding-left: var(--borde); --padding-right: var(--borde); border-top: 1px solid var(--marino); text-decoration: none; color: var(--marino); transition: background .25s, color .25s; }
body .elementor .g-plato:last-child { border-bottom: 1px solid var(--marino); }
body .elementor .g-plato > .elementor-widget { width: auto; }
body .elementor .g-plato .g-plato-num { font: 400 1.25rem/1 var(--serif); width: 3rem; flex: none; }
body .elementor .g-plato .g-plato-titulo { flex: 1; }
body .elementor .g-plato .g-plato-titulo .elementor-heading-title { font: 400 clamp(2rem, 6.2vw, 6rem)/1 var(--serif); letter-spacing: -.02em; color: inherit; transition: translate .25s; }
body .elementor .g-plato .g-plato-meta { font-size: .9375rem; text-align: right; font-variant-numeric: tabular-nums; color: inherit; }
body .elementor .g-plato:hover, body .elementor .g-plato:focus-visible { background: var(--marino); color: var(--papel); }
body .elementor .g-plato:hover .elementor-heading-title { translate: 1rem 0; }

/* ---------- 9. La carta: filas con puntos conductores ---------- */
body .elementor .g-carta { border-top: 1px solid var(--marino); }
body .elementor .g-fila { flex-direction: row; align-items: baseline; --column-gap: 1.25rem; --padding-top: 1.1rem; --padding-bottom: 1.1rem; border-bottom: 1px solid var(--filete); text-decoration: none; color: inherit; }
body .elementor .g-fila > .elementor-widget { width: auto; }
body .elementor .g-fila .g-fila-fecha { width: 8.5rem; flex: none; font-size: .9375rem; color: var(--marino); font-variant-numeric: tabular-nums; }
body .elementor .g-fila .g-fila-titulo { flex: 1; }
body .elementor .g-fila .g-fila-titulo .elementor-heading-title { display: flex; align-items: baseline; font: 400 clamp(1.375rem, 2.2vw, 1.875rem)/1.15 var(--serif); color: inherit; }
body .elementor .g-fila .g-fila-titulo .elementor-heading-title::after { content: ""; flex: 1; min-width: 2rem; margin-left: .9rem; border-bottom: 2px dotted currentColor; opacity: .45; translate: 0 -.25em; }
body .elementor .g-fila .g-fila-precio { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
body .elementor a.g-fila:hover .g-fila-titulo .elementor-heading-title { font-style: italic; }
body .elementor .g-plato-carta { --padding-top: 2rem; --padding-bottom: 2rem; --row-gap: .75rem; border-bottom: 1px solid var(--filete); }
body .elementor .g-plato-carta .g-fila { border: 0; --padding-top: 0px; --padding-bottom: 0px; }
body .elementor .g-plato-carta .g-fila .g-fila-titulo .elementor-heading-title { font-size: clamp(1.75rem, 3.6vw, 3.25rem); line-height: 1.02; color: var(--marino); }
body .elementor .g-plato-carta .g-fila .g-fila-precio { font: 400 clamp(1.5rem, 2.4vw, 2.25rem)/1 var(--serif); color: var(--marino); }

/* ---------- 10. La comanda: datos de una convocatoria ---------- */
body .elementor .g-comanda { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid currentColor; }
body .elementor .g-dato { --padding-top: 1rem; --padding-right: 1.5rem; --padding-bottom: 1.25rem; --row-gap: .35rem; }
body .elementor .g-comanda > .g-dato + .g-dato { border-left: 1px solid rgba(127, 127, 127, .35); --padding-left: 1.5rem; }
body .elementor .g-dato .g-dato-valor { font: 400 clamp(1.375rem, 2vw, 1.75rem)/1.15 var(--serif); font-variant-numeric: tabular-nums; }

/* ---------- 11. Piezas varias ---------- */
body .elementor .g-razon { border-top: 1px solid currentColor; --padding-top: 1rem; --row-gap: .75rem; }
body .elementor .g-razon .g-num { margin-bottom: .75rem; }
body .elementor .g-nota { border-left: 2px solid var(--cian); padding-left: 1rem; max-width: 30em; font-size: .9375rem; }
body .elementor .g-lista ul, body .elementor .g-lista ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--marino); counter-reset: n; }
body .elementor .g-lista li { counter-increment: n; display: grid; grid-template-columns: 3rem 1fr; padding: 1rem 0; border-bottom: 1px solid var(--filete); }
body .elementor .g-lista li::before { content: "0" counter(n); font: 400 1.25rem/1.3 var(--serif); color: var(--marino); }
body .elementor .g-cabecera-pag { --padding-top: clamp(2.5rem, 6vw, 6rem); --row-gap: clamp(1.5rem, 3vw, 2.5rem); }
body .elementor .g-mega-m .elementor-heading-title { font-size: clamp(3rem, 8.5vw, 8.5rem); line-height: .9; text-wrap: balance; }
body .elementor .g-cta { --padding-top: var(--aire); --padding-bottom: var(--aire); --row-gap: 2rem; }

/* ---------- 12. Formulario (Contact Form 7) ---------- */
.wpcf7 form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.wpcf7 form > p { margin: 0; }
.wpcf7 form > .completo, .wpcf7 form > .wpcf7-response-output, .wpcf7 form > fieldset { grid-column: 1 / -1; }
.wpcf7 label { display: block; font-size: .9375rem; font-weight: 500; }
.wpcf7 .wpcf7-form-control-wrap { display: block; margin-top: .45rem; }
.wpcf7 input:not([type=checkbox]):not([type=submit]), .wpcf7 select, .wpcf7 textarea { width: 100%; font: inherit; color: var(--tinta); background: #fff; border: 1px solid #8A8F99; border-radius: 2px; padding: .8rem .9rem; min-height: 3rem; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { display: grid; grid-template-columns: 1.5rem 1fr; gap: .75rem; font-weight: 400; }
.wpcf7 .wpcf7-acceptance input { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: var(--marino); }
.wpcf7 input[type=submit] { background: var(--marino); color: var(--papel); font: 600 1rem/1 var(--sans); padding: 1.05rem 1.6rem; border: 0; border-radius: 2px; cursor: pointer; }
.wpcf7 input[type=submit]:hover { background: var(--tinta); }
.wpcf7 .wpcf7-not-valid-tip { color: #A3201B; font-size: .875rem; margin-top: .35rem; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: 1rem; border: 1px solid var(--marino); }

/* ---------- 13. Pie ---------- */
.pie-cta { background: var(--noche); color: #fff; margin-top: var(--aire); padding: var(--aire) var(--borde) clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: 7fr 5fr; gap: 2rem var(--hueco); align-items: end; }
.pie-cta .mega { font-size: clamp(3.5rem, 9vw, 9rem); }
.pie-cta .boton { display: inline-block; }
.pie-cta p { margin: 0 0 1.5rem; font-size: 1.125rem; max-width: 24em; }
.pie-cta a:not(.boton) { text-underline-offset: .25em; text-decoration-thickness: 1px; display: inline-block; padding-block: .3rem; }

/* ---------- 14. Blog: Actualidad y entrada ---------- */
.blog-cabecera, .blog-lista, .entrada { padding-inline: var(--borde); }
.blog-cabecera { padding-top: clamp(2.5rem, 6vw, 6rem); }
.blog-lista { list-style: none; margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; padding-block: 0; }
.blog-lista a { display: grid; grid-template-columns: 9rem 1fr auto; gap: var(--hueco); align-items: baseline; padding: clamp(1.25rem, 2.2vw, 2rem) 0; border-top: 1px solid var(--marino); text-decoration: none; color: var(--marino); transition: background .25s, color .25s, padding .25s; }
.blog-lista li:last-child a { border-bottom: 1px solid var(--marino); }
.blog-lista time { font-size: .9375rem; font-variant-numeric: tabular-nums; }
.blog-lista b { font: 400 clamp(1.5rem, 3.4vw, 3rem)/1.05 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.blog-lista a::after { content: "→"; font-size: 1.5rem; }
.blog-lista a:hover, .blog-lista a:focus-visible { background: var(--marino); color: var(--papel); padding-inline: 1.25rem; }
.blog-lista li:first-child b { font-size: clamp(2rem, 5.5vw, 5rem); }
.paginacion { padding: 2.5rem var(--borde) 0; display: flex; gap: 2rem; }
.entrada { padding-top: clamp(2.5rem, 6vw, 6rem); }
.entrada-titulo { font: 400 clamp(2.5rem, 6.5vw, 6rem)/1 var(--serif); letter-spacing: -.02em; color: var(--marino); margin: 1rem 0 clamp(2rem, 4vw, 4rem); max-width: 16em; text-wrap: balance; }
.entrada-cuerpo { max-width: 42rem; margin-left: 25.6%; font-size: 1.125rem; line-height: 1.65; }
.entrada-cuerpo h2, .entrada-cuerpo h3 { font: 400 clamp(1.75rem, 2.6vw, 2.25rem)/1.1 var(--serif); color: var(--marino); margin: 2.5rem 0 1rem; }
.entrada-cuerpo img { max-width: 100%; height: auto; }
.entrada-cuerpo a { color: var(--marino); }

/* ---------- 15. Movimiento: discreto y opcional ---------- */
@media (prefers-reduced-motion: no-preference) {
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- 16. Tableta y móvil ---------- */
@media (max-width: 64rem) {
  body .elementor .g-rejilla > *, body .elementor .g-rejilla > .g-lado, body .elementor .g-rejilla > .g-7, body .elementor .g-rejilla > .g-5, body .elementor .g-rejilla > .g-6 { grid-column: 1 / -1; }
  body .elementor .g-rejilla { --row-gap: 1.5rem; }
  .pie-cta { grid-template-columns: 1fr; }
  .entrada-cuerpo { margin-left: 0; }
}
@media (max-width: 48rem) {
  .menu-boton { display: block; font: 600 1rem/1 var(--sans); color: var(--marino); background: none; border: 1px solid var(--marino); border-radius: 2px; padding: .8rem 1rem; min-height: 2.75rem; }
  .menu-boton:hover, .menu-boton:focus { background: none; color: var(--marino); }
  .cabecera { flex-wrap: wrap; }
  .navegacion { display: none; flex-basis: 100%; border-top: 1px solid var(--marino); }
  .navegacion.abierto { display: block; }
  .navegacion ul { flex-direction: column; align-items: stretch; gap: 0; }
  .navegacion li:not(.menu-cta) a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--filete); }
  .navegacion .menu-cta > a { display: block; text-align: center; margin-top: 1.25rem; }
  body .elementor .g-mega em { margin-left: .25em; }
  body .elementor .g-tres { grid-template-columns: 1fr; }
  body .elementor .g-comanda { grid-template-columns: 1fr 1fr; }
  body .elementor .g-dato:nth-child(odd) { border-left: 0; --padding-left: 0px; }
  body .elementor .g-dato { border-bottom: 1px solid rgba(127, 127, 127, .35); }
  body .elementor .g-plato { flex-wrap: wrap; }
  body .elementor .g-plato .g-plato-meta { width: 100%; text-align: left; padding-left: calc(3rem + var(--hueco)); }
  body .elementor .g-fila { flex-wrap: wrap; --row-gap: .25rem; }
  body .elementor .g-fila .g-fila-fecha { width: 100%; }
  body .elementor .g-fila .g-fila-titulo .elementor-heading-title::after { display: none; }
  .wpcf7 form { grid-template-columns: 1fr; }
  .blog-lista a { grid-template-columns: 1fr auto; gap: .35rem 1rem; }
  .blog-lista time { grid-column: 1 / -1; }
}
body .elementor .g-flecha .elementor-button, .flecha { padding-top: .4em; display: inline-block; }
.wpcf7 .wpcf7-acceptance label { line-height: 1.4; }

/* ---------- 17. Versión en blanco: fotografía y composición ---------- */
.cabecera { border-bottom: 1px solid var(--filete); }
body .elementor .g-mega .elementor-heading-title, .mega { font-size: clamp(4rem, 11.5vw, 11.5rem); }
body .elementor .g-apertura { --padding-top: clamp(2.5rem, 5vw, 5rem); align-items: end; }
body .elementor .g-apertura .g-pila { --row-gap: clamp(1.5rem, 2.5vw, 2.25rem); --padding-bottom: clamp(0rem, 3vw, 3rem); }
body .elementor .g-sec-corta { --padding-top: clamp(2.5rem, 5vw, 4.5rem); }
/* Imágenes: un arco, una foto vertical y una panorámica. Nada más. */
body .elementor .g-arco img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 0 0; }
body .elementor .g-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
body .elementor .g-foto-ancha img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
body .elementor .g-rejilla > .g-centro { align-self: center; }
/* Razones en vertical: número a la izquierda, texto a la derecha */
body .elementor .g-razones-lista { --row-gap: 0px; --margin-top: 1rem; }
body .elementor .g-razones-lista .g-razon { display: grid; grid-template-columns: 6.5rem 1fr; column-gap: var(--hueco); row-gap: .5rem; --padding-top: 1.5rem; --padding-bottom: 1.75rem; border-top: 1px solid var(--filete); }
body .elementor .g-razones-lista .g-razon:first-child { border-top-color: var(--marino); }
body .elementor .g-razones-lista .g-razon .g-num { grid-row: span 2; margin: 0; color: var(--marino); font-size: clamp(2.5rem, 4vw, 3.5rem); }
body .elementor .g-razon .g-num { color: var(--marino); }
body .elementor .g-razon { border-top-color: var(--marino); }
body .elementor .g-comanda { border-top-color: var(--marino); }
body .elementor .g-comanda > .g-dato + .g-dato { border-left-color: var(--filete); }
@media (max-width: 64rem) {
  body .elementor .g-apertura .g-arco img, body .elementor .g-arco img { aspect-ratio: 4 / 5; max-width: 28rem; }
  body .elementor .g-foto-ancha img { aspect-ratio: 3 / 2; }
}
@media (max-width: 48rem) {
  .pie-cta { grid-template-columns: 1fr; }
  body .elementor .g-razones-lista .g-razon { grid-template-columns: 4rem 1fr; }
}

/* ---------- 18. Dirección «alta hostelería» ---------- */
/* Etiquetas con filete */
body .elementor .g-etq p::before, .etq::before { content: ""; display: inline-block; width: 2.25rem; height: 1px; background: currentColor; vertical-align: middle; margin-right: .9rem; }

/* Apertura cinematográfica: fotografía a sangre con el texto encima */
body .elementor .g-hero2 { position: relative; isolation: isolate; min-height: min(86vh, 56rem); justify-content: flex-end; --padding-top: clamp(6rem, 12vw, 10rem); --padding-bottom: clamp(3rem, 6vw, 5.5rem); --row-gap: clamp(1.25rem, 2.2vw, 2rem); color: #fff; }
body .elementor .g-hero2-ficha { min-height: min(72vh, 46rem); }
body .elementor .g-hero2 .g-hero-foto { position: absolute; inset: 0; z-index: -2; width: 100%; max-width: none; overflow: hidden; }
body .elementor .g-hero2 .g-hero-foto > *, body .elementor .g-hero2 .g-hero-foto img { width: 100%; height: 100%; }
body .elementor .g-hero2 .g-hero-foto img { object-fit: cover; object-position: 72% 40%; }
/* El velo oscuro garantiza el contraste del texto sobre la foto */
body .elementor .g-hero2::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 27, 54, .9) 0%, rgba(10, 27, 54, .62) 46%, rgba(10, 27, 54, .12) 100%), linear-gradient(0deg, rgba(10, 27, 54, .55), rgba(10, 27, 54, 0) 45%); }
body .elementor .g-hero2 .g-etq { color: #fff; }
body .elementor .g-hero2 .elementor-heading-title { color: #fff; }
body .elementor .g-hero2 .g-mega em { color: var(--cian); }
body .elementor .g-hero2 .elementor-widget-text-editor { color: #fff; }
body .elementor .g-hero2 .g-lead { max-width: 30em; }
body .elementor .g-hero2 .elementor-button { background: #fff; color: var(--noche); }
body .elementor .g-hero2 .elementor-button:hover { background: var(--cian); color: var(--noche); }
body .elementor .g-hero2 .g-flecha .elementor-button, body .elementor .g-hero2 .g-flecha .elementor-button:hover { background: none; color: #fff; }
body .elementor .g-hero2 :focus-visible, .pie-cta :focus-visible { outline-color: var(--cian); }
body .elementor .g-hero2 .g-comanda { border-top-color: rgba(255, 255, 255, .55); --margin-top: 1rem; }
body .elementor .g-hero2 .g-comanda > .g-dato + .g-dato { border-left-color: rgba(255, 255, 255, .3); }
body .elementor .g-hero2 .g-dato .g-etq p::before { display: none; }

/* Sello tipográfico */
body .elementor .g-sello { position: absolute; right: var(--borde); bottom: -4.25rem; width: 8.5rem; height: 8.5rem; z-index: 3; }
.g-sello svg { display: block; width: 100%; height: 100%; }
.g-sello circle { fill: var(--cian); }
.g-sello text { font: 600 13.5px var(--sans); letter-spacing: .06em; fill: var(--noche); }
.g-sello .g-sello-centro { font: italic 400 44px var(--serif); letter-spacing: 0; }
@media (prefers-reduced-motion: no-preference) {
  .g-sello svg { animation: g-girar 38s linear infinite; }
  .g-sello .g-sello-centro { animation: g-girar 38s linear infinite reverse; transform-origin: 100px 100px; }
  @keyframes g-girar { to { rotate: 360deg; } }
}

/* Composición de dos fotos superpuestas */
body .elementor .g-duo { position: relative; --padding-bottom: 4rem; --padding-left: 12%; }
body .elementor .g-duo .g-duo-menor { position: absolute; left: 0; bottom: 0; width: 46%; }
body .elementor .g-duo .g-duo-menor img { width: 100%; aspect-ratio: 1; object-fit: cover; border: .6rem solid #fff; }

/* Cifras */
body .elementor .g-cifras { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--marino); border-bottom: 1px solid var(--marino); }
body .elementor .g-cifra { --padding-top: clamp(1.5rem, 3vw, 2.5rem); --padding-bottom: clamp(1.5rem, 3vw, 2.5rem); --padding-right: 1.5rem; --row-gap: .75rem; }
body .elementor .g-cifra + .g-cifra { border-left: 1px solid var(--filete); --padding-left: 1.5rem; }
body .elementor .g-cifra-num { font: 400 clamp(3.5rem, 7.5vw, 7rem)/.95 var(--serif); letter-spacing: -.03em; color: var(--marino); font-variant-numeric: lining-nums; }
body .elementor .g-cifra .g-peq { max-width: 16em; }

/* Platos: la fotografía aparece al pasar por la fila */
body .elementor .g-plato { position: relative; }
body .elementor .g-plato .g-plato-foto { position: absolute; right: 24%; top: 50%; width: clamp(11rem, 17vw, 16rem); z-index: 2; opacity: 0; translate: 0 -50%; rotate: -4deg; scale: .94; pointer-events: none; transition: opacity .35s, scale .5s cubic-bezier(.2, .7, .2, 1), rotate .5s; }
body .elementor .g-plato .g-plato-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 1.5rem 3rem rgba(10, 27, 54, .28); }
body .elementor .g-plato:hover .g-plato-foto, body .elementor .g-plato:focus-visible .g-plato-foto { opacity: 1; scale: 1; rotate: 3deg; }
body .elementor .g-plato:hover, body .elementor .g-plato:focus-visible { background: var(--noche); }
body .elementor .g-fila .g-fila-precio:empty { display: none; }

/* Pie oscuro */
.pie-cta .mega, .pie-cta a { color: #fff; }
.pie-cta .mega em { color: var(--cian); }
.pie-cta .boton { background: #fff; color: var(--noche); }
.pie-cta .boton:hover { background: var(--cian); color: var(--noche); }
.blog-lista a:hover, .blog-lista a:focus-visible { background: var(--noche); }

/* Aparición al entrar en pantalla (la activa el script del pie; nunca en el editor) */
.g-anim .g-sec:not(.g-hero2, .ed-content) > *, .g-anim .g-plato { transition: opacity .9s ease, translate .9s cubic-bezier(.2, .7, .2, 1); }
.g-anim .g-sec:not(.g-hero2, .ed-content) > *:not(.g-visto), .g-anim .g-plato:not(.g-visto) { opacity: 0; translate: 0 1.75rem; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes g-subir { from { opacity: 0; translate: 0 2rem; } }
  .g-anim .g-hero2 > .elementor-widget-heading, .g-anim .g-hero2 > .g-lead, .g-anim .g-hero2 > .g-etq, .g-anim .g-hero2 > .g-acciones { animation: g-subir 1s cubic-bezier(.2, .7, .2, 1) backwards; }
  .g-anim .g-hero2 > .elementor-widget-heading { animation-delay: .1s; }
  .g-anim .g-hero2 > .g-lead { animation-delay: .22s; }
  .g-anim .g-hero2 > .g-acciones { animation-delay: .34s; }
  @keyframes g-acercar { from { scale: 1.08; } }
  .g-anim .g-hero2 .g-hero-foto img { animation: g-acercar 2.4s cubic-bezier(.2, .7, .2, 1) backwards; }
}

@media (max-width: 64rem) {
  body .elementor .g-plato .g-plato-foto { display: none; }
  body .elementor .g-cifras { grid-template-columns: 1fr 1fr; }
  body .elementor .g-cifra:nth-child(odd) { border-left: 0; --padding-left: 0px; }
  body .elementor .g-cifra:nth-child(n+3) { border-top: 1px solid var(--filete); }
  body .elementor .g-duo { max-width: 30rem; }
}
@media (max-width: 48rem) {
  body .elementor .g-hero2 { min-height: 78vh; }
  body .elementor .g-hero2::before { background: linear-gradient(0deg, rgba(10, 27, 54, .92) 0%, rgba(10, 27, 54, .6) 60%, rgba(10, 27, 54, .35) 100%); }
  body .elementor .g-sello { width: 6rem; height: 6rem; bottom: -3rem; }
  .pie-cta { grid-template-columns: 1fr; }
}

/* Ajustes de la segunda revisión */
body .elementor .g-carta > .g-dato { border-bottom: 1px solid var(--filete); }
body .elementor .g-carta > .g-dato .g-etq p::before { display: none; }
body .elementor .g-hero2 .g-hero-foto.g-hero-foto-contenida { background: #000; }
body .elementor .g-hero2 .g-hero-foto.g-hero-foto-contenida img { object-fit: contain; object-position: 86% 50%; }
@media (max-width: 48rem) { body .elementor .g-hero2 .g-hero-foto.g-hero-foto-contenida img { object-fit: cover; object-position: 50% 30%; } }

/* ---------- 19. Submenú (Formación) ---------- */
.navegacion li { position: relative; }
.navegacion .menu-item-has-children > a::after { content: ""; display: inline-block; width: .4em; height: .4em; margin-left: .55em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -.2em; }
.navegacion .sub-menu { position: absolute; top: 100%; left: -1.5rem; z-index: 20; display: block; width: 24rem; padding: .5rem 0; background: #fff; border: 1px solid var(--filete); border-top: 2px solid var(--marino); box-shadow: 0 1.25rem 2.5rem rgba(10, 27, 54, .12); opacity: 0; visibility: hidden; translate: 0 .5rem; transition: opacity .2s, translate .2s, visibility .2s; }
.navegacion li:hover > .sub-menu, .navegacion li:focus-within > .sub-menu { opacity: 1; visibility: visible; translate: 0 0; }
.navegacion .sub-menu a { display: block; padding: .9rem 1.5rem; font: 400 1.3125rem/1.15 var(--serif); color: var(--marino); }
.navegacion .sub-menu li + li { border-top: 1px solid var(--filete); }
.navegacion .sub-menu a:hover, .navegacion .sub-menu .current-menu-item > a { background: var(--noche); color: #fff; text-decoration: none; }
.navegacion .current-menu-parent > a, .navegacion .current-menu-ancestor > a { color: var(--marino); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .45em; }
@media (max-width: 48rem) {
  .navegacion .sub-menu { position: static; width: auto; padding: 0 0 0 1.25rem; border: 0; box-shadow: none; opacity: 1; visibility: visible; translate: none; }
  .navegacion .sub-menu li + li { border-top: 0; }
  .navegacion .sub-menu a { padding: .85rem 0; font-size: 1.125rem; border-bottom: 1px solid var(--filete); }
  .navegacion .sub-menu a:hover, .navegacion .sub-menu .current-menu-item > a { background: none; color: var(--marino); }
}

/* ---------- 20. Tienda: ficha de curso, listados, cesta y pago ---------- */
.tienda, .pagina { padding: clamp(2.5rem, 5vw, 5rem) var(--borde) 0; }
.pagina-titulo, .tienda .woocommerce-products-header__title { font: 400 clamp(3rem, 8vw, 7.5rem)/.95 var(--serif); letter-spacing: -.03em; color: var(--marino); margin: 0 0 clamp(2rem, 4vw, 3.5rem); }
.navegacion .menu-cesta a span { font-variant-numeric: tabular-nums; color: var(--marino); }
.woocommerce .woocommerce-breadcrumb { font: 500 .8125rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--marino); margin-bottom: 2rem; }
.woocommerce .woocommerce-breadcrumb a { color: inherit; text-decoration: none; }
/* Ficha de curso */
.woocommerce div.product { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 4vw, 5rem); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { float: none; width: auto; margin: 0; }
.woocommerce div.product div.images img { aspect-ratio: 4 / 5; object-fit: cover; }
.woocommerce div.product div.images { position: sticky; top: 2rem; }
.woocommerce div.product .product_title { font: 400 clamp(2.5rem, 5vw, 4.75rem)/1 var(--serif); letter-spacing: -.02em; color: var(--marino); margin: 0 0 1.25rem; text-wrap: balance; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { font: 400 2.25rem/1 var(--serif); color: var(--marino); }
.woocommerce div.product .woocommerce-product-details__short-description { border-top: 1px solid var(--marino); margin-top: 1.5rem; padding-top: 1.5rem; }
.woocommerce div.product .woocommerce-product-details__short-description h2 { display: none; }
.woocommerce div.product form.cart { margin: 2rem 0; display: flex; gap: 1rem; align-items: stretch; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { display: none; }
.woocommerce .quantity .qty { width: 4.5rem; min-height: 3.25rem; font: inherit; border: 1px solid #8A8F99; border-radius: 2px; text-align: center; }
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt, .wc-block-components-button:not(.is-link) { background: var(--marino); color: #fff; font: 600 1rem/1 var(--sans); padding: 1.1rem 1.6rem; border-radius: 2px; border: 0; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .wc-block-components-button:not(.is-link):hover { background: var(--noche); color: #fff; }
.woocommerce div.product .product_meta { font-size: .9375rem; border-top: 1px solid var(--filete); padding-top: 1rem; }
.woocommerce div.product .product_meta a { color: var(--marino); }
.woocommerce div.product .stock.out-of-stock { font: 500 .8125rem/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #A3201B; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related, .woocommerce div.product .upsells { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: none; }
.woocommerce div.product .woocommerce-tabs .panel { border-top: 1px solid var(--marino); padding: clamp(2rem, 4vw, 3.5rem) 0 0; margin: clamp(2rem, 4vw, 4rem) 0 0 41.666%; max-width: 44rem; font-size: 1.0625rem; line-height: 1.65; }
.woocommerce div.product .woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce div.product .woocommerce-tabs .panel h2, .woocommerce div.product .woocommerce-tabs .panel h3 { font: 400 clamp(1.625rem, 2.4vw, 2.125rem)/1.1 var(--serif); color: var(--marino); margin: 2.25rem 0 .9rem; }
.woocommerce div.product .woocommerce-tabs .panel img { max-width: 100%; height: auto; }
.woocommerce .related > h2, .woocommerce .upsells > h2 { font: 400 clamp(2rem, 4vw, 3.5rem)/1 var(--serif); color: var(--marino); margin: var(--aire) 0 2rem; }
/* Listados de cursos */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem var(--hueco); margin: clamp(2rem, 4vw, 3.5rem) 0 2rem; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none; width: auto; margin: 0; display: flex; flex-direction: column; }
.woocommerce ul.products li.product a img { aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 1.25rem; transition: scale .6s cubic-bezier(.2, .7, .2, 1); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { overflow: hidden; display: block; text-decoration: none; }
.woocommerce ul.products li.product:hover a img { scale: 1.04; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 400 1.625rem/1.1 var(--serif); color: var(--marino); padding: 0 0 .6rem; }
.woocommerce ul.products li.product .price { font-size: 1.5rem; margin-bottom: 1rem; }
.woocommerce ul.products li.product .button { margin-top: auto; align-self: flex-start; background: none; color: var(--tinta); padding: .4em 0 .25em; border-radius: 0; border-bottom: 1px solid currentColor; }
.woocommerce ul.products li.product .button:hover { background: none; color: var(--marino); }
.woocommerce span.onsale { display: none; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { font-size: .9375rem; }
/* Avisos, cesta y pago */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { border: 1px solid var(--marino); border-radius: 0; background: #fff; color: var(--tinta); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--marino); }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { font-family: var(--sans); }
.wc-block-cart-items__header, .wc-block-components-title, .wc-block-components-checkout-step__title, .wc-block-cart__totals-title { font-family: var(--sans); letter-spacing: .06em; }
.wc-block-components-product-name { font: 400 1.5rem/1.15 var(--serif); color: var(--marino); text-decoration: none; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font: 400 2rem/1 var(--serif); color: var(--marino); }
@media (max-width: 64rem) {
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product div.images { position: static; max-width: 28rem; }
  .woocommerce div.product .woocommerce-tabs .panel { margin-left: 0; }
}
@media (max-width: 30rem) { .woocommerce ul.products { grid-template-columns: 1fr; } }
/* Las imágenes de los cursos son carteles: se muestran enteras, sin recorte */
.woocommerce ul.products li.product a img, .woocommerce div.product div.images img { aspect-ratio: auto; object-fit: contain; height: auto; }
.pagina .alignwide, .pagina .alignfull { margin-inline: 0; max-width: none; width: auto; }
.pagina-titulo em { font-style: italic; }
