:root {
  --cream: #f8f3ec;
  --linen: #fffdfa;
  --gold-100: #f8ecc7;
  --sage-50: #eef4ec;
  --sage-100: #dce8db;
  --sage-200: #c5d5c6;
  --sage-300: #9ab39d;
  --sage-500: #4e6b52;
  --sage-700: #324235;
  --sage-900: #1a2419;
  --gold-200: #f1d690;
  --gold-400: #e0a928;
  --gold-500: #c18e1a;
  --shadow-soft: 0 28px 80px rgba(34, 47, 36, 0.14);
  --shadow-card: 0 18px 48px rgba(34, 47, 36, 0.12);
  --shadow-glow: 0 24px 72px rgba(224, 169, 40, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(224, 169, 40, 0.12), transparent 34%),
    radial-gradient(circle at right 12%, rgba(78, 107, 82, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 250, 0.84), rgba(248, 243, 236, 0.9));
  color: var(--sage-900);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.62;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(248, 243, 236, 0.24), rgba(248, 243, 236, 0.58)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 30%);
  pointer-events: none;
  z-index: -1;
}

.page-noise {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mix-blend-mode: soft-light;
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: block;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px) scale(1.03);
  opacity: 0.96;
}

.whatsapp-float__icon {
  display: block;
  width: 4.25rem;
  height: auto;
  object-fit: contain;
}

.font-heading {
  font-family: "Cormorant Garamond", serif;
}

.section-shell {
  position: relative;
  padding: clamp(4.5rem, 8vw, 6.5rem) 0;
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(224, 169, 40, 0.08), transparent 30%);
}

.section-shell.section-sage::before {
  background:
    radial-gradient(circle at top right, rgba(224, 169, 40, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.glass-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(197, 213, 198, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.cta-button,
.cta-secondary,
.menu-button,
.nav-link {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sage-900);
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400));
  box-shadow: 0 16px 36px rgba(224, 169, 40, 0.24);
  cursor: pointer;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(224, 169, 40, 0.3);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(78, 107, 82, 0.18);
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sage-700);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.cta-secondary:hover,
.cta-secondary:focus-visible,
.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-1px);
  color: var(--sage-500);
}

.nav-link {
  color: var(--sage-700);
  text-decoration: none;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(78, 107, 82, 0.14);
  background: rgba(255, 255, 255, 0.8);
  color: var(--sage-700);
}

.hero-frame,
.image-panel {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  box-shadow: var(--shadow-soft);
}

.hero-frame::after,
.image-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(26, 36, 25, 0.16));
}

.hero-frame img,
.image-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-panel img {
  position: absolute;
  inset: 0;
}

.respaldo-image {
  object-position: 58% 34%;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(197, 213, 198, 0.9);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.metric-card,
.value-card,
.phase-card,
.team-card,
.contact-card,
.support-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgba(197, 213, 198, 0.85);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
}

.metric-card::before,
.value-card::before,
.phase-card::before,
.team-card::before,
.contact-card::before,
.support-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(224, 169, 40, 0.92), rgba(78, 107, 82, 0.92));
}

.section-sage {
  background: linear-gradient(180deg, rgba(26, 36, 25, 0.92), rgba(50, 66, 53, 0.94));
  color: #f9f6f0;
}

.section-sage .phase-card,
.section-sage .support-card,
.section-sage .glass-panel {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f9f6f0;
}

.section-sage .eyebrow {
  color: #f1d690;
}

.section-sage .cta-secondary {
  color: #f9f6f0;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.section-sage p,
.section-sage li,
.section-sage h2,
.section-sage h3,
.section-sage strong {
  color: inherit;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 2rem;
}

.check-list li + li {
  margin-top: 1rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400));
  box-shadow: 0 0 0 6px rgba(224, 169, 40, 0.12);
}

.form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sage-700);
}

.form-shell {
  position: relative;
}

.form-intro {
  border: 1px solid rgba(197, 213, 198, 0.86);
  border-radius: 1.35rem;
  padding: 1rem 1.1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 243, 236, 0.92)),
    radial-gradient(circle at top right, rgba(224, 169, 40, 0.08), transparent 38%);
}

.form-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.form-copy {
  margin: 0.45rem 0 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--sage-700);
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

.form-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.form-meta {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(78, 107, 82, 0.72);
}

.form-field {
  width: 100%;
  border: 1px solid rgba(154, 179, 157, 0.55);
  border-radius: 1.1rem;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--sage-900);
  background: rgba(255, 255, 255, 0.92);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.form-field::placeholder {
  color: rgba(78, 107, 82, 0.58);
}

.form-field:hover {
  border-color: rgba(78, 107, 82, 0.32);
}

.form-field:focus {
  outline: none;
  border-color: rgba(78, 107, 82, 0.78);
  box-shadow: 0 0 0 4px rgba(78, 107, 82, 0.12);
}

.form-field.is-invalid {
  border-color: rgba(176, 77, 52, 0.7);
  background: rgba(255, 249, 246, 0.96);
  box-shadow: 0 0 0 4px rgba(176, 77, 52, 0.12);
}

.form-field.is-valid {
  border-color: rgba(78, 107, 82, 0.42);
  background: rgba(252, 255, 251, 0.96);
}

.field-error {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #b04d34;
}

.captcha-shell {
  display: grid;
  gap: 0.75rem;
}

.captcha-inline {
  display: flex;
  align-items: flex-start;
  min-height: 78px;
}

.captcha-inline:empty {
  min-height: 0;
}

.captcha-inline .grecaptcha-badge {
  position: static !important;
  margin: 0;
  box-shadow: none;
}

.captcha-note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--sage-500);
}

.form-actions {
  display: grid;
  gap: 0.85rem;
  padding-top: 0.25rem;
}

.cta-button:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

.cta-button.is-loading::after {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid rgba(26, 36, 25, 0.3);
  border-top-color: rgba(26, 36, 25, 0.95);
  border-radius: 999px;
  animation: button-spin 800ms linear infinite;
}

.map-frame {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 1.75rem;
  border: 1px solid rgba(197, 213, 198, 0.85);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.82));
  box-shadow: var(--shadow-card);
}

.map-frame::before {
  content: "Cargando mapa al acercarte a la ubicación";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sage-700);
  background: linear-gradient(180deg, rgba(248, 243, 236, 0.34), rgba(248, 243, 236, 0.6));
  transition: opacity 220ms ease;
}

.map-frame.is-loaded::before {
  opacity: 0;
  pointer-events: none;
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

#form-status {
  min-height: 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

#form-status:not(:empty) {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.78);
}

#form-status[data-state="success"] {
  color: var(--sage-500);
  border-color: rgba(78, 107, 82, 0.18);
  background: rgba(239, 246, 237, 0.96);
}

#form-status[data-state="pending"] {
  color: var(--gold-500);
  border-color: rgba(224, 169, 40, 0.2);
  background: rgba(255, 251, 242, 0.96);
}

#form-status[data-state="error"] {
  color: #9d4a24;
  border-color: rgba(176, 77, 52, 0.2);
  background: rgba(255, 245, 240, 0.96);
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-link {
  color: var(--sage-700);
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--sage-500);
}

.candor-powered-badge {
  height: 2.4rem;
  width: auto;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.candor-powered-badge.is-visible {
  opacity: 0.6;
  transform: translateY(0);
}

.candor-powered-badge:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  body::after,
  .page-noise,
  .hero-frame::after,
  .image-panel::after {
    display: none;
  }

  .floating-card {
    position: static;
    margin-top: 1rem;
  }

  .glass-panel,
  .floating-card {
    backdrop-filter: none;
  }

  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
  }

  .whatsapp-float__icon {
    width: 3.8rem;
  }

  .section-shell {
    padding: 4.2rem 0;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 340px;
  }
}

@media (min-width: 768px) {
  body::before {
    background-image: url("../assets/img/background.webp");
  }
}