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

:root {
  --burgundy: #7B2D3B;
  --burgundy-dark: #5C1F2B;
  --burgundy-light: #9B3D4E;
  --blush: #F5E6E0;
  --blush-light: #FBF5F2;
  --blush-mid: #EFCDC0;
  --cream: #FFF9F7;
  --white: #FFFFFF;
  --text-dark: #2D1F24;
  --text-mid: #5A4048;
  --text-light: #8A6870;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Nunito Sans', -apple-system, sans-serif;
  --nav-width: 260px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

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

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

/* ========== SIDE NAV ========== */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-width);
  height: 100vh;
  background: linear-gradient(180deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 1.8rem;
  z-index: 1000;
  box-shadow: 4px 0 30px rgba(123, 45, 59, 0.15);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-title {
  font-family: var(--font-serif);
  color: var(--blush);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.65rem 1rem;
  color: rgba(245, 230, 224, 0.65);
  font-size: 0.9rem;
  font-weight: 400;
  border-radius: 8px;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blush);
  background: rgba(245, 230, 224, 0.1);
}

.nav-link.active {
  background: rgba(245, 230, 224, 0.15);
  font-weight: 600;
}

.nav-contact {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(245, 230, 224, 0.15);
}

.nav-contact a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(245, 230, 224, 0.6);
  font-size: 0.82rem;
  transition: var(--transition);
}

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

/* ========== MOBILE TOGGLE ========== */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
  background: var(--burgundy);
  border: none;
  border-radius: 8px;
  padding: 0.6rem;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(123, 45, 59, 0.3);
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blush);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== SCROLL CONTENT ========== */
.scroll-content {
  margin-left: var(--nav-width);
  min-height: 100vh;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://picsum.photos/seed/eccehomo-hero/1600/1000') center center / cover no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(123, 45, 59, 0.72) 0%,
    rgba(92, 31, 43, 0.65) 50%,
    rgba(155, 61, 78, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 2rem;
  animation: fadeUp 1s ease-out 0.3s both;
}

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

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1.2rem;
}

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

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

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 249, 247, 0.85);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(245, 230, 224, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.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 30px rgba(123, 45, 59, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}

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

.btn-sm {
  padding: 0.65rem 1.5rem;
  font-size: 0.82rem;
}

.btn-full {
  width: 100%;
}

/* ========== SECTIONS ========== */
.section {
  padding: 7rem 0;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 1.2rem;
  font-weight: 400;
}

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

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

/* ========== NOSOTROS ========== */
.nosotros {
  background: var(--white);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.nosotros-text p {
  color: var(--text-mid);
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

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

.nosotros-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(123, 45, 59, 0.12);
}

.nosotros-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--blush);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--burgundy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

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

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

.habitacion-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(123, 45, 59, 0.08);
  transition: var(--transition);
}

.habitacion-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(123, 45, 59, 0.15);
}

.habitacion-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.habitacion-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.habitacion-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
}

.habitacion-info {
  padding: 1.8rem;
}

.habitacion-info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.habitacion-info > p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.habitacion-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.habitacion-features li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.9;
}

.habitacion-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--blush-mid);
  border-radius: 50%;
}

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

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

.servicio-item {
  padding: 2.2rem;
  border-radius: 16px;
  background: var(--blush-light);
  border: 1px solid var(--blush);
  transition: var(--transition);
}

.servicio-item:hover {
  background: var(--white);
  border-color: var(--blush-mid);
  box-shadow: 0 12px 40px rgba(123, 45, 59, 0.1);
  transform: translateY(-4px);
}

.servicio-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  transition: var(--transition);
}

.servicio-item:hover .servicio-icon {
  background: var(--burgundy);
}

.servicio-item:hover .servicio-icon svg {
  stroke: var(--white);
}

.servicio-item h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  font-weight: 500;
}

.servicio-item p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.75;
}

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

.entorno-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.entorno-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
  cursor: pointer;
}

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

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

.entorno-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 31, 36, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition);
}

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

.entorno-overlay h4 {
  font-family: var(--font-serif);
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.entorno-overlay p {
  font-size: 0.8rem;
  color: rgba(255, 249, 247, 0.8);
  line-height: 1.6;
}

.entorno-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.entorno-cta p {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

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

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

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contacto-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.5rem;
  border-radius: 14px;
  background: var(--blush-light);
  border: 1px solid var(--blush);
  transition: var(--transition);
}

.contacto-card:hover {
  background: var(--white);
  border-color: var(--blush-mid);
  box-shadow: 0 8px 30px rgba(123, 45, 59, 0.08);
}

.contacto-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blush);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.contacto-card:hover .contacto-icon {
  background: var(--burgundy);
}

.contacto-card:hover .contacto-icon svg {
  stroke: var(--white);
}

.contacto-card h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.contacto-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.contacto-card a {
  color: var(--burgundy);
  font-weight: 600;
  transition: var(--transition);
}

.contacto-card a:hover {
  color: var(--burgundy-dark);
}

/* ========== FORM ========== */
.contacto-form-wrap {
  background: var(--blush-light);
  border: 1px solid var(--blush);
  border-radius: 20px;
  padding: 2.5rem;
}

.contacto-form h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-hint {
  font-size: 0.88rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

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

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--blush-mid);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select: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-light);
}

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

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success svg {
  margin: 0 auto 1rem;
}

.form-success p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--burgundy-dark);
  padding: 4rem 0 2rem;
  color: var(--blush);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.footer-logo span {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blush);
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(245, 230, 224, 0.6);
  line-height: 1.8;
  max-width: 300px;
}

.footer-links h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--blush);
  margin-bottom: 1rem;
  font-weight: 500;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(245, 230, 224, 0.55);
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 230, 224, 0.12);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(245, 230, 224, 0.4);
}

/* ========== SCROLL ANIMATIONS ========== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
  .habitaciones-grid,
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .entorno-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  :root {
    --nav-width: 220px;
  }

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

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

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

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .side-nav {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .scroll-content {
    margin-left: 0;
  }

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

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

  .habitaciones-grid,
  .servicios-grid {
    grid-template-columns: 1fr;
  }

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

  .entorno-item {
    height: 200px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

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

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

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

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

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

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