/* ============================================================
   METRIA CREATIVE — STYLES
   Sistema de diseño premium · Mobile-first · WCAG 2.1 AA
   ============================================================ */

/* ---------- VARIABLES DEL SISTEMA ---------- */
:root {
  /* Brand colors */
  --teal: #28536b;
  --teal-dark: #1c3d50;
  --crimson: #aa305c;
  --crimson-dark: #8a1f47;
  --amber: #fac956;
  --amber-soft: #fde3a0;
  --rose: #fdf1f7;
  --rose-deep: #f5dfeb;
  --white: #ffffff;
  --black: #14141a;
  --ink: #1a1d2e;
  --muted: #6b6b78;
  --line: rgba(40, 83, 107, 0.12);
  --line-strong: rgba(40, 83, 107, 0.25);

  /* Typography */
  --font-sans: 'Garet', 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-w: 1200px;
  --max-w-narrow: 760px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms;
  --t-mid: 320ms;
  --t-slow: 600ms;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(20, 20, 26, 0.04);
  --shadow-md: 0 8px 32px rgba(20, 20, 26, 0.08);
  --shadow-lg: 0 24px 80px rgba(20, 20, 26, 0.12);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--rose);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity var(--t-fast) var(--ease); }
a:hover { opacity: 0.75; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; color: var(--teal); letter-spacing: -0.02em; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--max-w-narrow); }
.section { padding: 96px 0; position: relative; }

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  will-change: opacity, transform;
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .fade-up { opacity: 1; transform: none; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--crimson);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(170, 48, 92, 0.25);
}
.btn-primary:hover { background: var(--crimson-dark); box-shadow: 0 12px 32px rgba(170, 48, 92, 0.35); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(40, 83, 107, 0.05); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-loading { display: none; }
.btn.is-loading .btn-label { display: none; }
.btn.is-loading .btn-loading { display: inline; }
.btn.is-loading { opacity: 0.7; pointer-events: none; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253, 241, 247, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.nav.is-scrolled { border-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 20px;
}
.nav-logo img { height: 36px; width: auto; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.nav-links a:hover { color: var(--crimson); opacity: 1; }
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  background: linear-gradient(180deg, var(--rose) 0%, var(--rose-deep) 100%);
  overflow: hidden;
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 201, 86, 0.18), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 28px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 0 3px rgba(170, 48, 92, 0.18);
}

.hero-title {
  font-size: clamp(36px, 6.5vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--teal);
  max-width: 900px;
  margin: 0 auto 28px;
}
.hero-accent {
  display: block;
  color: var(--crimson);
  font-style: italic;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-note {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- SECTION HEADER ---------- */
.section-header {
  max-width: 760px;
  margin: 0 auto 64px;
}
.section-header.center { text-align: center; }
.section-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(170, 48, 92, 0.08);
  color: var(--crimson);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.section-tag.light {
  background: rgba(250, 201, 86, 0.18);
  color: var(--teal-dark);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 18px;
}
.section-lead {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
  line-height: 1.7;
}

/* ---------- PROBLEM CARDS ---------- */
.section-problem { background: var(--white); }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.problem-card {
  background: var(--rose);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--line);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.problem-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--white);
  color: var(--crimson);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--line);
}
.problem-icon svg { width: 24px; height: 24px; }
.problem-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--teal);
}
.problem-card p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ---------- VIDEO ---------- */
.section-video { background: var(--rose); }
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--black);
  box-shadow: var(--shadow-lg);
  max-width: 1000px;
  margin: 0 auto;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- PROCESS ---------- */
.section-process { background: var(--white); }
.process-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.process-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background var(--t-mid) var(--ease);
}
.process-item:hover { background: rgba(250, 201, 86, 0.04); }
.process-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--crimson);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.process-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.process-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .process-item { grid-template-columns: 50px 1fr; gap: 18px; padding: 28px 0; }
  .process-content h3 { font-size: 19px; }
}

/* ---------- CASES ---------- */
.section-cases {
  background: var(--teal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.section-cases .section-title { color: var(--white); }
.section-cases .section-tag {
  background: rgba(250, 201, 86, 0.2);
  color: var(--amber);
}
.section-cases .section-lead { color: rgba(255, 255, 255, 0.75); }

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 920px;
  margin: 0 auto 64px;
}
@media (max-width: 720px) {
  .cases-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

.case-mockup { display: flex; justify-content: center; }
.phone {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border-radius: 32px;
  padding: 8px;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  transition: transform var(--t-mid) var(--ease);
}
.phone:hover { transform: translateY(-6px) rotate(-1deg); }
.phone-featured { transform: scale(1.06); border: 2px solid var(--amber); }
.phone-featured:hover { transform: scale(1.06) translateY(-6px); }
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 18px;
  background: var(--black);
  border-radius: 999px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 24px;
  background: #0a0a0e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.phone-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 24px;
  z-index: 0;
  background: #0a0a0e;
}
.phone-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 32px 12px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.75) 100%);
  z-index: 2;
  border-radius: 24px;
  pointer-events: none;
}
.case-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 3;
  margin-top: 8px;
}
.case-stat-number {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  color: var(--amber);
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85), 0 0 8px rgba(0,0,0,0.5);
}
.case-stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}
.case-platform {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  color: var(--white);
  z-index: 3;
  position: relative;
  font-weight: 500;
}
.case-platform img { filter: brightness(0) invert(1); width: 14px; height: 14px; }

@media (max-width: 720px) {
  .phone {
    max-width: 200px;
  }
  .case-stat-number {
    font-size: 22px;
  }
  .case-stat-label {
    font-size: 9px;
  }
  .case-platform {
    font-size: 10px;
    padding: 4px 9px;
  }
}

.testimonial {
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(10px);
}
.testimonial p {
  font-size: clamp(18px, 2vw, 22px);
  font-style: italic;
  line-height: 1.55;
  color: var(--white);
  margin-bottom: 28px;
}
.testimonial footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber);
  padding: 2px;
  background: var(--teal);
}
.testimonial-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.testimonial strong { color: var(--amber); font-weight: 700; font-size: 15px; }
.testimonial span { font-size: 12px; color: rgba(255, 255, 255, 0.65); }

.cases-cta { text-align: center; }

/* ---------- FIT ---------- */
.section-fit { background: var(--rose); }
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .fit-grid { grid-template-columns: 1fr; }
}
.fit-col {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--line);
}
.fit-col h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  margin-bottom: 24px;
}
.fit-mark {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fit-mark svg { width: 18px; height: 18px; }
.fit-mark-yes { background: rgba(40, 167, 69, 0.12); color: #1e7e3c; }
.fit-mark-no { background: rgba(170, 48, 92, 0.12); color: var(--crimson); }
.fit-col ul { display: flex; flex-direction: column; gap: 12px; }
.fit-col li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}
.fit-col li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.fit-no li::before { background: var(--crimson); opacity: 0.5; }

/* ---------- FAQ ---------- */
.section-faq { background: var(--white); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--rose);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color var(--t-mid) var(--ease);
}
.faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  list-style: none;
  padding: 22px 28px;
  font-weight: 600;
  font-size: 16px;
  color: var(--teal);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--crimson);
  transition: transform var(--t-mid) var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 28px 24px;
}
.faq-answer p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- CONTACT FORM ---------- */
.section-contact {
  background: linear-gradient(180deg, var(--rose) 0%, var(--rose-deep) 100%);
  padding: 80px 0 120px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 640px) {
  .contact-card { padding: 36px 24px; }
}
.contact-header { text-align: center; margin-bottom: 40px; }
.contact-header .section-title { margin-bottom: 14px; }
.contact-investment {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(40, 83, 107, 0.06);
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
}
.contact-investment strong { color: var(--crimson); font-weight: 700; }

.form-group { margin-bottom: 24px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

label, legend {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--teal);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
fieldset { border: none; padding: 0; }

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
input::placeholder { color: rgba(107, 107, 120, 0.55); }
input:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 4px rgba(170, 48, 92, 0.1);
}
input.has-error { border-color: var(--crimson); }

.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) {
  .radio-grid { grid-template-columns: 1fr; }
}
.radio-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  margin-bottom: 0 !important;
  font-weight: 500;
}
.radio-opt:hover { border-color: var(--line-strong); background: rgba(40, 83, 107, 0.02); }
.radio-opt input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--t-fast) var(--ease);
}
.radio-opt input:checked {
  border-color: var(--crimson);
  border-width: 5px;
}
.radio-opt:has(input:checked) {
  border-color: var(--crimson);
  background: rgba(170, 48, 92, 0.04);
}

.form-error {
  display: block;
  font-size: 13px;
  color: var(--crimson);
  margin-top: 6px;
  min-height: 18px;
}
.form-error:empty { min-height: 0; margin-top: 0; }

.form-disclaimer {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.form-disclaimer a { color: var(--crimson); text-decoration: underline; }

.form-success {
  text-align: center;
  padding: 60px 24px;
}
.form-success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(40, 167, 69, 0.12);
  color: #1e7e3c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.form-success-icon svg { width: 32px; height: 32px; }
.form-success h3 { font-size: 22px; margin-bottom: 10px; }
.form-success p { color: var(--muted); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 24px;
  font-size: 14px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}
.footer-brand img { filter: brightness(0) invert(1); margin-bottom: 16px; height: 38px; width: auto; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-style: italic; max-width: 280px; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 540px) {
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--amber); opacity: 1; }

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast) var(--ease);
}
.footer-social a:hover { background: rgba(250, 201, 86, 0.18); opacity: 1; }
.footer-social img { filter: brightness(0) invert(1); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 24px;
  max-width: 720px;
  margin: 0 auto;
  animation: slideUp var(--t-slow) var(--ease);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}
.cookie-text {
  flex: 1;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.55;
}
.cookie-text a { color: var(--crimson); text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; }
}

/* ---------- LEGAL PAGES ---------- */
.legal-page {
  padding: 140px 0 80px;
  background: var(--white);
  min-height: 70vh;
}
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-content h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
  color: var(--teal);
}
.legal-content .legal-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(170, 48, 92, 0.08);
  color: var(--crimson);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.legal-content h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--teal);
}
.legal-content p, .legal-content li {
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 15px;
}
.legal-content ul { padding-left: 24px; list-style: disc; }
.legal-content strong { color: var(--teal); font-weight: 600; }
.legal-content a { color: var(--crimson); text-decoration: underline; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}
.legal-content th, .legal-content td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.legal-content th {
  background: var(--rose);
  color: var(--teal);
  font-weight: 600;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--rose);
  color: var(--teal);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--line);
}
.legal-back:hover { background: var(--rose-deep); opacity: 1; }

/* ---------- THANKS PAGE ---------- */
.thanks-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--rose) 0%, var(--rose-deep) 100%);
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}
.thanks-page::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 201, 86, 0.18), transparent 60%);
  pointer-events: none;
}
.thanks-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  max-width: 580px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
@media (max-width: 540px) {
  .thanks-card { padding: 48px 28px; }
}
.thanks-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(40, 167, 69, 0.12);
  color: #1e7e3c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}
.thanks-icon svg { width: 40px; height: 40px; }
.thanks-card h1 {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--teal);
  margin-bottom: 14px;
}
.thanks-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.thanks-steps {
  background: var(--rose);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
  text-align: left;
}
.thanks-steps h3 {
  font-size: 16px;
  color: var(--teal);
  margin-bottom: 14px;
}
.thanks-steps ol {
  list-style: decimal;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thanks-steps li { font-size: 14px; color: var(--ink); line-height: 1.6; }
.thanks-cta { margin-top: 12px; }