﻿/* ============================================================
   IMPERDIBLES — tours.css
   Estilos del Directorio de Tours y Operadores Locales
   (Hito 3 — Muestra, sin BD)
   ============================================================ */

/* ── BADGE "TOUR DISPONIBLE" sobre la imagen ─────────────── */
.exp-card-tour-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(20, 20, 20, 0.88);
  color: #f5c518;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px 4px 8px;
  border-radius: 20px;
  border: 1px solid rgba(245, 197, 24, 0.4);
  backdrop-filter: blur(6px);
  z-index: 2;
  pointer-events: none;
}

.exp-card-tour-badge svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
  fill: #f5c518;
}

/* ── BLOQUE DE OPERADOR en el footer de la tarjeta ────────── */
.exp-operador-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.exp-operador-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.exp-operador-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: #9e8672;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.exp-operador-nombre {
  font-size: 0.8rem;
  font-weight: 700;
  color: #3b2f24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exp-precio-desde {
  font-size: 0.7rem;
  color: #7a6552;
  white-space: nowrap;
}

.exp-precio-desde strong {
  color: #3b7a3c;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ── BOTÓN WHATSAPP ──────────────────────────────────────── */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #25D366;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 30px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp svg {
  width: 14px;
  height: 14px;
  fill: #fff;
  flex-shrink: 0;
}

/* Cuando la tarjeta tiene operador, darle un sutil borde de acento */
.exp-card.tiene-operador {
  border: 1.5px solid rgba(245, 197, 24, 0.18);
}

.exp-card.tiene-operador:hover {
  border-color: rgba(245, 197, 24, 0.4);
}

/* ── SECCIÓN DIRECTORIO ──────────────────────────────────── */
.section-directorio {
  background: var(--crema-oscura, #f2ede6);
  padding: 56px 0 64px;
}

.directorio-header {
  text-align: center;
  margin-bottom: 40px;
}

.directorio-header .seccion-label {
  display: inline-block;
  background: rgba(200, 121, 58, 0.1);
  color: #C8793A;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 30px;
  border: 1px solid rgba(200, 121, 58, 0.25);
  margin-bottom: 14px;
}

.directorio-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.directorio-header p {
  font-size: 0.95rem;
  color: #6b5e4e;
  max-width: 480px;
  margin: 0 auto;
}

/* Grid de tarjetas de operadores */
.directorio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Tarjeta de operador destacado */
.operador-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1.5px solid rgba(0,0,0,0.05);
}

.operador-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.operador-card-header {
  background: linear-gradient(135deg, #1a2e1a, #2d4a1e);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.operador-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(245, 197, 24, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1.5px solid rgba(245, 197, 24, 0.3);
}

.operador-nombre {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.operador-zona-tag {
  font-size: 0.65rem;
  color: #f5c518;
  font-weight: 600;
  margin-top: 2px;
}

.operador-card-body {
  padding: 16px 20px 20px;
}

.operador-tours-lista {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.operador-tours-lista li {
  font-size: 0.78rem;
  color: #5b4d42;
  padding-left: 16px;
  position: relative;
  line-height: 1.35;
}

.operador-tours-lista li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: #C8793A;
  font-weight: 700;
}

.operador-precio-rango {
  font-size: 0.73rem;
  color: #9e8672;
  margin-bottom: 14px;
}

.operador-precio-rango strong {
  color: #3b7a3c;
  font-size: 0.85rem;
}

.operador-card-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .exp-operador-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-whatsapp {
    width: 100%;
    justify-content: center;
  }
}
