/* Vibes · estilos de la web corporativa */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --blue: #2a4f9e;
  --blue-deep: #1c3672;
  --pink: #e5c4e1;
  --pink-soft: #f4e6f1;
  --paper: #fdf9fc;
  --ink: #161a3a;
  --ink-soft: #4a4e6e;

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 140px);
  --pill: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.h2 {
  font: 700 clamp(1.75rem, 1.2rem + 2.4vw, 3rem)/1.1 var(--display);
  letter-spacing: -0.02em;
  color: var(--blue);
}

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--pill);
  background: var(--blue); color: #fff;
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  border: 2px solid var(--blue);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: #fff; }
.btn--light { background: var(--pink); color: var(--blue-deep); border-color: var(--pink); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--small { min-height: 42px; padding: 0 18px; font-size: .95rem; }

.link {
  display: inline-block; margin-top: 18px;
  color: var(--blue); font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.link:hover { text-decoration-thickness: 4px; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--pink) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 color-mix(in oklab, var(--blue) 18%, transparent); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { color: var(--blue); }
.brand__word { height: 22px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 24px; }
.nav ul a { text-decoration: none; font-weight: 500; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav ul a:hover, .nav ul a[aria-current="page"] { border-color: var(--blue); color: var(--blue); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px;
    border: 0; border-radius: var(--pill); background: var(--blue); cursor: pointer;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative;
    transition: transform .25s var(--ease), background-color .2s;
  }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: absolute; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 16px var(--gutter) 28px;
    background: var(--pink);
    box-shadow: 0 20px 30px -20px color-mix(in oklab, var(--blue) 40%, transparent);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; font: 700 1.25rem/1.2 var(--display); border-bottom: 1px solid color-mix(in oklab, var(--blue) 18%, transparent); }
  .nav ul a[aria-current="page"] { border-bottom-color: color-mix(in oklab, var(--blue) 18%, transparent); }
  .nav .btn { width: 100%; min-height: 52px; }
}

/* Portada */
.hero { background: var(--pink); overflow: hidden; }
.hero__in {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: end; gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(48px, 8vw, 110px) 0;
}
.hero__copy { padding-bottom: clamp(48px, 8vw, 110px); }
.hero__title {
  font: 800 clamp(2.4rem, 1.4rem + 4.6vw, 5rem)/1.02 var(--display);
  letter-spacing: -0.035em;
  color: var(--blue);
  max-width: 12ch;
}
.hero__lead { margin-top: 24px; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Ecualizador: barras redondeadas que suben al cargar */
.eq {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: clamp(4px, .9vw, 10px);
  height: clamp(220px, 34vw, 440px);
}
.eq span {
  flex: 1 1 0; height: var(--h);
  border-radius: var(--pill) var(--pill) 0 0;
  background: var(--blue);
  transform-origin: bottom;
  animation: rise .9s var(--ease) both;
  animation-delay: calc(var(--i) * 45ms + 150ms);
}
.eq span:nth-child(3n+2) { background: var(--blue-deep); }
.eq span:nth-child(5n+1) { background: #fff; }
@keyframes rise { from { transform: scaleY(.04); } to { transform: scaleY(1); } }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; gap: 8px; }
  .hero__copy { padding-bottom: 32px; }
  .eq { height: 150px; }
}

/* Eventos */
.events { padding-block: var(--section); }
.events__list { margin-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--blue); }
.events__item {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 12px 40px; align-items: baseline;
  padding-block: clamp(20px, 2.6vw, 30px);
  border-bottom: 1px solid color-mix(in oklab, var(--blue) 25%, transparent);
}
.events__name { font: 700 clamp(1.25rem, 1rem + 1.2vw, 2rem)/1.15 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.events__item p { color: var(--ink-soft); max-width: 52ch; }
@media (max-width: 700px) { .events__item { grid-template-columns: 1fr; } }

/* Incluido */
.included { background: var(--blue); color: #fff; padding-block: var(--section); border-radius: clamp(28px, 5vw, 64px); margin-inline: clamp(8px, 1.5vw, 20px); }
.included .h2 { color: var(--pink); max-width: 12ch; }
.included__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.included__lead { margin-top: 20px; max-width: 34ch; color: color-mix(in oklab, #fff 85%, var(--pink)); font-size: 1.125rem; }
.included__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.included__list li {
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px; border-radius: 28px 28px 28px 6px;
  background: color-mix(in oklab, var(--blue-deep) 70%, var(--blue));
  font-size: 1.0625rem;
}
.included__list li:nth-child(2) { border-radius: 28px 28px 6px 28px; }
.included__list li:nth-child(3) { border-radius: 28px 6px 28px 28px; }
.included__list li:nth-child(4) { border-radius: 6px 28px 28px 28px; }
.included__list strong { display: block; font: 700 1.125rem/1.25 var(--display); color: var(--pink); margin-bottom: 4px; }
.included__list svg { width: 36px; height: 36px; fill: none; stroke: var(--pink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .included__in { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .included__list { grid-template-columns: 1fr; } .included__list li { flex-direction: row; align-items: flex-start; } }

/* Pasos */
.steps { padding-block: var(--section); }
.steps__list { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 56px); }
.steps__item { position: relative; }
.steps__n {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px;
  border-radius: 50%; background: var(--pink); color: var(--blue);
  font: 800 1.6rem/1 var(--display);
}
.steps__item:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; left: 80px; right: -12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 16px);
  opacity: .35;
}
.steps__name { font: 700 1.25rem/1.25 var(--display); color: var(--blue); margin-bottom: 8px; }
.steps__item p { color: var(--ink-soft); max-width: 34ch; }
.steps__cta { margin-top: clamp(32px, 4vw, 56px); }
@media (max-width: 760px) {
  .steps__list { grid-template-columns: 1fr; }
  .steps__item { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; }
  .steps__n { grid-row: span 2; margin: 0; }
  .steps__item:not(:last-child)::after { display: none; }
}

/* Montajes */
.work { padding-bottom: var(--section); }
.work__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.work__head .link { margin: 0; }
.work__grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: repeat(2, minmax(150px, 220px)); gap: 16px; margin-top: 32px; }
.work__item {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  padding: 22px; overflow: hidden; color: #fff;
  border-radius: 40px 40px 40px 10px;
}
.work__item p { max-width: 30ch; font-size: 1.0625rem; }
.work__item--a { grid-row: span 2; background: radial-gradient(120% 90% at 20% 10%, #3e66bb 0%, var(--blue) 45%, var(--blue-deep) 100%); }
.work__item--b { background: radial-gradient(100% 120% at 90% 0%, #f1d8ee 0%, var(--pink) 60%); color: var(--blue-deep); border-radius: 40px 10px 40px 40px; }
.work__item--c { background: var(--ink); border-radius: 10px 40px 40px 40px; }
.work__tag { align-self: flex-start; padding: 6px 14px; border-radius: var(--pill); background: color-mix(in oklab, #fff 22%, transparent); font-weight: 700; font-size: .9rem; }
.work__item--b .work__tag { background: color-mix(in oklab, var(--blue) 14%, transparent); }
@media (max-width: 700px) {
  .work__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px; }
  .work__item--a { grid-row: auto; grid-column: span 2; }
}

/* Nosotros */
.about { background: var(--pink-soft); padding-block: var(--section); }
.about__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.about__mark { width: clamp(110px, 16vw, 200px); height: auto; color: var(--blue); }
.about p { margin-top: 18px; max-width: 58ch; font-size: 1.125rem; }
@media (max-width: 640px) { .about__in { grid-template-columns: 1fr; } .about__mark { width: 90px; } }

/* Llamada final */
.cta { background: var(--blue); color: #fff; padding-block: clamp(64px, 9vw, 120px); text-align: center; }
.cta__in { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta__title { font: 800 clamp(2.4rem, 1.4rem + 5vw, 5.5rem)/1 var(--display); letter-spacing: -0.04em; color: var(--pink); }
.cta p { font-size: 1.125rem; max-width: 40ch; color: color-mix(in oklab, #fff 85%, var(--pink)); }
.cta .btn { margin-top: 10px; }

/* Pie */
.site-footer { background: var(--ink); color: color-mix(in oklab, #fff 78%, var(--pink)); padding-top: 64px; font-size: .98rem; }
.site-footer__in { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.site-footer__mark { width: 56px; height: auto; color: var(--pink); margin-bottom: 16px; }
.site-footer__brand p { max-width: 32ch; }
.site-footer__h { font: 700 .95rem/1.3 var(--display); color: #fff; margin-bottom: 14px; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--pink); text-decoration: underline; }
.site-footer__base { margin-top: 56px; padding-block: 22px; border-top: 1px solid color-mix(in oklab, #fff 14%, transparent); font-size: .9rem; }
@media (max-width: 860px) { .site-footer__in { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: span 2; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Páginas interiores ===== */
.page-hero { background: var(--pink); padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 80px); }
.page-hero__title { font: 800 clamp(2.2rem, 1.3rem + 4vw, 4.25rem)/1.04 var(--display); letter-spacing: -0.035em; color: var(--blue); max-width: 16ch; }
.page-hero__lead { margin-top: 20px; max-width: 56ch; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }
.page-hero__wave { display: flex; align-items: flex-end; gap: 6px; height: 40px; margin-top: 36px; }
.page-hero__wave span { width: 10px; height: var(--h); border-radius: var(--pill) var(--pill) 0 0; background: var(--blue); }

.section { padding-block: var(--section); }
.section--tint { background: var(--pink-soft); }
.section__lead { margin-top: 16px; max-width: 60ch; color: var(--ink-soft); font-size: 1.125rem; }

.prose { max-width: 68ch; }
.prose h2 { font: 700 clamp(1.3rem, 1.1rem + .8vw, 1.75rem)/1.2 var(--display); color: var(--blue); margin: 48px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--blue); font-weight: 600; }
.pending { background: color-mix(in oklab, var(--pink) 60%, #fff); padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* Bloques de servicio */
.offer { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px clamp(32px, 6vw, 96px); padding-block: clamp(36px, 5vw, 64px); border-top: 2px solid var(--blue); }
.offer:last-child { border-bottom: 2px solid var(--blue); }
.offer__name { font: 700 clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem)/1.1 var(--display); letter-spacing: -0.02em; color: var(--blue); }
.offer__body > p { font-size: 1.125rem; max-width: 56ch; }
.offer__uses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.offer__uses li { padding: 8px 16px; border-radius: var(--pill); background: var(--pink); color: var(--blue-deep); font-weight: 600; font-size: .95rem; }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.facts li { padding: 26px; background: #fff; border-radius: 28px 28px 28px 6px; border: 1.5px solid color-mix(in oklab, var(--blue) 18%, transparent); }
.facts strong { display: block; font: 700 1.15rem/1.25 var(--display); color: var(--blue); margin-bottom: 8px; }
.facts p { color: var(--ink-soft); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }

/* Preguntas frecuentes */
.faq { margin-top: 32px; max-width: 820px; border-top: 2px solid var(--blue); }
.faq details { border-bottom: 1px solid color-mix(in oklab, var(--blue) 25%, transparent); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 700 clamp(1.05rem, 1rem + .4vw, 1.25rem)/1.3 var(--display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a4f9e' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/18px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; max-width: 62ch; color: var(--ink-soft); }

/* Montajes */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 32px 32px 32px 8px; background: var(--pink-soft); }
.gallery figcaption { margin-top: 12px; }
.gallery figcaption strong { display: block; font: 700 1.1rem/1.3 var(--display); color: var(--blue); }
.gallery figcaption span { color: var(--ink-soft); }
.empty {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center;
  padding: clamp(28px, 5vw, 56px); border-radius: 40px 40px 40px 10px; background: var(--pink-soft);
}
.empty svg { width: clamp(70px, 10vw, 120px); height: auto; color: var(--blue); }
.empty h2 { font: 700 clamp(1.3rem, 1.1rem + 1vw, 2rem)/1.15 var(--display); color: var(--blue); }
.empty p { margin-top: 10px; max-width: 52ch; }
.empty .btn { margin-top: 22px; }
@media (max-width: 600px) { .empty { grid-template-columns: 1fr; } }

/* Contacto */
.contact { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field label { font-weight: 600; }
.field label small { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  min-height: 52px; padding: 12px 16px;
  border: 1.5px solid color-mix(in oklab, var(--blue) 30%, transparent);
  border-radius: 16px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in oklab, var(--blue) 18%, transparent); }
.field [aria-invalid="true"] { border-color: #c0392b; }
.field__error { color: #b42318; font-size: .92rem; }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { grid-column: 1 / -1; padding: 18px 20px; border-radius: 18px; font-weight: 500; }
.notice--ok { background: #e3f3ea; color: #135c37; }
.notice--error { background: #fdecea; color: #8a1c12; }
.aside-card { padding: 28px; border-radius: 32px 32px 32px 8px; background: var(--blue); color: #fff; }
.aside-card + .aside-card { margin-top: 16px; background: var(--pink); color: var(--ink); border-radius: 32px 8px 32px 32px; }
.aside-card h2 { font: 700 1.25rem/1.25 var(--display); margin-bottom: 10px; }
.aside-card:first-child h2 { color: var(--pink); }
.aside-card ul { margin-top: 12px; }
.aside-card li + li { margin-top: 6px; }
.aside-card a { font-weight: 600; }
.aside-card .btn { margin-top: 16px; }

/* Nosotros */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.values h3 { font: 700 1.25rem/1.25 var(--display); color: var(--blue); margin: 18px 0 8px; }
.values p { color: var(--ink-soft); }
.values__dot { display: block; width: 56px; height: 56px; border-radius: 50% 50% 50% 12%; background: var(--pink); }
.values li:nth-child(2) .values__dot { background: var(--blue); border-radius: 50% 12% 50% 50%; }
.values li:nth-child(3) .values__dot { background: var(--ink); border-radius: 12% 50% 50% 50%; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }
