/* CallClau — web definitiva, con la marca final (logo, colores y letras de la diseñadora)
   y los textos de Claudia. Fotos propias en assets/img/. */
@font-face { font-family: "Advercase"; src: url("assets/fonts/Advercase-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Advercase"; src: url("assets/fonts/Advercase-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }

:root {
  /* Colores de marca */
  --burdeos: #4F0000;
  --oliva: #577541;
  --lima: #EEFDA5;
  --rosa: #EC82AA;
  --negro: #000;
  --blanco: #FFF;

  /* Apoyo */
  --papel: #FBFDF0;
  --papel-2: #F4F8DE;
  --tinta: #1A0A0A;
  --gris: #6E5E5E;
  --linea: rgba(79, 0, 0, .14);
  --linea-claro: rgba(255, 255, 255, .2);

  --f-display: "Advercase", Georgia, serif;
  --f-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--rosa); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: .6rem 1rem; background: var(--burdeos); color: var(--lima); }

.label { margin: 0 0 1.25rem; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--oliva); }

.display { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.8rem, 8vw, 5.6rem); line-height: .95; letter-spacing: -.02em; color: var(--burdeos); }
.display em { display: block; font-style: italic; color: var(--rosa); }

/* El «¿» de Advercase tiene un dibujo raro: se pinta su propio «?» girado.
   El texto sigue siendo «¿» (se copia y se lee bien). */
.q { position: relative; display: inline-block; color: transparent; }
.q::before { content: "?"; position: absolute; inset: 0; text-align: center; color: var(--burdeos); transform: rotate(180deg); }
.call__title .q::before { color: var(--blanco); }

.lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.45; }

/* ── Botones ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem;
  border: 1px solid var(--burdeos); border-radius: 999px;
  font-family: var(--f-sans); font-size: .78rem; font-weight: 700; line-height: 1; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn--dark { background: var(--burdeos); color: var(--lima); }
.btn--dark:hover { background: var(--rosa); border-color: var(--rosa); color: var(--burdeos); }
.btn--light { background: var(--lima); color: var(--burdeos); border-color: var(--lima); }
.btn--light:hover { background: var(--rosa); border-color: var(--rosa); }
.btn--lime { background: var(--lima); color: var(--burdeos); border-color: var(--lima); }
.btn--lime:hover { background: var(--blanco); border-color: var(--blanco); }
.btn--outline-light { background: transparent; color: var(--lima); border-color: var(--lima); }
.btn--outline-light:hover { background: var(--lima); color: var(--burdeos); }
.btn--outline { background: transparent; color: var(--burdeos); border-color: var(--burdeos); }
.btn--outline:hover { background: var(--burdeos); color: var(--lima); }
.btn--sm { min-height: 44px; padding: .6rem 1.2rem; }

.actions { display: flex; flex-direction: column; gap: .75rem; }
.actions .btn { width: 100%; }
@media (min-width: 640px) {
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions .btn { width: auto; }
}

/* ── Cabecera ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 253, 240, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.site-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { width: 128px; height: auto; }

.nav { display: none; }
.site-header.is-open .nav {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  padding: .5rem var(--gutter) 1.25rem;
  background: var(--papel); border-bottom: 1px solid var(--linea);
}
.nav a { display: flex; align-items: center; min-height: 48px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--burdeos); }
.nav a:hover { color: var(--rosa); }

.nav-toggle { display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 1.5px; background: var(--burdeos); transition: transform .2s ease; }
.site-header.is-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
.site-header.is-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.nav .nav__call { justify-content: center; margin-top: .5rem; padding-inline: 1.3rem; border: 2px solid var(--oliva); border-radius: 999px; background: var(--rosa); color: var(--burdeos); }
.nav .nav__call:hover { background: var(--oliva); color: var(--lima); }

@media (min-width: 1024px) {
  .nav, .site-header.is-open .nav { display: flex; flex-direction: row; gap: 1.75rem; position: static; margin-left: auto; padding: 0; border: 0; background: none; }
  .nav a { min-height: 44px; font-size: .7rem; }
  .nav-toggle { display: none; }
  .nav .nav__call { margin-top: 0; }
  .logo img { width: 150px; }
}

/* ── 1 · Portada ──────────────────────────────────────── */
.hero { display: grid; background: var(--burdeos); color: var(--lima); }
.hero__media { position: relative; overflow: hidden; aspect-ratio: 2 / 3; background: #3A0000; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__panel { display: flex; flex-direction: column; justify-content: center; gap: 1.75rem; padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter); }
.hero__claim { max-width: 13ch; margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.8rem, 9.5vw, 5.4rem); line-height: .98; letter-spacing: -.02em; }
.hero__claim .brand { font-style: italic; color: var(--rosa); white-space: nowrap; }
.hero__sub { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.3; color: var(--blanco); }
.hero__tags { margin: -1rem 0 0; font-size: .85rem; letter-spacing: .06em; color: rgba(238, 253, 165, .6); }
.hero .actions { margin-top: .75rem; }

@media (min-width: 960px) {
  /* La foto se ve siempre entera: su columna mide lo justo para la altura de la pantalla */
  /* Texto y foto juntos en el centro, con margen granate a los dos lados */
  .hero { --h: clamp(520px, calc(100svh - 64px), 75vw); grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 620px) calc(var(--h) * 2 / 3) minmax(var(--gutter), 1fr); min-height: var(--h); }
  .hero__panel { grid-column: 2; grid-row: 1; padding: 4rem clamp(2rem, 4vw, 3.5rem) 4rem 0; }
  .hero__media { grid-column: 3; grid-row: 1; aspect-ratio: auto; }
}

/* ── 2 · Línea dinámica ───────────────────────────────── */
.ticker { overflow: hidden; background: var(--lima); color: var(--burdeos); border-block: 1px solid var(--burdeos); }
.ticker__row { display: flex; width: max-content; animation: marquee 160s linear infinite; }
.ticker:hover .ticker__row { animation-play-state: paused; }
.ticker__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.ticker li {
  padding: .7rem clamp(1rem, 2.4vw, 1.6rem) .7rem 0;
  font-family: var(--f-display); font-size: clamp(1.1rem, 2.2vw, 1.45rem); line-height: 1.2; white-space: nowrap;
}
.ticker li::after { content: ""; display: inline-block; vertical-align: middle; width: .3em; height: .3em; margin-left: clamp(1rem, 2.4vw, 1.6rem); border-radius: 50%; background: var(--rosa); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── 3 · La idea ──────────────────────────────────────── */
.idea { padding-block: clamp(3rem, 7vw, 5rem); }
.idea__inner { max-width: 1040px; }
.idea__text { margin: 0; font-family: var(--f-display); font-size: clamp(1.6rem, 3.8vw, 2.6rem); line-height: 1.2; color: var(--burdeos); }
.idea__text span { color: var(--oliva); }
.idea__punch { margin: 1.5rem 0 0; font-family: var(--f-display); font-style: italic; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; color: var(--rosa); }

/* ── 4 · Cómo trabajo ─────────────────────────────────── */
.how { padding-block: clamp(3rem, 7vw, 5rem); background: var(--papel-2); }
.how__grid { display: grid; gap: 3rem; align-items: center; }
.how__photo { margin: 0; overflow: hidden; }
.how__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.how__body .display { margin-bottom: 1.5rem; }
.how__body p { max-width: 52ch; }

@media (min-width: 960px) {
  .how__grid { grid-template-columns: 5fr 6fr; gap: 6rem; }
}

/* ── 5 · ¿Qué necesitas? ──────────────────────────────── */
.services { padding-block: clamp(3rem, 7vw, 5rem); }
.services__head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.services__head .label { margin-bottom: .75rem; }

.services__grid { display: grid; gap: 2.5rem clamp(1.5rem, 3vw, 2.5rem); }
.service { border-top: 3px solid var(--burdeos); padding-top: 1.1rem; }
.service__title { margin: 0 0 1rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.75rem); line-height: 1.1; color: var(--burdeos); }
.service__title span { display: block; margin-bottom: .35rem; font-family: var(--f-sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--rosa); }
.service ul { margin: 0; padding: 0; list-style: none; }
.service li { padding: .45rem 0; font-size: .98rem; line-height: 1.4; border-bottom: 1px solid var(--linea); }
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services__grid { grid-template-columns: repeat(4, 1fr); } }

.services__more { margin: clamp(2rem, 4vw, 2.75rem) 0 0; font-family: var(--f-display); font-size: clamp(1.35rem, 2.8vw, 1.9rem); line-height: 1.2; text-align: center; color: var(--burdeos); }
.services__more em { color: var(--rosa); }

/* ── 7 · Al otro lado del teléfono ────────────────────── */
.about { padding-block: clamp(3rem, 7vw, 5rem); }
.about__grid { display: grid; gap: 3rem; align-items: center; }
.about__photo { margin: 0; justify-self: center; width: 100%; max-width: 460px; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.about__title { margin: 0 0 2rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1; color: var(--burdeos); }
.about__title em { display: block; margin-top: .2em; font-size: .6em; line-height: 1.15; color: var(--oliva); }
.about__text p { max-width: 58ch; }
.quote { margin: 2rem 0 0; padding-left: 1.25rem; font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.25; color: var(--burdeos); border-left: 3px solid var(--rosa); }

@media (min-width: 960px) {
  .about__grid { grid-template-columns: 5fr 7fr; gap: 6rem; }
}

/* ── 8 · Llámame ──────────────────────────────────────── */
.call { padding-block: clamp(3rem, 7vw, 5rem); background: var(--oliva); color: var(--blanco); }
.call__grid { display: grid; gap: 2.5rem; align-items: start; }
.call__photo { width: 120px; margin: 0 0 1.5rem; }
.call__photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; border-radius: 50%; }
.call .label { color: var(--lima); }
.call__title { margin: 0 0 1rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.05; }
.call__title em { color: var(--lima); }
.call__lead { max-width: 40ch; margin: 0; color: rgba(255, 255, 255, .85); }
.phone { display: inline-flex; align-items: center; min-height: 44px; margin-top: 1rem; font-family: var(--f-display); font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--lima); text-decoration: none; white-space: nowrap; }
.phone[href]:hover { color: var(--rosa); }

.dm { width: 100%; max-width: 580px; justify-self: end; padding: clamp(1.25rem, 3vw, 2rem); background: var(--lima); color: var(--burdeos); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.dm__title { margin: 0 0 1rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.1; }
.dm__row { display: grid; gap: 0 1.5rem; }
@media (min-width: 640px) { .dm__row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .2rem; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oliva); }
.field input, .field textarea {
  width: 100%; min-height: 46px; padding: .45rem 0;
  font: inherit; font-size: 1.05rem; color: var(--burdeos);
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(79, 0, 0, .35); border-radius: 0;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(79, 0, 0, .4); }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--rosa); }
.check { display: inline-flex; align-items: center; gap: .7rem; min-height: 44px; margin-bottom: 1rem; font-weight: 700; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--burdeos); cursor: pointer; }
.form-error { margin: 0 0 1rem; font-weight: 700; color: var(--burdeos); }
.dm__send { display: grid; gap: .75rem; }
@media (min-width: 640px) { .dm__send { grid-template-columns: 1fr 1fr; } }
.dm__send .btn { width: 100%; padding-inline: .9rem; font-size: .74rem; letter-spacing: .08em; white-space: nowrap; }
.form-note { margin: 1rem 0 0; font-size: .8rem; text-align: center; color: rgba(79, 0, 0, .75); }

@media (min-width: 960px) {
  .call__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
}

/* ── Pie ──────────────────────────────────────────────── */
.site-footer { overflow: hidden; padding-block: 1rem; background: var(--burdeos); color: var(--lima); }
.footer__bottom { display: grid; gap: .5rem; padding-top: .5rem; }
.footer__brand { display: inline-flex; align-items: center; min-height: 44px; }
.footer__brand img { width: 120px; height: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; list-style: none; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; opacity: .8; overflow-wrap: anywhere; }
.footer__links a:hover { opacity: 1; color: var(--rosa); }
.footer__legal { margin: 0; font-size: .72rem; opacity: .6; }

@media (min-width: 768px) { .footer__bottom { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; } }

/* ── Apariciones al hacer scroll ──────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn .arrow { transition: none; }
  .ticker__row { width: auto; animation: none; }
  .ticker__list { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
  .ticker__list + .ticker__list { display: none; }
  .ticker li { white-space: normal; }
}
