/* ============================================
   Hotel SPA La Casa del Puente
   Bold Editorial · Burgundy + Blush
   ============================================ */

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

:root {
  --burgundy: #7B2D3B;
  --burgundy-dark: #5C1F2C;
  --burgundy-light: #9A3D4E;
  --blush: #F5E6E0;
  --blush-light: #FAF3F0;
  --blush-dark: #E8D0C8;
  --cream: #FDF8F5;
  --charcoal: #2C2426;
  --charcoal-light: #4A3F42;
  --text: #3D2C30;
  --text-light: #7A6568;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--charcoal);
}

em {
  font-style: italic;
  color: var(--burgundy);
}

/* ---------- SECTION EYEBROW ---------- */
.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 560px;
  line-height: 1.75;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(123, 45, 59, 0.3);
}

.btn-primary:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(123, 45, 59, 0.4);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--white);
}

.btn-full {
  width: 100%;
}

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
}

.site-header.scrolled {
  background: rgba(253, 248, 245, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 30px rgba(123, 45, 59, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--burgundy);
  color: var(--white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  transition: all var(--transition);
}

.logo:hover .logo-mark {
  background: var(--burgundy-dark);
  transform: rotate(-5deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.site-header:not(.scrolled) .logo-text {
  color: var(--white);
}

/* ---------- NAV ---------- */
.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

.site-header.scrolled .nav-link {
  color: var(--text-light);
}

.site-header.scrolled .nav-link:hover {
  color: var(--burgundy);
  background: var(--blush);
}

/* ---------- MOBILE TOGGLE ---------- */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.site-header.scrolled .hamburger-line {
  background: var(--charcoal);
}

.mobile-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(253, 248, 245, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--charcoal);
  padding: 8px 16px;
  border-radius: 8px;
  transition: all var(--transition);
}

.mobile-nav-link:hover {
  color: var(--burgundy);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: 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(44, 36, 38, 0.72) 0%,
    rgba(123, 45, 59, 0.55) 50%,
    rgba(44, 36, 38, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 160px;
}

.hero-card {
  max-width: 640px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.05;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(250, 243, 240, 0.85);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}

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

/* ---------- STATS ---------- */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding-bottom: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.18);
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 243, 240, 0.75);
}

/* ---------- SCROLL INDICATOR ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.6);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- HABITACIONES ---------- */
.habitaciones {
  background: var(--cream);
}

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

.room-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(123, 45, 59, 0.06);
  transition: all var(--transition);
}

.room-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 50px rgba(123, 45, 59, 0.12);
}

.room-img {
  overflow: hidden;
  aspect-ratio: 6 / 4.2;
}

.room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.room-card:hover .room-img img {
  transform: scale(1.06);
}

.room-info {
  padding: 28px;
}

.room-name {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.room-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.room-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.room-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--charcoal-light);
}

.room-features li svg {
  color: var(--burgundy);
  flex-shrink: 0;
}

/* ---------- SPA ---------- */
.spa {
  background: var(--blush-light);
}

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

.spa-text .section-desc {
  margin-bottom: 40px;
}

.spa-services {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.spa-service {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.spa-service-icon {
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(123, 45, 59, 0.08);
}

.spa-service-content h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.spa-service-content p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.65;
}

.spa-images {
  position: relative;
}

.spa-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.15);
}

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

.spa-img-secondary {
  position: absolute;
  bottom: -40px;
  right: -40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(123, 45, 59, 0.2);
  border: 4px solid var(--blush-light);
}

.spa-img-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- ENTORNO ---------- */
.entorno {
  background: var(--cream);
}

.attractions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.attraction-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(123, 45, 59, 0.06);
  transition: all var(--transition);
}

.attraction-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(123, 45, 59, 0.12);
}

.attraction-img {
  overflow: hidden;
  aspect-ratio: 5 / 3.5;
}

.attraction-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.attraction-card:hover .attraction-img img {
  transform: scale(1.06);
}

.attraction-content {
  padding: 20px;
}

.attraction-content h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.attraction-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ---------- EXPERIENCIA ---------- */
.experiencia {
  background: var(--burgundy);
  color: var(--white);
}

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

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

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

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

.experiencia-desc {
  font-size: 1.1rem;
  color: rgba(250, 243, 240, 0.8);
  line-height: 1.75;
  margin-bottom: 40px;
}

.experiencia-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.exp-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--blush);
}

.exp-feature svg {
  color: var(--blush);
  flex-shrink: 0;
}

.experiencia-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

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

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

.contacto-info .section-desc {
  margin-bottom: 40px;
}

.contacto-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

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

.contacto-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(123, 45, 59, 0.08);
}

.contacto-detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2px;
}

.contacto-detail-value {
  display: block;
  font-size: 0.95rem;
  color: var(--charcoal);
  font-weight: 500;
}

.contacto-detail-value a {
  color: var(--burgundy);
  transition: color var(--transition);
}

.contacto-detail-value a:hover {
  color: var(--burgundy-dark);
  text-decoration: underline;
}

.contacto-map {
  overflow: hidden;
}

/* ---------- FORM ---------- */
.contacto-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 8px 40px rgba(123, 45, 59, 0.08);
}

.form-title {
  font-size: 1.5rem;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--blush-dark);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: all var(--transition);
  outline: none;
}

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

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

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

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #E8F5E9;
  border-radius: var(--radius);
  color: #2E7D32;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 16px;
}

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

.form-success svg {
  flex-shrink: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--charcoal);
  color: rgba(250, 243, 240, 0.7);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(250, 243, 240, 0.1);
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-tagline {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
  color: rgba(250, 243, 240, 0.55);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(250, 243, 240, 0.55);
  transition: color var(--transition);
}

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

.footer-col address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(250, 243, 240, 0.55);
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-col a {
  color: rgba(250, 243, 240, 0.55);
  transition: color var(--transition);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  font-size: 0.82rem;
  color: rgba(250, 243, 240, 0.35);
}

/* ---------- ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .spa-layout,
  .experiencia-layout,
  .contacto-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .spa-img-secondary {
    right: 0;
    bottom: -24px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-content {
    padding-top: 80px;
    padding-bottom: 140px;
  }

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

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

  .stat-card {
    padding: 20px 16px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .scroll-indicator {
    bottom: 80px;
  }

  .section {
    padding: 80px 0;
  }

  .rooms-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .attractions-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .experiencia-features {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contacto-form-wrapper {
    padding: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

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

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

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}
