/* ================================================
   HOTELES CONVENIO – estilos específicos
   ================================================ */

.pagina-hoteles {
  background: #111111;
}

/* ---------- HERO: logos + título ---------- */
.hc-hero {
  background: #111111;
  border-bottom: 1px solid #242424;
}

.hc-hero-contenido {
  max-width: 1600px;
  margin: 0 auto;
  padding: 120px 64px 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

/* Reserve space so logos stay left and title stays right on wide screens */
.hc-logos {
  flex: 0 0 28%;
}

.hc-titulo-bloque {
  flex: 0 0 66%;
  text-align: right;
}

/* --- logos institucionales --- */
.hc-logos {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hc-logo-principal {
  width: 520px;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(1);
}

.hc-logos-secundarios {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hc-logo-secundario {
  height: 110px;
  max-width: 280px;
  object-fit: contain;
  filter: brightness(1.05);
}

/* --- bloque de título --- */
.hc-titulo-bloque {
  text-align: right;
}

.hc-titulo {
  margin: 0;
  font-size: clamp(48px, 8.5vw, 110px);
  line-height: 0.95;
  font-weight: 700;
  color: #e7d818;
  letter-spacing: 1px;
}

.hc-fechas {
  margin: 20px 0 0;
  font-size: clamp(16px, 2.2vw, 24px);
  font-weight: 600;
  color: #ff5555;
  letter-spacing: 0.3px;
}

.hc-nota {
  margin: 20px 0 0;
  font-size: 13px;
  color: #aaaaaa;
  letter-spacing: 0.2px;
}

.hc-nota strong {
  color: #cccccc;
}

/* ---------- CUADRÍCULA DE HOTELES ---------- */
.hc-hoteles {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 28px 60px;
}

.hc-hoteles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ---------- TARJETA INDIVIDUAL ---------- */
.hc-tarjeta {
  background: #1e1e1e;
  border: 1px solid #303030;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hc-tarjeta:hover {
  border-color: rgba(231, 216, 24, 0.5);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

/* Área de logo (zona negra central) */
.hc-tarjeta-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: #555555;
}

.hc-tarjeta-logo img {
  max-width: 440px;
  max-height: 260px;
  object-fit: contain;
  filter: brightness(1.05);
}

/* Reducir un poco el logo del primer recuadro (izquierda) */
.hc-hoteles-grid .hc-tarjeta:first-child .hc-tarjeta-logo img {
  max-width: 300px;
  max-height: 180px;
}

/* Logo vacío – se muestra sin contenido visible */
.hc-tarjeta-logo-vacia {
  min-height: 130px;
}

/* Barra inferior de acciones */
.hc-tarjeta-acciones {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  background: #1e1e1e;
  border-top: 1px solid #2c2c2c;
}

/* Botón de ubicación (cuadro amarillo con icono) */
.hc-btn-ubicacion {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #e7d818;
  border-radius: 6px;
  transition: background 0.18s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.hc-btn-ubicacion:hover {
  background: #f0e220;
  transform: translateY(-2px);
}

.hc-btn-ubicacion img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  /* El icono_ubicacion ya tiene color oscuro, se ve bien sobre amarillo */
}

/* Botón de flecha (círculo oscuro con flecha blanca) */
.hc-btn-flecha {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #2a2a2a;
  border: 1px solid #3f3f3f;
  border-radius: 50%;
  color: #ffffff;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.hc-btn-flecha:hover {
  background: #383838;
  border-color: rgba(231, 216, 24, 0.7);
  transform: translateY(-2px);
}

.hc-btn-flecha svg {
  display: block;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .hc-hoteles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hc-tarjeta-logo {
    padding: 24px 16px;
  }

  .hc-tarjeta-logo img {
    max-width: 280px;
    max-height: 170px;
  }

  .hc-hoteles-grid .hc-tarjeta:first-child .hc-tarjeta-logo img {
    max-width: 220px;
    max-height: 140px;
  }

  /* Real Plaza requiere un poco mas de ancho para conservar legibilidad */
  .hc-hoteles-grid .hc-tarjeta:nth-child(2) .hc-tarjeta-logo img {
    max-width: 250px;
    max-height: 130px;
  }
}

/* Corregir overflow en pantallas móviles: asegurar que el hero no se salga a la derecha */
@media (max-width: 900px) {
  .pagina-hoteles {
    overflow-x: hidden;
  }

  .hc-hero-contenido {
    padding: 80px 18px 48px;
    gap: 18px;
    column-gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hc-logos {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .hc-titulo-bloque {
    flex: 0 0 100%;
    text-align: center;
  }

  .hc-logos-secundarios {
    justify-content: center;
    gap: 14px;
  }

  .hc-logo-principal,
  .hc-logo-secundario {
    max-width: 100%;
    height: auto;
  }

  .hc-logo-principal {
    width: min(360px, 92vw);
  }

  .hc-logo-secundario {
    max-height: 80px;
    width: auto;
  }
}

@media (max-width: 520px) {
  .hc-hoteles {
    padding: 28px 14px 46px;
  }

  .hc-hoteles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hc-tarjeta-logo {
    padding: 20px 12px;
  }

  .hc-tarjeta-logo img {
    max-width: 220px;
    max-height: 130px;
  }

  .hc-hoteles-grid .hc-tarjeta:first-child .hc-tarjeta-logo img {
    max-width: 190px;
    max-height: 118px;
  }

  .hc-hoteles-grid .hc-tarjeta:nth-child(2) .hc-tarjeta-logo img {
    max-width: 205px;
    max-height: 108px;
  }
}

@media (max-width: 640px) {
  .hc-hero-contenido {
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 18px 36px;
    gap: 28px;
  }

  .hc-titulo-bloque {
    text-align: left;
  }

  .hc-logo-principal {
    width: 200px;
  }

  .hc-hoteles {
    padding: 28px 18px 44px;
  }

  .hc-hoteles-grid {
    grid-template-columns: 1fr;
  }
}