:root {
    --brand: #67348a;
    --brand-dark: #4e2769;
    --brand-darker: #3d1f54;
    --brand-light: #f4eff8;
    /* Lime-green from the cube logo — the secondary brand color, mixed with purple site-wide. */
    --brand-green: #6f9a2e;
    --brand-green-dark: #56781f;
    --brand-green-light: #eef4dd;
    --topbar-h: 56px;
}

/* KPI / stat cards: an oversized icon watermark overflowing the bottom-right corner, behind the
   value. Add `kpi-card` to the card, render <partial _KpiIcon> right inside it, and add `kpi-body`
   to the card-body so the text sits above the watermark. */
.kpi-card { position: relative; overflow: hidden; }
.kpi-card .kpi-icon { position: absolute; right: -0.6rem; bottom: -0.9rem; width: 5.5rem; height: 5.5rem; opacity: .13; pointer-events: none; }
.kpi-card .kpi-body { position: relative; z-index: 1; }
/* On solid-colored cards (text-bg-*) the watermark is white, so it needs a bit more opacity. */
.kpi-card[class*="text-bg-"] .kpi-icon { opacity: .22; }

html { font-size: 15px; }
body {
    margin: 0;
    background: #f6f7fb;
    color: #2b2b3a;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

/* Bootstrap primary -> SmarTraveling brand */
.btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-darker);
    --bs-btn-active-border-color: var(--brand-darker);
    --bs-btn-disabled-bg: var(--brand);
    --bs-btn-disabled-border-color: var(--brand);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand);
    --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand-dark);
}
.text-brand { color: var(--brand) !important; }
.text-brand-green { color: var(--brand-green) !important; }
.bg-brand { background: var(--brand) !important; color: #fff; }
.bg-brand-green { background: var(--brand-green) !important; color: #fff; }

/* Bootstrap success -> SmarTraveling cube green (used for call-to-action buttons) */
.btn-success {
    --bs-btn-bg: var(--brand-green);
    --bs-btn-border-color: var(--brand-green);
    --bs-btn-hover-bg: var(--brand-green-dark);
    --bs-btn-hover-border-color: var(--brand-green-dark);
    --bs-btn-active-bg: var(--brand-green-dark);
    --bs-btn-active-border-color: var(--brand-green-dark);
    --bs-btn-disabled-bg: var(--brand-green);
    --bs-btn-disabled-border-color: var(--brand-green);
}

/* ===== Branded top navbar (authenticated app) ===== */
.app-navbar {
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-darker) 100%);
    box-shadow: 0 2px 10px rgba(61,31,84,.18);
    border-bottom: 3px solid var(--brand-green);   /* cube-green accent */
    min-height: var(--topbar-h);
}
.app-navbar .navbar-brand {
    color: #fff; font-weight: 600; display: flex; align-items: center; gap: .55rem;
}
.app-navbar .navbar-brand img {
    height: 38px; background: #fff; padding: .15rem .45rem; border-radius: .5rem;
}
.app-navbar .nav-link {
    color: rgba(255,255,255,.82) !important; border-radius: .4rem; padding: .4rem .85rem;
}
.app-navbar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.12); }
.app-navbar .nav-link.active { color: #fff !important; background: rgba(255,255,255,.18); }
.app-navbar .dropdown-menu { border: none; box-shadow: 0 10px 28px rgba(61,31,84,.20); border-radius: .5rem; padding: .35rem; margin-top: .35rem; }
.app-navbar .dropdown-item { border-radius: .35rem; padding: .45rem .75rem; }
.app-navbar .dropdown-item:hover, .app-navbar .dropdown-item:focus { background: var(--brand-light); color: var(--brand-dark); }
.app-navbar .dropdown-item.active, .app-navbar .dropdown-item:active { background: var(--brand); color: #fff; }
.app-navbar .navbar-text { color: rgba(255,255,255,.9); }
.app-navbar .navbar-text strong { color: #fff; }
.app-navbar .navbar-toggler {
    border-color: rgba(255,255,255,.35);
}
.app-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.content { padding: 1.5rem 0; }
.content h2 { font-weight: 600; }

/* Cards / tables polish */
.card { border: 1px solid #ececf3; border-radius: .6rem; }
.table thead th { background: var(--brand-green-light); border-bottom: 2px solid #cdd9a8; font-weight: 600; }

/* Grouped filter fieldsets (ReservasLista, MisReservas): bordered, light-filled cards per logical
   group so a long filter row is easy to scan. The Buscar button lives in a global action bar, not
   inside a group, since it applies to every filter. */
.reservas-filtros .filter-group {
    border: 1px solid #d9cdeb; background: var(--brand-light); border-radius: .5rem;
    padding: .3rem .75rem .55rem; margin: 0;
}
.reservas-filtros .filter-group > legend {
    float: none; width: auto; padding: 0 .4rem; margin-bottom: .15rem;
    font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--brand);
}
.reservas-filtros .form-label { font-size: .78rem; color: #555; }

/* Hotel-search date range: Entrada + Salida joined into one control with a connecting arrow. */
.date-range { display: flex; align-items: flex-end; }
.date-range-field { flex: 1 1 8rem; min-width: 0; }
.date-range-arrow { align-self: flex-end; padding: 0 .55rem .5rem; color: var(--brand); font-weight: 700; font-size: 1.1rem; }
/* Fuse the two inputs so they read as a single range field (flatpickr copies .form-control to altInput). */
.date-range-field:first-child .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.date-range-field:last-child .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }
/* The connecting "expansion" line under both halves, tinted to brand. */
.date-range-field .form-control { border-bottom: 2px solid #cdbce6; }
.date-range:focus-within .date-range-field .form-control { border-bottom-color: var(--brand); }

/* Destination multi-select typeahead (used by the hotel search form AND the Tarifario buscador).
   Global so any page reusing the .dest-* markup gets the floating overlay — otherwise the menu
   lays out in-flow and pushes the whole filter section down when opened. */
.dest-wrap .dest-icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); pointer-events: none; }
.dest-wrap .dest-input { padding-left: 2rem; }
.dest-menu { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 1050; background: #fff;
             border: 1px solid #e3e3ec; border-radius: .6rem; max-height: 300px; overflow-y: auto; padding: .35rem; }
.dest-menu .dest-item { display: flex; align-items: center; width: 100%; text-align: left; border: 0; background: transparent;
                        padding: .5rem .6rem; border-radius: .45rem; font-size: .95rem; margin: 0; cursor: pointer; user-select: none; }
.dest-menu .dest-item:hover { background: #f0ecf7; }
.dest-menu .dest-all { border-bottom: 1px solid #eee; border-radius: .45rem .45rem 0 0; color: var(--brand, #5b2a86); font-weight: 600; }

/* Amenidades / Características chips on an even grid with equal-width columns: 3 per row on md+ (so the
   5 options read as two balanced lines, 3+2) and 2 per row on smaller screens (which wrap to 3 rows).
   Replaces the lopsided natural wrap. The hidden .btn-check inputs are position:absolute (out of grid
   flow), so only the labels occupy the cells. Used by the hotel-search filters and the Tarifario buscador. */
.amen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem; }
@media (min-width: 768px) { .amen-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.amen-grid > .btn { width: 100%; }

/* Brand "panel" identity, mirroring the hotel-search filter card: purple border, brand top accent,
   soft purple shadow, brand-tinted header + labels. Applied for a consistent look across the
   Inicio search box, the Mis Reservas filters, and the Mi Perfil / Mi Agencia forms. */
.brand-panel { border: 1px solid #cdbce6; border-top: 3px solid var(--brand); border-radius: .75rem;
               box-shadow: 0 .25rem .75rem rgba(103, 52, 138, .10) !important; }
.brand-panel > .card-header { background: linear-gradient(180deg, #f7f3fc 0%, #f3eefa 100%);
               color: var(--brand-dark); border-bottom: 1px solid #cdbce6; }
.brand-panel .form-label { color: var(--brand); }

/* Inicio "El Mundo del Viaje" news feed. Green-accented so it reads as the world/news column and
   stands apart from the purple hotel/booking cards (e.g. Hoteles más vendidos) around it. */
.travel-news-card { border: 1px solid #cfe3b3; border-top: 3px solid var(--brand-green); border-radius: .6rem; overflow: hidden; }
.travel-news-head { background: var(--brand-green-light); color: var(--brand-green-dark); border-bottom: 1px solid #cfe3b3; font-weight: 600; }
.travel-news-live { background: #d9534f; color: #fff; font-weight: 600; font-size: .68rem; letter-spacing: .02em; }
.travel-news-live .dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: #fff; margin-right: .3rem; vertical-align: middle; animation: travelNewsPulse 1.6s ease-in-out infinite; }
@keyframes travelNewsPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
/* Respect users who ask for reduced motion — no forced pulsing. */
@media (prefers-reduced-motion: reduce) { .travel-news-live .dot { animation: none; } }
.travel-news-list .list-group-item { border-left: 3px solid transparent; transition: background .12s ease, border-color .12s ease; }
.travel-news-list .list-group-item:hover { background: var(--brand-green-light); border-left-color: var(--brand-green); }
.travel-news-title a { color: var(--brand-dark); font-weight: 600; text-decoration: none; }
.travel-news-title a:hover { color: var(--brand); text-decoration: underline; }
.travel-news-source { color: var(--brand-green-dark); font-weight: 600; }

/* Accordion: brand palette (Bootstrap's default active state is blue) */
.accordion {
    --bs-accordion-active-color: var(--brand-dark);
    --bs-accordion-active-bg: var(--brand-light);
    --bs-accordion-btn-focus-border-color: var(--brand);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(103, 52, 138, .25);
    /* expanded chevron recolored to brand (default is a blue SVG) */
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2367348a'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Sortable column headers */
.sort-link { color: var(--brand-darker); text-decoration: none; white-space: nowrap; display: inline-block; }
.sort-link:hover { color: var(--brand); text-decoration: none; }
.sort-ico { color: var(--brand); font-size: .8em; }

/* Pagination -> brand */
.pagination {
    --bs-pagination-color: var(--brand);
    --bs-pagination-hover-color: var(--brand-dark);
    --bs-pagination-hover-bg: var(--brand-light);
    --bs-pagination-focus-color: var(--brand-dark);
    --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(103,52,138,.18);
    --bs-pagination-active-bg: var(--brand);
    --bs-pagination-active-border-color: var(--brand);
}

/* ===== Public layout (login / landing) ===== */
.public-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.public-header { height: var(--topbar-h); display: flex; align-items: center; padding: 0 1.25rem; background: #fff; border-bottom: 1px solid #eee; }
.public-header img { height: 32px; }
.public-body { flex: 1; display: flex; }
.public-card {
    max-width: 400px; width: 100%; margin: auto;
    background: #fff; border: 1px solid #ececf3; border-radius: .8rem;
    box-shadow: 0 10px 40px rgba(103,52,138,.10); padding: 2rem;
}

/* ===== Login (split screen: brand showcase + form) ===== */
/* The login block fills the whole viewport so the footer drops just below the fold — a full-screen
   login with plenty of breathing room. Generous bottom padding lifts the centered content upward. */
.login-split { flex: 1; display: flex; min-height: 100vh; }
.login-brand {
    flex: 1.15; position: relative; overflow: hidden; color: #fff;
    align-items: center; justify-content: center;
    padding: 3rem 3rem 8rem;
    background: linear-gradient(135deg, var(--brand-darker) 0%, var(--brand) 55%, var(--brand-dark) 100%);
}
/* subtle decorative glow */
.login-brand::after {
    content: ""; position: absolute; right: -10%; bottom: -15%;
    width: 60%; height: 60%; border-radius: 50%;
    background: radial-gradient(circle, rgba(111,154,46,.35), transparent 70%);
}
.login-brand-inner { position: relative; z-index: 1; max-width: 560px; width: 100%; }
.login-brand-head { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.login-wordmark { font-size: 2rem; font-weight: 800; letter-spacing: -.5px; }
.login-tagline { font-style: italic; color: #d9c7ec; font-weight: 500; }
.login-lead { color: rgba(255,255,255,.85); font-size: 1.05rem; margin: .75rem 0 1.75rem; max-width: 42ch; }
.login-video {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    border-radius: .9rem; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.15);
}
.login-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.login-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 2rem 8rem; background: #fff; }
.login-card { width: 100%; max-width: 400px; }
.login-logo { max-height: 56px; }
.login-title { font-size: 1.6rem; font-weight: 700; color: var(--brand); margin-bottom: .15rem; text-align: center; }
.login-subtitle { text-align: center; color: #6c757d; margin-bottom: 1.5rem; }

/* ===== Landing page ===== */
.landing-nav { background: #fff; box-shadow: 0 1px 8px rgba(0,0,0,.06); padding: .4rem 0; }
.landing-nav .navbar-brand img { height: 40px; }
.landing-nav .nav-link { color: #4a4a5a; font-weight: 500; }
.landing-nav .nav-link:hover { color: var(--brand); }

.landing-hero { background: #2a1538; }
/* Full-height banner: the hero fills the viewport below the sticky nav (~66px) so it extends down to
   the footer, with the slide caption (login CTA) laid over it. */
.hero-slide { width: 100%; height: calc(100vh - 66px); height: calc(100dvh - 66px); min-height: 460px; object-fit: cover; filter: brightness(.55); }
.hero-caption { top: 50%; bottom: auto; left: 8%; right: 8%; transform: translateY(-50%); display: block; }
.hero-caption h1 { font-weight: 700; font-size: 2.6rem; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.hero-caption p { font-size: 1.25rem; margin: .75rem auto 1.6rem; max-width: 640px; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
@media (max-width: 768px) {
    .hero-caption h1 { font-size: 1.7rem; }
    .hero-caption p { font-size: 1rem; }
    .hero-slide { height: calc(100vh - 62px); height: calc(100dvh - 62px); }
}

.landing-section { padding: 3.5rem 1rem; }
.landing-section.bg-soft { background: #fff; }
.section-title { text-align: center; font-weight: 700; color: var(--brand-darker); margin-bottom: .5rem; }
.section-title::after { content: ""; display: block; width: 64px; height: 3px; background: linear-gradient(90deg, var(--brand) 0%, var(--brand-green) 100%); border-radius: 2px; margin: .6rem auto 0; }
.section-lead { text-align: center; color: #5a5a6e; max-width: 760px; margin-top: 1rem; }

.value-card {
    background: #fff; border: 1px solid #ececf3; border-radius: .7rem; padding: 1.5rem;
    height: 100%; box-shadow: 0 4px 18px rgba(103,52,138,.05);
}
.value-card h4 { color: var(--brand); font-weight: 600; }
.value-card p { color: #5a5a6e; margin-bottom: 0; }

.counters .counter-num { font-size: 2.2rem; font-weight: 700; color: var(--brand); }
.counters .counter-lbl { color: #6a6a7a; }

/* Shared site footer (all pages) */
.site-footer { background: var(--brand-darker); color: rgba(255,255,255,.82); padding: 3.5rem 0 1.5rem; margin-top: auto; border-top: 3px solid var(--brand-green); }
.site-footer .footer-social { display: flex; gap: .6rem; }
.site-footer .footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background .15s ease, transform .15s ease; }
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible { background: var(--brand-green); color: #fff; transform: translateY(-2px); text-decoration: none; }
.site-footer .footer-social a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.site-footer .footer-brand { font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: .5rem; }
.site-footer .footer-text { font-size: .9rem; color: rgba(255,255,255,.7); }
.site-footer .footer-text a { color: rgba(255,255,255,.82); }
.site-footer .footer-text a:hover { color: #fff; }
.site-footer .footer-head { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.site-footer .footer-links { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-links li { margin-bottom: .4rem; }
.site-footer .footer-links a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer .footer-links a:hover { color: #fff; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.5rem; padding-top: 1rem; text-align: center; font-size: .85rem; color: rgba(255,255,255,.6); }
/* Payment-method selector cards (ReservaConfirma checkout). */
.pm-options { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 575.98px) { .pm-options { grid-template-columns: 1fr; } }
.pm-option { position: relative; display: flex; align-items: flex-start; gap: .65rem; margin: 0; padding: .9rem 1rem; background: #fff; border: 2px solid #e3e3ea; border-radius: 12px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.pm-option:hover { border-color: var(--brand); }
.pm-option .pm-radio { position: absolute; opacity: 0; pointer-events: none; }
.pm-option-icon { flex: none; color: var(--brand); margin-top: .1rem; }
.pm-option-body { display: flex; flex-direction: column; gap: .1rem; }
.pm-option-title { font-weight: 600; color: #222; }
.pm-option-desc { font-size: .82rem; color: #6c757d; }
.pm-option-amount { margin-left: auto; align-self: center; font-weight: 700; white-space: nowrap; color: #333; }
.pm-option-check { flex: none; width: 20px; height: 20px; margin-left: auto; align-self: center; border-radius: 50%; border: 2px solid #c9c9d4; transition: border-color .15s ease, background .15s ease; }
/* when an amount precedes the check, the amount owns the right-push and the check sits just after it */
.pm-option-amount ~ .pm-option-check { margin-left: .65rem; }
.pm-option.is-selected { border-color: var(--brand); background: var(--brand-light); box-shadow: 0 0 0 3px rgba(103,52,138,.12); }
.pm-option.is-selected .pm-option-check { border-color: var(--brand); background: var(--brand) radial-gradient(#fff 0 30%, transparent 32%); }
.pm-option:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Accepted-payment marks: a light pill so Visa/Mastercard/Azul stay legible on the purple footer. */
.site-footer .footer-pagos { margin-top: 1.25rem; }
.pagos-logos { display: inline-flex; align-items: center; gap: .55rem; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 8px; padding: .4rem .6rem; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.pagos-logos img { height: 26px; width: auto; display: block; }
.pagos-logos img.pago-azul { height: 22px; }

/* Thin footer (app + login) */
.site-footer-thin { background: var(--brand-darker); color: rgba(255,255,255,.7); padding: .6rem 0; font-size: .85rem; margin-top: auto; border-top: 3px solid var(--brand-green); }
.site-footer-thin a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer-thin a:hover { color: #fff; }
.site-footer-thin .footer-thin-links a { margin-left: 1.25rem; }

/* About / Services / Stats */
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); }
.block-title { font-weight: 700; color: var(--brand-darker); margin: .25rem 0 1rem; }

/* Nosotros page */
.page-hero { background: linear-gradient(90deg, var(--brand-darker), var(--brand)); color: #fff; padding: 3.5rem 1rem 3rem; text-align: center; }
.page-hero .eyebrow { color: rgba(255,255,255,.85); }
.page-hero-title { font-weight: 700; margin: .3rem 0 .4rem; font-size: 2.4rem; }
.page-hero-lead { color: rgba(255,255,255,.85); margin: 0; font-size: 1.1rem; }
.mv-card { background: #fff; border-radius: 1rem; padding: 1.75rem; box-shadow: 0 12px 40px rgba(61,31,84,.10); border-top: 3px solid var(--brand-green); }
.mv-card p { color: #5a5a6e; }
.valor-chip { background: var(--brand-green-light); color: var(--brand-darker); font-weight: 600; text-align: center; border-radius: .75rem; padding: .9rem .5rem; height: 100%; display: flex; align-items: center; justify-content: center; }
.about-img { width: 100%; border-radius: 1rem; box-shadow: 0 18px 50px rgba(61,31,84,.18); object-fit: cover; aspect-ratio: 4 / 3; }

.feature-row { display: flex; gap: 1rem; margin-bottom: 1.1rem; }
.feature-ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-green-light); color: var(--brand-green-dark); display: flex; align-items: center; justify-content: center; }
.feature-ico svg { width: 22px; height: 22px; }
.feature-row h5 { margin: 0 0 .2rem; font-weight: 600; color: #2b2b3a; }
.feature-row p { margin: 0; color: #6a6a7a; font-size: .95rem; }

.stats-band { position: relative; padding: 3rem 1rem; background: var(--brand-darker) url('/images/slides/4sea.jpg') center / cover no-repeat; }
.stats-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(61,31,84,.92), rgba(78,39,105,.80)); }
.stats-inner { position: relative; }
.stats-band .counter-num { color: #fff; font-size: 2.4rem; font-weight: 700; }
.stats-band .counter-lbl { color: rgba(255,255,255,.85); }

.service-card { background: #fff; border: 1px solid #ececf3; border-radius: .8rem; overflow: hidden; height: 100%; box-shadow: 0 6px 22px rgba(103,52,138,.06); transition: transform .15s ease, box-shadow .15s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(103,52,138,.14); }
.service-img { height: 150px; background-size: cover; background-position: center; }
.service-body { padding: 1.1rem 1.2rem 1.3rem; }
.service-body h5 { color: var(--brand); font-weight: 600; margin-bottom: .35rem; }
.service-body p { color: #6a6a7a; margin: 0; font-size: .92rem; }

/* AJAX list pages: dim + block interaction while a fragment is loading. */
/* AJAX list loading state: dim the results and show a clear spinner + "Buscando…" so a search that
   takes a moment doesn't look frozen. Applied by list-ajax.js to whichever region is being swapped. */
.ajax-loading { position: relative; pointer-events: none; min-height: 6rem; }
.ajax-loading > * { opacity: .5; transition: opacity .12s ease; }
.ajax-loading::after {
    content: ""; position: absolute; top: 1.75rem; left: 50%; margin-left: -1rem;
    width: 2rem; height: 2rem; z-index: 31; border-radius: 50%;
    border: 3px solid rgba(103,52,138,.25); border-top-color: var(--brand);
    animation: ajaxspin .7s linear infinite;
}
.ajax-loading::before {
    content: "Buscando…"; position: absolute; top: 4.1rem; left: 50%; transform: translateX(-50%);
    z-index: 31; color: var(--brand); font-weight: 600; font-size: .9rem; white-space: nowrap;
}
@keyframes ajaxspin { to { transform: rotate(360deg); } }
/* Respect reduced-motion: keep the "Buscando…" label + dim, but stop the spinner rotation. */
@media (prefers-reduced-motion: reduce) { .ajax-loading::after { animation: none; } }
