/*
Theme Name: La Tomatera
Theme URI: https://latomatera.com
Author: La Tomatera
Description: Web de La Tomatera · Producción de eventos y project management en Barcelona. Que pase. A su hora.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: All rights reserved
Text Domain: latomatera
*/

/* ---------- Tipografías (incluidas en el tema, sin Google Fonts) ---------- */
@font-face {
  font-family: 'LT Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(assets/fonts/instrument-sans.woff2) format('woff2-variations'), url(assets/fonts/instrument-sans.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'LT Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url(assets/fonts/instrument-sans-ext.woff2) format('woff2-variations'), url(assets/fonts/instrument-sans-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'LT Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/dm-mono-400.woff2) format('woff2'); }
@font-face { font-family: 'LT Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/dm-mono-500.woff2) format('woff2'); }

/* ---------- Base ---------- */
:root {
  --crema: #F4EFE6;
  --petroleo: #11474D;
  --burdeos: #740434;
  --niebla: #B4CBDD;
  --tomate: #FF3A00;
  --sans: 'LT Sans', 'Instrument Sans', system-ui, sans-serif;
  --mono: 'LT Mono', 'DM Mono', ui-monospace, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; overflow-x: clip; background: var(--crema); color: var(--petroleo); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--petroleo); }
a:hover { color: #0B3236; }
:focus-visible { outline: 3px solid var(--tomate); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(20px, 5vw, 64px); padding-right: clamp(20px, 5vw, 64px); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.cond { font-stretch: 75%; font-variation-settings: 'wdth' 75; font-weight: 700; text-transform: uppercase; }
.dot { display: inline-block; width: 0.16em; height: 0.16em; border-radius: 50%; background: var(--tomate); margin-left: 0.03em; }
.dot--blanco { background: #FFFFFF; }

.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; border-radius: 999px; text-decoration: none; font-family: var(--mono); font-size: 14px; padding: 0 26px; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; font-size: 13px; padding: 0 20px; }
.btn--petroleo, .btn--petroleo:hover { background: var(--petroleo); color: var(--crema); }
.btn--crema, .btn--crema:hover { background: var(--crema); color: var(--petroleo); }
.btn--crema-burdeos, .btn--crema-burdeos:hover { background: var(--crema); color: var(--burdeos); }
.btn__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tomate); }
.btn__dot--blanco { background: #FFFFFF; }

/* ---------- Cabecera ---------- */
.site-header { position: relative; padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { width: 150px; height: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Portada ---------- */
.hero-barra { background: var(--tomate); position: relative; z-index: 2; }
.hero { background: var(--tomate); position: relative; overflow: hidden; }
.hero__garabato { position: absolute; left: -60px; bottom: -40px; width: min(980px, 90%); height: auto; opacity: .9; pointer-events: none; }
.hero__body { position: relative; padding-top: 96px; padding-bottom: 160px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero__kicker { margin: 0; font-weight: 500; font-size: 14px; color: var(--crema); }
.hero h1 { margin: 0; font-size: clamp(76px, 12vw, 176px); line-height: .82; color: var(--petroleo); }
.hero__lead { margin: 0; font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; line-height: 1.4; max-width: 540px; color: var(--crema); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__foto { flex: 0 1 380px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero__foto img { width: min(380px, 80vw); aspect-ratio: 1 / 1; height: auto; border-radius: 50%; object-fit: cover; display: block; border: 6px solid var(--crema); }
.hero__foto span { font-weight: 500; color: var(--crema); text-align: center; }

/* ---------- Títulos de sección ---------- */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.sec-title { margin: 0; font-size: clamp(56px, 7vw, 104px); line-height: .86; }

/* ---------- Proyectos ---------- */
.proyectos { padding-top: 140px; padding-bottom: 160px; display: flex; flex-direction: column; gap: 40px; }
.lista { border-top: 1.5px solid var(--petroleo); }
.proj { position: relative; display: block; text-decoration: none; border-bottom: 1.5px solid var(--petroleo); padding: 24px 0; color: var(--petroleo); transition: background-color .15s ease; }
.proj__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 240px 80px 48px; gap: 24px; align-items: center; }
.proj__num { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--tomate); display: flex; align-items: center; justify-content: center; transition: background-color .15s ease, color .15s ease; }
.proj__nombre { font-size: clamp(32px, 4.4vw, 60px); line-height: .9; }
.proj__sub { display: none; }
.proj__flecha { width: 44px; height: 44px; border-radius: 50%; background: var(--petroleo); color: var(--crema); display: flex; align-items: center; justify-content: center; font-size: 20px; justify-self: end; transition: background-color .15s ease; }
.proj__img { display: none; position: absolute; right: 24%; top: 50%; width: 210px; height: 210px; margin-top: -105px; border-radius: 50%; overflow: hidden; pointer-events: none; z-index: 2; }
.proj__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
a.proj:hover, a.proj:focus-visible { background: #FFFFFF; color: var(--petroleo); }
a.proj:hover .proj__num, a.proj:focus-visible .proj__num { background: var(--tomate); color: #FFFFFF; }
a.proj:hover .proj__flecha, a.proj:focus-visible .proj__flecha { background: var(--tomate); color: #FFFFFF; }
@media (hover: hover) and (min-width: 761px) {
  a.proj:hover .proj__img { display: block; }
}

/* ---------- Escaleta ---------- */
.servicios { background: var(--niebla); }
.servicios__body { padding-top: 140px; padding-bottom: 140px; display: flex; flex-direction: column; gap: 48px; }
.servicios__nota { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.esc { display: grid; grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, 1.4fr) 32px; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--petroleo); }
.esc--head { padding: 12px 0; border-bottom-width: 1.5px; font-size: 12px; }
.esc--ultima { border-bottom-width: 1.5px; }
.esc__hora { font-family: var(--mono); font-size: 18px; }
.esc__bloque { font-size: 34px; line-height: .92; }
.esc__desc { font-size: 17px; line-height: 1.55; }
.esc--dia { background: var(--petroleo); color: var(--crema); padding-left: 16px; padding-right: 16px; margin: 0 -16px; }
.esc__punto { width: 16px; height: 16px; border-radius: 50%; background: var(--tomate); justify-self: end; }

/* ---------- Sobre mí ---------- */
.sobre { padding-top: 160px; padding-bottom: 160px; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.sobre__foto { flex: 0 1 360px; width: min(360px, 80vw); aspect-ratio: 1 / 1; border-radius: 50%; background: #E3DCCF; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.sobre__foto img.sobre__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sobre__foto img.sobre__hilo { width: 72%; height: auto; }
.sobre__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.sobre__nombre { margin: 0; display: flex; align-items: flex-end; font-size: clamp(72px, 9vw, 132px); line-height: .8; }
.sobre__nombre img { height: .82em; width: auto; margin: 0 .02em .02em; }
.sobre__logo { width: clamp(220px, 26vw, 360px); height: auto; display: block; }
.sobre p.sobre__bio { margin: 0; font-size: 19px; line-height: 1.6; max-width: 560px; }
.sobre p.mono { margin: 0; }

/* ---------- Contacto y pie ---------- */
.contacto { color: var(--crema); background: var(--burdeos) url(assets/img/trazo-burdeos.svg) center / cover no-repeat; }
.contacto__body { padding-top: 160px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 64px; }
.contacto h2 { margin: 0; font-size: clamp(64px, 10vw, 152px); line-height: .82; text-shadow: 0 0 24px var(--burdeos); }
.contacto__acciones { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.contacto__mail { color: var(--crema); font-size: 22px; background: var(--burdeos); padding: 2px 6px; }
.contacto__mail:hover { color: #FFFFFF; }

.site-footer { background: var(--petroleo); color: var(--crema); }
.site-footer__body { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer__body img { width: 130px; height: auto; display: block; }
.site-footer a { color: var(--crema); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Página de proyecto ---------- */
.pp-intro { padding-top: 64px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 36px; }
.pp-intro .volver { text-decoration: none; }
.pp-intro h1 { margin: 0; font-size: clamp(56px, 9vw, 140px); line-height: .82; overflow-wrap: anywhere; }
.pp-lead { margin: 0; font-size: clamp(20px, 2vw, 28px); line-height: 1.4; max-width: 760px; }
.pp-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 1px solid var(--petroleo); }
.pp-meta div { padding: 16px 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.pp-meta span:first-child { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.pp-meta span:last-child { font-weight: 600; font-size: 17px; }
.pp-hero { padding-bottom: 120px; }
.pp-hero img { width: 100%; aspect-ratio: 16 / 8; height: auto; object-fit: cover; border-radius: 28px; display: block; }
.pp-textos { padding-bottom: 140px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 48px; }
.pp-textos div { display: flex; flex-direction: column; gap: 14px; }
.pp-textos p { margin: 0; font-size: 18px; line-height: 1.6; }
.pp-fotos { padding-bottom: 120px; display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 24px; align-items: center; }
.pp-fotos img { width: 100%; height: auto; object-fit: cover; display: block; }
.pp-fotos .circulo { aspect-ratio: 1 / 1; border-radius: 50%; }
.pp-fotos .espacio { aspect-ratio: 4 / 3; border-radius: 28px; }
.pp-escaleta { background: var(--niebla); }
.pp-escaleta__body { padding-top: 140px; padding-bottom: 140px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; }
.pp-escaleta h2 { margin: 0; font-size: clamp(48px, 5vw, 72px); line-height: .86; }
.pp-escaleta p { margin: 0; font-size: 17px; line-height: 1.6; max-width: 420px; }
.pp-escaleta__hilo { width: 260px; height: auto; margin-top: 12px; }
.pp-esc { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--petroleo); align-items: baseline; }
.pp-esc span:first-child { font-family: var(--mono); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.pp-esc--dia { background: var(--petroleo); color: var(--crema); }
.pp-esc--dia span:first-child { padding-left: 8px; }
.pp-esc--dia span:last-child { font-weight: 600; }
.pp-esc__punto { width: 9px; height: 9px; border-radius: 50%; background: var(--tomate); }
.pp-siguiente { padding-top: 72px; padding-bottom: 120px; }
.pp-escaleta + .pp-siguiente { padding-top: 120px; }
.pp-siguiente a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; text-decoration: none; border-top: 1px solid var(--petroleo); border-bottom: 1px solid var(--petroleo); padding: 36px 0; }
.pp-siguiente a > span:first-child { display: flex; flex-direction: column; gap: 10px; }
.pp-siguiente .cond { font-size: clamp(40px, 6vw, 88px); line-height: .86; }
.pp-siguiente .flecha { font-size: 40px; transition: transform .15s ease; }
.pp-siguiente a:hover .flecha { transform: translateX(6px); color: var(--tomate); }
.pp-cta { background: var(--burdeos); color: var(--crema); }
.pp-cta__body { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.pp-cta p { margin: 0; font-size: clamp(36px, 4vw, 56px); line-height: .9; }

/* ---------- Páginas genéricas de WordPress (aviso legal, privacidad…) ---------- */
.generica { padding-top: 64px; padding-bottom: 140px; }
.generica h1 { margin: 0 0 40px; font-size: clamp(48px, 7vw, 104px); line-height: .86; }
.generica .contenido { max-width: 760px; font-size: 18px; line-height: 1.65; }
.generica .contenido h2, .generica .contenido h3 { font-stretch: 75%; font-variation-settings: 'wdth' 75; text-transform: uppercase; line-height: 1; margin: 48px 0 16px; }
.generica .contenido h2 { font-size: 40px; }
.generica .contenido h3 { font-size: 28px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .proj__row { grid-template-columns: 56px minmax(0, 1fr) 200px 48px; }
  .proj__anio { display: none; }
  .proj__img { right: 30%; width: 180px; height: 180px; margin-top: -90px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { padding-top: 20px; padding-bottom: 20px; }
  .site-header__logo img { width: 128px; }
  .site-nav { display: none; }

  .hero__garabato { width: 170%; max-width: none; left: -40%; bottom: -10px; opacity: .75; }
  .hero__body { padding-top: 40px; padding-bottom: 96px; gap: 40px; }
  .hero__text { flex-basis: 100%; gap: 24px; }
  .hero h1 { font-size: clamp(76px, 25vw, 120px); }
  .hero__kicker { font-size: 13px; line-height: 1.6; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__foto { flex-basis: 100%; }
  .hero__foto img { width: min(300px, 78vw); }

  .proyectos { padding-top: 88px; padding-bottom: 96px; gap: 28px; }
  .proj { padding: 18px 0; }
  .proj__row { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 14px; }
  .proj__num { width: 40px; height: 40px; font-size: 12px; }
  .proj__tipo, .proj__anio { display: none; }
  .proj__sub { display: block; margin-top: 8px; font-size: 11px; }
  .proj__flecha { width: 40px; height: 40px; font-size: 18px; }
  .proj__nombre { font-size: clamp(30px, 9vw, 44px); }

  .servicios__body { padding-top: 88px; padding-bottom: 88px; gap: 32px; }
  .servicios__nota { align-items: flex-start; }
  .esc { grid-template-columns: 58px minmax(0, 1fr) 16px; gap: 6px 14px; padding: 20px 0; }
  .esc--head span:nth-child(3) { display: none; }
  .esc__hora { font-size: 15px; }
  .esc__bloque { font-size: 26px; }
  .esc__desc { grid-column: 2 / 4; grid-row: 2; font-size: 15px; }
  .esc--dia { padding-left: 12px; padding-right: 12px; margin: 0 -12px; }
  .esc__punto { grid-column: 3; grid-row: 1; width: 12px; height: 12px; }

  .sobre { padding-top: 96px; padding-bottom: 96px; gap: 40px; }
  .sobre__foto { flex-basis: auto; width: min(280px, 72vw); }
  .sobre__nombre { font-size: clamp(68px, 22vw, 100px); }

  .contacto__body { padding-top: 96px; padding-bottom: 80px; gap: 40px; }
  .contacto h2 { font-size: clamp(56px, 17vw, 90px); }
  .contacto__mail { font-size: 18px; }
  .site-footer__body { flex-direction: column; align-items: flex-start; }

  .pp-intro { padding-top: 32px; padding-bottom: 48px; gap: 24px; }
  .pp-meta { grid-template-columns: 1fr 1fr; }
  .pp-hero { padding-bottom: 64px; }
  .pp-hero img { aspect-ratio: 4 / 3; border-radius: 20px; }
  .pp-textos { padding-bottom: 72px; gap: 32px; }
  .pp-fotos { grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 88px; }
  .pp-fotos .espacio { grid-column: 1 / -1; border-radius: 20px; }
  .pp-escaleta__body { padding-top: 88px; padding-bottom: 88px; grid-template-columns: 1fr; gap: 40px; }
  .pp-esc { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; }
  .pp-siguiente { padding-top: 72px; padding-bottom: 72px; }
  .pp-siguiente .flecha { font-size: 32px; }
  .pp-cta__body { padding-top: 56px; padding-bottom: 56px; }
  .pp-cta .btn { width: 100%; justify-content: center; }
  .generica { padding-top: 32px; padding-bottom: 88px; }
}

/* ---------- Hilos que cruzan de una sección a otra ---------- */
.cruce { position: relative; height: 0; z-index: 3; pointer-events: none; }
.cruce img { position: absolute; height: auto; display: block; }
.cruce--corriente img { right: 0; top: -104px; width: min(1100px, 78%); }
.cruce--ese img { right: max(2%, calc((100% - 1280px) / 2 - 40px)); top: -150px; width: auto; height: 400px; }
.cruce--deriva img { right: 0; top: -64px; width: min(700px, 52%); }
.site-footer { position: relative; }
.site-footer .site-footer__body { padding-top: 72px; }
.site-footer__hilo { position: absolute; right: 0; top: -42px; width: min(900px, 68%); height: auto; pointer-events: none; }
.pp-intro { position: relative; }
.pp-caida { position: absolute; right: 0; top: 20px; height: 330px; width: auto; pointer-events: none; }
.pp-intro > *:not(.pp-caida) { position: relative; }
@media (max-width: 1024px) { .pp-caida { display: none; } }
@media (max-width: 760px) {
  .cruce--corriente img { width: 100%; right: 0; top: -50px; }
  .cruce--ese img { height: 230px; right: 3vw; top: -96px; }
  .cruce--deriva img { width: 80%; top: -40px; }
  .site-footer .site-footer__body { padding-top: 56px; }
  .site-footer__hilo { width: 92%; top: -26px; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .proj, .proj__num, .proj__flecha, .pp-siguiente .flecha { transition: none; }
}
