/* =============================================================
   Galorina · Capa de embellecimiento visual (estática)
   Se carga DESPUÉS de style.css y solo mejora el aspecto.
   Sin animaciones de entrada ni modo oscuro. Fácil de revisar.
   ============================================================= */


:root {
  --primary: #003580;
  --primary-dark: #00224f;
  --primary-light: #e1efff;
  --accent: #feba02;

  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #15192b;
  --text-soft: #5a6172;
  --muted: #6b7280;
  --border: #e6eaf1;
  --border-strong: #cfd6e2;
  --hover: #f2f6fc;

  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --ring: rgba(0, 53, 128, 0.28);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.07);
  --shadow-md: 0 6px 18px rgba(16,24,40,.08), 0 2px 6px rgba(16,24,40,.05);
  --shadow-lg: 0 18px 40px rgba(16,24,40,.14);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .section-title { letter-spacing: -0.02em; }

/* Scrollbar fina */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cdd4df; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #aab3c2; }

/* ===== Cabecera con un poco de profundidad ===== */
.site-header { box-shadow: 0 6px 22px rgba(0, 53, 128, .10); }

/* ===== HERO: degradado de marca + brillo de acento ===== */
.hero {
  background: linear-gradient(135deg, #00337d 0%, var(--primary) 45%, #00264f 100%);
  position: relative;
  overflow: hidden;
}
.hero > * { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -80px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(254,186,2,.28), rgba(254,186,2,0) 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -100px; bottom: -140px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10), rgba(255,255,255,0) 70%);
  pointer-events: none;
}
.hero h1 { font-weight: 800; }

/* Tarjeta de búsqueda del hero: elevada y limpia */
.hero-card, .search-box {
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.6);
}

/* ===== Tarjetas ===== */
.card, .panel, .plan-card, .stat-card, .payment-card, .job-card, .history-item, .receipt-preview {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--border) !important;   /* neutraliza el borde negro forzado */
  box-shadow: var(--shadow-sm);
  background: var(--panel);
}
.card { transition: box-shadow .18s ease, border-color .18s ease; }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong) !important; }
.cards-grid { gap: 20px; }

/* Imagen de tarjeta de catálogo: cubre y se redondea arriba */
.card img, .listing-img img, .listing-img {
  object-fit: cover;
}
.listing-row { border-radius: var(--radius-lg) !important; box-shadow: var(--shadow-sm); overflow: hidden; }
.listing-img { border-radius: 0; }

/* ===== Títulos de sección con barra de acento ===== */
.section-title {
  font-weight: 800;
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 46px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), #ffd35e);
}

/* ===== Precio destacado ===== */
.price { color: var(--primary); font-weight: 800; }

/* ===== Botones (más sólidos y con relieve suave) ===== */
.btn {
  border-radius: var(--radius-md);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(16,24,40,.12);
  transition: box-shadow .16s ease, filter .16s ease;
  font-weight: 600;
}
.btn:hover { box-shadow: 0 8px 20px rgba(16,24,40,.18); filter: brightness(1.03); }
.btn:active { box-shadow: 0 2px 8px rgba(16,24,40,.16); filter: brightness(.98); }
/* El botón primario por defecto recibe un degradado de marca */
.btn:not(.outline):not(.ghost):not(.secondary):not(.success):not(.danger):not(.light) {
  background: linear-gradient(135deg, #0042a3, var(--primary));
}
.search-box .btn { box-shadow: 0 8px 22px rgba(0,53,128,.30); }

/* ===== Inputs ===== */
.input, .select, .textarea, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="tel"], select, textarea {
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus,
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ===== Badges / píldoras ===== */
.badge, .op-badge, .payment-badge, .status { border-radius: 999px; font-weight: 600; }

/* ===== Planes: franja de acento arriba ===== */
.plan-card { position: relative; overflow: hidden; }
.plan-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ===== Tablas ===== */
.table thead th { background: var(--hover); }
.table tbody tr:hover { background: var(--hover); }

/* ===== Alertas redondeadas ===== */
.alert { border-radius: var(--radius-md); }

/* ===== Footer con degradado sutil ===== */
.footer { background: linear-gradient(180deg, #00224f, #001834); }

/* =============================================================
   HOME tipo Kayak: secciones por categoría + tarjetas compactas
   ============================================================= */

.home-section { margin: 28px 0 6px; }
.home-section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.home-section-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.see-all { color: var(--primary); font-weight: 700; font-size: 14px; white-space: nowrap; }
.see-all:hover { text-decoration: underline; }

/* Cuadrícula un poco más densa */
.cards-grid { grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 18px; }

/* --- Tarjeta de cuadrícula (Kayak) --- */
.card-media { aspect-ratio: 16 / 11; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,53,128,.92); color: #fff; border: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
}
.card-body { padding: 12px 14px 14px; gap: 3px; }
.card-body h3 {
  margin: 0; font-size: 16px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-sub { color: var(--muted); font-size: 13px; }
.card-rating { font-size: 13px; margin: 2px 0; min-height: 18px; }
.price-from { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.price-unit { font-weight: 600; color: var(--muted); }
.card-body .price { font-size: 19px; margin-top: 4px; line-height: 1.15; }
.card-actions { margin-top: auto; padding-top: 12px; border-top: 0; }
.card-actions .btn { width: 100%; }

/* --- Fila de listado (services.php) compacta, sin huecos --- */
.listing-row { box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.listing-row .listing-img img { width: 100%; height: 100%; object-fit: cover; }
.listing-body h3 { margin: 0; }
.listing-body p { margin: 0; color: var(--text-soft); }
.listing-side .price { font-size: 22px; }

@media (min-width: 769px) {
  .listing-row { grid-template-columns: 250px 1fr 190px; align-items: stretch; }
  .listing-row .listing-img { aspect-ratio: auto; height: 100%; }
  .listing-body { justify-content: center; gap: 7px; padding: 18px 6px; }
  .listing-side { justify-content: center; gap: 14px; }
}

/* =============================================================
   LISTADO con panel de filtros (estilo Booking)
   ============================================================= */
.listing-layout { display: grid; grid-template-columns: 264px 1fr; gap: 22px; align-items: start; margin-top: 16px; }

.filter-panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  position: sticky; top: 84px; overflow: hidden;
}
.fp-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.fp-head strong { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; }
.fp-clear { margin-left: auto; background: none; border: 0; color: var(--primary); font-weight: 600; cursor: pointer; font-size: 13px; }
.fp-close { display: none; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.fp-group { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.fp-group:last-child { border-bottom: 0; }
.fp-title { font-weight: 700; font-size: 13px; margin-bottom: 10px; }
.fp-check { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; cursor: pointer; color: var(--text-soft); }
.fp-check input { width: 17px; height: 17px; accent-color: var(--primary); }
.fp-scroll { max-height: 196px; overflow: auto; padding-right: 4px; }
.fp-price-vals { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }

/* Slider de precio doble */
.fp-range { position: relative; height: 34px; }
.fp-range input[type=range] {
  position: absolute; left: 0; top: 12px; width: 100%; margin: 0;
  -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none;
}
.fp-range input[type=range]::-webkit-slider-runnable-track { height: 4px; background: var(--border); border-radius: 2px; }
.fp-range input[type=range]::-moz-range-track { height: 4px; background: var(--border); border-radius: 2px; }
.fp-range input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.22); cursor: pointer; margin-top: -7px;
}
.fp-range input[type=range]::-moz-range-thumb {
  pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary); cursor: pointer;
}

/* Barra de resultados + orden */
.results-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.results-bar .sort-wrap { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.results-bar .sort-wrap .select { width: auto; min-width: 168px; }
.fp-open { display: none; align-items: center; gap: 7px; }

/* Iconos en la fila */
.lr-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.lr-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 8px; color: var(--text-soft); font-size: 13px; }
.lr-meta-i { display: inline-flex; align-items: center; gap: 5px; }
.gi { flex: 0 0 auto; vertical-align: -2px; }
.mini-pill { display: inline-flex; align-items: center; gap: 4px; }
.mini-pill .gi { color: var(--secondary); }

/* Móvil: el panel se vuelve cajón lateral */
@media (max-width: 900px) {
  .listing-layout { grid-template-columns: 1fr; }
  .fp-open { display: inline-flex; }
  .filter-panel {
    position: fixed; top: 0; left: 0; bottom: 0; width: 86%; max-width: 340px; z-index: 1200;
    border-radius: 0; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto;
    box-shadow: 0 0 50px rgba(0,0,0,.35);
  }
  .filter-panel.open { transform: translateX(0); }
  .fp-close { display: block; }
}

/* Logo del proveedor (suelto, sin círculo) en la tarjeta */
.lr-logo { margin-left: auto; max-height: 26px; max-width: 96px; object-fit: contain; border-radius: 0; background: none; }

/* Bloque superior fijo en el listado: título + buscador + pestañas */
.listing-sticky {
  position: sticky; top: var(--header-h, 64px); z-index: 60;
  background: var(--bg); padding: 12px 0 8px; margin-bottom: 6px;
  box-shadow: 0 10px 16px -12px rgba(16,24,40,.22);
}
.listing-head h1 { margin: 0 0 2px; font-size: 22px; }
.listing-head p { margin: 0 0 10px; }
.listing-sticky .search-box { margin-bottom: 10px; }
.listing-sticky .category-tabs { margin: 0; }
@media (max-width: 900px) { .listing-sticky { position: static; box-shadow: none; } }
