/* ==========================================================================
   CSS PRINCIPAL - BUNGALOWS TOMAYQUICHUA
   ========================================================================== */

:root {
  --bg-cream: #f6f3eb;
  --bg-cream-light: #fdfbf7;
  --color-green: #1e4620;
  --color-green-light: #2d5b2f;
  --color-rust: #8a4f2a;
  --color-rust-hover: #733f1e;
  --color-text: #2d2b27;
  --color-text-light: #6a6760;

  --font-cursive: 'Great Vibes', cursive;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Montserrat', sans-serif;
}

/* Reset de estilos */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px; /* Offset for sticky header */
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 90px; /* Adjusted offset for mobile sticky header */
  }
}

body {
  background-color: var(--bg-cream);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================
   ESTILOS DE LA CABECERA (HEADER)
   ========================================== */

.header-bungalows {
  position: sticky;
  top: 0;
  /* Imagen de fondo proporcionada por el usuario */
  background-image: url("../../img/bungalows-de-tomayquichua/cabeza-fondo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  padding: 18px 0;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(45, 43, 39, 0.12);
  z-index: 1000;
}

/* Contenedor central flexible */
.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 5;
}

/* ==========================================
   BRANDING (LOGO Y TEXTOS)
   ========================================== */

.branding {
  display: flex;
  align-items: center;
  z-index: 10;
  transition: margin-left 0.3s ease;
}

.brand-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brand-link:hover {
  transform: scale(1.03);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-cursive);
  font-size: 2.8rem;
  color: var(--color-green);
  line-height: 0.85;
  font-weight: normal;
  margin-bottom: 2px;
  text-shadow: 0.5px 0.5px 0px rgba(0, 0, 0, 0.05);
}

.brand-subtitle {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-green);
  letter-spacing: 4px;
  line-height: 1;
}

/* ==========================================
   MENÚ DE NAVEGACIÓN
   ========================================== */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.nav-item-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.nav-item {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-green);
  text-decoration: none;
  letter-spacing: 1px;
  padding: 4px 6px;
  transition: color 0.3s ease;
}

.nav-item:hover {
  color: var(--color-rust);
}

/* Elemento Activo: Línea de hoja */
.nav-item-wrapper.active .nav-item {
  color: var(--color-rust);
}

.leaf-line {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--color-green);
  position: absolute;
  bottom: -14px;
  white-space: nowrap;
  pointer-events: none;
  font-weight: bold;

  /* Oculto por defecto */
  display: none;
}

/* Mostrar cuando el elemento está activo o cuando se pasa el cursor (hover) */
.nav-item-wrapper.active .leaf-line,
.nav-item-wrapper:hover .leaf-line {
  display: block;
}

.nav-separator {
  color: #dbd6c9;
  font-size: 1rem;
  font-weight: 400;
  user-select: none;
}

/* ==========================================
   BOTONES DE ACCIÓN (OCTOGONALES)
   ========================================== */

.action-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
}

.btn-oct {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: drop-shadow(0 2px 4px rgba(45, 43, 39, 0.08));
}

.btn-oct:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 5px 10px rgba(45, 43, 39, 0.15));
}

.btn-oct-border {
  position: absolute;
  inset: 0;
  clip-path: polygon(8px 0%, calc(100% - 8px) 0%, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0% calc(100% - 8px), 0% 8px);
  z-index: 1;
  transition: background-color 0.3s ease;
}

.btn-oct-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 41px;
  z-index: 2;
  margin: 1.5px;
  padding: 0 20px;
  /* El clip-path interno con ligero offset para simular borde de 1.5px */
  clip-path: polygon(7.5px 0.5px, calc(100% - 7.5px) 0.5px, calc(100% - 0.5px) 7.5px, calc(100% - 0.5px) calc(100% - 7.5px), calc(100% - 7.5px) calc(100% - 0.5px), 7.5px calc(100% - 0.5px), 0.5px calc(100% - 7.5px), 0.5px 7.5px);
  transition: background-color 0.3s ease, color 0.3s ease, padding 0.3s ease, width 0.3s ease;
  white-space: nowrap;
}

.btn-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.1px;
  display: inline-block;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: stroke 0.3s ease;
}

/* Estilo Botón Álbum (Borde verde, texto terracota) */
.btn-album .btn-oct-border {
  background-color: var(--color-green);
}

.btn-album .btn-oct-inner {
  background-color: var(--bg-cream-light);
  color: var(--color-rust);
}

.btn-album .btn-icon {
  stroke: var(--color-green);
}

.btn-album:hover .btn-oct-border {
  background-color: var(--color-rust);
}

.btn-album:hover .btn-oct-inner {
  color: var(--color-green);
  background-color: var(--bg-cream);
}

.btn-album:hover .btn-icon {
  stroke: var(--color-rust);
}

/* Estilo Botón Reservas (Sólido Verde, texto blanco) */
.btn-booking .btn-oct-border {
  background-color: var(--color-green);
}

.btn-booking .btn-oct-inner {
  background-color: var(--color-green);
  color: white;
}

.btn-booking .btn-icon {
  stroke: white;
}

.btn-booking:hover .btn-oct-border {
  background-color: var(--color-rust);
}

.btn-booking:hover .btn-oct-inner {
  background-color: var(--color-rust);
}

/* ==========================================
   MEDIA QUERIES (ADAPTABILIDAD)
   ========================================== */

/* Evita solapamiento con los adornos de las plantas laterales en pantallas medianas y con zoom */
@media (max-width: 1470px) {
  .branding {
    margin-left: 40px;
  }
}

/* Móviles y Tablets: Ocultar menú de navegación y botones de acción */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }

  .action-buttons {
    display: flex;
    gap: 12px;
  }

  .btn-text {
    display: none;
  }

  .btn-oct {
    width: 44px;
    height: 44px;
  }

  .btn-oct-inner {
    width: 41px;
    height: 41px;
    padding: 0;
    justify-content: center;
  }
}

/* Teléfonos pequeños: Reducción de tamaños y ajuste de margen */
@media (max-width: 580px) {
  .branding {
    margin-left: 25px;
  }

  .brand-title {
    font-size: 2.2rem;
  }

  .brand-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }
}

/* Teléfonos extremadamente pequeños: Reducir escala de marca y espaciado */
@media (max-width: 440px) {
  .branding {
    margin-left: 15px;
  }

  .brand-title {
    font-size: 1.8rem;
  }

  .brand-subtitle {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }

}

/* ==========================================================================
   SECCIÓN HERO (PRINCIPAL)
   ========================================================================== */

.hero-bungalows {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background-color: var(--bg-cream);
}

.hero-bg-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  /* Ocupa la mayor parte derecha */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-paper-overlay {
  position: relative;
  width: 45%;
  /* Ocupa el lado izquierdo */
  height: 100%;
  /* Fondo crema con el dibujo del hero (hero-fondo.png) difuminado de fondo */
  background-color: #f6f3eb;
  background-image: linear-gradient(rgba(246, 243, 235, 0.35), rgba(246, 243, 235, 0.35)),
    url('../../img/bungalows-de-tomayquichua/hero-fondo.png');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  /* Incrementamos padding ya que no hay marco victoriano */
  box-shadow: 15px 0 35px rgba(45, 43, 39, 0.12);
  box-sizing: border-box;
}

/* Plantas y ramas orgánicas saliendo de los bordes */
.organic-decor {
  position: absolute;
  z-index: 15;
  /* Por encima de la tarjeta */
  pointer-events: none;
}

.organic-decor svg {
  width: 100%;
  height: 100%;
}

.branch-top-left {
  top: -15px;
  left: -15px;
  width: 170px;
  height: 170px;
}

.branch-bottom-left {
  bottom: -15px;
  left: -15px;
  width: 170px;
  height: 170px;
}

.branch-right {
  top: 48%;
  right: -95px;
  /* Cruza el borde roto hacia la piscina en desktop */
  transform: translateY(-50%);
  width: 220px;
  height: 130px;
  z-index: 25;
  /* Alto z-index para cruzar por encima del borde roto y el fondo */
}

/* Hojas flotantes para dinamismo */
.floating-leaf {
  position: absolute;
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 13;
  opacity: 0.7;
}

.leaf-1 {
  top: 15%;
  left: 78%;
  transform: rotate(15deg);
}

.leaf-2 {
  top: 72%;
  left: 72%;
  transform: rotate(-35deg);
}

.leaf-3 {
  top: 48%;
  left: 10%;
  transform: rotate(115deg);
}

.hero-paper-content {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

/* Subtítulo con ornamentos */
.hero-subtitle-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.hero-ornament-line {
  width: 25px;
  height: 1px;
  background-color: var(--color-rust);
  opacity: 0.4;
}

.hero-ornament-leaf {
  font-size: 0.85rem;
  color: var(--color-rust);
  opacity: 0.85;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-green);
  text-transform: uppercase;
}

/* Título */
.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  letter-spacing: 0.5px;
}

.title-green {
  color: var(--color-green);
}

.title-rust {
  color: var(--color-rust);
}

/* Valores */
.hero-values {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--color-rust);
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Divisor victoriano de valores */
.hero-values-divider {
  width: 100%;
  max-width: 320px;
  margin-bottom: 25px;
  opacity: 0.85;
}

/* Descripción */
.hero-description {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 35px;
}

/* Botón Hero */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #274d28;
  /* Verde oscuro elegante */
  color: white;
  padding: 13px 26px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(39, 77, 40, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-hero:hover {
  background-color: var(--color-rust);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(138, 79, 42, 0.25);
}

.btn-hero-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}

/* Borde de papel roto (Vertical en Desktop) */
.hero-ripped-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 60px;
  height: 100%;
  z-index: 11;
  pointer-events: none;
}

.hero-ripped-edge svg {
  width: 100%;
  height: 100%;
}

.hero-ripped-edge-horizontal {
  display: none;
}

/* ==========================================================================
   MEDIA QUERIES - RESPONSIVENESS DEL HERO
   ========================================================================== */

@media (max-width: 1200px) {
  .hero-paper-overlay {
    width: 50%;
    padding: 40px 50px;
  }

  .hero-bg-image {
    width: 53%;
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-bungalows {
    flex-direction: column-reverse;
    height: auto;
    align-items: stretch;
  }

  .hero-bg-image {
    position: relative;
    width: 100%;
    height: 380px;
  }

  .hero-paper-overlay {
    width: 100%;
    padding: 50px 30px 45px 30px;
    box-shadow: 0 -10px 30px rgba(45, 43, 39, 0.08);
  }

  .branch-right {
    display: none;
    /* Ocultar la rama derecha que cruza en móvil */
  }

  /* Ocultar borde roto vertical y activar el horizontal */
  .hero-ripped-edge {
    display: none;
  }

  .hero-ripped-edge-horizontal {
    display: block;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 11;
    pointer-events: none;
  }

  .hero-ripped-edge-horizontal svg {
    width: 100%;
    height: 100%;
  }

  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 580px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .hero-paper-overlay {
    padding: 40px 20px;
  }

  .hero-bg-image {
    height: 280px;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   SECCIÓN DE SERVICIOS (LO QUE OFRECEMOS)
   ========================================================================== */

.services-section {
  padding: 80px 40px 40px 40px;
  background-color: var(--bg-cream-light);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}

.services-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 3;
}

.services-intro {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-green-light);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.services-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--color-green);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-title-cursive {
  font-family: var(--font-cursive);
  font-size: 3.2rem;
  color: var(--color-rust);
  font-weight: normal;
  line-height: 0.8;
  margin-top: 5px;
  text-transform: none;
}

.services-description {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.services-header-divider .divider-line {
  width: 50px;
  height: 1px;
  background-color: var(--color-rust);
  opacity: 0.4;
}

.services-header-divider .divider-leaf {
  font-size: 1rem;
  color: var(--color-rust);
  opacity: 0.8;
}

/* Divisor de grupo con Badge */
.services-group {
  margin-bottom: 60px;
}

.services-group:last-child {
  margin-bottom: 0;
}

.group-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 40px;
}

.group-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 1;
}

.green-divider::before {
  background: linear-gradient(to right, transparent, var(--color-green-light), transparent);
  opacity: 0.4;
}

.brown-divider::before {
  background: linear-gradient(to right, transparent, var(--color-rust), transparent);
  opacity: 0.4;
}

.group-badge {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  border-radius: 50px;
  color: white;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* Botón de expandir/contraer */
button.group-badge {
  border: none;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

button.group-badge:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

button.group-badge:active {
  transform: translateY(0) scale(0.98);
}

.green-badge {
  background-color: var(--color-green);
}

.green-badge:hover {
  background-color: var(--color-green-light);
}

.brown-badge {
  background-color: var(--color-rust);
}

.brown-badge:hover {
  background-color: var(--color-rust-hover);
}

.badge-icon {
  width: 16px;
  height: 16px;
}

/* Icono de flecha (chevron) */
.chevron-icon {
  width: 14px;
  height: 14px;
  margin-left: 6px;
  stroke: currentColor;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn[aria-expanded="false"] .chevron-icon {
  transform: rotate(180deg);
  animation: subtle-bounce 2.5s infinite ease-in-out;
}

/* Indicación sutil de expandir en celulares */
.tap-hint {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  text-transform: none;
  opacity: 0.8;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  display: none;
}

@keyframes subtle-bounce {

  0%,
  100% {
    transform: translateY(0) rotate(180deg);
  }

  50% {
    transform: translateY(3px) rotate(180deg);
  }
}

@media (max-width: 768px) {
  .toggle-btn[aria-expanded="false"] .tap-hint {
    display: inline;
  }
}

/* Contenedor con transición de altura */
.cards-grid-wrapper {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 1;
  max-height: none;
  overflow-anchor: none; /* Prevent scroll anchoring adjustments during collapse/expand */
}

.cards-grid-wrapper.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Grilla de cartas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  padding: 0 20px 20px 20px;
}

/* Pie de acordeón con botón para contraer */
.collapse-footer {
  display: flex;
  justify-content: center;
  padding: 15px 0 15px 0;
  width: 100%;
}

.btn-collapse-bottom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  border: 1px solid rgba(45, 43, 39, 0.15);
  border-radius: 30px;
  color: var(--color-text-light);
  padding: 8px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.btn-collapse-bottom:hover {
  background-color: var(--color-rust);
  color: white;
  border-color: var(--color-rust);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(138, 79, 42, 0.15);
}

.btn-collapse-bottom:active {
  transform: translateY(0);
}

.collapse-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

/* Ajustes especiales para que la grilla tenga un número fijo en pantallas muy grandes */
@media (min-width: 1400px) {
  .services-group:nth-child(2) .cards-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .services-group:nth-child(3) .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Estilo de la carta */
.service-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(45, 43, 39, 0.05);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(45, 43, 39, 0.12);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5;
  /* 3:2 ratio */
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .card-image {
  transform: scale(1.06);
}

/* Cuerpo de la carta */
.card-body {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  flex-grow: 1;
}

.card-icon-container {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card-green .card-icon-container {
  border: 1.5px solid var(--color-green-light);
  color: var(--color-green-light);
}

.card-brown .card-icon-container {
  border: 1.5px solid var(--color-rust);
  color: var(--color-rust);
}

.card-icon {
  width: 20px;
  height: 20px;
}

.card-text {
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.2;
}

.card-green .card-title {
  color: var(--color-green);
}

.card-brown .card-title {
  color: var(--color-rust);
}

.card-desc {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

.card-green:hover .card-icon-container {
  background-color: var(--color-green-light);
  color: white;
}

.card-brown:hover .card-icon-container {
  background-color: var(--color-rust);
  color: white;
}

/* Responsividad general */
@media (max-width: 768px) {
  .services-section {
    padding: 60px 20px 30px 20px;
  }

  .services-title {
    font-size: 2rem;
  }

  .services-title-cursive {
    font-size: 2.6rem;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0;
  }
}

/* ==========================================================================
   SECCIÓN DE UBICACIÓN (¿DÓNDE ESTAMOS?)
   ========================================================================== */

.location-section {
  padding: 80px 40px;
  background-color: var(--bg-cream);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}

.location-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 3;
}

.location-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-green-light);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.location-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--color-green);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.location-desc {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.location-header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.location-header-divider .divider-line {
  width: 50px;
  height: 1px;
  background-color: var(--color-rust);
  opacity: 0.4;
}

.location-header-divider .divider-leaf {
  font-size: 1rem;
  color: var(--color-rust);
  opacity: 0.8;
}

/* Características (Features) */
.location-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1320px;
  margin: 0 auto 60px auto;
  padding: 0 20px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 10px;
  background-color: transparent;
  border-right: 1px solid rgba(45, 43, 39, 0.08);
}

.feature-item:last-child {
  border-right: none;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(30, 70, 32, 0.05);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-item:hover .feature-icon-wrapper {
  background-color: var(--color-green);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(30, 70, 32, 0.15);
}

.feature-icon {
  width: 26px;
  height: 26px;
}

.feature-text h3 {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.feature-text p {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* Tarjeta de Ubicación Principal */
.location-card {
  max-width: 1320px;
  margin: 0 auto;
  background-color: var(--bg-cream-light);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(45, 43, 39, 0.04);
  border: 1px solid rgba(138, 79, 42, 0.08);
  overflow: hidden;
  padding: 30px;
}

.location-card-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Badge flotante premium sobre el mapa */
.map-floating-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(45, 43, 39, 0.15);
  display: flex;
  gap: 15px;
  max-width: 320px;
  z-index: 5;
  border-left: 4px solid var(--color-green);
  animation: badge-fade-in 0.8s ease;
}

@keyframes badge-fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.badge-icon-pin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(30, 70, 32, 0.08);
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-icon-pin svg {
  width: 18px;
  height: 18px;
}

.badge-content h4 {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--color-text);
  margin-bottom: 4px;
  font-weight: 700;
}

.badge-location {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.badge-time {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-green-light);
  margin-bottom: 12px;
}

.btn-badge-route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-green);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 6px 16px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-badge-route:hover {
  background-color: var(--color-rust);
  box-shadow: 0 4px 10px rgba(138, 79, 42, 0.2);
  transform: translateY(-1px);
}

.btn-badge-route svg {
  width: 12px;
  height: 12px;
}

/* Lado Derecho: Detalles de Ubicación */
.location-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.details-block {
  border-bottom: 1px solid rgba(45, 43, 39, 0.08);
  padding-bottom: 16px;
}

.details-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.details-block-title {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.details-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.details-item:last-child {
  margin-bottom: 0;
}

.details-link-item {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, transform 0.2s ease;
  width: fit-content;
}

.details-link-item:hover {
  color: var(--color-rust);
  transform: translateX(4px);
}

.details-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(45, 43, 39, 0.04);
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.details-icon svg {
  width: 15px;
  height: 15px;
}

.details-link-item:hover .details-icon {
  background-color: var(--color-rust);
  color: white;
}

.details-icon.green-icon {
  background-color: rgba(30, 70, 32, 0.06);
  color: var(--color-green);
}

.details-link-item:hover .details-icon.green-icon {
  background-color: var(--color-rust);
  color: white;
}

.details-text {
  display: flex;
  flex-direction: column;
}

.details-text .bold-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.details-link-item:hover .details-text .bold-text {
  color: var(--color-rust);
}

.details-text .light-text {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-text-light);
  line-height: 1.4;
  margin-top: 2px;
}

/* Banner CTA Footer */
.cta-footer-banner {
  margin-top: 60px;
  border-radius: 15px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 40px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(30, 70, 32, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1220px;
  position: relative;
  z-index: 2;
  gap: 30px;
}

.cta-left {
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
}

.cta-icon-marker {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.cta-icon-marker svg {
  width: 24px;
  height: 24px;
}

.cta-text-wrapper {
  display: flex;
  flex-direction: column;
}

.cta-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.cta-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  max-width: 520px;
  opacity: 0.95;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.cta-right {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-cta-light {
  background-color: var(--bg-cream-light);
  color: var(--color-green);
}

.btn-cta-light:hover {
  background-color: var(--bg-cream);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.25);
}

.btn-cta-solid {
  background-color: var(--color-green);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta-solid:hover {
  background-color: var(--color-rust);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(138, 79, 42, 0.3);
}

.cta-btn-icon {
  width: 15px;
  height: 15px;
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
}

.whatsapp-float::before {
  content: "¡Habla con nosotros! 😘✌️";
  position: absolute;
  right: 70px;
  background-color: #25d366;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(15px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.15), 
              0 2px 8px rgba(37, 211, 102, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.whatsapp-float:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  background-color: #20ba5a;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* Botón Flotante de TikTok */
.tiktok-float {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 56px;
  height: 56px;
  background-color: #010101;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(254, 44, 85, 0.35), 0 4px 15px rgba(37, 244, 238, 0.35);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
}

.tiktok-float::before {
  content: "¡Trends y Chismecito! 🤫💃🏻";
  position: absolute;
  right: 70px;
  background-color: #010101;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(15px);
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.15), 
              0 2px 8px rgba(254, 44, 85, 0.2), 
              0 -2px 8px rgba(37, 244, 238, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tiktok-float:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.tiktok-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 25px rgba(254, 44, 85, 0.55), 0 8px 25px rgba(37, 244, 238, 0.55);
  background-color: #111;
}

.tiktok-float svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(-1.5px -1.5px 0 #fe2c55) drop-shadow(1.5px 1.5px 0 #25f4ee);
}

/* Responsividad de la sección Ubicación */
@media (max-width: 992px) {
  .location-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid rgba(45, 43, 39, 0.08);
  }

  .feature-item:nth-child(2n) {
    border-right: none;
  }

  .feature-item:nth-child(3),
  .feature-item:nth-child(4) {
    border-bottom: none;
  }

  .location-card-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .cta-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }

  .cta-left {
    flex-direction: column;
    align-items: center;
  }

  .cta-right {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .location-section {
    padding: 60px 20px;
  }

  .location-title {
    font-size: 2rem;
  }

  .location-card {
    padding: 20px;
    border-radius: 15px;
  }

  .cta-footer-banner {
    padding: 30px 20px;
  }

  .cta-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 580px) {
  .location-features {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid rgba(45, 43, 39, 0.08);
    padding: 15px 10px;
  }

  .feature-item:last-child {
    border-bottom: none;
  }

  .map-floating-badge {
    display: none;
  }

  .map-wrapper {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .cta-right {
    flex-direction: column;
    width: 100%;
  }

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

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }

  .whatsapp-float::before {
    display: none !important;
  }

  .tiktok-float {
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .tiktok-float svg {
    width: 20px;
    height: 20px;
  }

  .tiktok-float::before {
    display: none !important;
  }
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER)
   ========================================================================== */

.footer-bungalows {
  background-color: #1e1d1b;
  color: #dbd6c9;
  padding: 60px 40px 20px 40px;
  font-family: var(--font-sans);
  border-top: 2px solid var(--color-rust);
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-brand .footer-logo {
  font-family: var(--font-cursive);
  font-size: 2.5rem;
  color: var(--bg-cream);
  line-height: 0.9;
  font-weight: normal;
  margin-bottom: 4px;
}

.footer-brand .footer-logo-sub {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-rust);
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-col-title {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  position: relative;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 1.5px;
  background-color: var(--color-rust);
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

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

.footer-links ul li a {
  color: #dbd6c9;
  text-decoration: none;
  font-size: 0.82rem;
  transition: all 0.3s ease;
}

.footer-links ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-hour-item {
  font-size: 0.82rem;
  margin-bottom: 10px;
}

.footer-hour-item .day {
  font-weight: 700;
  color: white;
}

.footer-hour-note {
  font-size: 0.76rem;
  opacity: 0.7;
  line-height: 1.4;
  margin-top: 8px;
  font-style: italic;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright-text {
  font-size: 0.76rem;
  opacity: 0.75;
}

.creator-text {
  font-size: 0.72rem;
  opacity: 0.65;
  letter-spacing: 0.5px;
}

.creator-name {
  font-weight: 600;
  color: white;
}

@media (max-width: 768px) {
  .footer-bungalows {
    padding: 50px 20px 20px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-col-title {
    margin-bottom: 15px;
  }

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

/* ==========================================================================
   SECCIÓN DE CROQUIS (DISTRIBUCIÓN)
   ========================================================================== */

.croquis-section {
  padding: 80px 40px;
  background-color: var(--bg-cream-light);
  font-family: var(--font-sans);
  position: relative;
  overflow: hidden;
}

.croquis-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  position: relative;
  z-index: 3;
}

.croquis-intro {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-green-light);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.croquis-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--color-green);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.croquis-title-cursive {
  font-family: var(--font-cursive);
  font-size: 3.2rem;
  color: var(--color-rust);
  font-weight: normal;
  line-height: 0.8;
  margin-top: 5px;
  text-transform: none;
}

.croquis-description {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.croquis-header-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
}

.croquis-header-divider .divider-line {
  width: 50px;
  height: 1px;
  background-color: var(--color-rust);
  opacity: 0.4;
}

.croquis-header-divider .divider-leaf {
  font-size: 1rem;
  color: var(--color-rust);
  opacity: 0.8;
}

/* Contenedor Centrado */
.croquis-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Visual */
.croquis-visual {
  width: 100%;
}

.croquis-frame {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(45, 43, 39, 0.08);
  border: 4px solid white;
  background-color: white;
  aspect-ratio: 1.414; /* Proporción estándar de planos */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.croquis-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background-color: #fdfbf7;
}

.croquis-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 43, 39, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
  pointer-events: none;
}

.croquis-frame:hover .croquis-overlay {
  opacity: 1;
}

.croquis-frame:hover .croquis-image {
  transform: scale(1.03);
}

.btn-zoom-croquis {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: white;
  color: var(--color-green);
  border: none;
  border-radius: 30px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.2px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.btn-zoom-croquis:hover {
  background-color: var(--color-green);
  color: white;
  transform: scale(1.05);
}

.zoom-icon {
  width: 18px;
  height: 18px;
}

/* ==========================================
   MODAL DE PANTALLA COMPLETA
   ========================================== */

.croquis-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 15, 0.9);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.croquis-modal.active {
  display: flex;
  opacity: 1;
}

.croquis-modal-close {
  position: absolute;
  top: 25px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  z-index: 2010;
  transition: color 0.25s ease, transform 0.25s ease;
  user-select: none;
  line-height: 1;
}

.croquis-modal-close:hover {
  color: var(--color-rust);
  transform: rotate(90deg);
}

.croquis-modal-content {
  max-width: 90%;
  max-height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.croquis-modal.active .croquis-modal-content {
  transform: scale(1);
}

.croquis-modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 4px solid white;
  background-color: white;
}

/* Responsividad Croquis */
@media (max-width: 992px) {
  .croquis-container {
    max-width: 100%;
    padding: 0 10px;
  }

  .croquis-frame {
    aspect-ratio: auto;
    max-height: 500px;
  }

  .croquis-title {
    font-size: 2.2rem;
  }

  .croquis-title-cursive {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .croquis-section {
    padding: 60px 20px;
  }

  .croquis-frame {
    border-radius: 12px;
  }

  .croquis-modal-close {
    top: 15px;
    right: 20px;
    font-size: 36px;
  }
}

/* ==========================================
   CONMUTADOR INTERACTIVO DE DORMITORIOS
   ========================================== */
.bedroom-switcher {
  display: inline-flex;
  background: rgba(138, 79, 42, 0.05);
  border: 1px solid rgba(138, 79, 42, 0.15);
  border-radius: 20px;
  padding: 3px;
  margin-bottom: 12px;
  gap: 4px;
}

.btn-switch {
  background: transparent;
  border: none;
  border-radius: 17px;
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-rust);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  outline: none;
}

.btn-switch.active {
  background-color: var(--color-rust);
  color: white;
  box-shadow: 0 2px 6px rgba(138, 79, 42, 0.2);
}

.btn-switch:hover:not(.active) {
  background-color: rgba(138, 79, 42, 0.12);
}

/* Transiciones de imagen de dormitorio */
.dormitorio-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.4s ease, transform 0.5s ease !important;
}

.dormitorio-img.active {
  opacity: 1;
  z-index: 2;
}

/* Efecto hover consistente para ambas imágenes */
.service-card:hover .dormitorio-img.active {
  transform: scale(1.06);
}