/* ----------- SOBRE NOSOTROS: TIMELINE & LAYOUT ----------- */
#sobre-nosotros .md\:grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  #sobre-nosotros .md\:grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  #sobre-nosotros .mt-10.md\:mt-0 {
    margin-top: 0 !important;
  }
}

/* Timeline vertical */
.timeline {
  border-left: 2px solid #B76E26;
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.timeline li {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  min-height: 3.5rem;
}

.timeline li:last-child {
  margin-bottom: 0;
}

.timeline-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  outline: none;
}

.timeline li span {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #B76E26;
  border-radius: 9999px;
  margin-right: 0.75rem;
  background: #fff;
  position: relative;
  transition: background 0.3s, border 0.3s, box-shadow 0.3s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Tooltip con mini-imagen (solo una vez, limpio) */
.timeline li span .tooltip-img {
  display: none;
  position: absolute;
  left: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px #0002;
  z-index: 10;
  pointer-events: none;
  border: none;
  margin: 0;
  padding: 0;
}

.timeline-btn:focus .tooltip-img,
.timeline-btn:hover .tooltip-img {
  display: block;
}

.timeline li span img:empty {
  display: none;
}

.timeline li.active span,
.timeline-btn:focus span,
.timeline-btn:hover span {
  background: #B76E26;
  border-color: #a05e1f;
  animation: pulse 2s infinite;
  box-shadow: 0 0 0 4px #B76E2622;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

.timeline li strong {
  font-weight: 600;
  margin-right: 0.5rem;
  color: #1F1F1F;
  font-size: 1.1rem;
}

.timeline li p {
  margin: 0;
  color: #444;
  font-weight: 400;
  line-height: 1.6;
  font-size: 1rem;
}

/* ----------- MINI CARDS DE BENEFICIOS ----------- */
#sobre-nosotros .grid-cols-1.sm\:grid-cols-3>a {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px #0001;
  padding: 1.25rem 1rem;
  transition: box-shadow 0.2s, transform 0.2s;
  display: block;
  text-decoration: none;
}

#sobre-nosotros .grid-cols-1.sm\:grid-cols-3>a:hover,
#sobre-nosotros .grid-cols-1.sm\:grid-cols-3>a:focus {
  box-shadow: 0 4px 16px #B76E2622;
  transform: translateY(-2px) scale(1.03);
}

#sobre-nosotros .grid-cols-1.sm\:grid-cols-3 h4 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

#sobre-nosotros .grid-cols-1.sm\:grid-cols-3 p {
  font-size: 0.97rem;
  color: #555;
}

/* ----------- BADGE DE PUNTUACIÓN ----------- */
#sobre-nosotros .inline-flex.bg-\[\#FFF8F0\] {
  background: #FFF8F0 !important;
  box-shadow: 0 2px 8px #B76E2622;
  font-size: 1.08rem;
  font-weight: 500;
}

#sobre-nosotros .inline-flex.bg-\[\#FFF8F0\] svg {
  color: #B76E26;
}

#sobre-nosotros .inline-flex.bg-\[\#FFF8F0\] .ml-2 {
  margin-left: 0.5rem;
  font-size: 0.97rem;
  color: #555;
}

/* ----------- CTA LIGERO ----------- */
#sobre-nosotros a.mt-8.inline-flex {
  margin-top: 2rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: #B76E26;
  text-decoration: none;
  transition: color 0.2s;
}

#sobre-nosotros a.mt-8.inline-flex:hover,
#sobre-nosotros a.mt-8.inline-flex:focus {
  text-decoration: underline;
  color: #a05e1f;
}

#sobre-nosotros a.mt-8.inline-flex svg {
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ----------- IMAGEN DERECHA RESPONSIVA ----------- */
#sobre-nosotros .max-w-md {
  max-width: 380px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px #0001;
}

/* ----------- PARALLAX BG (opcional) ----------- */
.parallax-bg {
  background: linear-gradient(120deg, #FFF8F0 0%, #fff 100%);
  position: relative;
  z-index: 1;
}

/* ----------- ACCESIBILIDAD ----------- */
.timeline-btn:focus {
  outline: 2px solid #B76E26;
  outline-offset: 2px;
}

/* ----------- TIPOGRAFÍA Y ESPACIADO ----------- */
#sobre-nosotros h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1F1F1F;
  margin-bottom: 1rem;
}

#sobre-nosotros p {
  line-height: 1.6;
  font-size: 1.08rem;
  color: #555;
}

/* ----------- MINI LANDING CARDS SERVICIOS ----------- */
#servicios .group {
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px #0001;
  overflow: hidden;
  position: relative;
  min-height: 14rem;
  transition: box-shadow 0.2s;
}

#servicios .group:hover,
#servicios .group:focus-within {
  box-shadow: 0 8px 32px #B76E2622;
}

#servicios .group img {
  transition: transform 0.3s;
}

#servicios .group:hover img,
#servicios .group:focus-within img {
  transform: scale(1.05);
}

#servicios .group .absolute {
  transition: background 0.3s, opacity 0.3s;
}

#servicios .group:hover .absolute,
#servicios .group:focus-within .absolute {
  background: rgba(183, 110, 38, 0.6);
}

#servicios .group .relative {
  z-index: 2;
}

#servicios .group h3,
#servicios .group p {
  text-shadow: 0 2px 8px #0006;
}

#servicios .group a {
  outline: none;
  box-shadow: none;
}

#servicios .group a:focus {
  outline: 2px solid #B76E26;
  outline-offset: 2px;
}

/* ----------- CTA STICKY ----------- */
#servicios .sticky {
  position: sticky;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
  z-index: 30;
  box-shadow: 0 4px 24px #B76E2622;
}

#servicios .sticky:focus {
  outline: 2px solid #B76E26;
  outline-offset: 2px;
}

/* ----------- ACCESIBILIDAD Y CONTRASTE ----------- */
#servicios a.bg-white {
  color: #B76E26;
  background: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.2s, color 0.2s;
}

#servicios a.bg-white:hover,
#servicios a.bg-white:focus {
  background: #f5f5f5;
  color: #a05e1f;
}

#servicios a.bg-\[\#B76E26\] {
  background: #B76E26 !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 24px #B76E2622;
}

#servicios a.bg-\[\#B76E26\]:hover,
#servicios a.bg-\[\#B76E26\]:focus {
  background: #a05e1f !important;
  color: #fff !important;
}

#servicios .p-6 {
  padding: 1.5rem !important;
}

#servicios .gap-8 {
  gap: 2rem !important;
}


/* patrón de rayas diagonales muy sutil */
#ofertas::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05) 25%,
    transparent 25%,
    transparent 75%,
    rgba(255, 255, 255, 0.05) 75%,
    rgba(255, 255, 255, 0.05)
  );
  background-size: 4rem 4rem;
  pointer-events: none;
  transform: rotate(0deg);
}

/* Badge “quedan X habitaciones” */
.oferta-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #b76e26;
  font-weight: bold;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 10;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Título y texto */
#ofertas h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#ofertas p {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

/* Botón */
#ofertas .btn-oferta,
#ofertas a.btn-oferta {
  background-color: #fff;
  color: #b76e26;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

#ofertas .btn-oferta:hover {
  background-color: #f9f9f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

/* Contenedor del timer */
#ofertas .oferta__timer {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#ofertas .timer__label {
  color: #fff;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

#ofertas .timer {
  color: #b76e26;
  font-size: 1.75rem;
  font-weight: 700;
}

/* Asegúrate de que el contenido esté por encima del pseudo-elemento */
#ofertas > div {
  position: relative;
  z-index: 1;
}


/* Comparativa de tarifas: tabla y micro-beneficios */
#comparativa-tarifas table tr.afiliado {
  background: #FFF8F0;
  font-weight: 600;
  color: #B76E26;
}

#comparativa-tarifas table td,
#comparativa-tarifas table th {
  vertical-align: middle;
}

#comparativa-tarifas .beneficio-card {
  background: #FFF8F0;
  border-radius: 0.75rem;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 12px 0 rgba(183, 110, 38, 0.08);
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  position: relative;
}

#comparativa-tarifas .beneficio-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 32px 0 rgba(183, 110, 38, 0.15);
}

#comparativa-tarifas .beneficio-popup {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 110%;
  transform: translateX(-50%);
  background: #fff;
  color: #B76E26;
  border: 1px solid #B76E26;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px 0 rgba(183, 110, 38, 0.10);
  padding: 0.75rem 1rem;
  font-size: 0.95em;
  min-width: 180px;
  z-index: 30;
  pointer-events: none;
}

#comparativa-tarifas .beneficio-card:hover .beneficio-popup {
  display: block;
}

/* Sticky Databar habitaciones */
#date-bar {
  top: 64px;
  /* debajo del header fijo */
  box-shadow: 0 2px 8px 0 rgba(183, 110, 38, 0.06);
  border-radius: 0.75rem;
}

/* Drawer lateral reserva */
#drawer-reserva {
  right: 0;
  top: 0;
  height: 100vh;
  max-width: 420px;
  min-width: 320px;
  background: #fff;
  box-shadow: -8px 0 32px 0 rgba(183, 110, 38, 0.10);
  z-index: 100;
  transition: transform 0.3s;
}

#drawer-reserva.open {
  transform: translateX(0) !important;
  display: flex !important;
}

#drawer-reserva {
  transform: translateX(100%);
  display: none;
}

/* Popover de políticas */
.politicas-popover {
  display: none;
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #fff;
  border: 1px solid #B76E26;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px 0 rgba(183, 110, 38, 0.10);
  z-index: 40;
  padding: 1rem;
}

.politicas-popover.active {
  display: block;
}

/* Beneficio cards hover */
.beneficio-card {
  background: #FFF8F0;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px 0 rgba(183, 110, 38, 0.06);
  padding: 1.5rem 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  position: relative;
}

.beneficio-card:hover,
.beneficio-card:focus {
  transform: scale(1.05);
  box-shadow: 0 8px 32px 0 rgba(183, 110, 38, 0.15);
  z-index: 10;
}

.beneficio-popup {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 110%;
  transform: translateX(-50%);
  background: #fff;
  color: #B76E26;
  border: 1px solid #B76E26;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px 0 rgba(183, 110, 38, 0.10);
  padding: 0.75rem 1rem;
  font-size: 0.95em;
  min-width: 180px;
  z-index: 30;
  pointer-events: none;
}

.beneficio-card:hover .beneficio-popup,
.beneficio-card:focus .beneficio-popup {
  display: block;
}

/* Badge oferta habitaciones */
.oferta-badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: #a05e1f;
  color: #fff;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

/* Ofertas especiales fondo degradado */
#ofertas>div.rounded-2xl {
  background: linear-gradient(90deg, #B76E26 0%, rgba(183, 110, 38, 0.0) 100%);
}

/* Sticky CTA footer reserva */
#reserve-footer {
  pointer-events: none;
}

#reserve-footer button {
  pointer-events: auto;
}

html {
  scroll-behavior: smooth;
}

.max-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Fuentes variables para mejor rendimiento */
body {
  font-family: 'InterVariable', 'Segoe UI', Arial, sans-serif;
}

@media (max-width: 767px) {
  #sobre-nosotros .md\:grid {
    grid-template-columns: 1fr !important;
  }

  #sobre-nosotros .max-w-md {
    max-width: 100%;
    margin-top: 2rem;
  }

  #servicios .group img {
    height: 10rem;
  }

  #servicios .sticky {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}