/* —— Premium landing: Lucía López Cid —— */
:root {
  --bg-deep: #0c0e0d;
  --bg-elevated: #121614;
  --bg-card: #161a18;
  --surface: #f4f2ed;
  --surface-2: #ebe8e1;
  --ink: #0d0d0c;
  --ink-muted: #4a4d4a;
  --ink-soft: #6b6e6a;
  --accent: #8b6914;
  --accent-light: #c4a035;
  --accent-glow: rgba(196, 160, 53, 0.22);
  --sage: #3d5248;
  --sage-light: #5c7568;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(13, 13, 12, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Syne", system-ui, sans-serif;
  --space: clamp(3rem, 8vw, 6rem);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-video {
    display: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.05rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  background: rgba(244, 242, 237, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(244, 242, 237, 0.94);
  box-shadow: 0 8px 32px rgba(12, 14, 13, 0.06);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo--footer {
  color: var(--surface);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.75rem);
}

.site-nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink) !important;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--ink);
  color: var(--surface) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
    border-radius: var(--radius);
  }
}

/* —— Hero —— */
.hero {
  min-height: 100vh;
  padding: calc(var(--header-h) + var(--space)) clamp(1.25rem, 4vw, 2.5rem) var(--space);
  background: var(--bg-deep);
  color: #f5f3ef;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(12, 14, 13, 0.62) 0%,
      rgba(12, 14, 13, 0.52) 55%,
      rgba(12, 14, 13, 0.42) 100%
    );
  pointer-events: none;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg-deep);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.05) brightness(0.72);
  opacity: 0.6;
  transform: scale(1.03);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(61, 82, 72, 0.35), transparent 50%);
  pointer-events: none;
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 3;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
  text-align: left;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.title-accent {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: rgba(245, 243, 239, 0.9);
}

.hero-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-style: italic;
  font-weight: 500;
  color: rgba(245, 243, 239, 0.82);
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  line-height: 1.45;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  max-width: 54ch;
  color: rgba(245, 243, 239, 0.72);
  margin: 0 0 2rem;
  font-size: 1rem;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.contact-address {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: rgba(232, 230, 226, 0.62);
  letter-spacing: 0.02em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  color: var(--bg-deep);
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 8px 32px var(--accent-glow);
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  color: #e8e6e2;
  border: 1px solid rgba(232, 230, 226, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.btn-whatsapp {
  gap: 0.5rem;
  background: rgba(37, 211, 102, 0.12);
  color: #b8f5cf;
  border: 1px solid rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
  background: rgba(37, 211, 102, 0.22);
  border-color: #25d366;
  color: #e8fff0;
}

.btn-whatsapp-icon {
  flex-shrink: 0;
}

.btn-block {
  width: 100%;
}

.scroll-fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 150;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(196, 160, 53, 0.45);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
  color: var(--accent-light);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.scroll-fab:hover,
.scroll-fab:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  color: #e8d48a;
  border-color: var(--accent-light);
  outline: none;
}

.scroll-fab:active {
  transform: translateY(-1px);
}

.scroll-fab__chevron {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-fab--top .scroll-fab__chevron {
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-fab__chevron {
    transition: none;
  }
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-frame {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 4/5;
}

.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(61, 82, 72, 0.4), rgba(12, 14, 13, 0.9)),
    url("https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=800&q=80") center / cover no-repeat;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.hero-frame-corner {
  position: absolute;
  width: 48px;
  height: 48px;
  border-color: var(--accent-light);
  border-style: solid;
  opacity: 0.5;
  pointer-events: none;
}

.hero-frame-corner--tl {
  top: -12px;
  left: -12px;
  border-width: 1px 0 0 1px;
}

.hero-frame-corner--br {
  bottom: -12px;
  right: -12px;
  border-width: 0 1px 1px 0;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(232, 230, 226, 0.35);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-light), transparent);
}

@media (max-width: 900px) {
  .hero-scroll {
    display: none;
  }
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}

/* —— Sections —— */
.section {
  padding: var(--space) clamp(1.25rem, 4vw, 2.5rem);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 780px;
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  max-width: 640px;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}

.section-lead {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 52ch;
}

.section-sobre {
  background: var(--surface);
}

.about-grid {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.about-media {
  position: relative;
}

.about-frame {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 4/5;
  margin: 0;
}

.about-photo {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(61, 82, 72, 0.18), rgba(12, 14, 13, 0.08)),
    url("https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=900&q=80") center / cover no-repeat;
  box-shadow:
    0 28px 70px rgba(12, 14, 13, 0.12),
    inset 0 0 0 1px rgba(13, 13, 12, 0.06);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-frame {
    width: min(100%, 380px);
  }
}

.prose p {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
}

.prose-highlight {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink) !important;
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-top: 1.5rem !important;
}

/* Formación */
.section-formacion {
  background: var(--surface-2);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}

.card-elevated {
  background: #fff;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(12, 14, 13, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-elevated:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(12, 14, 13, 0.1);
}

.card-year {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: 600;
}

.card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 0;
  line-height: 1.3;
}

.card-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.certs-block {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bg-deep);
  color: #e8e6e2;
  border-radius: var(--radius-lg);
}

.certs-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.certs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem 1.5rem;
}

.certs-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: rgba(232, 230, 226, 0.75);
}

.certs-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-light);
}

/* Experiencia */
.section-exp {
  background: var(--surface);
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-1.5rem - 5px);
  top: 0.35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--surface);
}

.timeline-body {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 12px 40px rgba(12, 14, 13, 0.04);
}

.timeline-head h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.role {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--sage);
  margin: 0;
}

.place-date {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0.35rem 0 1rem;
}

.timeline-body > p {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
}

.detail-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.detail-list li {
  margin-bottom: 0.4rem;
}

.detail-list.flat {
  list-style: none;
  padding-left: 0;
}

.detail-list.flat li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.detail-list.flat li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.nested-role {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-light);
}

.nested-role .role {
  color: var(--accent);
}

/* Proyectos */
.section-proyectos {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}

.proj-feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
  background: var(--bg-deep);
  color: #e8e6e2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(12, 14, 13, 0.25);
}

.proj-feature--reverse {
  direction: rtl;
}

.proj-feature--reverse > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .proj-feature,
  .proj-feature--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.proj-feature-text {
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.proj-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 0.75rem;
}

.proj-tag--accent {
  color: #9ec4b0;
}

.proj-feature-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  margin: 0 0 0.25rem;
  font-weight: 500;
}

.proj-sub {
  font-size: 0.85rem;
  color: rgba(232, 230, 226, 0.5);
  margin: 0 0 1rem;
  font-weight: 500;
}

.proj-feature-text p:last-child {
  margin: 0;
  color: rgba(232, 230, 226, 0.72);
  line-height: 1.7;
}

.proj-feature-visual {
  min-height: 280px;
  background-size: cover;
  background-position: center;
}

.proj-visual-elai {
  background-image:
    linear-gradient(120deg, rgba(12, 14, 13, 0.2), rgba(61, 82, 72, 0.5)),
    url("https://images.unsplash.com/photo-1503454537195-1dcabb73ffb9?w=900&q=80");
}

.proj-visual-nia {
  background-image:
    linear-gradient(120deg, rgba(139, 105, 20, 0.25), rgba(12, 14, 13, 0.65)),
    url("https://images.unsplash.com/photo-1677442136019-21780ecad995?w=900&q=80");
}

.two-col-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .two-col-cards {
    grid-template-columns: 1fr;
  }
}

.card-soft {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(12, 14, 13, 0.04);
}

.card-soft h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.card-soft p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* Contacto */
.section-contact {
  background: var(--bg-deep);
  color: #e8e6e2;
}

.section-contact .section-eyebrow {
  color: var(--accent-light);
}

.section-contact .section-title {
  color: #f5f3ef;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-lead {
  color: rgba(232, 230, 226, 0.65);
  max-width: 40ch;
}

.contact-direct {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-link {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #f5f3ef;
  text-decoration: none;
  border-bottom: 1px solid rgba(196, 160, 53, 0.4);
  width: fit-content;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  padding: 2rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 230, 226, 0.45);
}

.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: #e8e6e2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(232, 230, 226, 0.25);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field-full {
  grid-column: 1 / -1;
}

.contact-form .btn-primary {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.75rem;
  color: rgba(232, 230, 226, 0.35);
  line-height: 1.5;
}

.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  grid-column: 1 / -1;
}

.field-checkbox input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--accent-light);
  cursor: pointer;
}

.field-checkbox-label {
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(232, 230, 226, 0.72);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.field-checkbox-label a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-checkbox-label a:hover,
.field-checkbox-label a:focus-visible {
  color: #e8d48a;
}

@media (max-width: 600px) {
  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  background: #080a09;
  color: rgba(232, 230, 226, 0.45);
  padding: 2.5rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}

.footer-tag {
  font-size: 0.8rem;
  margin: 0.5rem 0 1rem;
  color: rgba(232, 230, 226, 0.55);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 1.25rem 0 1rem;
}

.footer-legal a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(232, 230, 226, 0.55);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: var(--accent-light);
  border-bottom-color: rgba(196, 160, 53, 0.4);
}

.footer-copy {
  font-size: 0.75rem;
  margin: 0;
  letter-spacing: 0.04em;
}

/* —— Páginas legales y gracias —— */
.legal-page {
  min-height: 100vh;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 4vw, 2rem) 4rem;
  background: var(--surface);
  color: var(--ink-muted);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  text-decoration: none;
  margin-bottom: 2rem;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--accent);
}

.legal-shell {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-shell > h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.legal-shell h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin: 2rem 0 0.65rem;
}

.legal-shell h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.25rem 0 0.5rem;
}

.legal-shell p,
.legal-shell li {
  margin: 0 0 0.85rem;
  line-height: 1.65;
}

.legal-shell ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-shell a {
  color: var(--sage);
  font-weight: 500;
}

.legal-shell a:hover,
.legal-shell a:focus-visible {
  color: var(--accent);
}

.page-thanks {
  text-align: center;
  padding-top: 2rem;
}

.page-thanks h1 {
  margin-bottom: 1rem;
}

.page-thanks p {
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}
