/* ─────────────────────────────────────────
   CAUCE — Red de Negocios Barcelona
   style.css
   ───────────────────────────────────────── */

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

:root {
  --ink:         #1F4D3A;
  --paper:       #f5f0e6;
  --warm-bg:     #e6ddd0;
  --gold:        #D9CBB3;
  --gold-bright: #e8ddc8;
  --dark:        #162e24;
  --dark2:       #0f2019;
  --muted:       #4F6D5A;
  --accent:      #4F6D5A;
  --line-dark:   rgba(217,203,179,0.18);
  --line-light:  rgba(31,77,58,0.12);
  --nav-h:       72px;
  --max-w:       1100px;
  --px:          clamp(1.5rem, 5vw, 3.5rem);
  /* Unified line-height tokens */
  --lh-tight:    1.15;
  --lh-heading:  1.1;
  --lh-body:     1.8;
  --lh-loose:    1.9;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--paper);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(18px, 1.3vw, 21px);
  line-height: var(--lh-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ══ SPLASH ══ */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--dark2);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }

.splash-corner {
  position: absolute;
  width: 28px; height: 28px;
  border-color: rgba(217,203,179,0.4); border-style: solid;
  opacity: 0;
  animation: cornerIn 0.5s ease 0.2s forwards;
}
.splash-tl { top: 2rem; left: 2rem; border-width: 1px 0 0 1px; }
.splash-tr { top: 2rem; right: 2rem; border-width: 1px 1px 0 0; }
.splash-bl { bottom: 2rem; left: 2rem; border-width: 0 0 1px 1px; }
.splash-br { bottom: 2rem; right: 2rem; border-width: 0 1px 1px 0; }


.splash-ghost {
  position: absolute;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(14rem, 30vw, 22rem);
  font-weight: 600; font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217,203,179,0.08);
  letter-spacing: 0.25em;
  pointer-events: none; user-select: none;
  /* shift left by half a letter-spacing to visually center */
  top: 50%; left: 50%; transform: translate(calc(-50% + 0.125em), -50%);
  white-space: nowrap; line-height: 1; z-index: 0;
}
.splash-center {
  display: flex; flex-direction: column;
  align-items: center; gap: 1.4rem;
  position: relative; z-index: 1;
  width: 100%; text-align: center;
}

.splash-logo {
  font-family: 'DM Mono', monospace;
  font-size: clamp(2.2rem, 6.5vw, 4rem); letter-spacing: 0.55em;
  padding-left: 0.55em;
  color: var(--paper); line-height: 1;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}
.splash-sub {
  font-family: 'DM Mono', monospace;
  font-size: clamp(0.62rem, 1.2vw, 0.85rem); letter-spacing: 0.28em; text-transform: uppercase;
  padding-left: 0.28em;
  color: var(--gold); line-height: 1;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.2s forwards;
}


.splash-progress {
  position: absolute; bottom: 0; left: 0;
  height: 1px; width: 0%;
  background: var(--gold);
  animation: progressBar 2s ease 0.3s forwards;
}


@keyframes cornerIn {
  to { opacity: 1; }
}
@keyframes progressBar {
  to { width: 100%; }
}

/* ══ SITE WRAPPER ══ */
.site { opacity: 0; transition: opacity 0.8s ease; }
.site.visible { opacity: 1; }

/* ══ SCROLL PROGRESS BAR ══ */
.scroll-bar {
  position: absolute; bottom: -1px; left: 0;
  height: 1px; width: 0%;
  background: var(--gold);
  z-index: 10;
  transition: width 0.1s linear;
}

/* ══ TYPOGRAPHY ══ */
.s-tag {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.75rem;
  line-height: 1;
}
.s-tag::after {
  content: ''; display: block; width: 2rem; height: 1px;
  background: var(--gold); opacity: 0.5;
}
.s-tag-dark { color: var(--ink); }
.s-tag-dark::after { background: var(--ink); opacity: 0.3; }

.section-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 400; line-height: var(--lh-heading);
  letter-spacing: -0.01em;
}
.section-h2 em { font-style: italic; font-weight: 600; color: #4F6D5A; }
.dark-text { color: var(--ink); }
.dark-text em { color: var(--ink); }

.ghost-word {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600; font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(217,203,179,0.07);
  pointer-events: none; user-select: none;
  line-height: 1; z-index: 0;
}
.ghost-dark { -webkit-text-stroke: 1px rgba(31,77,58,0.06); }

.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══ BUTTONS ══ */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--gold); color: var(--dark);
  /* compensate letter-spacing optical offset on last char */
  padding: 1rem 2.2rem 1rem 2.4rem;
  text-decoration: none; line-height: 1;
  transition: background 0.25s, transform 0.2s;
  white-space: nowrap;
}
.btn-gold:hover { background: var(--gold-bright); transform: translateY(-2px); }

.btn-outline {
  display: inline-flex; align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245,240,230,0.6); text-decoration: none;
  border-bottom: 1px solid rgba(245,240,230,0.28);
  padding-bottom: 3px; line-height: 1;
  transition: color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn-outline:hover { color: var(--paper); border-color: rgba(245,240,230,0.7); }

/* ══ NAV ══ */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 500; }

nav {
  height: var(--nav-h);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--px);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
nav.scrolled {
  background: rgba(22,46,36,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}

.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; color: var(--paper);
  flex-shrink: 0; line-height: 1;
}
.nav-brand {
  font-family: 'DM Mono', monospace;
  font-size: 1.3rem; letter-spacing: 0.45em;
  color: var(--paper); line-height: 1;
  /* compensate trailing letter-spacing */
  padding-right: 0;
}
.nav-logo:hover .nav-brand { opacity: 0.8; }

.nav-links { display: flex; align-items: center; gap: 2.8rem; list-style: none; }
.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,1); text-decoration: none;
  position: relative; padding-bottom: 3px; line-height: 1;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width 0.25s;
}
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: #ffffff !important;
  /* inline-flex guarantees true vertical + horizontal centering */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* compensate letter-spacing optical offset */
  padding: 0.6rem 1.3rem 0.6rem 1.5rem;
  text-decoration: none; line-height: 1;
  height: 36px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: rgba(255,255,255,0.15); color: #ffffff !important; border-color: #ffffff; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 0.4rem; width: 36px; height: 36px;
}
.nav-burger span {
  display: block; width: 22px; height: 1px; background: var(--paper);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: rgba(22,46,36,0.98);
  border-bottom: 1px solid var(--line-dark);
  padding: 1.5rem var(--px) 2rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; }
.mobile-menu a {
  display: block; font-family: 'DM Mono', monospace;
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245,240,230,0.6); text-decoration: none;
  padding: 1rem 0; border-bottom: 1px solid var(--line-dark);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu li:last-child a { border-bottom: none; color: var(--gold); }

/* ══ SECTIONS ══ */
section {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 5.5vw, 5rem) var(--px);
  scroll-margin-top: var(--nav-h);
}
section > .ghost-word { font-size: clamp(8rem, 18vw, 16rem); }

.s-dark { background: var(--dark2); }
.s-warm {
  background: url('../assets/images/entrevista-bg.jpg') center center / cover no-repeat;
  color: var(--ink);
  position: relative;
}
.s-warm::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(245,240,230,0.97) 0%, rgba(245,240,230,0.92) 40%, rgba(245,240,230,0.55) 70%, rgba(245,240,230,0.1) 100%);
  z-index: 0;
}
.s-warm > * { position: relative; z-index: 1; }
.s-contact { background: var(--dark); }

/* ══ HERO ══ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem));
  padding-bottom: clamp(3rem, 5vw, 5rem);
  background: url('../assets/images/hero-bg.jpg') center center / cover no-repeat;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(15,30,22,0.88) 0%, rgba(15,30,22,0.72) 50%, rgba(10,20,15,0.25) 100%);
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero > .ghost-word { display: none; }
.hero-inner { max-width: 820px; position: relative; z-index: 1; }

.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.67rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 1rem; line-height: 1;
  opacity: 0; animation: fadeUp 0.7s ease 0.1s forwards;
}
.eyebrow::before { content: ''; display: block; width: 2.5rem; height: 1px; background: var(--gold); flex-shrink: 0; }

.hero-h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.2rem, 5.5vw, 5.8rem);
  font-weight: 300; line-height: var(--lh-heading);
  letter-spacing: -0.02em; margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp 0.8s ease 0.25s forwards;
}
.hero-h1 em { font-style: italic; font-weight: 600; color: var(--gold); display: block; }

.hero-desc {
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  font-weight: 300; color: rgba(245,240,230,0.88);
  max-width: 46ch; line-height: var(--lh-loose);
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-actions {
  display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 0.8s ease 0.55s forwards;
}

.hero-stats {
  position: absolute; bottom: clamp(4rem, 7vw, 6rem); right: var(--px);
  display: flex; gap: clamp(1.5rem, 3vw, 3rem); z-index: 1;
  opacity: 0; animation: fadeUp 0.8s ease 0.7s forwards;
}
.stat { text-align: right; }
.stat-n {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 600;
  color: var(--gold); line-height: 1;
}
.stat-l {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(245,240,230,0.6); margin-top: 0.5rem; line-height: 1;
}

/* ══ SOBRE ══ */
#sobre { background: var(--paper); color: var(--ink); }
#sobre .ghost-word {
  font-size: clamp(8rem, 16vw, 14rem);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  -webkit-text-stroke: 1px rgba(31,77,58,0.04);
}
#sobre .s-tag { color: #4F6D5A; }
#sobre .s-tag::after { background: #4F6D5A; opacity: 0.5; }

.about-grid {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  max-width: var(--max-w); margin: 0 auto;
  position: relative; z-index: 1; align-items: start;
}
.about-body p {
  font-size: clamp(1.1rem, 1.2vw, 1.2rem);
  color: #4F6D5A; line-height: var(--lh-loose);
  margin-bottom: 1.1rem;
}
.about-body p strong { color: #1F4D3A; font-weight: 600; }

.pillars { margin-top: 1.2rem; border-top: 1px solid rgba(79,109,90,0.2); }
.pi {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 0.95rem 0; border-bottom: 1px solid rgba(79,109,90,0.15);
  transition: padding-left 0.25s; cursor: default;
}
.pi:hover { padding-left: 0.6rem; }
.pi-n {
  font-family: 'DM Mono', monospace; font-size: 0.58rem;
  color: #4F6D5A; letter-spacing: 0.1em; min-width: 1.8rem; flex-shrink: 0; line-height: 1.8;
}
.pi-t { font-size: 1rem; color: #4F6D5A; font-weight: 400; line-height: var(--lh-body); }

/* ══ ESTUDIO / TIMELINE ══ */
#estudio .ghost-word {
  font-size: clamp(8rem, 18vw, 16rem);
  right: -1rem; bottom: -2rem; top: auto; transform: none;
}
.study-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: var(--max-w); margin: 0 auto clamp(2rem, 3.5vw, 3rem);
  position: relative; z-index: 1; align-items: end;
}
.study-intro {
  font-size: clamp(1.1rem, 1.2vw, 1.2rem);
  color: rgba(245,240,230,0.75); line-height: var(--lh-loose);
}

/* Timeline */
.timeline { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.tl-track { position: relative; margin-bottom: 3rem; padding: 0 0; }
.tl-line {
  height: 1px; background: rgba(217,203,179,0.15);
  position: relative; margin: 0 0;
}
.tl-fill {
  position: absolute; top: 0; left: 0;
  height: 100%; width: 0%;
  background: var(--gold);
  transition: width 1.5s ease;
}
.tl-dot {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--dark2); border: 1px solid var(--gold);
  transition: background 0.3s;
}
.tl-dot.active { background: var(--gold); }

.tl-steps {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.tl-step {
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border: 1px solid var(--line-dark);
  position: relative; transition: background 0.3s, border-color 0.3s;
}
.tl-step:hover { background: rgba(217,203,179,0.04); border-color: rgba(217,203,179,0.3); }
.tl-step::before, .tl-step::after {
  content: ''; position: absolute;
  width: 12px; height: 12px;
  border-color: rgba(217,203,179,0.2); border-style: solid;
  opacity: 0; transition: opacity 0.3s;
}
.tl-step::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.tl-step::after  { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.tl-step:hover::before, .tl-step:hover::after { opacity: 1; }

.tl-num {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  color: var(--gold); letter-spacing: 0.2em;
  display: block; margin-bottom: 1rem; line-height: 1;
}
.tl-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.3rem, 1.6vw, 1.5rem);
  font-weight: 600; margin-bottom: 0.9rem;
  line-height: var(--lh-tight);
}
.tl-body {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  color: rgba(245,240,230,0.7); line-height: var(--lh-body);
}

/* ══ QUOTE ══ */
.s-quote {
  background: var(--ink); padding: clamp(2.5rem, 4vw, 4rem) var(--px);
  position: relative; overflow: hidden;
}
.s-quote::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(217,203,179,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.quote-inner {
  max-width: 780px; margin: 0 auto;
  position: relative; z-index: 1;
  text-align: center;
}
.quote-mark {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 6rem; font-weight: 300; font-style: italic;
  color: var(--gold); opacity: 0.4; line-height: 0.6;
  display: block; margin-bottom: 1.5rem;
}
.quote-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 300; font-style: italic;
  color: var(--paper); line-height: 1.6;
  margin-bottom: 2rem;
}
.quote-attr {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); opacity: 0.7; line-height: 1;
}

/* ══ ENTREVISTA ══ */
#entrevista .ghost-word,
#entrevista .ghost-far-right { display: none; }
#entrevista .s-tag { color: var(--ink); }
#entrevista .s-tag::after { background: var(--ink); opacity: 0.3; }
.int-wrap {
  display: grid; grid-template-columns: 1fr;
  max-width: 640px; margin: 0 auto 0 0;
  position: relative; z-index: 1; align-items: start;
}
.int-left .section-h2 { margin-bottom: 2.5rem; }

.q-list { border-top: 1px solid rgba(31,77,58,0.25); }
.q-row {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 1.1rem 0; border-bottom: 1px solid rgba(31,77,58,0.18);
  transition: padding-left 0.25s; cursor: default;
}
.q-row:hover { padding-left: 0.5rem; }
.q-dash {
  font-family: 'DM Mono', monospace; font-size: 0.6rem;
  color: var(--ink); opacity: 0.5; min-width: 1.2rem; flex-shrink: 0; line-height: var(--lh-body);
}
.q-text {
  font-size: clamp(1.05rem, 1.1vw, 1.15rem);
  color: rgba(31,77,58,0.85); line-height: var(--lh-body); font-weight: 300;
}

.int-box {
  background: rgba(31,77,58,0.06);
  border: 1px solid rgba(31,77,58,0.14);
  padding: clamp(1.8rem, 3vw, 2.5rem);
  position: relative;
}
.int-box::before, .int-box::after {
  content: ''; position: absolute;
  width: 16px; height: 16px;
  border-color: rgba(31,77,58,0.25); border-style: solid;
}
.int-box::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.int-box::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.int-box p {
  font-size: clamp(1.05rem, 1.1vw, 1.15rem);
  color: rgba(31,77,58,0.6); line-height: var(--lh-loose);
  margin-bottom: 1.5rem; font-weight: 300;
}
.int-box .btn-gold { margin-top: 0.5rem; }

/* ══ FAQ ══ */
.s-faq { padding: clamp(3rem, 5vw, 4.5rem) var(--px); }
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; margin-top: 0; }

.faq-item {
  border-bottom: 1px solid var(--line-dark);
}
.faq-item:first-child { border-top: 1px solid var(--line-dark); }

.faq-q {
  list-style: none; cursor: pointer;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  font-weight: 300; color: var(--paper);
  padding: 1.3rem 2.5rem 1.3rem 0;
  position: relative; line-height: var(--lh-body);
  transition: color 0.2s;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: '+'; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-family: 'DM Mono', monospace; font-size: 1rem;
  color: var(--gold); transition: transform 0.25s;
  line-height: 1;
}
details[open] .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-q:hover { color: var(--gold); }

.faq-a {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  color: rgba(245,240,230,0.75); line-height: var(--lh-loose);
  padding: 0 2rem 1.5rem 0; font-weight: 300;
}

/* ══ CONTACTO ══ */
#contacto .ghost-word {
  font-size: clamp(8rem, 16vw, 14rem);
  right: -1rem; bottom: 2rem; top: auto; transform: none;
}
.contact-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.contact-sub {
  font-size: clamp(1.1rem, 1.2vw, 1.2rem);
  color: rgba(245,240,230,0.75); line-height: var(--lh-loose);
  margin-top: 1.5rem; margin-bottom: 3rem; max-width: 50ch; font-weight: 300;
}

.cform { display: flex; flex-direction: column; gap: 1.6rem; }
.crow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.cfield { display: flex; flex-direction: column; gap: 0.6rem; }
.cfield label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(245,240,230,0.65); line-height: 1;
}
.optional { opacity: 0.6; text-transform: none; font-size: 0.55rem; }
.cfield input, .cfield textarea {
  background: transparent; border: none;
  border-bottom: 1px solid rgba(245,240,230,0.18);
  padding: 0.75rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.05rem, 1.1vw, 1.1rem); color: var(--paper);
  outline: none; width: 100%;
  transition: border-color 0.25s;
  line-height: var(--lh-body);
}
.cfield input::placeholder, .cfield textarea::placeholder { color: rgba(245,240,230,0.35); }
.cfield input:focus, .cfield textarea:focus { border-color: var(--gold); }
.cfield textarea { resize: vertical; min-height: 100px; }

.csubmit { margin-top: 1.2rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cbtn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--gold); color: var(--dark);
  border: none; padding: 1.05rem 2.2rem 1.05rem 2.4rem;
  cursor: pointer; line-height: 1;
  transition: background 0.25s, transform 0.2s;
  white-space: nowrap;
}
.cbtn:hover { background: var(--gold-bright); transform: translateY(-2px); }
.cbtn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.cnote {
  font-size: clamp(1rem, 1.05vw, 1.05rem);
  color: rgba(245,240,230,0.55); font-style: italic; line-height: 1;
}

.success-msg {
  display: none;
  border: 1px solid rgba(217,203,179,0.4);
  padding: 1.5rem 2rem;
  font-size: clamp(1rem, 1.1vw, 1.1rem); color: var(--paper);
  margin-top: 2rem; position: relative; line-height: var(--lh-body);
}
.success-msg::before, .success-msg::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border-color: var(--gold); border-style: solid;
}
.success-msg::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.success-msg::after  { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }


/* ══ FORM VALIDATION ══ */
.field-error {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem; letter-spacing: 0.05em;
  color: #c87070;
  margin-top: 0.4rem;
  line-height: 1.4;
}
.gdpr-error {
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.field-invalid {
  border-bottom-color: #c87070 !important;
}
.cgdpr.field-invalid-gdpr span {
  color: #c87070;
}

/* ══ GDPR CHECKBOX ══ */
.cgdpr {
  /* override .cfield flex-direction:column — checkbox + text must be on same row */
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.75rem !important;
  margin-top: 0.4rem;
  cursor: pointer;
}
.cgdpr input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
  width: 14px; height: 14px; min-width: 14px;
  margin-top: 4px; flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
  /* reset all cfield input overrides */
  border: initial !important;
  border-bottom: none !important;
  padding: 0 !important;
  background: transparent !important;
  font-size: initial !important;
}
.cgdpr span {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-style: italic; font-weight: 300;
  letter-spacing: 0; text-transform: none;
  color: rgba(245,240,230,0.45); line-height: 1.6;
  cursor: pointer;
}
.gdpr-link {
  color: rgba(245,240,230,0.65); text-decoration: none;
  border-bottom: 1px solid rgba(245,240,230,0.25);
  transition: color 0.2s, border-color 0.2s;
}
.gdpr-link:hover { color: var(--gold); border-color: var(--gold); }

/* ══ FOOTER LEGAL ══ */
.footer-legal {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap;
  margin-top: 0.7rem; padding-top: 0.7rem;
  border-top: 1px solid rgba(217,203,179,0.08);
}
.footer-legal-link {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.1em;
  color: rgba(245,240,230,0.45); text-decoration: none;
  transition: color 0.2s;
}
.footer-legal-link:hover { color: rgba(245,240,230,0.75); }
.footer-legal-sep {
  font-family: 'DM Mono', monospace; font-size: 0.65rem;
  color: rgba(245,240,230,0.2);
}
.footer-legal-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem; letter-spacing: 0.1em;
  color: rgba(245,240,230,0.45);
}

/* ══ FOOTER ══ */
footer { background: var(--dark2); border-top: 1px solid var(--line-dark); padding: 2rem var(--px); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.f-logo { font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.28em; color: rgba(245,240,230,0.55); line-height: 1; }
.f-divider { flex: 1; height: 1px; background: var(--line-dark); max-width: 6rem; }
.f-info { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.1em; color: rgba(245,240,230,0.45); line-height: 1; }

/* ══ ANIMATIONS ══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .study-header { grid-template-columns: 1fr; gap: 2rem; }
  .int-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .hero > .ghost-word { font-size: clamp(8rem, 18vw, 14rem); }
  .tl-steps { grid-template-columns: 1fr; gap: 1rem; }
  .tl-track { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .crow { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-stats { position: static; margin-top: 3.5rem; justify-content: flex-start; }
  .hero > .ghost-word, #sobre .ghost-word { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .splash-corner { width: 20px; height: 20px; }
}

@media (max-width: 480px) {
  .hero-h1 { font-size: 3.2rem; }
  .section-h2 { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; }
  .stat-n { font-size: 1.8rem; }
  .csubmit { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .cbtn { width: 100%; }
  .int-box { padding: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .f-divider { display: none; }
  .splash-c { width: 54px; height: 68px; }
  .splash-logo { font-size: 1.1rem; }
}
