/* TIMBIRICHI · landing sencilla. Pensada primero para el móvil.
   Crema, verde botella y el granate de la barra. La letra del logo solo en los titulares. */

@font-face { font-family: "No Color"; src: url("../fonts/NoColor.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/DMMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/DMMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
    --crema: #F4EDE1;
    --verde: #15362A;
    --granate: #7B1E24;
    --tinta: #1F1D1A;
    --oro: #D9B36C;
    --linea: rgba(21, 54, 42, .2);
    --linea-clara: rgba(244, 237, 225, .28);
    --m: clamp(20px, 6.6vw, 28px);
    --nc: "No Color", Impact, "Arial Narrow Bold", sans-serif;
    --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
    --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--crema); color: var(--tinta); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
h1, h2, p, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salto { position: absolute; left: 10px; top: -80px; z-index: 50; padding: .8em 1em; background: var(--crema); color: var(--verde); font-family: var(--mono); font-size: .8rem; }
.salto:focus { top: 10px; }

.nc { font-family: var(--nc); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: .01em; }
.mono { font-family: var(--mono); font-weight: 500; font-size: .75rem; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; }
.eti { color: var(--granate); }
.fl { display: inline-block; font-family: var(--mono); font-size: 1.2em; line-height: 1; transition: transform .25s ease; }

/* ---------- botones ---------- */
.btn { display: flex; align-items: center; justify-content: space-between; gap: 1.2em; min-height: 58px; padding: 18px 22px 17px; border: 1.5px solid currentColor; font-family: var(--mono); font-weight: 500; font-size: .8125rem; line-height: 1.2; letter-spacing: .2em; text-transform: uppercase; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn--lleno { background: var(--crema); color: var(--verde); border-color: var(--crema); }
.btn--granate { background: var(--granate); color: var(--crema); border-color: var(--granate); }
.btn:active { transform: scale(.985); }

/* ================= Portada ================= */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: max(600px, 100vh); padding: calc(26px + env(safe-area-inset-top, 0px)) var(--m) calc(26px + env(safe-area-inset-bottom, 0px)); color: var(--crema); }
@supports (height: 100svh) { .hero { min-height: max(600px, 100svh); } }
.hero__foto { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #2a1810; }
/* en móviles bajos la foto se pinta más alta que la pantalla (anclada arriba) para que el mojito quede siempre por debajo del texto */
.hero__foto img { position: absolute; left: 0; top: 0; width: 100%; height: max(100%, 880px); max-width: none; object-fit: cover; object-position: 40% 50%; transform-origin: 40% 55%; animation: acerca 18s cubic-bezier(.2, .6, .2, 1) both; }
@keyframes acerca { from { transform: scale(1.08); } to { transform: none; } }
.hero__foto::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(18, 10, 5, .86) 0%, rgba(18, 10, 5, .64) 32%, rgba(18, 10, 5, 0) 54%),
                linear-gradient(to top, rgba(40, 4, 7, .84) 0%, rgba(40, 4, 7, .38) 22%, rgba(40, 4, 7, 0) 35%); }
.hero__logo { width: 132px; }

.sello { --s: clamp(84px, 24vw, 104px); position: absolute; z-index: 2; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; width: var(--s); height: var(--s); transform: rotate(8deg); filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .28)); }
.sello svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sello text { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
.sello__aro { transform-box: view-box; transform-origin: 50% 50%; animation: gira 46s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.sello { border-radius: 50%; background: #A2C8AA; }                 /* el menta del logo, todo el sello */
.sello img { position: absolute; inset: 13%; width: 74%; height: 74%; max-width: none; border-radius: 50%; }

.hero__txt { margin-top: clamp(56px, 7.2vh, 66px); }
.hero h1 { margin-top: 14px; font-size: clamp(44px, 15.1vw, 60px); }
.hero__sub { margin-top: 16px; max-width: 18em; text-wrap: balance; font-size: 1.03rem; line-height: 1.45; }
.hero__cta { margin-top: auto; padding-top: 40px; display: grid; gap: 10px; }

/* móviles bajos (un iPhone con las barras de Safari deja unos 660 px): el titular en dos líneas */
@media (max-width: 619px) and (max-height: 699px) {
    .hero { min-height: max(540px, 100svh); padding-top: calc(22px + env(safe-area-inset-top, 0px)); padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
    .hero__foto img { height: max(100%, 690px); }
    .hero h1 { font-size: min(10.2vw, 46px); margin-top: 12px; }
    .hero h1 br.m { display: none; }
    .hero__cta { gap: 8px; padding-top: 28px; }
    .hero .btn { min-height: 54px; padding-block: 16px 15px; }
}

@media (max-width: 349px) { .btn { letter-spacing: .12em; padding-inline: 16px; } .mono { letter-spacing: .16em; } }

/* ================= Buscamos equipo ================= */
.equipo { display: grid; padding: 72px var(--m) 76px; scroll-margin-top: 0; }
.equipo h2, .donde h2 { margin-top: 14px; font-size: clamp(46px, 14.9vw, 66px); }
.equipo h2 { color: var(--verde); }
.frase { margin-top: 20px; max-width: 15em; text-wrap: balance; color: var(--verde); font-weight: 500; font-size: 1.3125rem; line-height: 1.35; }
.texto { margin-top: 14px; max-width: 30em; }
.equipo__foto { width: calc(100% + 2 * var(--m)); max-width: none; margin: 30px calc(-1 * var(--m)) 0; aspect-ratio: 5 / 4.1; object-fit: cover; object-position: 42% 44%; background: #d8cfc0; }
.puestos { margin-top: 34px; border-top: 1.5px solid var(--verde); }
.puestos a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 2px 14px; border-bottom: 1px solid var(--linea); }
.puestos .nc { color: var(--verde); font-size: clamp(24px, 7.2vw, 30px); line-height: 1; white-space: nowrap; }
.puestos .fl { color: var(--granate); font-size: 1.05rem; }
.equipo .btn { margin-top: 34px; }
.correo { margin-top: 16px; display: flex; justify-content: center; align-items: baseline; gap: 14px; font-family: var(--mono); font-weight: 500; font-size: .875rem; letter-spacing: .12em; color: var(--verde); }
.correo span { user-select: all; }
.correo button { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--granate); border-bottom: 1px solid currentColor; padding: 6px 0 2px; }
.nota { margin-top: 18px; text-align: center; text-wrap: balance; font-size: .94rem; color: rgba(31, 29, 26, .74); }

/* ================= La cinta de la carta ================= */
.cinta { overflow: hidden; background: var(--granate); color: var(--crema); padding: 15px 0 11px; }
.cinta__pista { display: flex; align-items: center; width: max-content; font-family: var(--nc); font-size: 1.56rem; line-height: 1; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; animation: pasa 46s linear infinite; }
.cinta__pista i { font-style: normal; opacity: .5; padding: 0 .55em; }
@keyframes pasa { to { transform: translateX(-50%); } }

/* ================= La casa ================= */
.casa { padding: 70px var(--m) 74px; }
.casa__txt { margin-top: 16px; max-width: 26em; text-wrap: pretty; color: var(--verde); font-weight: 500; font-size: 1.4375rem; line-height: 1.38; }
.enl { display: inline-block; margin-top: 26px; padding-bottom: 5px; color: var(--verde); border-bottom: 1.5px solid var(--verde); }
.baldosa { height: 92px; background: #e9e6da url("../img/baldosa.webp") center / auto 184px repeat-x; }

/* ================= Dónde ================= */
.donde { background: var(--verde); color: var(--crema); padding: 72px var(--m) calc(40px + env(safe-area-inset-bottom, 0px)); }
.donde .eti { color: var(--oro); }
.datos { margin-top: 26px; border-top: 1px solid var(--linea-clara); }
.datos > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding: 15px 0 13px; border-bottom: 1px solid var(--linea-clara); }
.datos dt { font-size: .6875rem; opacity: .72; }
.datos dd { text-align: right; font-size: 1rem; }
.datos a { border-bottom: 1px solid var(--linea-clara); }
.donde__cta { margin-top: 30px; display: grid; gap: 10px; }
.pie { margin-top: 64px; display: grid; justify-items: center; gap: 20px; text-align: center; }
.pie img { width: 92px; }
.pie .mono { font-size: .625rem; letter-spacing: .16em; line-height: 2; opacity: .7; text-wrap: balance; }
.pie a { border-bottom: 1px solid currentColor; }

/* ================= Aparecer al bajar (solo si hay JS) ================= */
.js [data-ver] { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-ver].visto { opacity: 1; transform: none; }

/* ================= Con ratón ================= */
@media (hover: hover) {
    .btn:hover .fl, .puestos a:hover .fl, .enl:hover .fl { transform: translateX(6px); }
    .btn:hover { background: var(--crema); color: var(--verde); border-color: var(--crema); }
    .btn--lleno:hover { background: var(--oro); border-color: var(--oro); }
    .btn--granate:hover { background: var(--verde); color: var(--crema); border-color: var(--verde); }
    .puestos a:hover .nc { color: var(--granate); }
}

/* ================= Tableta ================= */
@media (min-width: 620px) {
    :root { --m: 44px; }
    .hero__logo { width: 160px; }
    .sello { --s: 132px; top: 22px; right: 28px; }
    .hero__foto img { height: 100%; }
    .hero h1 { font-size: 88px; }
    .hero__sub { font-size: 1.15rem; }
    .hero__cta { grid-template-columns: auto auto; justify-content: start; }
    .btn { gap: 2.4em; }
    .equipo, .casa { max-width: 720px; margin-inline: auto; }
    .equipo { padding-block: 96px; }
    .equipo h2 { font-size: 80px; }
    .donde h2 { font-size: 70px; white-space: nowrap; }
    .equipo__foto { width: 100%; margin-inline: 0; }
    .equipo .btn { display: flex; }
    .casa { padding-block: 92px; }
    .casa__txt { font-size: 1.7rem; }
    .baldosa { height: 110px; background-size: auto 220px; }
    .donde { padding-top: 96px; }
    .donde__dentro { max-width: 632px; margin-inline: auto; }
    .donde__cta { grid-template-columns: 1fr 1fr; }
}

/* ================= Pantalla grande ================= */
@media (min-width: 900px) {
    :root { --m: clamp(44px, 4.5vw, 72px); }
    .hero { min-height: max(560px, 100vh); padding-top: 34px; padding-bottom: 56px; }
    /* en pantallas anchas y bajas la foto también se pinta más alta, para que la barra no suba hasta el texto */
    .hero__foto img { height: max(100%, 820px); object-position: 50% 50%; transform-origin: 50% 55%; }
    .hero__foto::after { background: linear-gradient(to bottom, rgba(18, 10, 5, .84) 0%, rgba(18, 10, 5, .52) 36%, rgba(18, 10, 5, 0) 53%), linear-gradient(to top, rgba(40, 4, 7, .72) 0%, rgba(40, 4, 7, 0) 30%); }
    .hero__logo { width: 190px; }
    .sello { --s: clamp(140px, 11.5vw, 172px); top: 28px; right: var(--m); }
    .hero__txt { margin-top: clamp(36px, 7vh, 64px); }
    .hero h1 { font-size: clamp(56px, min(5.9vw, 11.4vh), 104px); }
    .hero h1 br.m { display: none; }
    .hero__sub { max-width: none; font-size: 1.19rem; }

    .equipo { max-width: 1240px; grid-template-columns: 1fr 1fr; grid-template-areas: "txt lista" "foto lista"; column-gap: clamp(56px, 7vw, 96px); align-items: start; padding: 116px var(--m) 120px; }
    .equipo__txt { grid-area: txt; }
    .equipo__foto { grid-area: foto; margin-top: 36px; }
    .equipo__lista { grid-area: lista; position: sticky; top: 40px; }
    .equipo h2, .donde h2 { font-size: clamp(72px, 6.4vw, 96px); }
    .donde h2 { white-space: normal; }
    .frase { font-size: 1.56rem; }
    .puestos { margin-top: 8px; }
    .puestos a { padding: 24px 2px 19px; }
    .puestos .nc { font-size: clamp(34px, 3.2vw, 44px); }

    .cinta { padding: 18px 0 13px; }
    .cinta__pista { font-size: 1.9rem; }
    .casa { max-width: 1240px; padding: 116px var(--m); }
    .casa__txt { font-size: 2.12rem; line-height: 1.32; }
    .baldosa { height: 124px; background-size: auto 248px; }
    .donde { padding: 110px var(--m) 44px; }
    .donde__dentro { max-width: 1096px; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(56px, 7vw, 96px); align-items: start; }
    .donde__dentro > .eti, .donde__dentro > h2 { grid-column: 1; }
    .donde__dentro > .datos { grid-column: 2; grid-row: 1 / span 3; margin-top: 6px; }
    .donde__cta { grid-column: 1; margin-top: 36px; grid-template-columns: 1fr; max-width: 360px; }
    .pie { margin-top: 96px; }
}

/* portátiles muy bajos: la foto algo menos alta para que los botones caigan sobre el frente rojo */
@media (min-width: 900px) and (max-height: 650px) {
    .hero { padding-bottom: 40px; }
    .hero__foto img { height: max(100%, 680px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__foto img, .sello__aro, .cinta__pista { animation: none; }
    .js [data-ver] { opacity: 1; transform: none; transition: none; }
    .fl { transition: none; }
}
