:root{
  --brand:#2563eb; /* azul */
  --bg-soft:#f8fafc;
  --search-overlap: 88px;
}
body{ font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif; }
/* Sticky footer: en páginas cortas el footer queda al fondo del viewport;
   con contenido largo se comporta normal (el respiro lo dan los my-5 del contenido) */
html{ height: 100%; }
body{ min-height: 100vh; display: flex; flex-direction: column; }
.site-footer{ margin-top: auto; }
/* =========================================
   Tarjetas de viajes relacionados/sugeridos
   (spec AgentUI — /trips/{id} y blog post)
   ========================================= */
.trip-related-card{
  display: flex; align-items: center; gap: .85rem;
  height: 100%;
  padding: .75rem .9rem;
  border-radius: .9rem;
  color: inherit;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid #e8edf5;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 24px -14px rgba(15,23,42,.10);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.trip-related-card:hover{
  color: inherit; text-decoration: none;
  transform: translateY(-2px);
  border-color: #dbe6f7;
  box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 18px 36px -14px rgba(15,23,42,.16);
}

/* Thumb: gradiente de marca + inicial = fallback de diseño, no error */
.trip-card-thumb{
  position: relative;
  width: 64px; height: 64px; flex: 0 0 64px;
  border-radius: .65rem;
  overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #6d28d9);
}
.trip-card-initial{
  color: #fff; font-weight: 800; font-size: 1.35rem;
  letter-spacing: -.02em; opacity: .9; user-select: none;
}
.trip-card-img{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity .35s ease, transform .45s ease;
}
.trip-card-img.is-loaded{ opacity: 1; }
.trip-related-card:hover .trip-card-img{ transform: scale(1.06); }

/* Cuerpo */
.trip-card-body{
  min-width: 0; flex: 1 1 auto;
  display: flex; flex-direction: column; gap: .2rem;
}
.trip-card-title{
  font-weight: 700; font-size: .95rem; letter-spacing: -.01em;
  line-height: 1.3; color: #0f172a;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .15s ease;
}
.trip-related-card:hover .trip-card-title{ color: #1d4ed8; }
.trip-card-meta{
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .8rem; color: #64748b;
}
.trip-card-meta i{ color: #94a3b8; }

/* Affordance "ver" */
.trip-card-arrow{
  flex-shrink: 0; color: #cbd5e1; font-size: 1rem;
  transition: transform .16s ease, color .15s ease;
}
.trip-related-card:hover .trip-card-arrow{ color: #2563eb; transform: translateX(3px); }

@media (prefers-reduced-motion: reduce){
  .trip-related-card, .trip-card-img, .trip-card-arrow{ transition: none; }
  .trip-related-card:hover{ transform: none; }
  .trip-related-card:hover .trip-card-img{ transform: none; }
}
a{ text-decoration: none; }
a:hover{ text-decoration: underline; }
/* Tamaño y estilo */
.flag{
  display:inline-block;
  width:20px; height:14px;
  border-radius:2px;
  background-size:cover;
  box-shadow:0 0 0 1px rgba(0,0,0,.06) inset;
}

/* ES (rojo-amarillo-rojo) */
.flag-es{
  background-image: url("data:image/svg+xml;utf8,\
	<svg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'>\
	  <rect width='20' height='14' fill='%23c1121f'/>\
	  <rect y='3' width='20' height='8' fill='%23f6c400'/>\
	</svg>");
	}

/* EN: Union Jack simplificado (neutral para “EN”) */
.flag-en{
  background-image: url(\"data:image/svg+xml;utf8,\
	<svg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'>\
	  <rect width='20' height='14' fill='%231b2a6b'/>\
	  <g fill='none' stroke-width='2'>\
		<path stroke='%23ffffff' d='M0,0 L20,14 M20,0 L0,14'/>\
		<path stroke='%23c1121f' d='M0,-1 L21,15 M21,-1 L0,15'/>\
	  </g>\
	  <rect x='8' width='4' height='14' fill='%23ffffff'/>\
	  <rect y='5' width='20' height='4' fill='%23ffffff'/>\
	  <rect x='9' width='2' height='14' fill='%23c1121f'/>\
	  <rect y='6' width='20' height='2' fill='%23c1121f'/>\
	</svg>\");
	}
.flag-globe{
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 24 24' fill='none' stroke='%231b2a6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
  <circle cx='12' cy='12' r='10'/>\
  <path d='M2 12h20M12 2c3 4 3 16 0 20M12 2c-3 4-3 16 0 20'/>\
</svg>");
}
.title-k {
  font-family: var(--tg-ff-segoepr, "Segoe Print", cursive, sans-serif);
  color: #6d28d9;
  font-weight: 900;
  letter-spacing: 0.3px;
  font-size: 1.50rem;
  margin-bottom: 0.25rem;
  text-transform: capitalize;
}
/* Opcional: mismo look “pill” del resto del menú */
.navbar .nav-link.pill .lang-code{ font-weight:600; letter-spacing:.3px; }


/* HERO: altura más contenida */
.hero{
  position: relative;
  padding-bottom: calc(2rem + var(--search-overlap)); /* deja hueco para el solape */
  margin-bottom: 0;                                    /* <- clave: sin margen negativo */
  z-index: 2;
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit:cover;
}
.hero-overlay{
  position:absolute; inset:0; z-index:1;
  background: linear-gradient(180deg, rgba(22,39,72,.62), rgba(22,39,72,.62));
}
.hero-content{
  position:relative; z-index:2;
  min-height:52vh;
  display:flex; align-items:center; justify-content:center;
  text-align:center; color:#fff; padding:3rem 1rem;
}

/* --- NUEVO: sección inmediatamente después del hero --- */
.section-after-hero{
  position: relative;
  z-index: 3;              /* por encima del hero */
  margin-top: -2.25rem;    /* solape elegante sobre la foto */
}
@media (max-width: 991.98px){
  .section-after-hero{ margin-top: 1rem; } /* en móvil sin solape grande */
}
.hero::after{ content:none; }

/* tarjeta del buscador tal cual, solo estética */
.search-card{
  position: relative;
  z-index: 3;
  border-radius: .75rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}
.navbar .navbar-nav { gap: .5rem; }             /* espacio entre pills */

.navbar .nav-link.pill{
  display:inline-flex; align-items:center; gap:.45rem;
  padding:.55rem 1rem; border:1px solid #e5e7eb; border-radius:999px;
  background:#fff; color:#1f2937; font-weight:500; line-height:1;
  transition:all .18s ease;
}
.navbar .nav-link.pill:hover{ border-color:#d1d5db; box-shadow:0 2px 6px rgba(0,0,0,.06); text-decoration:none; }
.navbar .nav-link.pill.active,
.navbar .nav-link.pill[aria-current="page"]{
  color:#1d4ed8; background:rgba(29,78,216,.08); border-color:rgba(29,78,216,.25);
}
@media (max-width:991.98px){ .navbar .nav-link.pill{ padding:.5rem .85rem; } }

/* ==== Navbar: LIGHT (default) ==== */
html:not([data-theme="dark"]) .navbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(6px);
  -webkit-backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid #eef2f7;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  z-index: 1000;
}
html:not([data-theme="dark"]) .navbar .navbar-brand,
html:not([data-theme="dark"]) .navbar .navbar-brand span,
html:not([data-theme="dark"]) .navbar .nav-link:not(.pill) { color:#0f172a; }
html:not([data-theme="dark"]) .navbar .nav-link:hover { color:#111827; }

/* Pills en LIGHT */
html:not([data-theme="dark"]) .navbar .nav-link.pill{
  background:#fff;
  border:1px solid #e5e7eb;
  color:#111827;
  border-radius:999px; padding:.5rem .9rem;
  transition: border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
html:not([data-theme="dark"]) .navbar .nav-link.pill:hover{
  border-color:#d1d5db; box-shadow:0 2px 8px rgba(0,0,0,.06);
}
html:not([data-theme="dark"]) .navbar .nav-link.pill.active,
html:not([data-theme="dark"]) .navbar .nav-link.pill[aria-current="page"]{
  color:#2563eb; background:rgba(37,99,235,.08); border-color:rgba(37,99,235,.35);
}

/* Dropdown LIGHT */
html:not([data-theme="dark"]) .navbar .dropdown-toggle::after{ border-top-color:#374151; }
html:not([data-theme="dark"]) .navbar .dropdown-menu{
  background:#fff; border:1px solid #e5e7eb; box-shadow:0 10px 24px rgba(0,0,0,.08);
}
html:not([data-theme="dark"]) .navbar .dropdown-item{ color:#111827; }
html:not([data-theme="dark"]) .navbar .dropdown-item:hover{ background:#f3f4f6; }

/* Botón luna LIGHT */
html:not([data-theme="dark"]) .nav-link.pill[data-action="toggle-theme"] i{ color:#111827; }
html:not([data-theme="dark"]) .nav-link.pill[data-action="toggle-theme"]:hover i{ color:#2563eb; }
/* ===== Blog Section Head ===== */
.blog-section .section-head{
  max-width: 920px;
  margin: 0 auto 1.75rem auto;
}
.blog-section .section-title{
  margin: 0 0 .35rem 0;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  font-size: clamp(1.8rem, 2.2vw + 1rem, 2.35rem);
  text-align: center;
}
.blog-section .section-subtitle{
  text-align: center;
  color: #6b7280;
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(.95rem, .35vw + .85rem, 1.05rem);
}

/* Kicker (eyebrow) — mismo patrón que el de Destinos */
.blog-section .section-kicker{
  font-family: var(--tg-ff-segoepr, "Segoe Print", cursive, sans-serif);
  color:#6d28d9; font-weight:600; letter-spacing:.3px;
  font-size:.95rem; margin-bottom:.25rem;
}

/* ===== Blog Card (spec AgentUI) ===== */
.blog-card{
  position: relative;                /* ancla del stretched-link */
  display: flex; flex-direction: column;
  border: 1px solid #e8edf5;
  border-radius: .9rem;
  background: linear-gradient(180deg,#ffffff 0%,#fcfdff 100%);
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 24px -14px rgba(15,23,42,.10);
  transition: transform .2s cubic-bezier(.22,.85,.35,1),
              box-shadow .2s cubic-bezier(.22,.85,.35,1),
              border-color .2s ease;
}
.blog-card:hover{
  transform: translateY(-4px);
  border-color: #dbe6f7;
  box-shadow: 0 2px 4px rgba(15,23,42,.05), 0 18px 40px -14px rgba(15,23,42,.16);
}

/* Thumbnail con borde interior */
.blog-thumb{
  position: relative;
  border-radius: .65rem;
  overflow: hidden;
  margin: .9rem .9rem 0;
  aspect-ratio: 16 / 9;
  background: #111;
}
.blog-thumb img{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .35s ease, transform .45s cubic-bezier(.22,.85,.35,1);
}
.blog-card:hover .blog-thumb img{ transform: scale(1.05); }
.blog-thumb::before{
  content:""; position:absolute; inset:10px; z-index:2;   /* sobre la foto */
  border-radius:.5rem;
  border:1px solid rgba(255,255,255,.25);
  box-shadow: inset 0 0 6px rgba(255,255,255,.08);
  pointer-events:none;
}

/* Fallback de marca (sin featured_image): gradiente + inicial = diseño, no error.
   Si el post lleva itinerario, JS lo hidrata con la foto del destino (data-city-thumb). */
.blog-thumb--fallback{
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  display: grid; place-items: center;
}
.blog-thumb-initial{
  color:#fff; font-weight:800; font-size:2.6rem;
  letter-spacing:-.02em; opacity:.92; user-select:none;
}

/* Badge categoría */
.blog-badge{
  position:absolute; top:.75rem; left:.75rem; z-index:3;
  background:#6d28d9; color:#fff; font-weight:700;
  font-size:.75rem; padding:.25rem .55rem; border-radius:.5rem;
  box-shadow:0 6px 14px rgba(109,40,217,.35);
}

/* Body */
.blog-body{
  display:flex; flex-direction:column; flex:1 1 auto;
  padding: 1rem 1.1rem 1.1rem;
}
.blog-meta li{ display:flex; align-items:center; color:#64748b; }
.blog-meta li i{ color:#94a3b8; }
.blog-title{
  font-size: 1.15rem; font-weight: 800; line-height: 1.25;
  margin: .25rem 0 0; color: #0f172a;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.blog-title a{ color: inherit; text-decoration: none; transition: color .15s ease; }
.blog-title a:hover{ color:#1d4ed8; text-decoration: none; }
.blog-excerpt{
  margin:.45rem 0 0;
  font-size:.875rem; line-height:1.55; color:#64748b;
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}

/* Pie: chip de itinerario + affordance leer más */
.blog-card-foot{
  margin-top:auto; padding-top:.85rem;
  display:flex; align-items:center; gap:.6rem;
}
.blog-chip{
  display:inline-flex; align-items:center; gap:.35rem;
  font-size:.78rem; font-weight:700;
  padding:.28rem .6rem; border-radius:999px;
  color:#1d4ed8; background:rgba(37,99,235,.08); border:1px solid rgba(37,99,235,.18);
}
.blog-readmore{
  margin-left:auto; display:inline-flex; align-items:center; gap:.3rem;
  font-size:.83rem; font-weight:600; color:#94a3b8;
  transition: color .15s ease;
}
.blog-readmore i{ transition: transform .16s ease; }
.blog-card:hover .blog-readmore{ color:#2563eb; }
.blog-card:hover .blog-readmore i{ transform: translateX(3px); }

/* CTA (alineado al azul de marca, no al primary de Bootstrap) */
.blog-cta{
  --bs-btn-color:#2563eb; --bs-btn-border-color:#d5e2fb;
  --bs-btn-hover-color:#fff; --bs-btn-hover-bg:#2563eb; --bs-btn-hover-border-color:#2563eb;
  --bs-btn-active-bg:#1d4ed8; --bs-btn-active-border-color:#1d4ed8;
}

/* Destacada (cuando solo hay 1 post): horizontal, sin huérfanos */
@media (min-width: 768px){
  .blog-card--featured{ flex-direction: row; }
  .blog-card--featured .blog-thumb{
    flex: 0 0 44%; width: 44%;
    aspect-ratio: auto; min-height: 250px;
    margin: .9rem 0 .9rem .9rem;
  }
  .blog-card--featured .blog-body{ padding: 1.35rem 1.5rem; }
  .blog-card--featured .blog-title{ font-size: 1.4rem; }
  .blog-card--featured .blog-excerpt{ -webkit-line-clamp: 4; }
}

@media (prefers-reduced-motion: reduce){
  .blog-card, .blog-thumb img, .blog-readmore i{ transition: none; }
  .blog-card:hover{ transform: none; }
  .blog-card:hover .blog-thumb img{ transform: none; }
}

/* Footer links */
footer a{ color: inherit; }
footer a:hover{ color: var(--brand); }

/* ===== Footer base ===== */
.site-footer{
  color:#cbd5e1;
  background:#0b1220;                 /* oscuro elegante */
  font-size: .95rem;
}

/* Bloque principal */
.site-footer .footer-main a{ color:#e5e7eb; text-decoration:none; }
.site-footer .footer-main a:hover{ color:#fff; }

.site-footer .footer-main .text-secondary{ color:#94a3b8 !important; }

.footer-brand{ color:#fff; font-weight:800; letter-spacing:.2px; }
.footer-logo{
  display:inline-grid; place-items:center;
  width:28px; height:28px; border-radius:8px;
  background:#1e293b; color:#60a5fa; font-size:16px;
}

/* Links alineados a la derecha en desktop */
.footer-nav .list-inline-item{ margin-left:.75rem; }
.footer-nav .list-inline-item:first-child{ margin-left:0; }
.footer-nav a{
  display:inline-block; padding:.25rem .35rem;
  border-radius:.35rem; transition:color .15s ease, background-color .15s ease;
}
.footer-nav a:hover{ background:rgba(255,255,255,.06); }

/* ===== Franja inferior ===== */
.footer-bottom{
  background:#0a0f1a;
}

/* Línea centrada que NO ocupa todo el ancho */
.footer-bottom::before{
  content:"";
  position:absolute; left:50%; top:0; transform:translateX(-50%);
  width: calc(100% - 2rem);          /* margen lateral */
  max-width: 1140px;                 /* no toma todo el ancho en pantallas grandes */
  height:1px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 20%, rgba(255,255,255,.08) 80%, rgba(255,255,255,0) 100%);
  pointer-events:none;
}

/* Tipografía más tenue */
.site-footer small, .site-footer .text-secondary{ color:#94a3b8; }

/* Responsive */
@media (max-width: 575.98px){
  .footer-nav{ text-align:left; }
  .footer-nav .list-inline-item{ margin:0 .75rem .25rem 0; }
}
/* Landmarks laterales en el footer */
.site-footer{ position: relative; overflow: hidden; }

:root{
  --footer-accent: #6d28d9; /* morado brand */
}

.footer-landmarks{
  position: absolute;
  bottom: .35rem;        /* súbelo/bájalo a gusto */
  display: flex;
  gap: 14px;             /* separación entre íconos */
  pointer-events: none;  /* no bloquea clics */
  opacity: .18;          /* intensidad general */
  color: var(--footer-accent);
  font-size: clamp(22px, 3.2vw, 46px);
  line-height: 1;
  text-shadow: 0 0 12px rgba(109,40,217,.15); /* glow sutil */
}

/* alineación a izquierda/derecha */
.footer-landmarks-left{  left: .75rem; }
.footer-landmarks-right{ right: .75rem; }

/* estilo “line art”: contorno fino */
.footer-landmarks i {
  color: var(--footer-accent);
  text-shadow:
    0 0 4px rgba(109,40,217,.25),
    0 0 8px rgba(109,40,217,.15);
}

/* peinar alturas para una silueta más orgánica */
.footer-landmarks i:nth-child(2){ transform: translateY(2px);  }
.footer-landmarks i:nth-child(3){ transform: translateY(-4px); }
.footer-landmarks i:nth-child(4){ transform: translateY(1px);  }
.footer-landmarks i:nth-child(5){ transform: translateY(-3px); }
.footer-landmarks i:nth-child(6){ transform: translateY(0);    }

/* Responsive: suaviza en pantallas pequeñas */
@media (max-width: 576px){
  .footer-landmarks{ opacity:.14; gap:10px; font-size: clamp(18px, 4vw, 24px); }
  .footer-landmarks-left{  left: .5rem; }
  .footer-landmarks-right{ right: .5rem; }
}

/* =========================================
   Login popover (navbar) — ventanita premium
   (spec AgentUI)
   ========================================= */
.navbar .dropdown-menu.login-pop{
  width: 312px;
  padding: 1rem 1.1rem 1.1rem;
  border-radius: .9rem;
  margin-top: .55rem;
  transform-origin: top right;
}
html:not([data-theme="dark"]) .navbar .dropdown-menu.login-pop{
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid #e6eaf2;
  box-shadow:
    0 1px 2px rgba(15,23,42,.05),
    0 18px 44px -10px rgba(15,23,42,.18),
    inset 0 1px 0 rgba(255,255,255,.85);
}
.navbar .dropdown-menu.login-pop.show{
  animation: loginPopIn .18s cubic-bezier(.22,.85,.35,1);
}
@keyframes loginPopIn{
  from{ opacity: 0; transform: translateY(-6px) scale(.985); }
  to  { opacity: 1; transform: translateY(0)    scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .navbar .dropdown-menu.login-pop.show{ animation: none; }
}
.login-pop-title{
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #0f172a;
}
.login-pop-expand{
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: .5rem;
  color: #94a3b8;
  font-size: .85rem;
  transition: color .15s ease, background-color .15s ease, transform .15s ease;
}
.login-pop-expand:hover,
.login-pop-expand:focus-visible{
  color: #2563eb;
  background: rgba(37,99,235,.08);
  transform: scale(1.08);
  text-decoration: none;
}
.login-pop .form-control-sm{
  padding: .5rem .7rem;
  border-radius: .55rem;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.login-pop .form-control-sm::placeholder{ color: #9aa6b5; }
.login-pop .form-control-sm:focus{
  background: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 0 .25rem rgba(37,99,235,.12);
}
.login-pop .btn-sm{ border-radius: .55rem; font-weight: 600; }
.login-pop .btn-outline-secondary{ color: #475569; border-color: #e2e8f0; }
.login-pop .btn-outline-secondary:hover{
  color: #1f2937; background: #f1f5f9; border-color: #cbd5e1;
}
.login-pop .btn-primary{
  background: #2563eb; border-color: #2563eb;
  box-shadow: 0 6px 14px -4px rgba(37,99,235,.45);
}
.login-pop .btn-primary:hover{ background: #1d4ed8; border-color: #1d4ed8; }
.login-pop-forgot{ color: #64748b; }
.login-pop-forgot:hover{ color: #2563eb; }
@media (max-width: 991.98px){
  .navbar .dropdown-menu.login-pop{
    width: 100%;
    margin-top: .35rem;
    box-shadow: none;
  }
}

/* =========================================
   Auth: login / registro / recuperación
   (spec AgentUI)
   ========================================= */
.auth-wrap{ padding-top: 1.5rem; padding-bottom: 2.5rem; }
html:not([data-theme="dark"]) .auth-wrap{
  background: radial-gradient(60% 130px at 50% -10px, rgba(37,99,235,.06), transparent 70%);
}
.auth-card{
  position: relative;
  border-radius: 1rem;
  overflow: hidden; /* recorta la cinta superior al radio */
}
html:not([data-theme="dark"]) .auth-card{
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid #e8edf5;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 14px 34px -12px rgba(15,23,42,.12);
}
/* Cinta de marca: azul → violeta */
.auth-card::before{
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #2563eb, #6d28d9);
}
.auth-card h1{
  font-weight: 800;
  letter-spacing: -.02em;
  color: #0f172a;
}
.auth-card .form-label{
  font-size: .85rem; font-weight: 600; color: #475569; margin-bottom: .35rem;
}
.auth-card .form-control{
  padding: .6rem .8rem;
  border-radius: .55rem;
  border-color: #e2e8f0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.auth-card .form-control:focus{
  border-color: #2563eb;
  box-shadow: 0 0 0 .25rem rgba(37,99,235,.12);
}
.auth-card .btn-primary{
  padding-top: .6rem; padding-bottom: .6rem;
  border-radius: .55rem; font-weight: 600;
  box-shadow: 0 8px 18px -6px rgba(37,99,235,.45);
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease;
}
.auth-card .btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -6px rgba(37,99,235,.5);
}
.auth-card .btn-primary:active{ transform: translateY(0); }
.auth-card a{ color: #2563eb; }

/* ===== Hero: legibilidad y jerarquía (spec AgentUI) ===== */
.hero-title{
  letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(8,15,26,.45);
  text-wrap: balance;
}
.hero-content .lead{
  max-width: 680px;
  margin-inline: auto;
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 12px rgba(8,15,26,.4);
}
.hero-overlay{
  background: linear-gradient(180deg,
    rgba(13,27,42,.35) 0%,
    rgba(13,27,42,.55) 55%,
    rgba(13,27,42,.78) 100%);
}

/* ===== Páginas estáticas (.page-content, spec AgentUI) ===== */
.page-content{ font-size: 1.02rem; line-height: 1.7; color: #334155; }
.page-content h1{ font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.page-content h2, .page-content h3{
  margin-top: 2rem; margin-bottom: .75rem; font-weight: 700; color: #0f172a;
}
.page-content p{ margin-bottom: 1rem; }
.page-content a{
  color: #2563eb; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: rgba(37,99,235,.35);
}
.page-content a:hover{ text-decoration-color: currentColor; }

/* =========================================
   Notificaciones flash (toast discreto)
   ========================================= */
.gt-toast-wrap{
  position: fixed;
  top: 84px;
  right: 1rem;
  z-index: 1080;
  pointer-events: none;
}
.gt-toast{
  pointer-events: auto;
  display: flex; align-items: center; gap: .6rem;
  max-width: 360px;
  padding: .65rem .85rem .65rem .95rem;
  background: #ffffff;
  border: 1px solid #e6eaf2;
  border-left: 3px solid #2563eb;
  border-radius: .65rem;
  box-shadow: 0 10px 30px -8px rgba(15,23,42,.25);
  font-size: .9rem;
  color: #1f2937;
  animation: gtToastIn .25s cubic-bezier(.22,.85,.35,1);
  transition: opacity .3s ease, transform .3s ease;
}
.gt-toast.hide{ opacity: 0; transform: translateX(12px); }
@keyframes gtToastIn{
  from{ opacity: 0; transform: translateX(16px); }
  to  { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce){
  .gt-toast{ animation: none; transition: opacity .3s ease; }
  .gt-toast.hide{ transform: none; }
}
.gt-toast i{ font-size: 1rem; flex-shrink: 0; }
.gt-toast-success{ border-left-color:#16a34a; } .gt-toast-success i{ color:#16a34a; }
.gt-toast-danger { border-left-color:#dc2626; } .gt-toast-danger  i{ color:#dc2626; }
.gt-toast-info   { border-left-color:#2563eb; } .gt-toast-info    i{ color:#2563eb; }
.gt-toast-warning{ border-left-color:#d97706; } .gt-toast-warning i{ color:#d97706; }
.gt-toast-close{
  margin-left: .25rem; border: 0; background: transparent; color: #94a3b8;
  font-size: 1.1rem; line-height: 1; padding: 0 .15rem; cursor: pointer;
}
.gt-toast-close:hover{ color: #334155; }
@media (max-width: 575.98px){
  .gt-toast-wrap{ left: 1rem; right: 1rem; }
  .gt-toast{ max-width: none; width: 100%; }
}

/* =========================================
   Tarjetas de contenido (.contact-card) · light
   (spec AgentUI — lenguaje .auth-card, SIN cinta)
   ========================================= */
.card.contact-card:not(.auth-card){ border-radius: .9rem; }
html:not([data-theme="dark"]) .card.contact-card:not(.auth-card){
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid #e8edf5 !important;
  box-shadow: 0 1px 2px rgba(15,23,42,.04),
              0 10px 24px -14px rgba(15,23,42,.10) !important;
}
html:not([data-theme="dark"]) .contact-card h2{ color: #0f172a; }
a.btn:hover{ text-decoration: none; }

/* =========================================
   Portal del viajero (spec AgentUI)
   ========================================= */
.account-title{ font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.account-email{ font-size: .9rem; }
.account-avatar{
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  color: #fff; font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 6px 14px -6px rgba(37,99,235,.55);
  user-select: none;
}

/* Sub-nav: segmented control */
.account-nav{
  display: inline-flex;
  padding: .3rem;
  border-radius: .8rem;
  background: #f1f5f9;
  border: 1px solid #e8edf5;
}
.account-nav .nav-link{
  display: flex; align-items: center;
  padding: .45rem .9rem;
  border-radius: .55rem;
  font-size: .9rem; font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.account-nav .nav-link:hover{
  color: #0f172a; background: rgba(255,255,255,.75); text-decoration: none;
}
.account-nav .nav-link:focus-visible{
  outline: 0; box-shadow: 0 0 0 .2rem rgba(37,99,235,.18);
}
.account-nav .nav-link.active{
  background: #fff; color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 10px -4px rgba(15,23,42,.14);
}
.account-nav .nav-link i{ opacity: .85; }

/* KPIs */
.account-kpis .contact-card > .small.text-muted:first-child{
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em;
  color: #64748b !important;
  margin-bottom: .3rem;
}
.account-kpis .fs-4{
  color: #0f172a;
  letter-spacing: -.02em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.account-kpis .btn-outline-primary{
  border-radius: 999px; font-weight: 600; vertical-align: middle;
}
.kpi-meter{
  height: 4px; margin-top: .45rem;
  border-radius: 999px; background: #eef2f7; overflow: hidden;
}
.kpi-meter span{
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #6d28d9);
  transition: width .4s cubic-bezier(.22,.85,.35,1);
}
.kpi-meter.is-full span{ background: #dc2626; }

/* Paneles de listas */
.account-panels .contact-card h2{ font-weight: 700; }
.account-kpis a.small,
.account-panels a.small{ font-weight: 600; color: #2563eb; text-decoration: none; }
.account-kpis a.small:hover,
.account-panels a.small:hover{ text-decoration: underline; text-underline-offset: 3px; }
.account-panels .list-unstyled li{
  padding: .4rem .6rem; margin: 0 -.6rem;
  border-radius: .5rem;
  transition: background-color .15s ease;
}
.account-panels .list-unstyled li:hover{ background: #f8fafc; }
.account-panels .list-unstyled li > a{ color: #0f172a; font-weight: 600; }
.account-panels .list-unstyled li > a:hover{ color: #1d4ed8; text-decoration: none; }

/* =========================================
   Mis viajes (/trips) (spec AgentUI)
   ========================================= */
.trips-count{
  font-size: .78rem; font-weight: 600; color: #475569;
  font-variant-numeric: tabular-nums;
  padding: .3rem .7rem; border-radius: 999px;
  background: #f1f5f9; border: 1px solid #e8edf5;
}
.trip-filters .btn{ border-radius: 999px; font-weight: 600; padding: .3rem .85rem; }
.trip-filters .btn-outline-secondary{ color: #475569; background: #fff; border-color: #e2e8f0; }
.trip-filters .btn-outline-secondary:hover{ color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.trip-filters .btn-primary{ box-shadow: 0 6px 14px -4px rgba(37,99,235,.40); }

.trips-grid .contact-card{
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.trips-grid .contact-card:hover{
  transform: translateY(-2px);
  border-color: #dbe6f7 !important;
  box-shadow: 0 2px 4px rgba(15,23,42,.05),
              0 18px 36px -14px rgba(15,23,42,.16) !important;
}
.trips-grid h2{ font-weight: 700; }
.trips-grid .btn-sm{ border-radius: .5rem; font-weight: 600; }
.trips-grid .btn-primary{ box-shadow: 0 6px 14px -4px rgba(37,99,235,.40); }
.trips-grid .btn-outline-danger{ color: #94a3b8; border-color: transparent; }
.trips-grid .btn-outline-danger:hover{ color: #fff; background: #dc2626; border-color: #dc2626; }

.trip-badge{
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: .32em .6em; border-radius: 999px;
  border: 1px solid transparent;
}
.trip-badge-public { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.trip-badge-private{ color: #475569; background: #f1f5f9; border-color: #e2e8f0; }
.trip-badge-client { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }

@media (prefers-reduced-motion: reduce){
  .trips-grid .contact-card,
  .trips-grid .contact-card:hover{ transform: none; transition: none; }
  .kpi-meter span{ transition: none; }
}

/* ===== Aviso de tope de días por plan (buscador) ===== */
input.days-overlimit{
  border-color: #d97706 !important;
  box-shadow: 0 0 0 .25rem rgba(217,119,6,.12) !important;
}
.days-overlimit-hint{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 30;
  min-width: 240px;
  font-size: .78rem;
  line-height: 1.45;
  color: #7c4a03;
  background: #fffbeb;
  border: 1px solid rgba(217,119,6,.35);
  border-radius: .55rem;
  padding: .5rem .65rem;
  box-shadow: 0 10px 24px -10px rgba(15,23,42,.18);
}
.days-overlimit-hint a{ font-weight: 700; color: #b45309; text-decoration: underline; text-underline-offset: 2px; }

/* ===== Blog Deck: 4 posts, expansión 1→2 slots (spec AgentUI) ===== */
.blog-deck{
  --deck-gap: 1.5rem;                 /* = g-4, mismo ritmo que el resto del home */
  --deck-ease: cubic-bezier(.22,.85,.35,1);
  display: flex; flex-wrap: wrap;
  gap: var(--deck-gap);
  align-items: stretch;
}
.blog-deck .blog-card{ flex: 0 0 100%; min-width: 0; }   /* móvil: stack normal */

/* Tablet (md): 2×2, sin expansión */
@media (min-width: 768px) and (max-width: 991.98px){
  .blog-deck .blog-card{ flex-basis: calc(50% - (var(--deck-gap) / 2)); }
}

/* Escritorio (lg+): fila de 4 con expansión animada */
@media (min-width: 992px){
  .blog-deck{ flex-wrap: nowrap; }
  .blog-deck .blog-card{
    flex-basis: calc(25% - (var(--deck-gap) * 3 / 4));
    transition: flex-basis .45s var(--deck-ease),
                margin-left .45s var(--deck-ease),
                opacity .3s ease,
                visibility 0s linear 0s,
                transform .2s var(--deck-ease),
                box-shadow .2s var(--deck-ease),
                border-color .2s ease;
  }

  /* Expandida: ancho exacto de dos slots + layout horizontal (eco de --featured) */
  .blog-deck .blog-card.is-expanded{
    flex-direction: row;
    flex-basis: calc(50% - (var(--deck-gap) / 2));
    border-color: #dbe6f7;
  }
  .blog-deck .blog-card.is-expanded .blog-thumb{
    flex: 0 0 42%; width: 42%;
    aspect-ratio: auto; min-height: 240px;
    margin: .9rem 0 .9rem .9rem;
  }
  .blog-deck .blog-card.is-expanded .blog-body{
    padding: 1.3rem 1.5rem;
    animation: blogBodyIn .4s var(--deck-ease) both;
  }
  .blog-deck .blog-card.is-expanded .blog-title{ font-size: 1.35rem; }
  .blog-deck .blog-card.is-expanded .blog-excerpt{ -webkit-line-clamp: 5; }
  .blog-deck .blog-card.is-expanded .blog-thumb-initial{ font-size: 3.4rem; }

  /* Oculta: se pliega a 0 absorbiendo su propio gap → la fila queda en 3 */
  .blog-deck .blog-card.is-hidden{
    flex-basis: 0;
    margin-left: calc(-1 * var(--deck-gap));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    border: 0;
    transition: flex-basis .45s var(--deck-ease),
                margin-left .45s var(--deck-ease),
                opacity .25s ease,
                visibility 0s linear .45s;
  }
}

@keyframes blogBodyIn{
  from{ opacity: 0; transform: translateX(8px); }
  to{   opacity: 1; transform: none; }
}

/* Botón expandir (mismo lenguaje que el de Destinos, anclado a la tarjeta) */
.blog-expand{
  position: absolute; top: 1.15rem; right: 1.15rem; z-index: 3;
  width: 32px; height: 32px; border-radius: 50%;
  display: none;                        /* solo existe en el deck de escritorio */
  place-items: center;
  background: rgba(255,255,255,.92);
  color: #1f2937;
  border: 1px solid rgba(15,23,42,.08);
  font-size: .85rem; line-height: 1; padding: 0;
  box-shadow: 0 4px 12px rgba(15,23,42,.18);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
@media (min-width: 992px){
  .blog-deck .blog-expand{ display: grid; }
}
.blog-expand:hover{
  background: #fff; transform: scale(1.06);
  box-shadow: 0 6px 16px rgba(15,23,42,.24);
}
.blog-expand:focus-visible{ outline: 2px solid #2563eb; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce){
  .blog-deck .blog-card, .blog-deck .blog-card.is-hidden{ transition: none; }
  .blog-deck .blog-card.is-expanded .blog-body{ animation: none; }
  .blog-expand{ transition: none; }
  .blog-expand:hover{ transform: none; }
}

/* ===== Post del blog: un tin de refinamiento ===== */
.post-back{
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600; color: #64748b;
}
.post-back:hover{ color: #2563eb; text-decoration: none; }
.post-title{
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.2;
  color: #0f172a;
}
.post-rule{
  width: 56px; height: 4px; border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #6d28d9);
  margin: .65rem 0 .9rem;
}
.post-meta{
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem;
  font-size: .85rem; color: #64748b;
}
.post-meta i{ color: #94a3b8; }
.post-author{ display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: #334155; }
.post-author-initial{
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  color: #fff; font-weight: 800; font-size: .78rem;
}
.post-body{ font-size: 1.02rem; line-height: 1.75; color: #334155; }
.post-trip-section{ border-top: 1px solid #e8edf5; padding-top: 1.5rem; }
.post-trip-title{ font-weight: 800; letter-spacing: -.01em; color: #0f172a; }
