/* =================================================================
   PORTAL TURISMO COMUNITARIO ENCARNACIÓN — CSS COMPLETO
   Fuentes: Playfair Display (títulos) + DM Sans (cuerpo)
   Paleta:  Verde esmeralda + Dorado tropical
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
  /* Verdes */
  --v-900: #0d2218;
  --v-800: #1a3a2a;
  --v-700: #2d6a4f;
  --v-600: #40916c;
  --v-500: #52b788;
  --v-300: #95d5b2;
  --v-200: #b7e4c7;
  --v-100: #d8f3dc;
  --v-50:  #f0faf4;

  /* Dorados */
  --d-700: #7a5c00;
  --d-600: #c9a73a;
  --d-400: #e9c46a;
  --d-100: #fdf3d0;
  --d-50:  #fffbf0;

  /* Neutros */
  --n-900: #1a1814;
  --n-800: #2e2c28;
  --n-600: #5c5a55;
  --n-400: #908e89;
  --n-200: #d4d2cc;
  --n-100: #ebebeb;
  --n-50:  #f7f6f3;
  --blanco: #ffffff;

  /* Semánticos */
  --rojo:     #c0392b;
  --rojo-bg:  #fef2f1;
  --naranja:  #e67e22;
  --naranja-bg: #fff8f0;
  --azul:     #2980b9;
  --azul-bg:  #eff6ff;
  --verde-ok: #27ae60;
  --verde-bg: #f0faf4;

  /* Radios */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Sombras */
  --s-xs: 0 1px 4px rgba(13,34,24,.07);
  --s-sm: 0 2px 10px rgba(13,34,24,.09);
  --s-md: 0 4px 20px rgba(13,34,24,.12);
  --s-lg: 0 8px 36px rgba(13,34,24,.18);

  /* Transición */
  --t: all .22s cubic-bezier(.4,0,.2,1);

  /* Sidebar */
  --sidebar-w: 256px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--n-50);
  color: var(--n-900);
  line-height: 1.6;
  min-height: 100dvh;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
input, select, textarea { outline: none; }

/* ── TIPOGRAFÍA ────────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; color: var(--v-800); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem,  3vw, 2rem);    }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem;  }
p  { color: var(--n-800); }

/* ── UTILIDADES ────────────────────────────────────────────── */
.hidden      { display: none !important; }
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.gap-1  { gap: .5rem; }
.gap-2  { gap: 1rem;  }
.gap-3  { gap: 1.5rem;}
.mt-2   { margin-top: 1rem; }
.mt-3   { margin-top: 1.5rem; }
.mb-2   { margin-bottom: 1rem; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-muted  { color: var(--n-400); font-size: .875rem; }
.text-verde  { color: var(--v-700); }
.text-dorado { color: var(--d-600); }

/* ── BOTONES ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1.35rem; border-radius: var(--r-md);
  font-size: .9rem; font-weight: 500;
  border: 1.5px solid transparent; transition: var(--t);
  white-space: nowrap; line-height: 1.4;
  text-align: center; justify-content: center;
}
.btn:disabled { opacity: .5; pointer-events: none; }

.btn-primary  { background: var(--v-700); color: var(--blanco); border-color: var(--v-700); }
.btn-primary:hover { background: var(--v-800); border-color: var(--v-800); transform: translateY(-1px); box-shadow: var(--s-sm); }

.btn-secondary{ background: transparent; color: var(--v-700); border-color: var(--v-700); }
.btn-secondary:hover { background: var(--v-50); }

.btn-dorado   { background: var(--d-600); color: var(--v-800); border-color: var(--d-600); font-weight: 600; }
.btn-dorado:hover { background: var(--d-400); transform: translateY(-1px); }

.btn-danger   { background: var(--rojo); color: var(--blanco); border-color: var(--rojo); }
.btn-danger:hover { filter: brightness(.9); }

.btn-ghost    { background: transparent; color: var(--n-600); border-color: var(--n-200); }
.btn-ghost:hover  { background: var(--n-100); }

.btn-sm  { padding: .38rem .9rem; font-size: .82rem; border-radius: var(--r-sm); }
.btn-lg  { padding: .8rem 2rem; font-size: 1rem; border-radius: var(--r-lg); }
.btn-block { width: 100%; }

/* ── FORMULARIOS ───────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .85rem; }
.form-label { font-size: .84rem; font-weight: 600; color: var(--n-800); }
.form-label .req { color: var(--rojo); margin-left: 2px; }
.form-control {
  width: 100%; padding: .65rem 1rem;
  border: 1.5px solid var(--n-200); border-radius: var(--r-md);
  background: var(--blanco); color: var(--n-900);
  font-size: .93rem; transition: var(--t);
}
.form-control:focus { border-color: var(--v-500); box-shadow: 0 0 0 3px rgba(82,183,136,.18); }
.form-control::placeholder { color: var(--n-400); }
.form-control.is-error { border-color: var(--rojo); }
.form-hint  { font-size: .78rem; color: var(--n-400); }
.form-error { font-size: .78rem; color: var(--rojo); }
select.form-control {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23908e89' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem;
}
textarea.form-control { resize: vertical; min-height: 90px; }

/* Grid 2 columnas en formularios */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }

/* ── TARJETAS ──────────────────────────────────────────────── */
.card {
  background: var(--blanco); border-radius: var(--r-lg);
  box-shadow: var(--s-xs); border: 1px solid var(--n-100);
  overflow: hidden;
}
.card-header {
  padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--n-100);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.card-header h4 { font-size: 1rem; margin: 0; }
.card-body   { padding: 1.25rem 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--n-100); background: var(--n-50); }

/* ── BADGES ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .65rem; border-radius: var(--r-full);
  font-size: .73rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  white-space: nowrap;
}
.badge-verde   { background: var(--v-100);    color: var(--v-800); }
.badge-dorado  { background: var(--d-100);    color: var(--d-700); }
.badge-azul    { background: var(--azul-bg);  color: #1e3a5f; }
.badge-rojo    { background: var(--rojo-bg);  color: #7a1515; }
.badge-naranja { background: var(--naranja-bg); color: #6b3800; }
.badge-gris    { background: var(--n-100);    color: var(--n-600); }

/* ── ALERTAS ───────────────────────────────────────────────── */
.alert {
  padding: .9rem 1.1rem; border-radius: var(--r-md); border-left: 4px solid;
  display: flex; align-items: flex-start; gap: .7rem; margin-bottom: 1rem; font-size: .9rem;
}
.alert-success { background: var(--verde-bg); border-color: var(--verde-ok); color: #145226; }
.alert-error   { background: var(--rojo-bg);  border-color: var(--rojo);     color: #6b1515; }
.alert-warning { background: var(--naranja-bg); border-color: var(--naranja); color: #6b3800; }
.alert-info    { background: var(--azul-bg);  border-color: var(--azul);     color: #1e3a5f; }
.alert-icon    { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.alert-body    { flex: 1; }
.alert-close   { margin-left: auto; background: none; border: none; cursor: pointer; opacity: .6; font-size: 1.1rem; }
.alert-close:hover { opacity: 1; }

/* ── SPINNER ───────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--v-200); border-top-color: var(--v-700);
  animation: spin .7s linear infinite; flex-shrink: 0;
}
.spinner-lg { width: 44px; height: 44px; border-width: 3.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding: 3rem 1rem; color: var(--n-400);
}

/* ── TOAST ─────────────────────────────────────────────────── */
#toast-wrap {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000;
  display: flex; flex-direction: column; gap: .5rem; pointer-events: none;
}
.toast {
  pointer-events: all; min-width: 260px; max-width: 380px;
  background: var(--v-800); color: var(--blanco);
  padding: .85rem 1.2rem; border-radius: var(--r-md);
  box-shadow: var(--s-lg); font-size: .88rem; line-height: 1.4;
  display: flex; align-items: flex-start; gap: .7rem;
  border-left: 4px solid var(--v-300);
  animation: toastIn .28s ease forwards;
}
.toast.out    { animation: toastOut .28s ease forwards; }
.toast-error  { background: var(--rojo);   border-left-color: #ff9a9a; }
.toast-warn   { background: var(--naranja); border-left-color: var(--d-400); }
.toast-info   { background: var(--azul);   border-left-color: #90caf9; }
.toast-icon   { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.toast-text   { flex: 1; }
@keyframes toastIn  { from { opacity:0; transform:translateX(120%); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0); }   to { opacity:0; transform:translateX(120%); } }

/* ── MODAL ─────────────────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(13,34,24,.6); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .28s;
}
.modal-bg.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--blanco); border-radius: var(--r-xl);
  box-shadow: var(--s-lg); width: 100%; max-width: 540px;
  max-height: 92dvh; overflow-y: auto;
  transform: scale(.95) translateY(24px); transition: transform .28s cubic-bezier(.34,1.56,.64,1);
}
.modal-bg.open .modal { transform: scale(1) translateY(0); }
.modal-lg { max-width: 860px; }
.modal-head {
  padding: 1.4rem 1.75rem; border-bottom: 1px solid var(--n-100);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: sticky; top: 0; background: var(--blanco); z-index: 1;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.modal-head h3  { font-size: 1.15rem; margin: 0; }
.modal-body     { padding: 1.5rem 1.75rem; }
.modal-foot     { padding: 1.1rem 1.75rem; border-top: 1px solid var(--n-100); display: flex; gap: .75rem; justify-content: flex-end; }
.modal-close    { background: none; border: none; color: var(--n-400); font-size: 1.6rem; line-height: 1; transition: var(--t); padding: .1rem; }
.modal-close:hover { color: var(--n-900); }

/* ── TABLA ─────────────────────────────────────────────────── */
.table-wrap  { overflow-x: auto; }
.data-table  { width: 100%; border-collapse: collapse; min-width: 540px; }
.data-table thead th {
  background: var(--n-50); padding: .72rem 1rem;
  font-size: .77rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--n-600); text-align: left; white-space: nowrap;
  border-bottom: 1.5px solid var(--n-100);
}
.data-table tbody td {
  padding: .82rem 1rem; font-size: .88rem;
  border-bottom: 1px solid var(--n-100); vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--v-50); }

/* ── PAGINACIÓN ────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.pag-btn {
  min-width: 36px; height: 36px; padding: 0 .5rem;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--n-200); border-radius: var(--r-sm);
  background: var(--blanco); font-size: .88rem; transition: var(--t); font-weight: 500;
}
.pag-btn:hover:not(:disabled)   { background: var(--v-50); border-color: var(--v-500); color: var(--v-700); }
.pag-btn.active  { background: var(--v-700); color: var(--blanco); border-color: var(--v-700); }
.pag-btn:disabled{ opacity: .4; pointer-events: none; }

/* ── EMPTY STATE ───────────────────────────────────────────── */
.empty-state { padding: 3.5rem 1rem; text-align: center; color: var(--n-400); }
.empty-state .ei { font-size: 3.5rem; margin-bottom: .75rem; opacity: .6; }
.empty-state h4  { color: var(--n-600); margin-bottom: .4rem; }

/* ── ESTRELLAS ─────────────────────────────────────────────── */
.stars-full  { color: var(--d-600); }
.stars-empty { color: var(--n-200); }

/* ════════════════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════════════ */
#page-login {
  min-height: 100dvh;
  display: grid; grid-template-columns: 1fr 1fr;
}

.login-panel-left {
  background: linear-gradient(155deg, var(--v-900) 0%, var(--v-800) 45%, var(--v-700) 100%);
  padding: 2.5rem 3rem; display: flex; flex-direction: column;
  justify-content: space-between; position: relative; overflow: hidden;
}
.login-panel-left::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(255,255,255,.04) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(82,183,136,.1) 0%, transparent 70%);
}
.login-brand .logo-name {
  font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700;
  color: var(--blanco); line-height: 1.1;
}
.login-brand .logo-name em { color: var(--d-400); font-style: normal; }
.login-brand .logo-sub { color: rgba(255,255,255,.55); font-size: .82rem; margin-top: .3rem; }

.login-hero { position: relative; z-index: 1; }
.login-hero h1 { color: var(--blanco); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .85rem; }
.login-hero p  { color: rgba(255,255,255,.75); font-size: .95rem; line-height: 1.65; max-width: 380px; }

.login-features { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .65rem; }
.login-feature  { display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.8); font-size: .88rem; }
.lf-icon { width: 34px; height: 34px; background: rgba(255,255,255,.12); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.login-panel-right {
  background: var(--n-50); display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 2rem;
}
.login-box { width: 100%; max-width: 420px; }
.login-box h2 { margin-bottom: .25rem; }
.login-box .lead { color: var(--n-400); font-size: .9rem; margin-bottom: 1.75rem; }

.login-tabs { display: flex; background: var(--n-100); border-radius: var(--r-md); padding: 4px; margin-bottom: 1.75rem; }
.ltab {
  flex: 1; padding: .58rem; text-align: center; border-radius: var(--r-sm);
  font-size: .88rem; font-weight: 500; color: var(--n-400); transition: var(--t); cursor: pointer;
}
.ltab.active { background: var(--blanco); color: var(--v-800); box-shadow: var(--s-xs); }

.demo-box {
  background: var(--v-50); border: 1px solid var(--v-200); border-radius: var(--r-md);
  padding: .9rem 1rem; margin-bottom: 1.25rem; font-size: .82rem;
}
.demo-box .demo-title { font-weight: 600; color: var(--v-700); margin-bottom: .45rem; font-size: .85rem; }
.demo-row { display: flex; justify-content: space-between; color: var(--n-600); padding: .18rem 0; }
.demo-row strong { color: var(--v-800); }

/* ════════════════════════════════════════════════════════════
   APP LAYOUT
═══════════════════════════════════════════════════════════ */
#page-app { display: none; min-height: 100dvh; }
#page-app.open { display: flex; }

/* ── SIDEBAR ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--v-900); position: fixed; inset-block: 0; left: 0;
  display: flex; flex-direction: column; z-index: 200;
  overflow-y: auto; transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.sb-logo { padding: 1.35rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sb-logo-name { font-family: 'Playfair Display', serif; color: var(--blanco); font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.sb-logo-name em { color: var(--d-400); font-style: normal; }
.sb-logo-sub  { color: rgba(255,255,255,.4); font-size: .73rem; margin-top: .2rem; }

.sb-nav { flex: 1; padding: .85rem 0; }
.sb-section { padding: .45rem 1.25rem; font-size: .68rem; font-weight: 600; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: .1em; margin-top: .65rem; }
.sb-item {
  display: flex; align-items: center; gap: .8rem;
  padding: .68rem 1.25rem; color: rgba(255,255,255,.65); font-size: .88rem;
  cursor: pointer; transition: var(--t); position: relative; user-select: none;
}
.sb-item:hover  { background: rgba(255,255,255,.07); color: var(--blanco); }
.sb-item.active { background: rgba(255,255,255,.1);  color: var(--blanco); }
.sb-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  height: 60%; width: 3px; background: var(--d-400); border-radius: 0 3px 3px 0;
}
.sb-item .si  { width: 20px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.sb-badge { margin-left: auto; background: var(--d-600); color: var(--v-900); font-size: .68rem; font-weight: 700; padding: .1rem .42rem; border-radius: var(--r-full); }

.sb-foot { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.sb-user { display: flex; align-items: center; gap: .75rem; }
.sb-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--v-600); color: var(--blanco); display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; flex-shrink: 0; }
.sb-uname { font-size: .875rem; font-weight: 500; color: var(--blanco); line-height: 1.2; }
.sb-urole { font-size: .73rem; color: rgba(255,255,255,.45); }
#btn-logout-sb { margin-top: .75rem; color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.15); }
#btn-logout-sb:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }

/* ── MAIN ──────────────────────────────────────────────────── */
.main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100dvh; }

/* ── TOPBAR ────────────────────────────────────────────────── */
.topbar {
  height: 60px; position: sticky; top: 0; z-index: 100;
  background: var(--blanco); border-bottom: 1px solid var(--n-100); box-shadow: var(--s-xs);
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.75rem;
  gap: 1rem;
}
.topbar-left  { display: flex; align-items: center; gap: 1rem; }
.topbar-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--v-800); white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: .75rem; }
.topbar-search {
  display: flex; align-items: center; gap: .5rem;
  background: var(--n-50); border: 1.5px solid var(--n-100); border-radius: var(--r-md);
  padding: .42rem .9rem; transition: var(--t);
}
.topbar-search:focus-within { border-color: var(--v-500); background: var(--blanco); }
.topbar-search input { border: none; background: none; font-size: .88rem; width: 180px; color: var(--n-900); }
.topbar-search input::placeholder { color: var(--n-400); }
.topbar-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--v-100); color: var(--v-800); display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 700; cursor: pointer; border: 2px solid var(--v-200); transition: var(--t); }
.topbar-avatar:hover { border-color: var(--v-500); }
#menu-toggle { display: none; background: none; border: none; font-size: 1.35rem; color: var(--n-600); padding: .25rem; }

/* ── PÁGINAS ───────────────────────────────────────────────── */
.content { flex: 1; padding: 1.75rem; }
.page    { display: none; animation: fadeUp .3s ease; }
.page.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

.page-head { margin-bottom: 1.75rem; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.page-head h2    { margin-bottom: .2rem; }
.page-head .sub  { color: var(--n-400); font-size: .88rem; }
.page-actions    { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ════════════════════════════════════════════════════════════
   DASHBOARD
═══════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--blanco); border-radius: var(--r-lg); padding: 1.35rem;
  box-shadow: var(--s-xs); border: 1px solid var(--n-100);
  display: flex; align-items: center; gap: 1rem; transition: var(--t);
}
.stat-card:hover { box-shadow: var(--s-sm); transform: translateY(-2px); }
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.si-green  { background: var(--v-100); }
.si-gold   { background: var(--d-100); }
.si-blue   { background: var(--azul-bg); }
.si-red    { background: var(--rojo-bg); }
.si-orange { background: var(--naranja-bg); }
.stat-info { flex: 1; min-width: 0; }
.stat-val  { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--v-800); line-height: 1; }
.stat-lbl  { font-size: .8rem; color: var(--n-400); margin-top: .25rem; }
.stat-trend { font-size: .77rem; margin-top: .3rem; display: flex; align-items: center; gap: .25rem; }
.trend-up   { color: var(--verde-ok); }
.trend-info { color: var(--azul); }

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; margin-top: 1.25rem; }

/* Gráfico de barras simple */
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 0 .25rem; }
.bar-wrap  { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.bar-val   { font-size: .7rem; color: var(--n-400); font-weight: 500; }
.bar-fill-wrap { flex: 1; display: flex; align-items: flex-end; width: 100%; }
.bar-fill  { width: 100%; background: var(--v-500); border-radius: 4px 4px 0 0; min-height: 4px; transition: height .5s ease; }
.bar-label { font-size: .68rem; color: var(--n-400); text-align: center; }

/* ════════════════════════════════════════════════════════════
   DESTINOS
═══════════════════════════════════════════════════════════ */
.filter-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.fchip {
  padding: .38rem .9rem; border-radius: var(--r-full);
  border: 1.5px solid var(--n-200); background: var(--blanco);
  font-size: .83rem; font-weight: 500; color: var(--n-600); transition: var(--t); cursor: pointer;
}
.fchip:hover  { border-color: var(--v-500); color: var(--v-700); }
.fchip.active { background: var(--v-700); color: var(--blanco); border-color: var(--v-700); }

.destinos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }

.dcard {
  background: var(--blanco); border-radius: var(--r-lg);
  box-shadow: var(--s-xs); border: 1px solid var(--n-100);
  overflow: hidden; cursor: pointer; transition: var(--t);
  display: flex; flex-direction: column;
}
.dcard:hover { box-shadow: var(--s-md); transform: translateY(-4px); }

.dcard-img {
  height: 195px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--v-100), var(--v-300));
  display: flex; align-items: center; justify-content: center;
}
.dcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.dcard:hover .dcard-img img { transform: scale(1.06); }
.dcard-placeholder { font-size: 4rem; }
.dcard-badge   { position: absolute; top: .7rem; left: .7rem; }
.dcard-price   {
  position: absolute; bottom: .7rem; right: .7rem;
  background: rgba(13,34,24,.82); color: var(--d-400);
  font-size: .78rem; font-weight: 600; padding: .28rem .7rem;
  border-radius: var(--r-full); backdrop-filter: blur(6px);
}

.dcard-body { padding: 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.dcard-cat  { font-size: .73rem; font-weight: 600; color: var(--v-600); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.dcard-body h4 { font-size: 1rem; margin-bottom: .35rem; line-height: 1.3; }
.dcard-body p  { font-size: .83rem; color: var(--n-400); flex: 1; line-height: 1.5; }
.dcard-meta { display: flex; align-items: center; justify-content: space-between; margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--n-100); }
.dcard-rating { display: flex; align-items: center; gap: .3rem; font-size: .83rem; font-weight: 500; }
.dcard-loc    { font-size: .78rem; color: var(--n-400); display: flex; align-items: center; gap: .25rem; }

/* Detalle de destino en modal */
.destino-detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; align-items: start; }
.destino-img-big {
  border-radius: var(--r-lg); overflow: hidden; height: 320px;
  background: linear-gradient(135deg, var(--v-100), var(--v-300));
  display: flex; align-items: center; justify-content: center; font-size: 7rem;
}
.destino-img-big img { width: 100%; height: 100%; object-fit: cover; }
.booking-box { background: var(--n-50); border: 1px solid var(--n-100); border-radius: var(--r-lg); padding: 1.5rem; }
.booking-price { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 700; color: var(--v-800); }
.booking-price span { font-size: .9rem; font-weight: 400; color: var(--n-400); font-family: 'DM Sans', sans-serif; }

/* ════════════════════════════════════════════════════════════
   NOTICIAS
═══════════════════════════════════════════════════════════ */
.noticias-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.ncard { background: var(--blanco); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--s-xs); border: 1px solid var(--n-100); transition: var(--t); }
.ncard:hover { box-shadow: var(--s-sm); transform: translateY(-3px); }
.ncard-img { height: 160px; background: linear-gradient(135deg, var(--v-50), var(--v-200)); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.ncard-body { padding: 1.1rem 1.25rem; }
.ncard-top  { display: flex; align-items: center; justify-content: space-between; margin-bottom: .65rem; }
.ncard-date { font-size: .77rem; color: var(--n-400); }
.ncard-body h4 { font-size: .97rem; margin-bottom: .45rem; line-height: 1.35; }
.ncard-body p  { font-size: .83rem; color: var(--n-400); line-height: 1.55; }
.ncard-author  { font-size: .77rem; color: var(--n-400); margin-top: .75rem; }

/* ════════════════════════════════════════════════════════════
   RESERVAS
═══════════════════════════════════════════════════════════ */
.res-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: .35rem; flex-shrink: 0; }
.dot-pendiente  { background: var(--naranja); }
.dot-confirmada { background: var(--verde-ok); }
.dot-cancelada  { background: var(--rojo); }
.dot-completada { background: var(--azul); }

/* ════════════════════════════════════════════════════════════
   MAPA
═══════════════════════════════════════════════════════════ */
.mapa-placeholder {
  height: 420px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; color: var(--v-700); border: 2px dashed var(--v-300);
}
.mapa-placeholder .mi { font-size: 4.5rem; }
.mapa-placeholder h3  { margin: 0; }
.mapa-placeholder p   { font-size: .9rem; color: var(--v-600); text-align: center; }

/* ════════════════════════════════════════════════════════════
   SIDEBAR OVERLAY MOBILE
═══════════════════════════════════════════════════════════ */
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 199; }

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .dash-grid                    { grid-template-columns: 1fr; }
  .destino-detail-grid          { grid-template-columns: 1fr; }
  .destino-img-big              { height: 240px; }
}

@media (max-width: 768px) {
  #page-login                   { grid-template-columns: 1fr; }
  .login-panel-left             { display: none; }
  .login-panel-right            { padding: 2rem 1.25rem; }

  .sidebar                      { transform: translateX(-100%); }
  .sidebar.open                 { transform: translateX(0); }
  .sb-overlay                   { display: block; }
  .main                         { margin-left: 0; }
  #menu-toggle                  { display: block; }
  .topbar                       { padding: 0 1rem; }
  .topbar-search                { display: none; }
  .content                      { padding: 1rem; }
  .stats-grid                   { grid-template-columns: repeat(2, 1fr); }
  .form-row                     { grid-template-columns: 1fr; }
  .modal-lg                     { max-width: 100%; }
  .modal                        { border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal-bg                     { align-items: flex-end; padding: 0; }
}

@media (max-width: 480px) {
  .stats-grid                   { grid-template-columns: 1fr; }
  .page-head-row                { flex-direction: column; align-items: stretch; }
  .destinos-grid                { grid-template-columns: 1fr; }
  .noticias-grid                { grid-template-columns: 1fr; }
  .filter-bar                   { gap: .4rem; }
}

/* ── Scrollbar personalizado ───────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--n-100); }
::-webkit-scrollbar-thumb { background: var(--v-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--v-500); }
