/* ==========================================================================
   Recetags Media — estilos de la marca
   Landing de restaurantes rehecha a código (antes Elementor), con el manual de Recetags:
   Anton (titulares) + Work Sans; Oliva, Fresa, Mostaza, Mantequilla y Carbón; botones sin esquinas.
   ========================================================================== */

:root {
	--rm-oliva:       #25482F;
	--rm-fresa:       #A30200;
	--rm-mostaza:     #F4962A;
	--rm-mantequilla: #FBF7E6;
	--rm-carbon:      #242223;

	/* Variables del tema base */
	--c-bg: var(--rm-mantequilla);
	--c-bg-alt: var(--rm-mantequilla);
	--c-text: var(--rm-oliva);
	--c-muted: var(--rm-oliva);
	--c-dark: var(--rm-oliva);
	--c-on-dark: var(--rm-mantequilla);
	--c-accent: var(--rm-mostaza);
	--c-on-accent: var(--rm-mantequilla);
	--f-body: "Work Sans", system-ui, sans-serif;
	--f-display: "Anton", Impact, sans-serif;
	--fw-display: 400;
	--radius: 0;
	--radius-btn: 0;
	--container: 1140px;

	--rm-header-h: 88px;
	--rm-gutter: clamp(1.25rem, 4vw, 2rem);
	--rm-space: clamp(4rem, 8vw, 6.5rem);
	accent-color: var(--rm-oliva);
}

* { -webkit-tap-highlight-color: transparent; }
body { background: var(--rm-mantequilla); color: var(--rm-oliva); font-family: var(--f-body); }
html { scroll-padding-top: calc(var(--rm-header-h) + 1rem); }

.rm-container { width: 100%; max-width: calc(1140px + 2 * var(--rm-gutter)); margin-inline: auto; padding-inline: var(--rm-gutter); }
.rm-container--ancho { max-width: calc(1400px + 2 * var(--rm-gutter)); }
.rm-center { display: flex; justify-content: center; text-align: center; }

/* La plantilla "Por secciones" no añade espacio entre secciones: cada una lleva el suyo */
.section.rm-hero, .section.rm-esp, .section.rm-vent, .section.rm-casos, .section.rm-sis, .section.rm-logos, .section.rm-form { padding-block: var(--rm-space); }

/* Dos secciones crema seguidas: sin doble espacio entre ellas */
.section.rm-vent + .section.rm-sis, .section.rm-sis + .section.rm-logos, .section.rm-logos + .section.rm-form { padding-top: 0; }

/* ---------- Tipografía ---------- */
.rm-h1 { margin: 0 0 1.5rem; font: 400 clamp(2.6rem, 4.6vw, 3.8rem)/1.2 var(--f-display); color: var(--rm-mantequilla); text-transform: uppercase; text-wrap: balance; }
.rm-h2 { margin: 0 0 1.25rem; font: 400 clamp(2rem, 3.6vw, 3rem)/1.25 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.rm-h2 u { text-decoration-thickness: 3px; text-underline-offset: .12em; }
.rm-eyebrow { margin: 0 0 .5rem; font: 500 clamp(1.05rem, 1.6vw, 1.5rem)/1.5 var(--f-body); text-transform: uppercase; letter-spacing: .02em; }
.rm-head { margin-bottom: 2.5rem; text-align: center; }
.rm-head .rm-h2 { margin-bottom: 0; }
.rm-text > *:last-child { margin-bottom: 0; }
.rm-text p { margin: 0 0 1em; }

/* ---------- Botones (sin esquinas) ---------- */
.rm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 1rem 2.1rem; border: 0; border-radius: 0; font: 700 clamp(1rem, 1.3vw, 1.25rem)/1 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, transform .1s; }
.rm-btn:active { transform: scale(.96); }
.rm-btn--mostaza { background: var(--rm-mostaza); color: var(--rm-mantequilla); }
.rm-btn--mostaza:not(.is-off):hover { background: #e3851b; }
.rm-btn--oliva { background: var(--rm-oliva); color: var(--rm-mantequilla); }
.rm-btn--oliva:not(.is-off):hover { background: #1b3622; }
.rm-btn--crema { background: var(--rm-mantequilla); color: var(--rm-oliva); }
.rm-btn--crema:not(.is-off):hover { background: #fff; }
.rm-btn--linea { background: transparent; color: var(--rm-oliva); box-shadow: inset 0 0 0 2px var(--rm-oliva); }
.rm-btn--linea:not(.is-off):hover { background: var(--rm-oliva); color: var(--rm-mantequilla); }
.rm-btn.is-off { cursor: default; }

/* ---------- Cabecera: granate, sticky ---------- */
.rm-header { position: sticky; top: 0; z-index: 100; background: var(--rm-fresa); transition: transform .35s ease; }
/* Al bajar se esconde; al subir vuelve (rm.js) */
.rm-header.is-hidden { transform: translateY(calc(-100% - 40px)); }
.rm-header--verde { background: var(--rm-oliva); }
.admin-bar .rm-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .rm-header { top: 0; } }
.rm-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--rm-header-h); }
.rm-header__logo { display: block; color: var(--rm-mantequilla); text-decoration: none; font: 400 1.5rem/1 var(--f-display); }
.rm-header__logo img { display: block; width: clamp(120px, 12vw, 166px); height: auto; }
.rm-header__cta { padding: .85rem 1.6rem; font-size: 1rem; }

/* ---------- Portada (verde) con comparador antes/después ---------- */
.rm-hero { background: var(--rm-oliva); color: var(--rm-mantequilla); }
.rm-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.rm-hero__text { margin: 0 0 2rem; max-width: 30ch; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.6; }
.rm-hero__media { position: relative; }
.rm-hero__photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.rm-hero__illus { position: absolute; right: -2rem; bottom: -3.5rem; width: clamp(90px, 11vw, 166px); height: auto; pointer-events: none; z-index: 3; }

.rm-ba { position: relative; aspect-ratio: 1; overflow: hidden; user-select: none; touch-action: pan-y; }
.rm-ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rm-ba__img--antes { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.rm-ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--rm-mantequilla); pointer-events: none; }
.rm-ba__knob { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; transform: translate(-50%, -50%); background: var(--rm-mantequilla); color: var(--rm-oliva); font: 700 1rem/1 var(--f-body); }
.rm-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* ---------- Fotos que cambian + texto (verde) ---------- */
.rm-esp { background: var(--rm-oliva); color: var(--rm-mantequilla); }
.rm-esp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.rm-esp__media { position: relative; padding: 3.5rem 0 0 2rem; }
.rm-esp__illus { position: absolute; top: 0; left: -1rem; width: clamp(110px, 14vw, 200px); height: auto; z-index: 2; pointer-events: none; }
/* Carrusel de una foto: se desliza solo (rm.js) */
.rm-esp__fotos { position: relative; aspect-ratio: 1; overflow: hidden; }
.rm-esp__track { display: flex; height: 100%; transition: transform 3s ease; }
.rm-esp__track.is-jump { transition: none; }
.rm-esp__foto { flex: 0 0 100%; height: 100%; }
.rm-esp__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rm-esp { overflow-x: clip; }
/* La caja de la cifra sobresale de la foto por la derecha */
.rm-esp__cifra { position: absolute; right: calc(-1 * clamp(1.5rem, 4vw, 3.5rem)); bottom: -2.5rem; z-index: 2; display: flex; flex-direction: column; gap: .35rem; margin: 0; padding: 1rem 1.25rem; min-width: 46%; background: var(--rm-mostaza); color: var(--rm-mantequilla); }
.rm-esp__cifra strong { font: 400 2.5rem/1 var(--f-display); }
.rm-esp__cifra span { font: 500 .95rem/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .03em; }
.rm-esp__text { font-size: 1.05rem; line-height: 1.6; }

/* ---------- Tarjetas con icono (crema) ---------- */
.rm-vent { background: var(--rm-mantequilla); }
.rm-vent__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.rm-vent__card { display: flex; flex-direction: column; gap: 1rem; padding: 1.75rem 1.5rem 2rem; background: var(--rm-oliva); color: var(--rm-mantequilla); }
.rm-vent__icon { width: auto; height: 56px; object-fit: contain; align-self: flex-start; }
.rm-vent__title { margin: 0; font: 700 clamp(1.5rem, 2.2vw, 2rem)/1.05 var(--f-body); }
.rm-vent__text { font-size: 1.05rem; line-height: 1.5; }

/* ---------- Casos de éxito (mostaza) ---------- */
.rm-casos { background: var(--rm-mostaza); color: var(--rm-mantequilla); }
.rm-casos .rm-h2 { color: var(--rm-mantequilla); }
.rm-casos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-bottom: 2.5rem; }
.rm-casos__card { padding: 1.5rem 1.5rem 2rem; background: var(--rm-mantequilla); color: var(--rm-oliva); }
.rm-casos__logo { display: flex; align-items: center; height: 120px; margin-bottom: 1.25rem; }
.rm-casos__logo img { width: auto; max-width: 70%; max-height: 120px; object-fit: contain; }
.rm-casos__cifra { margin: 0; font: 700 1.75rem/1.1 var(--f-body); }
.rm-casos__cifra-texto { margin: .25rem 0 1.25rem; font-size: 1.1rem; }
.rm-casos__datos { font-size: 1.05rem; line-height: 1.6; }

/* ---------- Caja verde con lista y llamada (crema) ---------- */
.rm-sis { background: var(--rm-mantequilla); }
.rm-sis__box { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem) clamp(4rem, 9vw, 7rem); background: var(--rm-oliva); color: var(--rm-mantequilla); }
.rm-sis__illus { position: absolute; left: clamp(.75rem, 2vw, 1.5rem); top: 50%; width: clamp(50px, 6vw, 84px); height: auto; transform: translateY(-50%); pointer-events: none; }
/* Giran con el scroll (rm.js); suavizado para que no vaya a saltos */
.rm-hero__illus, .rm-esp__illus, .rm-sis__illus { transition: rotate .15s linear; will-change: rotate; }
.rm-sis__text { font-size: 1.05rem; line-height: 1.6; }
.rm-sis__text ul { margin: 1rem 0 0; padding-left: 1.25rem; }
.rm-sis__text li { margin-bottom: .35rem; }
.rm-sis__card { padding: 2rem 1.75rem; background: var(--rm-mantequilla); color: var(--rm-oliva); text-align: center; }
.rm-sis__card-eyebrow { margin: 0 0 .5rem; font: 500 1rem/1.4 var(--f-body); text-transform: uppercase; }
.rm-sis__card-title { margin: 0 0 .5rem; font: 400 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--f-display); text-transform: uppercase; }
.rm-sis__card-text { margin-bottom: 1.25rem; font-size: 1.05rem; line-height: 1.5; }
.rm-sis__card-note { margin: 1rem 0 0; font-size: .95rem; }

/* ---------- Carrusel de logos (crema) ---------- */
.rm-logos { background: var(--rm-mantequilla); }
.rm-logos__wrap { position: relative; display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; }
.rm-logos__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 1rem) / 5); gap: 1rem; flex: 1; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rm-logos__track::-webkit-scrollbar { display: none; }
.rm-logos__item { scroll-snap-align: start; }
.rm-logos__item img { display: block; width: 100%; height: auto; }
.rm-logos__arrow { flex: none; width: 2.5rem; height: 2.5rem; border: 0; background: none; color: var(--rm-oliva); font: 400 2rem/1 var(--f-body); cursor: pointer; }
.rm-logos__nota { margin: 1.5rem 0 0; text-align: center; font-size: 1.05rem; }

/* ---------- Formulario con foto (crema) ---------- */
.rm-form { background: var(--rm-mantequilla); }
.rm-form__text { margin: .75rem 0 0; font-size: 1.1rem; }
.rm-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); align-items: stretch; }
.rm-form__grid--solo { grid-template-columns: 1fr; }
/* La foto es algo más baja que la caja verde: queda metida arriba y abajo, como en el original */
.rm-form__foto { margin-block: clamp(1.25rem, 3vw, 2.5rem) clamp(1.75rem, 4vw, 3.5rem); }
.rm-form__foto img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rm-form__box { padding: clamp(1rem, 2vw, 1.5rem); background: var(--rm-oliva); }

/* ---------- Cierre (granate) y barra legal (carbón) ---------- */
.rm-cierre { padding-block: clamp(2.5rem, 5vw, 3.5rem); background: var(--rm-fresa); color: var(--rm-mantequilla); text-align: center; }
.rm-cierre__logo img { display: block; width: 100px; height: auto; margin: 0 auto 1rem; }
.rm-cierre__title { margin: 0 0 1rem; font: 400 clamp(2rem, 3.6vw, 3rem)/1.2 var(--f-display); text-transform: uppercase; }
.rm-cierre__text { margin: 0 0 1rem; font-size: 1.1rem; line-height: 1.6; }
.rm-cierre__contact { margin: 0; font-size: 1.1rem; }
.rm-cierre a { color: inherit; text-decoration: none; }
.rm-cierre a:hover { text-decoration: underline; }
.rm-legal { padding-block: .9rem; background: var(--rm-carbon); color: var(--rm-mantequilla); font-size: .8rem; }
.rm-legal__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.rm-legal p, .rm-legal ul { margin: 0; }
.rm-legal ul { display: flex; gap: 1rem; padding: 0; list-style: none; }
.rm-legal a { color: inherit; text-decoration: none; }
.rm-legal a:hover { text-decoration: underline; }

/* ---------- Páginas de texto (legales) ---------- */
.page-template-default .site-main .prose { color: var(--rm-oliva); }
.page-template-default .page-title { font-family: var(--f-display); text-transform: uppercase; }

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1024px) {
	.rm-vent__grid, .rm-casos__grid { grid-template-columns: 1fr 1fr; }
	.rm-logos__track { grid-auto-columns: calc((100% - 2 * 1rem) / 3); }
}
@media (max-width: 767px) {
	:root { --rm-header-h: 68px; }
	.rm-hero__grid, .rm-esp__grid, .rm-sis__box, .rm-form__grid { grid-template-columns: 1fr; }
	.rm-hero__copy { text-align: left; }
	.rm-hero__illus { right: -.5rem; bottom: -2rem; }
	.rm-esp__media { padding: 3rem 1.25rem 2.5rem 1rem; }
	.rm-esp__cifra { right: 0; }
	.rm-vent__grid, .rm-casos__grid { grid-template-columns: 1fr; }
	.rm-sis__box { padding: 2rem 1.5rem; }
	.rm-sis__illus { display: none; }
	.rm-form__foto { max-height: 360px; overflow: hidden; margin: 0 1.5rem -1.5rem; position: relative; z-index: 1; }
	.rm-logos__track { grid-auto-columns: calc((100% - 1rem) / 2); }
	.rm-legal__inner { justify-content: center; text-align: center; }
	.rm-header__cta { padding: .7rem 1.1rem; font-size: .95rem; }
}
