/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --burgundy: #7B2D3B;
  --burgundy-deep: #5C1F2C;
  --burgundy-light: #9A3D4E;
  --blush: #F2D5CE;
  --blush-light: #FBF0ED;
  --blush-muted: #E8C4BC;
  --cream: #FDF8F6;
  --cream-dark: #F5EDE9;
  --text-dark: #1A0F12;
  --text-body: #3D2B30;
  --text-muted: #7A6066;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: 1000px;
}

/* ── Side Navigation ── */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--burgundy);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  transition: transform 0.5s var(--ease-out);
}

.nav-brand {
  margin-bottom: 3rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--blush);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 213, 206, 0.6);
  padding: 0.625rem 0;
  border-left: 2px solid transparent;
  transition: all 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--blush);
  border-left-color: var(--blush);
  padding-left: 1rem;
}

.nav-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(242, 213, 206, 0.15);
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(242, 213, 206, 0.6);
  transition: color 0.3s;
}

.nav-phone:hover {
  color: var(--blush);
}

/* ── Menu Toggle ── */
.menu-toggle {
  display: none;
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 1100;
  width: 44px;
  height: 44px;
  background: var(--burgundy);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 12px rgba(123, 45, 59, 0.3);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blush);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 15, 18, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.visible {
  opacity: 1;
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  margin-left: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(123, 45, 59, 0.82) 0%,
    rgba(92, 31, 44, 0.72) 50%,
    rgba(26, 15, 18, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-left: 8%;
  padding: 2rem;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--blush);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
}

.btn-primary:hover {
  background: var(--burgundy-deep);
  border-color: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(123, 45, 59, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ── Scroll Indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(calc(-50% + 130px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: translateX(calc(-50% + 130px)) translateY(0); }
  50% { opacity: 1; transform: translateX(calc(-50% + 130px)) translateY(4px); }
}

/* ── Sections ── */
.section {
  padding: 7rem 0;
}

.section-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1rem;
}

.section-eyebrow--light {
  color: var(--blush);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--burgundy);
}

.section-title--light {
  color: var(--white);
}

.section-title--light em {
  color: var(--blush);
}

.section-subtitle {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3.5rem;
}

/* ── Sobre ── */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.sobre-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 1.25rem;
}

.sobre-text p:first-child {
  font-size: 1.125rem;
  color: var(--text-dark);
  font-weight: 500;
}

.sobre-image {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(123, 45, 59, 0.12);
}

.sobre-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.sobre-image:hover img {
  transform: scale(1.03);
}

/* ── Alojamiento ── */
.alojamiento {
  background: var(--white);
}

.alojamiento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.alojamiento-card {
  background: var(--cream);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.alojamiento-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(123, 45, 59, 0.12);
}

.alojamiento-card-img {
  overflow: hidden;
  aspect-ratio: 3/2;
}

.alojamiento-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.alojamiento-card:hover .alojamiento-card-img img {
  transform: scale(1.05);
}

.alojamiento-card-body {
  padding: 2rem;
}

.alojamiento-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.alojamiento-card-body p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.alojamiento-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.alojamiento-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-body);
}

.alojamiento-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--burgundy);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Camino ── */
.camino {
  position: relative;
  padding: 6rem 0;
}

.camino-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.camino-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camino-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(92, 31, 44, 0.88) 0%,
    rgba(26, 15, 18, 0.80) 100%
  );
}

.camino-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.camino-text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.25rem;
}

.camino-stats {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(242, 213, 206, 0.2);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blush);
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 213, 206, 0.6);
}

/* ── Entorno ── */
.entorno-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.entorno-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.entorno-item:nth-child(2),
.entorno-item:nth-child(3) {
  aspect-ratio: 3/3;
}

.entorno-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.entorno-item:hover img {
  transform: scale(1.08);
}

.entorno-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 15, 18, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.3s;
}

.entorno-item:hover .entorno-item-overlay {
  background: linear-gradient(to top, rgba(123, 45, 59, 0.85) 0%, transparent 70%);
}

.entorno-item-overlay h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.375rem;
}

.entorno-item-overlay p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Contacto ── */
.contacto {
  background: var(--white);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contacto-desc {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contacto-dato {
  display: flex;
  gap: 1rem;
}

.contacto-dato-icon {
  width: 48px;
  height: 48px;
  background: var(--blush-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  flex-shrink: 0;
}

.contacto-dato strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contacto-dato p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.contacto-dato a {
  color: var(--burgundy);
  transition: color 0.3s;
}

.contacto-dato a:hover {
  color: var(--burgundy-deep);
  text-decoration: underline;
}

/* ── Form ── */
.contacto-form-wrap {
  background: var(--cream);
  border-radius: 12px;
  padding: 2.5rem;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
  letter-spacing: -0.01em;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--white);
  border: 1.5px solid var(--blush-muted);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

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

.form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #E8F5E9;
  border-radius: 6px;
  margin-top: 1rem;
}

.form-success.show {
  display: flex;
}

.form-success svg {
  color: #2E7D32;
  flex-shrink: 0;
}

.form-success p {
  font-size: 0.875rem;
  color: #1B5E20;
  line-height: 1.5;
}

/* ── Footer ── */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--blush);
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-links strong,
.footer-contact strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-links a,
.footer-contact a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--blush);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .side-nav {
    transform: translateX(-100%);
  }

  .side-nav.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
    pointer-events: none;
  }

  .nav-overlay.visible {
    pointer-events: all;
  }

  .hero {
    margin-left: 0;
  }

  .hero-content {
    margin-left: 0;
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  .hero-scroll {
    left: 50%;
    transform: translateX(-50%);
  }

  @keyframes pulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(4px); }
  }

  .alojamiento-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .entorno-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .entorno-item {
    aspect-ratio: 4/3 !important;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sobre-image {
    order: -1;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .camino-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }
}

@media (max-width: 480px) {
  .entorno-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .alojamiento-card-body {
    padding: 1.5rem;
  }

  .contacto-form-wrap {
    padding: 1.5rem;
  }
}
