/* Paleta y tipografía de la landing (sobrescribe base.css solo en esta página) */
:root {
  color-scheme: light;

  --bg: #e5edf8;
  --surface: #dbe5f3;
  --ink: #1a1a1a;
  --muted: #7a7067;
  --line: #c0d0e6;
  --field-line: #c0d0e6;

  --primary: #7c2d3e;
  --primary-hover: #621f2f;
  --primary-soft: rgba(124, 45, 62, 0.2);
  --accent: #7c2d3e;
  --accent-hover: #621f2f;

  --danger: #b3261e;
  --danger-soft: transparent;

  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 64px);
  --ease: 0.35s ease;
}

body {
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--primary);
  color: var(--bg);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 em,
h2 em {
  font-style: italic;
  font-weight: 400;
  color: inherit;
}

.eyebrow {
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  min-height: 54px;
  padding: 0 2rem;
  border: 1px solid var(--primary);
  border-radius: 50px;
  background: var(--primary);
  font: 500 12px/1 var(--font-sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.btn:active {
  transform: none;
}
.btn-primary,
.btn-accent {
  color: var(--bg);
}
.btn-primary:hover,
.btn-accent:hover,
.btn-ghost:hover {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  color: var(--bg);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
}

.link-cta {
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid var(--primary);
  background: none;
  color: var(--ink);
  font: 400 0.72rem/1.4 var(--font-sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--ease);
}
.link-cta:hover {
  color: var(--primary);
}

.actions {
  display: grid;
  gap: 12px;
}

/* Cabecera: transparente y superpuesta a la foto del hero */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  border-bottom: none;
}
.site-header .logo,
.site-header .link-cta {
  color: #f0ece4;
}
/* Enlace Blog: mismo texto que .link-cta, sin subrayado; empuja los dos enlaces a la derecha */
.site-header .header-link {
  margin-left: auto;
  margin-right: 1.5rem;
  border-bottom-color: transparent;
  text-decoration: none;
}
/* Las palabras del logo llevan color inline en el HTML: hace falta !important */
.site-header .logo span {
  color: #f0ece4 !important;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
}
/* Logo tipográfico: las fuentes y colores de cada palabra van inline en el HTML */
.logo {
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 65vh;
  padding-block: 100px 48px;
  background-image: url('/img/salon-ia.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Velo oscuro sobre la foto para que el texto se lea */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 15, 30, 0.65) 0%, rgba(10, 15, 30, 0.65) 50%, rgba(10, 15, 30, 0.2) 100%);
  z-index: 0;
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero h1,
.hero .eyebrow,
.hero .hero-lead {
  color: #f0ece4;
}
.hero .btn-ghost:not(:hover) {
  border-color: #f0ece4;
  color: #f0ece4;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.1;
}
.hero h1 em {
  display: block;
}
.hero-foot {
  display: grid;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero .hero-foot {
  border-top-color: rgba(240, 236, 228, 0.3);
}
.hero-lead {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
}

/* Secciones */
.section {
  padding-block: 60px;
}
#servicios {
  padding-top: 60px;
}
.section-head {
  margin-bottom: 64px;
}
/* Aclaración bajo el eyebrow, pegada a él */
.section-note {
  margin: -1rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.section-head h2 {
  font-size: clamp(30px, 3.5vw, 44px);
}

.services {
  display: grid;
  border-top: 1px solid var(--line);
}
.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding-block: 48px;
  border-bottom: 1px solid var(--line);
}
.service:last-child {
  border-bottom: 0;
}
.service-index {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--primary);
}
.service h3 {
  font-size: clamp(26px, 2.4vw, 32px);
}
.service p {
  max-width: 28rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
}
/* Nota bajo el servicio: .service .service-note gana a .service p, que pondría margin-top a 0 */
.service .service-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 16px;
  font-style: italic;
}

/* Servicio 02: ventajas del alquiler turístico (mismo patrón que .reasons) */
.airbnb-features {
  display: grid;
  align-self: stretch;
  margin-block: 1rem 1.5rem;
  border-top: 1px solid var(--line);
}
.airbnb-feature {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.airbnb-feature:last-child {
  border-bottom: 0;
}
.airbnb-feature-index {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--primary);
}
.airbnb-feature h4 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
/* Va después de .service p y con la misma especificidad: estos valores ganan */
.airbnb-feature p {
  max-width: none;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Garantías */
#garantias .section-head {
  margin-bottom: 24px;
}
.reasons {
  display: grid;
  border-top: 1px solid var(--line);
}
.reason {
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.reason:last-child {
  border-bottom: 0;
}
.reason h3 {
  margin-bottom: 0.9rem;
  font-size: clamp(22px, 2vw, 26px);
}
.reason p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
}

/* Proceso: dos bloques (venta y alquiler turístico) separados por una línea */
.track-label {
  margin: 0 0 32px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
}
.track-divider {
  margin-block: 60px;
  border: 0;
  border-top: 1px solid var(--line);
}
.steps {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.step-index {
  display: block;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--primary);
}
.step h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-size: 20px;
}
.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Honorarios */
.fees-intro {
  max-width: 30rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
}
.fees {
  display: grid;
  border-top: 1px solid var(--line);
}
.fee {
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}
.fee-label {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.fee-rate {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  color: var(--primary);
}
.fee-min {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.fees-note {
  margin: 32px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Colaboradores */
.collaborators {
  margin-top: 60px;
  padding-top: 120px;
  background: #e6ecf4;
  text-align: center;
}
.collaborators h2 {
  font-size: clamp(30px, 3.5vw, 44px);
}
.collaborators-lead {
  max-width: 34rem;
  margin: 1.75rem auto 0;
  color: var(--muted);
}
.collaborators-note {
  max-width: 34rem;
  margin: 40px auto;
  color: var(--muted);
}

/* Foto a ancho completo con frase superpuesta */
.photo-band {
  position: relative;
  display: grid;
  place-items: center;
  height: 300px;
  overflow: hidden;
}
.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.photo-band p {
  position: relative;
  max-width: 40rem;
  margin: 0;
  padding-inline: var(--gutter);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), 0 1px 3px rgba(0, 0, 0, 0.35);
}

.closing {
  border-top: 1px solid var(--line);
  text-align: center;
}
.closing h2 {
  font-size: clamp(32px, 4vw, 48px);
}
.closing p {
  max-width: 28rem;
  margin: 1.75rem auto 2.5rem;
  color: var(--muted);
}

.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
}

/* Modal del formulario */
.lead-dialog {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--ink);
}
.lead-dialog::backdrop {
  background: rgba(26, 26, 26, 0.4);
}
.dialog-inner {
  padding: 28px var(--gutter) 40px;
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}
.dialog-head h2 {
  font-size: 2.4rem;
  line-height: 1;
}
.dialog-head p {
  max-width: 26rem;
  margin: 0.9rem 0 0;
  font-size: 0.925rem;
  color: var(--muted);
}
.dialog-close {
  flex: none;
  width: 40px;
  height: 40px;
  margin: -6px -10px 0 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: 300 1.9rem/1 var(--font-sans);
  cursor: pointer;
}
.dialog-close:hover {
  color: var(--ink);
}

.form-grid {
  display: grid;
  gap: 32px;
}
.form-grid .span-2 {
  grid-column: 1 / -1;
}

.field {
  gap: 0.4rem;
}
.field label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .optional {
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(26, 26, 26, 0.4);
}
.field:focus-within label {
  color: var(--primary);
}
.field input,
.field textarea {
  padding: 0.5rem 0 0.7rem;
  border: 0;
  border-bottom: 1px solid var(--field-line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 300;
  appearance: none;
  -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button,
.field input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.field textarea {
  min-height: 88px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(26, 26, 26, 0.3);
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--primary);
  outline: none;
}
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--surface) inset;
  caret-color: var(--ink);
}

.alert-error {
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 1px solid var(--danger);
  border-radius: 0;
  font-size: 0.9rem;
}

.form-actions {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.form-legal {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-success {
  padding-top: 72px;
}
.lead-success h2 {
  font-size: clamp(2.6rem, 10vw, 3.5rem);
}
.lead-success p:not(.eyebrow) {
  max-width: 24rem;
  margin: 1.25rem 0 2.5rem;
  color: var(--muted);
}

/* Tablet y escritorio */
@media (min-width: 640px) {
  .hero {
    min-height: 70vh;
    padding-top: 100px;
  }
  .logo {
    font-size: 28px;
  }
  .section {
    padding-block: 80px;
  }
  /* Tras .section para que no lo pise */
  .collaborators {
  margin-top: 60px;
    padding-top: 120px;
  }
  /* Los dos botones de cada pareja miden lo mismo: el ancho del más largo */
  .actions {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 16px;
    width: fit-content;
  }
  .closing .actions {
    margin-inline: auto;
  }
  .reasons,
  .fees {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
  .reason:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .airbnb-features {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
  .airbnb-feature:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
  }
  .photo-band {
    height: 500px;
  }
  .photo-band p {
    font-size: 32px;
  }
  .lead-dialog {
    width: min(620px, calc(100% - 48px));
    height: auto;
    max-height: calc(100dvh - 48px);
    margin: auto;
    border: 1px solid var(--line);
  }
  .dialog-inner {
    padding: 48px;
  }
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
  }
  .lead-success {
    padding-block: 24px;
  }
}

@media (min-width: 960px) {
  .hero {
    padding-bottom: 60px;
  }
  .hero-foot {
    grid-template-columns: 1fr auto;
    align-items: end;
    margin-top: 64px;
  }
  .section-head {
    margin-bottom: 96px;
  }
  .services {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 48px;
  }
  .service {
    padding: 64px 64px 72px 0;
    border-bottom: 0;
  }
  .service + .service {
    padding-inline: 64px 0;
    border-left: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .link-cta {
    transition: none;
  }
}
