/* =============================================
   RESERVAS — estilos específicos
   ============================================= */

.res-hero {
  position: relative;
  height: 38vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  overflow: hidden;
  margin-top: 96px; /* ← altura real del header desktop */
  background: linear-gradient(135deg, rgba(107,33,232,0.2), rgba(6,6,8,1));
}

.res-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 100% at 80% 0%, rgba(232,0,122,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 70% 80% at 5% 100%, rgba(107,33,232,0.2) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(6,6,8,0.2), rgba(6,6,8,0.92));
}

.res-hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.res-hero-content h1 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  letter-spacing: -2px;
  line-height: 1;
  color: var(--blanco);
  margin: 10px 0 16px;
}

.res-hero-content p {
  font-size: 15px;
  font-weight: 300;
  color: var(--gris);
  max-width: 460px;
  line-height: 1.7;
  margin: 0 auto;
}

.res-aviso { display: none; }

/* =============================================
   ESPACIOS
   ============================================= */

.res-espacios { padding: 72px 72px 60px; }

.espacios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.espacio-card {
  background: var(--negro-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}

.espacio-card:hover {
  border-color: var(--glass-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(232,0,122,0.1);
}

.espacio-card-top { position: relative; overflow: hidden; }

.espacio-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  transition: filter 0.5s, transform 0.5s;
}

.espacio-card:hover .espacio-img {
  filter: brightness(0.45);
  transform: scale(1.03);
}

.espacio-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--rosa);
  color: var(--blanco);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  box-shadow: 0 0 16px var(--rosa-glow);
}

.espacio-body { padding: 28px 32px 32px; }

.espacio-tag {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 8px;
}

.espacio-body h3 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.3px;
  color: var(--blanco);
  margin-bottom: 16px;
  line-height: 1;
}

.espacio-body > p {
  font-size: 14px;
  font-weight: 300;
  color: var(--gris);
  line-height: 1.8;
  margin-bottom: 20px;
}

.espacio-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.espacio-features li {
  font-size: 13px;
  font-weight: 300;
  color: var(--gris);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.espacio-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 1px;
  background: var(--rosa);
}

.btn-espacio {
  width: 100%;
  background: var(--rosa);
  color: var(--blanco);
  border: none;
  padding: 15px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 24px var(--rosa-glow);
  transition: all 0.3s;
}

.btn-espacio:hover {
  box-shadow: 0 0 40px var(--rosa-glow);
  transform: translateY(-2px);
}

.btn-espacio-alt {
  background: rgba(232,0,122,0.08);
  color: var(--rosa);
  border: 1px solid rgba(232,0,122,0.3);
  box-shadow: none;
}

.btn-espacio-alt:hover {
  background: rgba(232,0,122,0.15);
  border-color: var(--rosa);
  box-shadow: none;
}

/* =============================================
   FORMULARIO
   ============================================= */

.res-form-section { padding: 0 0 80px; }

.res-form-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 72px;
  align-items: start;
}

.res-form-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 48px 44px;
}

.reserva-info-lateral {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px 36px;
  background: rgba(232,0,122,0.04);
  border: 1px solid rgba(232,0,122,0.15);
  border-radius: 14px;
}

.reserva-info-lateral .info-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--rosa);
  margin-bottom: 16px;
  display: block;
}

.reserva-info-lateral h3 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--blanco);
  line-height: 1.15;
  margin-bottom: 32px;
  letter-spacing: -0.3px;
}

.info-items { display: flex; flex-direction: column; gap: 24px; }

.info-row { display: flex; gap: 14px; align-items: flex-start; }

.info-row-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: rgba(232,0,122,0.08);
  border: 1px solid rgba(232,0,122,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-row-icon svg {
  width: 16px; height: 16px;
  stroke: var(--rosa);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.info-row-text strong {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blanco);
  display: block;
  margin-bottom: 4px;
}

.info-row-text span {
  font-size: 13px;
  font-weight: 300;
  color: var(--gris);
  line-height: 1.7;
}

/* Éxito */
.res-success { text-align: center; padding: 40px 20px; }

.res-success-icon {
  width: 64px; height: 64px;
  background: rgba(232,0,122,0.1);
  border: 1px solid rgba(232,0,122,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.res-success-icon svg { width: 28px; height: 28px; stroke: var(--rosa); }

.res-success h3 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--blanco);
  margin-bottom: 12px;
}

.res-success p {
  font-size: 14px;
  font-weight: 300;
  color: var(--gris);
  line-height: 1.8;
  max-width: 440px;
  margin: 0 auto 28px;
}

.btn-wha-success {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--blanco);
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.btn-wha-success:hover {
  background: #1fb856;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.3);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .res-form-grid { grid-template-columns: 1fr; padding: 0 40px; }
  .reserva-info-lateral { order: -1; }
}

@media (max-width: 900px) {
  .espacios-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Hero — margin-top = header móvil (72px) */
  .res-hero {
    margin-top: 72px;
    height: auto;
    min-height: 220px;
    padding: 48px 20px 40px;
  }
  .res-hero-content h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); letter-spacing: -1px; }
  .res-hero-content p { font-size: 14px; }

  /* Espacios */
  .res-espacios { padding: 44px 20px 36px; }
  .espacio-img { height: 180px; }
  .espacio-body { padding: 20px; }
  .espacio-body h3 { font-size: 1.3rem; }
  .espacio-features li { font-size: 12px; }

  /* Formulario */
  .res-form-section { padding: 0 0 48px; }
  .res-form-grid { padding: 0 20px; gap: 16px; }
  .res-form-wrap { padding: 24px 16px; border-radius: 12px; }
  .reserva-info-lateral { padding: 24px 20px; }
  .reserva-info-lateral h3 { font-size: 1.2rem; margin-bottom: 20px; }
  .info-row-icon { width: 34px; height: 34px; }
  .info-items { gap: 18px; }

  /* Formulario campos */
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 480px) {
  .res-hero { margin-top: 64px; padding: 40px 16px 32px; min-height: 200px; }
  .res-hero-content h1 { font-size: 1.6rem; }
  .res-espacios { padding: 36px 16px 28px; }
  .res-form-grid { padding: 0 16px; }
  .res-form-wrap { padding: 20px 14px; }
  .btn-espacio { font-size: 10px; letter-spacing: 2px; padding: 13px; }
}

/* =============================================
   NUEVO LAYOUT — espacios izquierda / form derecha
   ============================================= */

.res-main-layout {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 64px 72px 72px;
  align-items: start;
}

/* Columna izquierda */
.res-col-left { display: flex; flex-direction: column; gap: 28px; }

.res-col-header { margin-bottom: 8px; }

.res-col-header h2 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.5px;
  color: var(--blanco);
  margin-top: 8px;
  line-height: 1;
}

/* Columna derecha — form sticky mientras scrolleas los espacios */
.res-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px; /* debajo del header */
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

/* Scrollbar sutil en la columna derecha */
.res-col-right::-webkit-scrollbar { width: 4px; }
.res-col-right::-webkit-scrollbar-track { background: transparent; }
.res-col-right::-webkit-scrollbar-thumb { background: rgba(232,0,122,0.3); border-radius: 2px; }

/* =============================================
   SLIDESHOW
   ============================================= */

.res-slideshow {
  padding: 0 0 80px;
  position: relative;
  z-index: 1;
}

.rslide-header {
  text-align: center;
  padding: 0 72px 40px;
}

.rslide-header h2 {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.5px;
  color: var(--blanco);
  margin-top: 8px;
  line-height: 1;
}

.rslide-track-wrap {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.rslide-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.rslide-item {
  min-width: 100%;
  position: relative;
}

.rslide-item img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
  filter: brightness(0.85);
}

/* Flechas del slideshow */
.rslide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(6,6,8,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s, border-color 0.3s;
  backdrop-filter: blur(8px);
}

.rslide-nav:hover { background: rgba(232,0,122,0.25); border-color: var(--rosa); }
.rslide-nav svg { stroke: var(--blanco); }
.rslide-prev { left: 20px; }
.rslide-next { right: 20px; }

/* Dots */
.rslide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 0;
}

.rslide-dots button {
  width: 24px; height: 3px;
  border-radius: 2px;
  border: none;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.rslide-dots button.active {
  background: var(--rosa);
  width: 40px;
  box-shadow: 0 0 8px var(--rosa-glow);
}

/* =============================================
   RESPONSIVE NUEVO LAYOUT
   ============================================= */

@media (max-width: 1100px) {
  .res-main-layout { grid-template-columns: 1fr 420px; gap: 28px; padding: 48px 40px 56px; }
}

@media (max-width: 900px) {
  .res-main-layout { grid-template-columns: 1fr; padding: 40px 24px 52px; }
  .res-col-right { position: static; max-height: none; overflow-y: visible; }
  .rslide-header { padding: 0 24px 32px; }
  .rslide-item img { height: 400px; }
}

@media (max-width: 768px) {
  .res-main-layout { padding: 32px 16px 44px; gap: 24px; }
  .rslide-item img { height: 280px; }
  .rslide-nav { width: 40px; height: 40px; }
  .rslide-prev { left: 10px; }
  .rslide-next { right: 10px; }
  .rslide-header { padding: 0 16px 24px; }
}

@media (max-width: 480px) {
  .rslide-item img { height: 220px; }
  .rslide-nav { width: 36px; height: 36px; }
}
