/* ============ Colores y tipografías ============ */
:root {
  --night: #14211C;      /* verde casi negro */
  --black: #0B1410;      /* franjas letterbox */
  --cream: #F1ECE3;      /* fondo claro */
  --sand-bg: #E7DFD1;    /* fondo arena */
  --green: #2F5B4B;      /* verde de marca */
  --wine: #7A2E3E;       /* vino */
  --rose: #DFA3AF;       /* vino claro, para texto sobre oscuro */
  --mint: #9FD3BF;       /* menta, detalles tech */
  --sand: #D8C3A5;       /* arena */
  --text-soft: #C3CBC6;  /* texto suave sobre oscuro */
  --text-muted: #4A4A48; /* texto suave sobre claro */
  --line-dark: #2E3D36;
  --grey: #93A099;

  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body: 'Instrument Sans', system-ui, sans-serif;
  --f-accent: 'Instrument Serif', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h, 90px) - 14px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--night);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
p { margin: 0; }
a { color: var(--green); }
a:hover { color: #1E3D32; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--cream); color: var(--night); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Grano de película sobre toda la página */
.grain { position: fixed; inset: 0; width: 100%; height: 100%; opacity: .07; mix-blend-mode: multiply; pointer-events: none; z-index: 5; }

/* ============ Estructura ============ */
.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 96px; padding-bottom: 96px; }
.rel { position: relative; }
.center { text-align: center; }
.narrow { max-width: 820px; }
.dark { position: relative; overflow: hidden; background: var(--night); color: var(--cream); }
.band-sand { background: var(--sand-bg); }
.band-green { background: var(--green); color: var(--cream); }
.letterbox { height: 14px; background: var(--black); position: relative; z-index: 1; }
.leak { position: absolute; pointer-events: none; border-radius: 50%; }
/* Luces de fondo hechas con degradados suaves: se funden con el fondo, sin bordes en ningún navegador */
.leak-1 { top: -260px; right: -260px; width: 900px; height: 760px; background: radial-gradient(closest-side, rgba(122,46,62,.42), rgba(122,46,62,.16) 55%, rgba(122,46,62,0)); }
.leak-2 { bottom: -300px; left: -280px; width: 820px; height: 680px; background: radial-gradient(closest-side, rgba(47,91,75,.38), rgba(47,91,75,.12) 55%, rgba(47,91,75,0)); }
.leak-3 { top: 0; right: -320px; width: 860px; height: 720px; background: radial-gradient(closest-side, rgba(122,46,62,.34), rgba(122,46,62,.12) 55%, rgba(122,46,62,0)); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }

/* ============ Tipografía ============ */
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .12em; }
.small { font-size: 13px; letter-spacing: .08em; }
.tiny { font-size: 12px; letter-spacing: .04em; color: var(--grey); }
.tiny-label { font-size: 12px; letter-spacing: .1em; }
.eyebrow { margin-bottom: 18px; }
.accent { font-family: var(--f-accent); font-style: italic; }
.display, .display-2, .h2, .h3, .card-title, .ws-name, .big, .price-num, .fact-value, .brand {
  font-family: var(--f-display); font-weight: 800;
}
.display { margin: 0; font-size: clamp(44px, 7vw, 100px); line-height: .98; letter-spacing: -.03em; max-width: 1000px; }
.display-2 { margin: 0; font-size: clamp(38px, 5.5vw, 70px); line-height: 1; letter-spacing: -.03em; }
.h2 { margin: 0 0 40px; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.04; letter-spacing: -.02em; }
.h2.wide { max-width: 900px; margin-bottom: 48px; }
.h3 { margin: 8px 0; font-size: 22px; line-height: 1.2; }

.rose { color: var(--rose); }
.mint { color: var(--mint); }
.sand { color: var(--sand); }
.green { color: var(--green); }
.wine { color: var(--wine); }
.grey { color: var(--grey); }
.light { color: var(--cream); }
.muted { color: var(--text-muted); }
.soft { color: var(--text-soft); }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 14px 28px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 17px;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-wine { background: var(--wine); color: var(--cream); }
.btn-wine:hover { background: #8E3649; color: var(--cream); }
.btn-ghost { border: 1px solid var(--cream); color: var(--cream); }
.btn-ghost:hover { background: rgba(241,236,227,.1); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.is-hidden { display: none !important; }

/* ============ Encabezado ============ */
.topbar { position: relative; z-index: 2; padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.brand { font-size: 24px; letter-spacing: -.01em; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 15px; font-weight: 500; }
.nav > a:not(.btn) { color: var(--cream); text-decoration: none; padding: 10px 0; }
.nav > a:not(.btn):hover { color: var(--rose); }
.lang { display: flex; border: 1px solid #3C4D45; border-radius: 999px; padding: 3px; font-family: var(--f-mono); font-size: 13px; }
.lang button { background: transparent; color: var(--cream); border: 0; border-radius: 999px; padding: 8px 14px; min-height: 38px; font: inherit; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--night); }

/* Menú fijo: queda arriba mientras la persona scrollea */
.topbar-shell { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; transition: top .3s ease, padding .3s ease; }
.topbar { transition: padding .3s ease, background-color .3s ease, box-shadow .3s ease, border-color .3s ease, max-width .3s ease; border: 1px solid transparent; border-radius: 999px; }
/* Al scrollear: el menú se convierte en una isla flotante con bordes redondeados */
.topbar-shell.is-scrolled { top: 12px; padding: 0 16px; }
.topbar-shell.is-scrolled .topbar {
  max-width: 1040px; padding: 8px 8px 8px 28px;
  background: rgba(20, 33, 28, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-color: rgba(241, 236, 227, .12);
  box-shadow: 0 12px 32px rgba(8, 14, 11, .35);
}
.topbar-shell.is-scrolled .brand { font-size: 20px; }
.topbar-space { height: var(--topbar-h, 90px); }
@media (prefers-reduced-motion: reduce) { .topbar-shell, .topbar { transition: none; } }

/* ============ Hero ============ */
.hero-body { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 96px; }
.hero-body:focus { outline: none; }
.hero .eyebrow { margin-bottom: 28px; }
.hero-accent { font-size: clamp(36px, 5vw, 66px); line-height: 1.1; margin-top: 14px; }
.hero-sub { margin-top: 28px; max-width: 680px; font-size: 21px; color: var(--text-soft); }
.hero-cards { margin-top: 56px; }

.card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 6px; text-decoration: none; color: var(--cream); background: rgba(241,236,227,.05); border: 1px solid var(--line-dark); transition: transform .2s ease, border-color .2s ease; }
.card:hover { color: var(--cream); transform: translateY(-3px); border-color: var(--mint); }
.card-green { background: var(--green); border-color: var(--green); }
.card-green:hover { border-color: var(--cream); }
.card-title { font-size: 28px; line-height: 1.12; }
.card-cta { font-size: 26px; }

/* Esquinas de visor */
.frame::before, .frame::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; }
.frame::before { top: 10px; left: 10px; border-top: 2px solid var(--mint); border-left: 2px solid var(--mint); }
.frame::after { bottom: 10px; right: 10px; border-bottom: 2px solid var(--mint); border-right: 2px solid var(--mint); }
.frame-light::before, .frame-light::after { border-color: var(--cream); }

/* ============ Agencias ============ */
.pain, .week { padding-top: 18px; border-top: 1px solid var(--night); }
.week { border-top: 3px solid var(--green); }
.dsp { margin-top: 64px; background: var(--night); color: var(--cream); border-radius: 6px; padding: 36px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.dsp-note { flex: 999 1 480px; min-width: 0; font-size: 19px; color: var(--text-soft); }
.dsp-note strong { color: var(--cream); }
.dsp-quote { flex: 1 1 220px; font-size: 30px; line-height: 1.2; }

/* Franja de plataformas */
.platforms { margin-top: 40px; }
.platforms .tiny-label { margin-bottom: 14px; }
.platform-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.platform-list li { font-family: var(--f-mono); font-size: 14px; letter-spacing: .02em; padding: 8px 14px; border: 1px solid rgba(20,33,28,.35); border-radius: 999px; }
.platform-list li.more { background: var(--wine); color: var(--cream); border-color: var(--wine); font-weight: 500; }

/* ============ Calculadora ============ */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split-col { flex: 1 1 360px; min-width: 0; }
.split .h2 { margin-bottom: 16px; font-size: clamp(30px, 4vw, 48px); }
.sliders { display: flex; flex-direction: column; gap: 28px; margin-top: 32px; }
.sliders label { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.sliders output { font-size: 15px; letter-spacing: 0; white-space: nowrap; }
input[type=range] { width: 100%; height: 44px; accent-color: var(--wine); cursor: pointer; }
.calc-out { background: var(--night); color: var(--cream); border-radius: 6px; padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.big { font-size: clamp(40px, 5vw, 56px); line-height: 1.1; }
.calc-save { font-size: 16px; color: var(--text-soft); border-top: 1px solid var(--line-dark); padding-top: 20px; }
.calc-save strong { color: var(--cream); }

/* ============ Precio ============ */
.price { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; background: var(--green); color: var(--cream); border-radius: 6px; padding: 36px; }
.price-body { flex: 999 1 420px; min-width: 0; }
.price-num { font-size: clamp(32px, 4vw, 44px); line-height: 1.08; margin-top: 6px; }
.price-text { margin-top: 8px; color: #D9E3DD; }

/* ============ Talleres ============ */
.w-accent { font-size: clamp(30px, 4vw, 50px); margin-top: 8px; }
.lead { margin-top: 24px; font-size: 20px; color: var(--text-soft); }
.narrow .soft { margin-top: 16px; }
.workshops { margin-top: 56px; }
.ai-how { margin-top: 56px; padding: 36px; border: 1px solid var(--line-dark); border-radius: 6px; background: rgba(241,236,227,.03); }
.ai-title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.ai-lead { margin-top: 12px; max-width: 720px; font-size: 19px; color: var(--text-soft); }
.ai-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 28px; }
.ai-col { padding: 22px; border-radius: 6px; border: 1px solid var(--line-dark); }
.ai-col .tiny-label { margin-bottom: 8px; }
.ai-you { border-color: var(--wine); background: rgba(122,46,62,.18); }
.ai-quote { margin-top: 26px; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.workshop { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 6px; background: rgba(241,236,227,.05); border: 1px solid var(--line-dark); }
.ws-name { margin: 10px 0 4px; font-size: 30px; line-height: 1.08; }
.ws-for { font-size: 24px; }
.workshop .soft { margin: 14px 0 18px; }
.builds { list-style: none; margin: 4px 0 0; padding: 0; }
.builds li { display: flex; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-dark); }
.builds li::before { content: "→"; font-family: var(--f-mono); font-size: 13px; color: var(--mint); padding-top: 3px; }
.ws-foot { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.facts { margin-top: 24px; }
.fact { border: 1px solid var(--line-dark); border-radius: 6px; padding: 20px; }
.fact-value { font-size: 20px; margin-top: 6px; line-height: 1.25; }

/* ============ Sobre mí ============ */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.photo { position: relative; margin: 0; flex: 0 1 340px; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--night); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--cream); }
.corner.tl { top: 14px; left: 14px; border-top-width: 2px; border-left-width: 2px; }
.corner.tr { top: 14px; right: 14px; border-top-width: 2px; border-right-width: 2px; }
.corner.bl { bottom: 14px; left: 14px; border-bottom-width: 2px; border-left-width: 2px; }
.corner.br { bottom: 14px; right: 14px; border-bottom-width: 2px; border-right-width: 2px; }
.rec { position: absolute; bottom: 18px; left: 46px; font-size: 12px; letter-spacing: .1em; color: var(--cream); text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.about-text { flex: 999 1 480px; min-width: 0; }
.about-text .h2 { margin-bottom: 20px; }
.about-text .muted + .muted { margin-top: 16px; }
.clients { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(20,33,28,.2); }
.clients .tiny-label { margin-bottom: 12px; }
.client-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-family: var(--f-display); font-weight: 800; font-size: 22px; }
.quote { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; margin-top: 28px; }

/* ============ Cierre y formulario ============ */
#hablemos .section { padding-top: 104px; padding-bottom: 104px; }
.end-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.end-intro { flex: 1 1 380px; min-width: 0; }
.end-intro .end-body { margin: 20px 0 32px; max-width: 520px; }
.contact-list { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid rgba(241,236,227,.25); padding-top: 14px; }
.contact-list a { color: var(--cream); font-size: 20px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 4px; word-break: break-word; }
.contact-list a:hover { color: var(--sand); }

.lead-form { flex: 1 1 420px; min-width: 0; background: var(--cream); color: var(--night); border-radius: 6px; padding: 36px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.form-title { margin: 0 0 4px; font-family: var(--f-display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-row .field { flex: 1 1 180px; }
.field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field label { font-size: 15px; font-weight: 600; }
.optional { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #BDB4A5; border-radius: 6px;
  background: #FFFDF9; color: var(--night); font: inherit; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.form-btn { align-self: flex-start; border: 0; cursor: pointer; font-family: inherit; }
.form-btn:disabled { opacity: .6; cursor: wait; }
.form-privacy { font-size: 14px; color: var(--text-muted); }
.form-status { font-size: 15px; font-weight: 600; min-height: 1.4em; }
.form-status[data-kind="ok"] { color: var(--green); }
.form-status[data-kind="error"] { color: var(--wine); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.end-accent { font-size: 36px; }
.end-body { margin: 20px auto 36px; max-width: 580px; color: #D9E3DD; }

.footer { background: var(--night); color: var(--grey); }
.footer-right { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-right a { color: var(--cream); text-decoration: none; }
.footer-right a:hover { color: var(--rose); }
.footer-row { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; letter-spacing: .06em; }

/* ============ Celular ============ */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .topbar { justify-content: center; }
  .nav { justify-content: center; gap: 4px 16px; }
  /* Isla en celular: Para agencias, Para mujeres y Hablemos (el idioma y Sobre mí quedan arriba de todo) */
  .topbar-shell.is-scrolled .topbar { padding: 5px 5px 5px 18px; gap: 8px; width: max-content; max-width: 100%; }
  .topbar-shell.is-scrolled .brand,
  .topbar-shell.is-scrolled .lang,
  .topbar-shell.is-scrolled .nav > a[href="#sobre"] { display: none; }
  .topbar-shell.is-scrolled .nav { flex-wrap: nowrap; gap: 14px; font-size: 14px; }
  .topbar-shell.is-scrolled .nav > a:not(.btn) { padding: 8px 0; white-space: nowrap; }
  .topbar-shell.is-scrolled .nav .btn-sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
  .hero-body { padding-top: 40px; padding-bottom: 72px; }
  .hero-sub { font-size: 19px; }
  .card, .workshop, .dsp, .price, .calc-out { padding: 26px; }
  .photo { flex-basis: 100%; max-width: 420px; }
  .price .btn { width: 100%; }
  .lead-form { padding: 24px; }
  .form-btn { align-self: stretch; }
}

/* Cupos de los talleres */
.ws-status { display: flex; flex-direction: column; gap: 6px; }
.spots { color: var(--mint, #9fd8c0); font-size: 12px; letter-spacing: .08em; }
.spots.is-full { color: var(--rose, #d9a7b8); }
