.brand,
.nav,
.nav-links,
.site-header {
  display: flex;
  gap: 12px;
}
.lang-switch button:hover,
.nav a:hover {
  background: rgba(173,47,24,0.15);
}
#formStatus,
#submitBtn,
.hero-inner,
.site-footer {
  text-align: center;
}
.backdrop,
.ck-backdrop,
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
:root {
  /* Dark theme from index_new.html */
  --bg: #0d0e12;        /* page background */
  --ink: #e9edf2;       /* main text */
  --muted: #9aa3ad;     /* muted text */
  --brand: #d8765c;     /* accent (headings, primary buttons) */
  --accent: #e9edf2;    /* link/button foreground on dark */
  --section-gap: clamp(32px, 5vw, 80px);
  --reveal-distance: 18px;
  --reveal-duration: .64s;
  --reveal-ease: cubic-bezier(.22, .61, .36, 1);
  --headerH: 100px;
}
:where(main,body) > :where(section) {
  margin: 0;
}
:where(main,body) > :where(section) + :where(section) {
  margin-top: var(--section-gap);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--headerH);
}
[id][data-anchor],
section[id] {
  scroll-margin-top: var(--headerH);
}
body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography families remain */
.card h3,
.site-header .brand,
.wordmark,
h1,
h2,
h3 {
  font-family: "EB Garamond",Georgia,"Times New Roman",serif;
  font-weight: 700;
  letter-spacing: 0;
}

/* Headings orange */
h1, h2, h3,
.card h3,
.cards h2,
.contact h2,
.method h2,
.page-pilar .hero--sub h1 {
  color: var(--brand);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background-color: rgba(13,13,17,0.85);
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  transition: transform .24s;
  will-change: transform;
}
.site-header.hide {
  transform: translateY(-100%);
}
.brand .logo {
  height: 76px;
  width: auto;
  display: block;
  border-radius: 8px;
  image-rendering: -webkit-optimize-contrast;
}
.brand:hover .logo {
  transform: translateY(-1px) scale(1.01);
  transition: transform .18s;
}

/* Backdrop & spotlight adjusted for dark theme */
.backdrop {
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(173,47,24,0.12), transparent 60%),
    radial-gradient(700px 400px at 10% 10%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(500px 300px at 90% 90%, rgba(173,47,24,0.08), transparent 60%);
  pointer-events: none;
  z-index: -2;
  filter: blur(4px);
}

.hp,
.sr-only {
  position: absolute;
}
.brand {
  align-items: center;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
  letter-spacing: .06em;
}
.btn,
.nav a {
  color: var(--accent);
  text-decoration: none;
}
.brand img {
  height: 34px;
}
.wordmark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .12em;
}
.sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.nav,
.nav-links {
  align-items: center;
}
.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,0.12);
  background: #1a1a1d;
  color: var(--ink);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}
.nav a {
  padding: 8px 10px;
  border-radius: 14px;
  transition: background-color .25s,color .25s,box-shadow .25s,transform .15s;
}
.nav a:hover {
  color: var(--brand);
  box-shadow: 0 0 6px rgba(173,47,24,0.5);
}
.btn {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: background-color .25s,color .25s,box-shadow .25s,transform .15s;
  background: transparent;
}
.card,
.steps li,
.trust.badges li {
  transition: transform .25s,box-shadow .25s;
}
.btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(173,47,24,.3);
  cursor: pointer;
}
.card:hover,
.steps li:hover,
.trust.badges li:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,.35);
}
.btn:visited {
  color: var(--accent);
}
.btn.primary:visited {
  color: #fff;
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
}
.btn.ghost:hover {
  background: rgba(173,47,24,0.15);
}
.btn:focus-visible {
  outline: rgba(173,47,24,.6) solid 3px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
}
#submitBtn,
.lang-switch .lang-icon {
  align-items: center;
  display: inline-flex;
}
.lang-switch .lang-icon {
  justify-content: center;
  color: var(--accent);
  margin-right: 4px;
  margin-left: 32px;
}
.lang-switch svg {
  width: 18px;
  height: 18px;
}
.time-pref select,
input,
textarea {
  width: 100%;
  color: inherit;
  background: #222;
}
.lang-switch button {
  border: 1px solid rgba(255,255,255,.12);
  background: #1a1a1d;
  color: var(--accent);
  border-radius: 10px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s, color .25s, box-shadow .25s;
}
.lang-switch button:hover {
  background: rgba(173,47,24,0.15);
  color: var(--brand);
  box-shadow: 0 0 6px rgba(173,47,24,0.5);
}
.lang-switch button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.lang-switch button.active:hover {
  background: var(--brand);
}

.hero {
  padding: 72px 20px 40px;
}
.hero,
.hero .content,
.hero .hero-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-inner {
  max-width: 1050px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.1;
  margin: 10px 0 12px;
  font-weight: 800;
  letter-spacing: -.01em;
}
.lead {
  font-size: clamp(16px, 1.8vw, 22px);
  color: var(--accent);
  margin: 0 auto 24px;
  max-width: 800px;
}

.form-note,
.legal {
  font-size: 14px;
}
.cta-row {
  padding-top: 36px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.cta-row-submit {
  padding-top: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
#formStatus {
  flex-basis: 100%;
  opacity: 0;
  transition: opacity .3s;
}
#formStatus.status,
#formStatus.status.err,
#formStatus.status.ok {
  opacity: 1;
}

.trust {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  list-style: none;
  margin: 22px 0 0;
}
.cards .grid,
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3,1fr);
}
.trust li {
  background: #1e1e21;
  border: 1px solid rgba(255,255,255,.08);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
}

.cards {
  padding: 40px 20px;
}
.card,
.method {
  padding: 20px;
}
.cards h2,
.contact h2,
.method h2 {
  font-family: "EB Garamond",Georgia,"Times New Roman",serif;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  text-align: center;
}
.cards .grid {
  max-width: 1100px;
  margin: 18px auto 0;
}
.card {
  background: #1a1a1d;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.field-error input,
.field-error select,
.field-error textarea {
  border-color: #c62828;
  background: #3a1c1c;
}
.field-error span {
  color: #ff8a80;
}

.method-inner {
  max-width: 1050px;
  margin: 0 auto;
  padding: 24px;
  backdrop-filter: blur(6px);
  background: rgba(20,20,22,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}

.steps,
.trust.badges {
  padding: 0;
  list-style: none;
}
.steps {
  margin: 14px 0 0;
}
.step-num,
.trust.badges .pill-icon {
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
}
.steps li {
  background: #1a1a1d;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  margin-bottom: 6px;
}

.row,
.trust.badges,
label {
  display: grid;
}
.form-note,
.muted {
  color: var(--muted);
}
.status,
label {
  font-weight: 600;
}
#submitBtn {
  width: 200px;
  max-width: 100%;
  justify-content: center;
  gap: .5em;
}
.contact {
  padding: 40px 20px;
}
.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  background: rgba(13,13,17,.65);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  padding: 24px 48px;
  backdrop-filter: blur(6px);
  color: var(--ink);
}
.muted {
  margin-top: 8px;
}
form {
  margin-top: 14px;
}
.hp {
  left: -9999px;
}
.row {
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}
label {
  gap: 6px;
  color: var(--accent);
}
input,
textarea {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  font: inherit;
  background: #222;
  color: var(--ink);
}
input:focus,
textarea:focus {
  outline: rgba(173,47,24,.6) solid 3px;
}
.full {
  grid-column: 1 / -1;
  margin-top: 10px;
}
.status {
  min-height: 24px;
}
.status.ok {
  color: #4caf50;
}
.status.err {
  color: #f44336;
}
.legal {
  margin-top: 18px;
  color: var(--muted);
}
.site-footer {
  padding: 24px 20px;
  color: var(--muted);
  background: #141416;
  border-top: 1px solid rgba(255,255,255,.08);
}

/* Badges grid */
.trust.badges {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  text-align: left;
  margin: 22px auto 0;
  max-width: 900px;
}
.page-pilar #faq-valencia,
.page-pilar #metodo-valencia,
.page-pilar #precios-valencia,
.page-pilar #servicios-valencia,
.page-pilar .cta-final,
.page-pilar .hero--sub {
  text-align: center;
}
.trust.badges li {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(180deg,#1a1a1d,#161618);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
  font-weight: 600;
  color: var(--ink);
}
.trust.badges .pill-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

/* Responsive */
@media (max-width:860px) {
  .cards .grid,
  .row,
  .steps,
  .trust.badges {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 40px 16px 24px;
  }
  .nav {
    position: relative;
  }
  .brand .logo {
    height: 56px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-links {
    position: absolute;
    right: 8px;
    top: 48px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 220px;
    padding: 12px;
    background: #1a1a1d;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(0,0,0,.45);
    z-index: 20;
  }
  .nav-links .btn,
  .nav-links a {
    display: block;
    width: 100%;
  }
  .nav-links .lang-switch {
    justify-content: space-between;
  }
  .nav.open .nav-links {
    display: flex;
  }
  .steps li {
    width: 100%;
  }
  .contact-inner {
    padding: 24px 12px;
  }
  .full {
    grid-column: 1;
  }
}

.segmented-group {
  margin-top: 14px;
}
.segmented-group legend,
.time-pref legend {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 6px;
  background: #1a1a1d;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 6px;
}
.segmented input[type=radio] {
  position: absolute;
  left: -9999px;
}
.segmented label {
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  font-weight: 600;
  color: var(--accent);
}
.segmented input[type=radio]:checked + label {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  box-shadow: 0 6px 16px rgba(173,47,24,.25);
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.contact-row fieldset {
  flex: 1 1 300px;
  min-width: 260px;
}
.contact-method-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}
.contact-details {
  margin-top: 12px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.time-custom,
.time-pref {
  margin-top: 10px;
}
.time-pref select {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  font: inherit;
  background: #222;
  color: var(--ink);
}
.time-custom[aria-hidden=false] {
  display: grid;
}
.is-hidden,
[hidden] {
  display: none!important;
}

/* Links */
#legalLink,
#legalLink2,
#pilarLink {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#legalLink2:focus,
#legalLink2:hover,
#legalLink:focus,
#legalLink:hover,
#pilarLink:focus,
#pilarLink:hover {
  color: var(--brand);
  text-decoration-thickness: 2px;
  outline: 0;
}
#legalLink2:focus-visible,
#legalLink:focus-visible,
#pilarLink:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Page Pilar layout keeps same structure */
.page-pilar .site-header .nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.page-pilar .site-header .nav .links {
  display: inline-flex;
  gap: 16px;
  margin-left: 0!important;
  justify-content: center;
}
.page-pilar .site-header .brand {
  margin-right: 0!important;
}
.page-pilar .hero--sub h1 {
  margin-bottom: .3rem;
}
.page-pilar .hero--sub .lead {
  max-width: 60ch;
  margin: 0 auto .8rem;
}
.page-pilar .trust.badges {
  justify-items: center;
}
.page-pilar .trust.badges li {
  justify-content: center;
  text-align: center;
}
.page-pilar .bullets,
.page-pilar .steps {
  display: inline-block;
  text-align: left;
  max-width: 760px;
  margin: .6rem auto;
}
.page-pilar .cards .grid {
  justify-content: center;
}
.page-pilar .cards .card {
  text-align: left;
  max-width: 360px;
}
.page-pilar #faq-valencia details {
  display: inline-block;
  text-align: left;
  max-width: 760px;
  width: 100%;
  margin: .25rem 0;
}

/* Cookie & modal */
.ck-backdrop {
  background: rgba(0,0,0,.55);
  z-index: 9998;
}
.ck-modal,
.cookie-banner {
  position: fixed;
  z-index: 9999;
}
.ck-modal {
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  max-width: min(800px,92vw);
  max-height: 90vh;
  width: 92vw;
  background: #1a1a1d;
  color: var(--ink);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  overflow: auto;
}
.ck-footer,
.ck-header {
  padding: 14px 16px;
}
.ck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--accent);
}
.ck-body {
  padding: 16px;
}
.ck-close {
  background: transparent;
  color: var(--accent);
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.ck-backdrop[hidden],
.ck-modal[hidden] {
  display: none!important;
}

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: .6s linear infinite spin;
  vertical-align: middle;
  margin-right: .5em;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.cookie-banner {
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1d;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .35s,opacity .35s;
  border-width: 2px;
  color: var(--accent);
}
.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}
.cookie-inner {
  max-width: var(--container,1100px);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cookie-text {
  margin: 0;
}
.cookie-actions {
  display: inline-flex;
  gap: 10px;
}
.cookie-actions .btn.link {
  border: 0;
  background: transparent;
  padding: 8px 6px;
  cursor: pointer;
  color: var(--brand);
}
.cookie-actions .btn.link:hover {
  text-decoration: underline;
}

/* Motion & button interactions */
#submitBtn,
.btn.primary {
  --btn-grow: 1.01;
  transform: translateZ(0);
  transition: transform .15s,box-shadow .2s;
  will-change: transform;
}
#submitBtn:focus-visible,
#submitBtn:hover,
.btn.primary:focus-visible,
.btn.primary:hover {
  transform: translateY(-1px) scale(var(--btn-grow));
  box-shadow: 0 10px 28px rgba(173,47,24,.34);
}
#submitBtn:active,
.btn.primary:active {
  transform: translateY(0) scale(.998);
  box-shadow: 0 4px 14px rgba(173,47,24,.28);
}
#submitBtn:disabled,
.btn.primary[disabled] {
  transform: none!important;
  box-shadow: none;
  opacity: .7;
  cursor: not-allowed;
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  #submitBtn,
  .btn.primary { transition: none; }
  #submitBtn:focus-visible,
  #submitBtn:hover,
  .btn.primary:focus-visible,
  .btn.primary:hover { transform: none; }
}

