/* Componentes heredados (fichas de hotel, tablas de zonas, botones de Booking...).
   Solo se carga en los artículos que los usan: ver mp_usa_componentes_heredados(). */

.booking-btn {
  display: inline-block;
  background-color: #003580; /* Azul Booking */
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  padding: 14px 24px;
  border-radius: 6px;
  border: 3px solid #ffd166;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
  
  /* Centrado en desktop */
  margin: 0 auto;
  margin-bottom:20px;
  display: block;
  max-width: 320px;
}

.booking-btn:hover {
  text-decoration: underline;
  color: #fff;
  transform: translateY(-2px);
}

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

/* Versión sticky solo en mobile */
@media (max-width: 78px) {
  .booking-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    font-size: 18px;
    padding: 16px;
    z-index: 9999;
    border: 4px solid #ffd166;
    max-width: none; /* Ocupa todo el ancho */
    margin: 0; /* Sin márgenes en mobile */
  }
}


/* ===== Paleta editable ===== */
:root {
  --brand: #003580;         /* Color principal */
  --brand-ink: #0b132b;     /* Texto titular */
  --accent: #ffd166;        /* Acento */
  --bg: #ffffff;            /* Fondo */
  --muted: #f3f6fb;         /* Filas alternas */
  --border: #e2e8f0;        /* Bordes */
}

/* ===== Titular opcional (el <h2> de la tabla) ===== */
#zones-title {
  margin: 0 0 14px;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--brand-ink);
}

/* ===== Tabla de zonas ===== */
.zones-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* Caption discreto y accesible */
.zones-table caption {
  text-align: left;
  font-size: 0.95rem;
  color: #5b6b82;
  padding: 12px 12px 0;
}

/* Encabezado destacado */
.zones-table thead th {
  background: linear-gradient(180deg, var(--brand) 0%, #002a62 100%);
  color: #fff;
  text-align: left;
  font-weight: 700;
  padding: 14px 16px;
  font-size: 1rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.zones-table thead th:last-child { border-right: none; }

/* Celdas */
.zones-table th[scope="row"],
.zones-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  color: var(--brand-ink);
}

.zones-table th[scope="row"] {
  font-weight: 700;
  white-space: nowrap;
}

.zones-table tbody tr:nth-child(odd) {
  background: var(--muted);
}

/* Hover (solo desktop con puntero) */
@media (hover: hover) {
  .zones-table tbody tr {
    position: relative;
    transition: background-color 0.2s ease;
  }
  .zones-table tbody tr:hover { background: #edf2ff; }
  .zones-table tbody tr:hover th[scope="row"]::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--accent);
  }
}

/* ===== Responsive: en móvil se transforma en “cards” ===== */
@media (max-width: 768px) {
  .zones-table thead { display: none; }

  .zones-table,
  .zones-table tbody,
  .zones-table tr,
  .zones-table th[scope="row"],
  .zones-table td {
    display: block;
    width: 100%;
  }

  .zones-table tbody tr {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
    padding: 8px 0;
  }

  .zones-table th[scope="row"] {
    border-bottom: 1px dashed var(--border);
    margin: 0 12px 6px;
    padding: 12px 12px 8px;
    font-size: 1.05rem;
  }

  .zones-table td {
    border: 0;
    padding: 8px 12px;
    margin: 0 0 4px;
    position: relative;
  }

  .zones-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 1 rem;
    color: #64748b;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
  }
}

/* ===== Mini leyenda ===== */
.zones-legend {
  margin-top: 16px;
  padding: 14px 16px;
  background: #fef9e7;              /* Amarillo muy suave */
  border-left: 4px solid var(--accent);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--brand-ink);
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.03);
}

.zones-legend strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-weight: 700;
}

/* ===== Accesibilidad: alto contraste (opcional) ===== */
@media (prefers-contrast: more) {
  .zones-table thead th { background: #000; }
  .zones-table tbody tr:hover { background: #e6f0ff; }
}


/* ===== Titular (opcional) ===== */
#hotels-title {
  margin: 28px 0 14px;
  font-size: 1.35rem;
  color: var(--brand-ink);
}

/* ===== Tabla de hoteles ===== */
.hotels-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.hotels-table caption {
  text-align: left;
  font-size: 1rem;
  color: #5b6b82;
  padding: 12px 12px 0;
}

.hotels-table thead th {
  background: linear-gradient(180deg, var(--brand) 0%, #002a62 100%);
  color: #fff;
  text-align: left;
  font-weight: 700;
  padding: 14px 16px;
  font-size: 1rem;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.hotels-table thead th:last-child { border-right: none; }
.hotels-table thead .col-cta { text-align: right; }

/* Celdas */
.hotels-table td,
.hotels-table th[scope="row"] {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 1rem;
  color: var(--brand-ink);
}

.hotels-table tbody tr:nth-child(odd) {
  background: var(--muted);
}

/* Columna CTA */
.hotels-table .cell-cta {
  text-align: right;
  white-space: nowrap;
}

/* Botón CTA */
.booking-cta {
  display: inline-block;
  background-color: #003580;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 12px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.25s ease, transform 0.18s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.booking-cta:hover { background-color: #002a62; transform: translateY(-1px); }
.booking-cta:active { transform: translateY(0); }

/* ===== Hover por fila (desktop) ===== */
@media (hover: hover) {
  .hotels-table tbody tr { transition: background-color 0.2s ease; }
  .hotels-table tbody tr:hover { background: #edf2ff; }
}

/* ===== Responsive: cards en móvil ===== */
@media (max-width: 768px) {
  .hotels-table thead { display: none; }

  .hotels-table,
  .hotels-table tbody,
  .hotels-table tr,
  .hotels-table td,
  .hotels-table th[scope="row"] {
    display: block;
    width: 100%;
  }

  .hotels-table tbody tr {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 10px 0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
    padding: 10px 0;
  }

  .hotels-table td,
  .hotels-table th[scope="row"] {
    border: 0;
    padding: 10px 14px;
    position: relative;
  }

  .hotels-table td::before,
  .hotels-table th[scope="row"]::before {
    content: attr(data-label);
    display: block;
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 4px;
  }

  /* Hotel como título del card */
  .hotels-table th[scope="row"] {
    font-size: 1.05rem;
    font-weight: 700;
    padding-top: 12px;
  }
  .hotels-table th[scope="row"]::before { content: "Hotel"; }

  /* Zona primero en el card */
  .hotels-table td[data-label="Zona"] {
    order: -1;
    font-weight: 600;
    color: var(--brand);
  }

  /* CTA full width en móvil */
  .hotels-table .cell-cta {
    text-align: left;
    padding: 12px 14px 16px;
  }
  .booking-cta {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 16px;
    padding: 14px;
  }
}

.anchor-btn {
  display: inline-block;
  background: var(--accent);
  white-space: nowrap; /* evita salto de línea */
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease;
}

.anchor-btn:hover {
  background: #ffc94d;
  transform: translateY(-1px);
}

@media (min-width: 769px) {
  .zones-table thead th:nth-child(3),
  .zones-table tbody td:nth-child(3) {
    width: 35%; /* prueba con 30–35% */
  }
}

.zones-table td,
.zones-table th {
  vertical-align: middle;
}


.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.chip {
  background: #f1f5f9;        /* gris muy claro */
  color: #0f172a;             /* texto oscuro */
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  white-space: nowrap;
}

/* Variantes */
.chip.score {
  background: #fef3c7;   /* amarillo claro */
  color: #92400e;        /* marrón tostado */
}

.chip.reviews {
  background: #e2e8f0;   /* gris suave */
  color: #1e293b;
}

.chip.price {
  background: #dcfce7;   /* verde claro */
  color: #065f46;
  font-weight: 600;
}

.chip.extra {
  background: #f1f5f9;   /* gris muy claro */
  color: #334155;
}

.star {
  color: #f59e0b;        /* ámbar */
  font-size: 16px;
}

.toggle-button {
  background-color: white;
  color:black;
}

.more-info {
  text-align:center;
}

h5 {
  margin-bottom: 5px;
}

h5.hotel-title.minimal {
font-size: 22px;
font-weight: 700;
color: #1e3a8a;
margin: 0 0 10px;
}

p.frasehotel {
  margin-bottom: 0.5em;
}

.bullets { list-style: none; padding: 0; margin: 14px 0 18px; }
.bullets li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; font-size: 15px; line-height: 1.4; }
.bullets li:last-child { margin-bottom: 0; }
.icon { color: #16a34a; font-weight: bold; font-size: 16px; line-height: 1; margin-top: 2px; }

span.frasesclave {
  font-size:18px;
}

.hotel-card {
  border: 3px solid #bfbfbf;
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
}

ul.bullets li::before {

}

.btn-hoteles {
  display: inline-block;
  background-color: #004080; /* azul corporativo */
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.btn-hoteles:hover {
  background-color: #0059b3; /* azul más claro al pasar el ratón */
}

.btn-container {
  text-align: center; /* centra el botón en el contenedor */
  margin: 25px auto;     /* separa el botón de otros elementos */
}


.hotel-item {
  background: white;
  border-radius: 6px;
  margin-bottom: 18px;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease;
}

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

.hotel-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


.hotel-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}



.hotel-slider:hover .slider-btn {
    opacity: 1;
}

.hotel-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.slider-image.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 36px;
    height: 60px;
    border-radius: 4px;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.7);
}


.hotel-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.9);
}

.slider-btn.prev {
    left: 8px;
}

.slider-btn.next {
    right: 8px;
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}


@media (min-width: 768px) {
    .hotel-container {
        flex-direction: row;
        gap: 20px;
    }
    
    .hotel-slider {
        flex: 0 0 40%;
        max-width: 400px;
    }
    
    .hotel-content {
        flex: 1;
    }
}


.hotel-titledos {
  color: #1e293b;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  padding-left:15 px;
  display: flex;
  align-items: center;
}

.hotel-number {
  background: #3b82f6;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 10px;
  margin-left: 15px;
  flex-shrink: 0;
}


.hotel-description {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-left: 15px;
}


        .hotel-link {
            color: #3b82f6;
            text-decoration: none;
            font-size: 16px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            padding-left: 15px;
            margin-bottom: 15px;
            transition: color 0.2s ease;
        }

        .hotel-link:hover {
            color: #2563eb;
            text-decoration: underline;
        }

        .hotel-link::before {
            content: '👉';
            margin-right: 6px;
            font-size: 0.9rem;
        }



.tabla-mejor-epoca { width: 100%; border-collapse: collapse; }

@media (max-width: 640px) {
  .tabla-mejor-epoca thead { display: none; }
  .tabla-mejor-epoca,
  .tabla-mejor-epoca tbody,
  .tabla-mejor-epoca tr,
  .tabla-mejor-epoca td { display: block; width: 100%; }
  .tabla-mejor-epoca tr {
    margin-bottom: 1.2rem;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: .6rem .8rem;
  }
  .tabla-mejor-epoca td { border: none; padding: .25rem 0; }
  .tabla-mejor-epoca td:first-child {
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
    margin-bottom: .4rem;
  }
  .tabla-mejor-epoca td:not(:first-child)::before {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .6;
  }
  .tabla-mejor-epoca td:nth-child(2)::before { content: "Temperatura"; }
  .tabla-mejor-epoca td:nth-child(3)::before { content: "Lluvia"; }
  .tabla-mejor-epoca td:nth-child(4)::before { content: "Precio"; }
  .tabla-mejor-epoca td:nth-child(5)::before { content: "Masificación"; }
  .tabla-mejor-epoca td:nth-child(6)::before { content: "Veredicto"; }
}
/* ==========================================================================
   Ajuste al diseño nuevo (MP 2.0): mismos componentes, colores y bordes del sistema.
   ========================================================================== */
.hotel-card { border: 1px solid var(--mp-linea); border-radius: var(--mp-radio); padding: 18px; box-shadow: 0 10px 30px -24px rgba(16, 28, 27, .45); }
.hotel-card img { border-radius: var(--mp-radio-s); }
h5.hotel-title.minimal, .hotel-titledos { font-family: var(--mp-titulos); color: var(--mp-tinta); }
.chips { gap: 6px; }
.chip { background: var(--mp-fondo-suave); color: var(--mp-tinta); font-size: 14px; font-weight: 700; padding: 6px 12px; }
.chip .star { color: #E0A100; }
.toggle-button { background: transparent; color: var(--mp-abeto); padding: 8px 0; min-height: 44px; font-size: 15px; }
.toggle-button:hover { background: transparent; color: var(--mp-abeto-oscuro); }
.zones-table { border-radius: var(--mp-radio); }
.zones-table thead th { background: var(--mp-abeto); }
.zones-table tbody tr:nth-child(odd) { background: var(--mp-fondo-suave); }
.anchor-btn { background: var(--mp-rotulador); color: var(--mp-tinta); border-radius: 999px; font-weight: 800; min-height: 40px; display: inline-flex; align-items: center; }
.anchor-btn:hover { background: #FFC999; color: var(--mp-tinta); }
.booking-btn { border-radius: 999px; border-width: 2px; min-height: 48px; }
