/* ========= VARIABLES ========= */
:root {
  --color-green-dark:  #6B8E7A;
  --color-green-soft:  #A7C1A8;
  --color-cream:       #E9E2D6;
  --color-white:       #FFFFFF;
  --color-gold:        #D4AF37;
  --color-gold-soft:   #C9A24B;
  --color-text:        #3B3B3B;
  --color-text-muted:  #7A7A7A;
  --color-gold-strong: #8F6F12;
  --font-heading: "Cinzel", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-script: "Great Vibes", cursive;
  --container: 1200px;
  --section-space: 64px;
  --radius: 16px;
  --shadow-soft: 0 4px 20px rgba(107, 142, 122, 0.08);
}

/* ========= RESET ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button,
input,
textarea,
select {
  font: inherit;
}

section[id] {
  scroll-margin-top: 80px;
}

/* ========= LAYOUT ========= */
.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-space) 0;
}

.section-cream {
  background: var(--color-cream);
}

.section-heading {
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-green-dark);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.18;
}

h1 {
  font-size: clamp(3rem, 10vw, 6.25rem);
  letter-spacing: 0.12em;
}

h2 {
  font-size: clamp(1.85rem, 7vw, 3rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h3 {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

p {
  margin: 0 0 1rem;
}

.script {
  color: var(--color-gold-strong);
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.2;
}

.lotus-divider {
  display: block;
  width: 58px;
  height: 22px;
  margin: 18px auto 0;
  color: var(--color-gold-strong);
  background:
    radial-gradient(ellipse at 50% 100%, currentColor 0 28%, transparent 29%) 23px 3px / 12px 18px no-repeat,
    radial-gradient(ellipse at 100% 100%, currentColor 0 28%, transparent 29%) 11px 7px / 18px 13px no-repeat,
    radial-gradient(ellipse at 0 100%, currentColor 0 28%, transparent 29%) 29px 7px / 18px 13px no-repeat;
}

.align-left .lotus-divider {
  margin-left: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  border: 1.5px solid var(--color-green-dark);
  color: var(--color-white);
  background: var(--color-green-dark);
}

.button-primary:hover {
  border-color: #5f806d;
  background: #5f806d;
}

.button-secondary {
  border: 1.5px solid var(--color-green-dark);
  color: var(--color-green-dark);
  background: transparent;
}

.button-secondary:hover {
  background: rgba(167, 193, 168, 0.35);
}

.image-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow-soft);
}

.image-frame img {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
}

/* ========= HEADER ========= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  transition: box-shadow 180ms ease, background-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 8px 24px rgba(59, 59, 59, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  position: relative;
  z-index: 70;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 68px;
  height: auto;
  flex: 0 0 auto;
}

.brand-text {
  display: grid;
  min-width: 0;
  gap: 2px;
  line-height: 1;
}

.brand-title {
  color: var(--color-green-dark);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.brand-subtitle {
  color: var(--color-gold-strong);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-toggle {
  position: relative;
  z-index: 70;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--color-green-dark);
  background: rgba(233, 226, 214, 0.78);
  cursor: pointer;
  touch-action: manipulation;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  height: 100vh;
  height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: max(104px, calc(env(safe-area-inset-top) + 88px)) 24px max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(233, 226, 214, 0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-links,
.footer-links,
.contact-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  color: var(--color-green-dark);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-decoration: none;
}

/* ========= HERO ========= */
.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 72px));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 86px 0 72px;
  background: var(--color-cream);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 253, 249, 0.91) 33%, rgba(255, 253, 249, 0.56) 53%, rgba(255, 253, 249, 0.08) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0) 38%);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% center;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
}

.hero-copy {
  max-width: 510px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3.2rem, 7.6vw, 5.6rem);
  font-weight: 400;
  letter-spacing: 0.1em;
}

.eyebrow {
  margin: 8px 0 0;
  color: var(--color-green-dark);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-divider {
  margin-top: 18px;
}

.hero-script {
  margin: 16px 0 24px;
  color: var(--color-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-style: italic;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero .button {
  min-height: 40px;
  padding: 10px 22px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ========= SOBRE MÍ ========= */
.split-layout {
  display: grid;
  gap: 42px;
  align-items: center;
}

.section-copy {
  max-width: 660px;
}

/* ========= SERVICIOS ========= */
.services-grid {
  display: grid;
  width: min(100%, 1080px);
  gap: 18px;
  margin: 0 auto;
}

.service-card {
  display: grid;
  gap: 20px;
  padding: 26px;
  border: 1px solid rgba(107, 142, 122, 0.16);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
  color: var(--color-gold-strong);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  color: var(--color-text);
}

.service-content > :last-child {
  margin-bottom: 0;
}

.service-card .service-note {
  color: var(--color-gold-strong);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.service-pricing {
  align-self: center;
  padding-top: 18px;
  border-top: 1px solid rgba(107, 142, 122, 0.2);
}

.rate-group + .rate-group {
  margin-top: 14px;
}

.service-pricing .rate-heading {
  margin-bottom: 5px;
  color: var(--color-green-dark);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-rates {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.service-rates li {
  display: flex;
  min-width: 150px;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.service-rates span {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.service-rates strong {
  color: var(--color-green-dark);
  font-size: 1.05rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ========= PEREGRINOS ========= */
.pilgrims-section {
  background: var(--color-green-soft);
}

.pilgrims-grid {
  display: grid;
  gap: 42px;
  align-items: center;
}

.pilgrims-copy {
  max-width: 760px;
}

.highlight-text {
  color: #314b3d;
  font-weight: 500;
}

.pilgrim-rates {
  display: grid;
  width: min(100%, 460px);
  margin: 24px 0;
  border-top: 1px solid rgba(49, 75, 61, 0.26);
  border-bottom: 1px solid rgba(49, 75, 61, 0.26);
}

.pilgrim-rates p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 11px 0;
}

.pilgrim-rates p + p {
  border-top: 1px solid rgba(49, 75, 61, 0.16);
}

.pilgrim-rates strong {
  color: #314b3d;
  font-size: 1.08rem;
  font-weight: 600;
  white-space: nowrap;
}

.pilgrim-callout {
  margin: 24px 0;
  padding: 20px;
  border-left: 4px solid var(--color-gold-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.camino {
  margin: 20px 0 24px;
  font-size: 3rem;
}

.pilgrims-visual {
  position: relative;
}

.pilgrim-seal {
  position: absolute;
  top: -24px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  border: 1.5px solid var(--color-gold-strong);
  border-radius: 999px;
  color: var(--color-green-dark);
  background: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
  box-shadow: var(--shadow-soft);
}

.thanks {
  margin-top: 22px;
  font-size: 2.5rem;
}

/* ========= CONTACTO ========= */
.contact-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 24px;
}

.contact-info h3 {
  margin-bottom: 8px;
}

.contact-list {
  display: grid;
  gap: 8px;
}

.contact-list a {
  color: var(--color-green-dark);
  font-weight: 500;
}

.map-wrap {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

/* ========= FOOTER ========= */
.site-footer {
  padding: 54px 0 26px;
  color: var(--color-cream);
  background: var(--color-green-dark);
}

.footer-grid {
  display: grid;
  gap: 30px;
}

.footer-logo {
  width: min(210px, 100%);
  height: auto;
  margin-bottom: 14px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(33, 55, 44, 0.14);
}

.footer-script {
  font-size: 2rem;
  color: var(--color-cream);
}

.site-footer h2 {
  margin-bottom: 12px;
  color: var(--color-white);
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.site-footer a {
  color: var(--color-white);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  width: min(100%, var(--container));
  margin: 34px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
}

/* ========= ELEMENTOS GLOBALES ========= */
.floating-socials {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-social-link {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 999px;
  color: var(--color-white);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.floating-social-link:hover,
.floating-social-link:focus-visible {
  transform: translateY(-2px);
}

.floating-instagram {
  background: var(--color-gold-strong);
  box-shadow: 0 10px 24px rgba(143, 111, 18, 0.28);
}

.floating-instagram svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.floating-instagram .instagram-dot {
  fill: currentColor;
  stroke: none;
}

.floating-whatsapp {
  background: #25D366;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 96px;
  left: 16px;
  z-index: 80;
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(107, 142, 122, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(59, 59, 59, 0.12);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: var(--color-green-dark);
  font-weight: 500;
}

/* ========= LEGAL ========= */
.legal {
  min-height: 58vh;
  padding: 120px 24px 80px;
  background: var(--color-cream);
}

.legal-inner {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.legal h1 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 8vw, 3.4rem);
  letter-spacing: 0.12em;
}

.legal h2 {
  margin: 34px 0 12px;
  color: var(--color-green-dark);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal h3 {
  margin: 24px 0 10px;
}

.legal ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--color-text-muted);
}

.legal a {
  color: var(--color-green-dark);
  font-weight: 500;
}

.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0 24px;
}

.legal-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.legal-table th,
.legal-table td {
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(143, 111, 18, 0.24);
  text-align: left;
}

.legal-table th {
  color: var(--color-green-dark);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-table code {
  font-size: 0.92em;
}

/* ========= RESPONSIVE 768 ========= */
@media (min-width: 768px) {
  :root {
    --section-space: 96px;
  }

  .hero-grid {
    grid-template-columns: minmax(300px, 0.55fr) minmax(0, 0.45fr);
  }

  .split-layout {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  }

  .service-card {
    grid-template-columns: 58px minmax(0, 1fr) minmax(180px, 240px);
    align-items: start;
    gap: 24px;
    padding: 28px 30px;
  }

  .service-icon {
    margin-bottom: 0;
  }

  .service-pricing {
    width: 100%;
    padding: 0 0 0 24px;
    border-top: 0;
    border-left: 1px solid rgba(107, 142, 122, 0.2);
  }

  .pilgrims-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1.1fr 0.7fr;
  }

  .cookie-banner {
    right: 24px;
    bottom: 24px;
    left: 24px;
    grid-template-columns: 1fr auto;
    padding: 18px 22px;
  }
}

/* ========= NAVEGACIÓN COMPACTA ========= */
@media (max-width: 1119px) {
  body.menu-open {
    overflow: hidden;
  }

  .nav-links {
    width: min(100%, 320px);
  }

  .nav-links a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    text-align: center;
  }

  .nav-cta {
    width: min(100%, 280px);
  }
}

/* ========= NAVEGACIÓN ESCRITORIO ========= */
@media (min-width: 1120px) {
  .menu-toggle {
    display: none;
  }

  .nav-panel {
    position: static;
    height: auto;
    flex-direction: row;
    justify-content: flex-end;
    gap: 22px;
    padding: 0;
    overflow: visible;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-links {
    flex-direction: row;
    gap: 18px;
  }

  .nav-links a {
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 500;
    letter-spacing: 0;
  }

  .nav-cta {
    padding-inline: 20px;
    white-space: nowrap;
  }
}

/* ========= RESPONSIVE 1024 ========= */
@media (min-width: 1024px) {
  .nav-links {
    gap: 24px;
  }

  .service-card {
    padding: 30px 34px;
  }
}

@media (max-width: 767px) {
  .button {
    width: 100%;
  }

  .hero {
    min-height: min(560px, calc(100svh - 64px));
    padding: 70px 0 58px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 253, 249, 0.96) 0%, rgba(255, 253, 249, 0.84) 48%, rgba(255, 253, 249, 0.38) 100%),
      linear-gradient(90deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 253, 249, 0.58) 100%);
  }

  .hero-bg img {
    object-position: 70% center;
  }

  .hero-copy {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.4rem);
    letter-spacing: 0.08em;
  }

  .hero-actions {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .hero .button {
    width: 100%;
  }

  .pilgrim-seal {
    width: 112px;
    height: 112px;
    font-size: 0.65rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 18px;
  }

  .site-header,
  .nav {
    min-height: 64px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 58px;
  }

  .brand-title {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }

  .brand-subtitle {
    font-size: 0.52rem;
    letter-spacing: 0.08em;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  h2 {
    font-size: 1.65rem;
    letter-spacing: 0.08em;
    overflow-wrap: anywhere;
  }

  .hero {
    padding: 54px 0 46px;
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .image-frame img {
    min-height: 260px;
  }

  .service-card {
    gap: 16px;
    padding: 22px 20px;
  }

  .pilgrim-rates p {
    gap: 14px;
  }

  .map-wrap iframe {
    height: 320px;
  }

  .floating-socials {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    gap: 10px;
  }

  .floating-social-link {
    width: 52px;
    height: 52px;
  }

  .floating-instagram svg {
    width: 27px;
    height: 27px;
  }

  .floating-whatsapp svg {
    width: 29px;
    height: 29px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 80px;
    left: 12px;
    max-height: calc(100dvh - 104px);
    padding: 16px;
    overflow-y: auto;
  }

  .legal {
    padding: 96px 16px 56px;
  }

  .legal-inner {
    padding: 24px 18px;
  }
}

@media (max-width: 359px) {
  .brand-subtitle {
    display: none;
  }
}
