:root {
  --ink: #101b20;
  --paper: #f5f1e9;
  --gold: #c79b5b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  letter-spacing: -0.055em;
  margin: 26px 0 24px;
  font-size: clamp(52px, 6.1vw, 86px);
  line-height: 0.98;
}

h2 {
  letter-spacing: -0.048em;
  margin-bottom: 0;
  font-size: clamp(38px, 4.3vw, 60px);
  line-height: 1.02;
}

h2 em {
  color: #9c7750;
  font-weight: 400;
}

/* Layout */
.content-width {
  width: min(1160px, 100% - 56px);
  margin-inline: auto;
}

/* Header */
.hero-shell {
  color: #fff;
  background:
    linear-gradient(90deg, #091115e8 0%, #091115ad 41%, #09111538 70%, #09111557 100%),
    url(/images/hero-despacho.png) 50% / cover;
  min-height: 760px;
  position: relative;
  overflow: hidden;
}

.site-header {
  border-bottom: 1px solid #ffffff36;
  justify-content: space-between;
  align-items: center;
  padding: 27px 0;
  display: flex;
}

.brand {
  letter-spacing: 0.14em;
  align-items: baseline;
  gap: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
}

.brand i {
  color: var(--gold);
  letter-spacing: 0;
  font-size: 23px;
  font-weight: 400;
  line-height: 0;
}

.site-header nav {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffffb8;
  gap: 32px;
  font-size: 12px;
  display: flex;
}

.site-header nav a:hover {
  color: #fff;
}

.header-cta,
.text-link {
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
}

.header-cta {
  color: #f7e6c8;
}

/* Hero */
.hero {
  flex-direction: column;
  justify-content: center;
  min-height: 680px;
  padding-bottom: 42px;
  display: flex;
  position: relative;
}

.hero-copy {
  max-width: 640px;
  padding-bottom: 88px;
}

.eyebrow,
.section-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
}

.eyebrow {
  color: #e8d5b3;
  align-items: center;
  gap: 9px;
  display: flex;
}

.eyebrow span {
  background: var(--gold);
  width: 28px;
  height: 1px;
  display: block;
}

.hero-lede {
  color: #ffffffd1;
  max-width: 490px;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  align-items: center;
  gap: 25px;
  margin-top: 33px;
  display: flex;
}

.button {
  letter-spacing: 0.01em;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
  display: inline-flex;
}

.button:hover {
  transform: translateY(-2px);
}

.button-gold {
  background: var(--gold);
  color: #101b20;
}

.button-gold:hover {
  background: #dab675;
}

.text-link {
  border-bottom: 1px solid;
  padding-bottom: 4px;
}

.text-link.light {
  color: #fff;
}

.text-link.dark {
  color: #17282c;
}

.hero-bottom {
  color: #ffffffb8;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  font-size: 12px;
  line-height: 1.55;
  display: flex;
  position: absolute;
  bottom: 40px;
}

.hero-bottom p {
  text-align: right;
  margin: 0;
}

.hero-note {
  color: #fff;
  align-items: center;
  gap: 9px;
  display: flex;
}

.hero-note svg {
  color: var(--gold);
}

/* Intro Section */
.intro-section {
  padding: 145px 0 132px;
}

.section-kicker {
  color: #9d7d50;
}

.intro-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 100px;
  margin-top: 23px;
  display: grid;
}

.intro-text {
  color: #47575a;
  max-width: 395px;
  margin-bottom: 27px;
  font-size: 18px;
  line-height: 1.58;
}

/* Services Section */
.services-section {
  color: #fff;
  background: #14262b;
  padding: 124px 0;
}

.section-heading.light-heading {
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  display: flex;
}

.light-heading .section-kicker {
  color: #c7a36f;
}

.light-heading > p {
  color: #c0c9c7;
  max-width: 315px;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.55;
}

.service-list {
  border-top: 1px solid #ffffff3d;
  margin-top: 70px;
}

.service-row {
  border-bottom: 1px solid #ffffff3d;
  grid-template-columns: 62px 62px 1fr auto;
  align-items: center;
  gap: 15px;
  min-height: 153px;
  display: grid;
  cursor: default;
  transition: background 0.2s;
}

.service-row:hover {
  background: #1c3540;
}

.service-number {
  color: #c7a36f;
  align-self: start;
  margin-top: 31px;
  font-family: Georgia, serif;
  font-size: 15px;
}

.service-icon {
  color: #f1e7d7;
}

.service-row h3 {
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: 400;
}

.service-row p {
  color: #bbc4c4;
  max-width: 510px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.service-arrow {
  color: #c7a36f;
}

/* Method Section */
.method-section {
  padding: 137px 0 120px;
}

.method-top {
  justify-content: space-between;
  align-items: end;
  display: flex;
}

.method-top h2 {
  margin-top: 23px;
}

.steps {
  border-top: 1px solid #cfc4b1;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 76px;
  display: grid;
}

.steps article {
  border-right: 1px solid #cfc4b1;
  min-height: 220px;
  padding: 27px 37px 0 0;
}

.steps article + article {
  padding-left: 37px;
}

.steps article:last-child {
  border-right: none;
}

.steps span {
  color: #a88050;
  font-family: Georgia, serif;
  font-size: 17px;
}

.steps h3 {
  letter-spacing: -0.03em;
  margin: 50px 0 10px;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}

.steps p {
  color: #607073;
  max-width: 250px;
  font-size: 15px;
  line-height: 1.55;
}

/* Pricing Section */
.pricing-wrap {
  background: #dfd2bc;
  padding: 78px 0 60px;
}

.pricing-card {
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 70px;
  display: grid;
}

.gold-kicker {
  color: #855c2e;
}

.price-copy h2 {
  margin: 18px 0 24px;
}

.price-copy > p:last-child {
  color: #506064;
  max-width: 365px;
  font-size: 16px;
  line-height: 1.58;
}

.price-panel {
  background: #f9f5ed;
  padding: 42px 44px 39px;
  box-shadow: 0 17px 30px #3a2a151a;
}

.price-panel ul {
  color: #304147;
  gap: 12px;
  margin: 28px 0 29px;
  padding: 0;
  font-size: 13px;
  list-style: none;
  display: grid;
}

.price-panel li {
  align-items: center;
  gap: 10px;
  display: flex;
}

.price-label {
  color: #987546;
  letter-spacing: 0.15em;
  margin-bottom: 13px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price strong {
  font-family: Georgia, serif;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: #14262b;
  line-height: 1;
}

.price span {
  font-size: 16px;
  color: #14262b;
}

.price small {
  font-size: 11px;
  color: #6b7a7d;
  display: block;
}

.price-panel li svg {
  color: #a77b43;
  flex-shrink: 0;
}

.button-dark {
  color: #fff;
  background: #14262b;
  width: 100%;
}

.button-dark:hover {
  background: #263d43;
}

.price-extras {
  color: #536164;
  justify-content: flex-end;
  gap: 37px;
  margin-top: 25px;
  font-size: 12px;
  display: flex;
}

.price-extras b {
  color: #18272c;
  margin-left: 7px;
}

/* Closing / Contact Section */
.closing-section {
  background: #efe8dc;
  padding: 120px 0 115px;
}

.closing-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: start;
}

.closing-badge {
  color: #9c7750;
  align-items: center;
  gap: 12px;
  display: flex;
}

.closing-copy h2 {
  margin: 28px 0 20px;
}

.closing-desc {
  color: #47575a;
  font-size: 16px;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 0 32px;
}

.closing-direct-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #cfc4b1;
}

.direct-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.direct-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #855c2e;
}

.direct-value {
  font-size: 15px;
  color: #14262b;
  font-weight: 600;
  transition: color 0.2s;
}

a.direct-value:hover {
  color: var(--gold);
}

/* Contact Form Card */
.contact-card {
  background: #f9f5ed;
  padding: 40px 38px 36px;
  box-shadow: 0 17px 30px #3a2a1512;
  border: 1px solid rgba(199, 155, 91, 0.25);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #304147;
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #101b20;
  background: #ffffff;
  border: 1px solid #cfc4b1;
  border-radius: 2px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 155, 91, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-consent {
  margin: 6px 0 22px;
  font-size: 12px;
  color: #506064;
  line-height: 1.5;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--gold);
  cursor: pointer;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.consent-label a {
  color: #14262b;
  text-decoration: underline;
  font-weight: 600;
}

.contact-submit-btn {
  width: 100%;
  cursor: pointer;
  border: none;
  font-size: 13px;
}

.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  font-size: 13px;
  border-radius: 2px;
  line-height: 1.5;
  text-align: center;
}

.form-status.success {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #a8dab5;
}

.form-status.error {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #f5c2c7;
}

/* Footer */
.site-footer {
  color: #68787a;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 27px 0 35px;
  font-size: 11px;
  display: grid;
}

.site-footer > p {
  margin: 0;
}

.footer-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}

.footer-legal-links a {
  color: #68787a;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--ink);
}

.footer-brand {
  color: #14262b;
}

/* Cookie Banner (conforme AEPD) */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 440px;
  background: #14262b;
  color: #f5f1e9;
  padding: 22px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(199, 155, 91, 0.35);
  z-index: 9999;
  display: none;
  animation: cookieSlideUp 0.35s ease-out;
}

@keyframes cookieSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #d1dcdd;
  margin: 0 0 16px;
}

.cookie-banner a {
  color: var(--gold);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  letter-spacing: 0.05em;
  transition: all 0.2s;
  text-transform: uppercase;
}

.cookie-btn-accept {
  background: var(--gold);
  color: #101b20;
}

.cookie-btn-accept:hover {
  background: #dab675;
}

.cookie-btn-reject {
  background: transparent;
  color: #f5f1e9;
  border: 1px solid #4a6167;
}

.cookie-btn-reject:hover {
  background: #20353c;
}

/* ===============================
   RESPONSIVE — Móvil ≤ 700px
   =============================== */
@media (max-width: 700px) {
  .content-width {
    width: min(100% - 36px, 1160px);
  }

  /* Header */
  .site-header {
    padding: 18px 0;
  }

  .site-header nav {
    display: none;
  }

  .header-cta {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Hero Shell y Background Responsivo */
  .hero-shell {
    background-image:
      linear-gradient(180deg, rgba(9, 17, 21, 0.86) 0%, rgba(9, 17, 21, 0.68) 45%, rgba(9, 17, 21, 0.94) 100%),
      url(/images/hero-despacho.png);
    background-position: 70% 25%;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
    padding-bottom: 30px;
    justify-content: flex-start;
  }

  .hero-copy {
    padding-bottom: 15px;
    max-width: 100%;
  }

  h1 {
    font-size: clamp(36px, 9.5vw, 48px);
    line-height: 1.05;
    margin: 18px 0 16px;
    letter-spacing: -0.04em;
  }

  .hero-lede {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 26px;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
    font-size: 13px;
  }

  .hero-actions .text-link {
    justify-content: center;
    padding: 8px 0;
    margin: 0 auto;
    width: fit-content;
  }

  .hero-bottom {
    position: static;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .hero-bottom p {
    display: block;
    text-align: left;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    margin-top: 2px;
  }

  /* Secciones intermedias */
  h2 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.08;
  }

  .intro-section,
  .method-section {
    padding: 68px 0;
  }

  .intro-grid,
  .pricing-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .intro-text {
    font-size: 16px;
    line-height: 1.6;
  }

  .services-section {
    padding: 70px 0;
  }

  .light-heading,
  .method-top {
    display: block;
  }

  .light-heading > p {
    margin-top: 20px;
    font-size: 15px;
  }

  .service-list {
    margin-top: 36px;
  }

  .service-row {
    grid-template-columns: 32px 30px 1fr;
    gap: 12px;
    min-height: 125px;
    padding: 16px 0;
  }

  .service-arrow {
    display: none;
  }

  .service-number {
    margin-top: 4px;
    font-size: 14px;
  }

  .service-row h3 {
    font-size: 24px;
    margin-bottom: 6px;
  }

  .service-row p {
    font-size: 13.5px;
  }

  .steps {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .steps article,
  .steps article + article {
    border-bottom: 1px solid #cfc4b1;
    border-right: 0;
    min-height: auto;
    padding: 20px 0 24px;
  }

  .steps h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 23px;
  }

  /* Tarifas */
  .pricing-wrap {
    padding: 52px 0 42px;
  }

  .price-panel {
    padding: 30px 22px;
  }

  .price strong {
    font-size: 46px;
  }

  .price-extras {
    justify-content: start;
    gap: 10px;
    line-height: 1.6;
    display: grid;
    font-size: 12.5px;
  }

  /* Contacto y Formulario */
  .closing-section {
    padding: 68px 0;
  }

  .closing-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .closing-desc {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .contact-card {
    padding: 26px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Evita zoom automático forzado en iOS Safari */
  }

  /* Footer Centrado */
  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 38px 0 32px;
    text-align: center;
    justify-items: center;
    align-items: center;
  }

  .footer-brand {
    margin: 0 auto;
    display: inline-flex;
    justify-content: center;
    text-align: center;
    width: auto;
  }

  .footer-center {
    text-align: center;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 12px;
    width: 100%;
  }

  .footer-center p {
    text-align: center;
    margin: 0 auto;
    max-width: 320px;
    line-height: 1.55;
    color: #536164;
  }

  .footer-legal-links {
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-footer > p {
    text-align: center;
    margin: 0 auto;
    width: 100%;
  }

  /* Banner Cookies Móvil */
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 18px 16px;
  }

  .cookie-actions {
    flex-direction: column;
    gap: 8px;
  }
}
