/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --emerald: #065F46;
  --emerald-light: #059669;
  --emerald-dark: #044D38;
  --cream: #F5F0E8;
  --cream-light: #FDF8F0;
  --cream-dark: #E8DFD0;
  --sand: #D4C4A8;
  --warm-gray: #6B6560;
  --dark: #1A1714;
  --white: #FFFFFF;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(6, 95, 70, 0.08);
  --shadow-lg: 0 12px 48px rgba(6, 95, 70, 0.12);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

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

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

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

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

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(6, 95, 70, 0.08);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(245, 240, 232, 0.96);
  box-shadow: 0 2px 20px rgba(6, 95, 70, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--emerald);
  font-weight: 700;
  line-height: 1.2;
}

.logo-icon { width: 36px; height: 36px; flex-shrink: 0; }

.logo-text strong { font-family: var(--font-display); font-size: 1.15rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--emerald);
  transition: var(--transition);
}

.nav a:hover { background: rgba(6, 95, 70, 0.08); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--emerald);
  border-radius: 4px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--emerald);
  border-color: var(--emerald);
}

.btn-outline:hover {
  background: var(--emerald);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-cream {
  background: var(--cream-dark);
  color: var(--emerald);
  border-color: var(--cream-dark);
}

.btn-cream:hover {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-outline-light:hover {
  background: var(--cream);
  color: var(--emerald);
}

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== TAG ===== */
.tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tag-green { background: rgba(6, 95, 70, 0.1); color: var(--emerald); }
.tag-cream { background: var(--cream-dark); color: var(--emerald-dark); }
.tag-dark { background: var(--emerald); color: var(--cream); }

/* ===== HERO ===== */
.hero {
  padding-top: 72px;
  background: var(--cream);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 60px 0 0;
}

.hero-content { padding-right: 16px; }

.hero-content .tag { margin-bottom: 20px; }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--emerald-dark);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--emerald-light);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--emerald);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--warm-gray);
  font-weight: 600;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--sand);
}

.hero-visual {
  position: relative;
  height: 600px;
}

.hero-img-main {
  width: 85%;
  height: 80%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

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

.hero-img-float {
  position: absolute;
  bottom: 20px;
  right: 0;
  width: 55%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

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

.float-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--white);
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--emerald);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.hero-wave {
  margin-top: -1px;
  line-height: 0;
}

.hero-wave svg { width: 100%; height: 80px; }

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--emerald-dark);
  line-height: 1.2;
}

.section-header h2 em {
  font-style: italic;
  color: var(--emerald-light);
}

/* ===== CAMINO ===== */
.camino { background: var(--cream-light); }

.camino-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.camino-text p {
  font-size: 1.05rem;
  color: var(--warm-gray);
  margin-bottom: 20px;
  line-height: 1.8;
}

.camino-text p strong { color: var(--emerald-dark); }

.camino-features {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.camino-features li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
}

.camino-features li svg { color: var(--emerald-light); flex-shrink: 0; }

.camino-visual { position: relative; }

.camino-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.camino-quote {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--emerald);
  color: var(--cream);
  padding: 24px 28px;
  border-radius: var(--radius);
  max-width: 300px;
  box-shadow: var(--shadow-lg);
}

.camino-quote svg { margin-bottom: 8px; }

.camino-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ===== ALBERGUE ===== */
.albergue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.albergue-visual { position: relative; }

.albergue-img-group {
  position: relative;
  height: 440px;
}

.albergue-img-group img:first-child {
  width: 78%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.albergue-img-group img:last-child {
  position: absolute;
  bottom: -32px;
  right: 0;
  width: 55%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 5px solid var(--cream);
  box-shadow: var(--shadow);
}

.albergue-text h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--emerald-dark);
  margin-bottom: 20px;
}

.albergue-text p {
  font-size: 1.05rem;
  color: var(--warm-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.albergue-text p strong { color: var(--emerald-dark); }

.albergue-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.badge {
  background: rgba(6, 95, 70, 0.08);
  color: var(--emerald);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ===== SERVICIOS ===== */
.servicios { background: var(--cream-light); }

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.servicio-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(6, 95, 70, 0.04);
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.servicio-icon {
  width: 60px;
  height: 60px;
  background: rgba(6, 95, 70, 0.08);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
  margin-bottom: 20px;
}

.servicio-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--emerald-dark);
  margin-bottom: 10px;
}

.servicio-card p {
  font-size: 0.95rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* ===== ENTORNO ===== */
.entorno-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.entorno-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  cursor: pointer;
}

.entorno-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.entorno-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 95, 70, 0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  color: var(--cream);
}

.entorno-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.entorno-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
  line-height: 1.5;
}

/* ===== CTA ===== */
.cta {
  background: var(--emerald);
  padding: 100px 0;
  text-align: center;
}

.cta-inner { max-width: 680px; margin: 0 auto; }

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream);
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta h2 em { font-style: italic; color: var(--sand); }

.cta > .container > .cta-inner > p {
  font-size: 1.1rem;
  color: rgba(245, 240, 232, 0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== CONTACTO ===== */
.contacto { background: var(--cream-light); }

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

.contacto-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  color: var(--emerald-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.contacto-info h2 em { font-style: italic; color: var(--emerald-light); }

.contacto-info > p {
  font-size: 1.05rem;
  color: var(--warm-gray);
  margin-bottom: 36px;
  line-height: 1.7;
}

.contacto-datos {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

.dato {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.dato svg { color: var(--emerald); flex-shrink: 0; margin-top: 2px; }

.dato strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald);
  margin-bottom: 4px;
}

.dato span, .dato a {
  font-size: 1rem;
  color: var(--dark);
  font-weight: 600;
}

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

.mapa {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ===== FORM ===== */
.contacto-form-wrap {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contacto-form-wrap h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--emerald-dark);
  margin-bottom: 28px;
}

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

.form-group label {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--emerald);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: var(--cream-light);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--emerald-light);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(6, 95, 70, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--sand);
}

.form-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin-top: 16px;
}

.form-note a { color: var(--emerald); font-weight: 700; }

.form-success {
  text-align: center;
  padding: 48px 24px;
}

.form-success svg { color: var(--emerald-light); margin-bottom: 16px; }

.form-success h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--emerald-dark);
  margin-bottom: 8px;
}

.form-success p { color: var(--warm-gray); }

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

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 56px;
}

.logo-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--cream);
  margin-bottom: 16px;
  line-height: 1.2;
}

.logo-footer strong { font-family: var(--font-display); font-size: 1.15rem; }
.logo-footer .logo-icon { width: 32px; height: 32px; }

.site-footer p {
  font-size: 0.95rem;
  opacity: 0.75;
  line-height: 1.7;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 20px;
  color: var(--cream);
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 0.95rem;
  opacity: 0.75;
  transition: var(--transition);
}

.footer-col ul li a:hover { opacity: 1; color: var(--sand); }

.footer-bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.12);
  padding: 24px 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ===== MOBILE NAV ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(245, 240, 232, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.nav-overlay.active { opacity: 1; pointer-events: all; }

.nav-overlay a {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--emerald);
  padding: 12px 24px;
  border-radius: 12px;
  transition: var(--transition);
}

.nav-overlay a:hover { background: rgba(6, 95, 70, 0.08); }

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 400px; order: -1; }
  .hero-content { padding-right: 0; text-align: center; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .camino-grid { grid-template-columns: 1fr; gap: 40px; }
  .albergue-grid { grid-template-columns: 1fr; gap: 40px; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .entorno-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 72px 0; }
  .hero { padding-top: 72px; }
  .hero-grid { min-height: auto; padding: 40px 0 0; }
  .hero-visual { height: 320px; }
  .hero-img-main { width: 100%; height: 100%; }
  .hero-img-float { width: 60%; bottom: -16px; }
  .servicios-grid { grid-template-columns: 1fr; }
  .entorno-grid { grid-template-columns: 1fr; }
  .entorno-item { height: 240px; }
  .contacto-form-wrap { padding: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .camino-quote { position: relative; bottom: auto; left: auto; margin-top: 16px; }
  .albergue-img-group { height: 320px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 40px; height: 1px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}
