/* ============================================
   HotelesPlus - hotel.css
   Estilos exclusivos de la pagina de hotel
============================================ */


/* ============================
   HERO DEL HOTEL
============================= */
.hotel-hero {
  padding-top: 70px; /* altura navbar */
  background: var(--color-bg);
}

/* Galeria */
.hotel-galeria {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4px;
  height: 420px;
  background: var(--color-primary-d);
}
.galeria-principal {
  position: relative;
  background: linear-gradient(135deg, #1a3a5c 0%, #2d6a9f 100%);
  overflow: hidden;
}
.hotel-img-hero--hotel-unico-madrid {
  background: linear-gradient(135deg, #1a3a5c 0%, #8e44ad 100%);
}
.hotel-img-hero--hotel-medinaceli {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
.hotel-img-hero--hotel-opera-madrid {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  z-index: 1;
}

.galeria-secundaria {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.gal-mini { background: var(--color-primary); }
.gal-mini--1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gal-mini--2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gal-mini--3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gal-mini--4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

/* Datos del hero */
.hotel-hero-datos {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  align-items: start;
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.hotel-hero-estrellas {
  font-size: 1.1rem;
  color: #f39c12;
  letter-spacing: 2px;
  margin-bottom: 0.4rem;
}
.hotel-hero-nombre {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}
.hotel-hero-zona {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.hotel-hero-zona svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  stroke: var(--color-accent);
}

/* Nota global */
.hotel-hero-nota {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.nota-numero {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.nota-excelente { background: #27ae60; }
.nota-muy-bien  { background: #2980b9; }
.nota-bien      { background: #f39c12; }
.nota-regular   { background: #c0392b; }

.nota-detalle {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.nota-texto  { font-weight: 700; color: var(--color-text); font-size: 0.95rem; }
.nota-fuente { font-size: 0.78rem; color: var(--color-text-muted); }

/* Specs en hero */
.hotel-hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ============================
   TARJETA DE RESERVA
============================= */
.hotel-reserva-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-md);
}
.reserva-precio {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}
.reserva-desde { font-size: 0.8rem; color: var(--color-text-muted); }
.reserva-importe {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}
.reserva-noche { font-size: 0.8rem; color: var(--color-text-muted); }

.reserva-horarios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}
.reserva-horario {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}
.rh-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}
.rh-valor {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}
.rh-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--color-accent);
  color: white;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
  margin-left: 0.3rem;
}

.reserva-alertas {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--space-sm);
}
.ralerta {
  font-size: 0.82rem;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.ralerta--ok   { background: #d1fae5; color: #065f46; }
.ralerta--warn { background: #fef3c7; color: #78350f; }

.btn-reservar {
  display: block;
  text-align: center;
  background: var(--color-accent);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
  margin-bottom: 0.65rem;
}
.btn-reservar:hover {
  background: var(--color-accent-d);
  transform: translateY(-2px);
}
.btn-reservar--grande {
  display: inline-flex;
  font-size: 1.05rem;
  padding: 1rem 2rem;
}

.reserva-nota {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ============================
   QUICK NAV HOTEL
============================= */
.hotel-quicknav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 60px;
  z-index: 100;
}


/* ============================
   ANTES DE RESERVAR
============================= */
.hotel-antes {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
}
.hotel-antes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

/* Tarjetas del panel antes de reservar */
.har-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.har-card:hover,
.har-card:focus {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.har-card--featured {
  grid-column: span 2;
}

.har-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--space-md) var(--space-md) 0;
  flex-wrap: wrap;
}
.har-icon { font-size: 1.4rem; flex-shrink: 0; }
.har-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  flex: 1;
}

.har-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.har-badge--ok   { background: #d1e7dd; color: #0a3622; }
.har-badge--warn { background: #fff3cd; color: #856404; }
.har-badge--bad  { background: #f8d7da; color: #58151c; }

.har-body {
  padding: var(--space-sm) var(--space-md) var(--space-md);
  flex: 1;
  font-size: 0.88rem;
}
.har-body p { color: var(--color-text-muted); line-height: 1.55; }
.har-tip {
  font-size: 0.83rem;
  background: rgba(240,122,38,.08);
  border-left: 3px solid var(--color-accent);
  padding: 0.55rem 0.8rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 0.75rem;
  color: var(--color-text);
  line-height: 1.5;
}
.har-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-accent);
}
.har-link:hover { text-decoration: underline; }

/* Helpers de info */
.info-ok   { color: #1a7a40; font-weight: 600; }
.info-no   { color: #7a1a1a; font-weight: 600; }
.info-warn { color: #7a5a00; font-weight: 600; }

.info-destacado {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.65rem;
}
.info-destacado--ok   { background: #d1fae5; color: #065f46; }
.info-destacado--warn { background: #fef3c7; color: #78350f; }


/* ============================
   HABITACIONES
============================= */
.hotel-habitaciones {
  padding: var(--space-2xl) 0;
  background: var(--color-surface);
}
.hab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.hab-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.hab-card:hover,
.hab-card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.hab-img {
  height: 175px;
}
.hab-img--1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.hab-img--2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.hab-img--3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.hab-img--4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.hab-body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.hab-nombre {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.hab-attrs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.hab-attr {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-bg);
  color: var(--color-text-muted);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
}
.hab-attr--quiet {
  background: #d1fae5;
  color: #065f46;
  border-color: transparent;
}

.hab-desc {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
}
.hab-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}
.hab-precio {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}
.precio-desde { font-size: 0.7rem; color: var(--color-text-muted); }
.precio-importe {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-primary);
}
.precio-noche { font-size: 0.7rem; color: var(--color-text-muted); }

.btn-hab-reservar {
  display: inline-flex;
  align-items: center;
  background: var(--color-primary);
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-hab-reservar:hover { background: var(--color-accent); }


/* ============================
   SERVICIOS
============================= */
.hotel-servicios {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
}
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.srv-categoria {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
}
.srv-cat-titulo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}
.srv-lista {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.srv-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.srv-item--no { opacity: .5; text-decoration: line-through; }
.srv-check { color: #27ae60; font-weight: 700; flex-shrink: 0; }
.srv-no    { color: #c0392b; font-weight: 700; flex-shrink: 0; }


/* ============================
   OPINIONES / VALORACIONES
============================= */
.hotel-opiniones {
  padding: var(--space-2xl) 0;
  background: var(--color-surface);
}
.op-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.op-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
}
.op-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.4rem;
}
.op-fuente {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  flex: 1;
}
.op-nota-global {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
}
.op-etiqueta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text);
}
.op-total {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}
.op-categorias {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.op-cat {
  display: grid;
  grid-template-columns: 120px 1fr 36px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}
.op-cat-nombre { color: var(--color-text-muted); }
.op-barra-wrap {
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.op-barra {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.8s ease;
}
.op-barra.nota-excelente { background: #27ae60; }
.op-barra.nota-muy-bien  { background: #2980b9; }
.op-barra.nota-bien      { background: #f39c12; }
.op-barra.nota-regular   { background: #c0392b; }

.op-cat-nota {
  font-size: 0.8rem;
  font-weight: 700;
  text-align: right;
}


/* ============================
   POLITICAS
============================= */
.hotel-politicas {
  padding: var(--space-2xl) 0;
  background: var(--color-bg);
}
.pol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.pol-bloque {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
}
.pol-bloque h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}


/* ============================
   CTA FINAL DE RESERVA
============================= */
.hotel-cta-reserva {
  padding: var(--space-xl) 0;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    #2d6a9f 100%
  );
}
.hotel-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}
.cta-texto h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.35rem;
}
.cta-texto p { color: rgba(255,255,255,.8); font-size: 0.95rem; }
.cta-precio-boton {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}
.cta-precio {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}
.cta-precio .reserva-desde { color: rgba(255,255,255,.7); }
.cta-precio .reserva-importe { color: white; font-size: 2rem; }
.cta-precio .reserva-noche { color: rgba(255,255,255,.7); }


/* ============================
   HOTELES SIMILARES
============================= */
.hotel-similares {
  padding: var(--space-2xl) 0;
  background: var(--color-surface);
}


/* ============================
   RESPONSIVE
============================= */
@media (max-width: 1024px) {
  .hotel-galeria      { height: 320px; }
  .hotel-hero-datos   { grid-template-columns: 1fr; }
  .hotel-reserva-card { position: static; }
  .hotel-antes-grid   { grid-template-columns: repeat(2, 1fr); }
  .har-card--featured { grid-column: span 2; }
  .hab-grid           { grid-template-columns: repeat(2, 1fr); }
  .srv-grid           { grid-template-columns: repeat(2, 1fr); }
  .pol-grid           { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hotel-galeria {
    grid-template-columns: 1fr;
    height: 240px;
  }
  .galeria-secundaria { display: none; }
  .hotel-antes-grid   { grid-template-columns: 1fr; }
  .har-card--featured { grid-column: auto; }
  .hab-grid           { grid-template-columns: 1fr; }
  .srv-grid           { grid-template-columns: 1fr; }
  .pol-grid           { grid-template-columns: 1fr; }
  .hotel-cta-inner    { flex-direction: column; text-align: center; }
  .cta-precio-boton   { flex-direction: column; }
  .op-cat             { grid-template-columns: 90px 1fr 30px; }
}

@media (max-width: 480px) {
  .reserva-horarios { grid-template-columns: 1fr; }
  .hotel-hero-nota  { flex-wrap: wrap; }
}

/* Banner flotante de reserva en movil */
.reserva-banner-movil {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-surface);
  border-top: 2px solid var(--color-border);
  padding: 0.85rem var(--space-md);
  z-index: 500;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
}
.reserva-banner-movil.visible {
  display: flex;
}
.rbm-precio {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
}
.rbm-precio small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: 0.2rem;
}
.rbm-btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
}

@media (min-width: 1025px) {
  .reserva-banner-movil { display: none !important; }
}

