:root {
    --primary: #2f7f35;
    --primary-dark: #205d26;
    --primary-soft: #e8f4e9;
    --gold: #d7b463;
    --text-dark: #252c2a;
    --text-muted: #616b67;
    --bg-light: #f6f7f8;
    --white: #ffffff;
    --border-color: #dce2df;
    --shadow: 0 5px 18px rgba(24, 41, 27, 0.06);
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

/* =========================
   NAVEGACIÓN
========================= */
.header {
    min-height: 72px;
    padding: 0 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
}

.logo, .login-brand {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
}

.logo {
    color: #286B38;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav a {
    color: #202420;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 600;
    transition: color .2s ease, transform .2s ease;
}

.nav a:hover,
.nav a.active { color: var(--primary); }

.nav a:hover { transform: translateY(-1px); }

.nav .btn-nav-action {
    color: #fff;
    background: var(--primary);
    padding: 10px 22px;
    border-radius: 7px;
}

.nav .btn-nav-action:hover {
    color: #fff;
    background: var(--primary-dark);
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    min-height: 390px;
    padding: 5.5rem 2rem 4.5rem;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background:
        linear-gradient(rgba(13, 24, 17, 0.48), rgba(13, 24, 17, 0.58)),
        url("img/costanera-posadas.png");
    background-size: cover;
    background-position: center;
}


.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.02), rgba(0,0,0,0.12));
    pointer-events: none;
}

.hero-content,
.search-container { position: relative; z-index: 2; }

.hero-eyebrow,
.section-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 0.72rem;
    font-weight: 800;
}

.hero-eyebrow {
    color: rgba(255,255,255,.82);
    margin-bottom: .65rem;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.hero p {
    max-width: 760px;
    margin: .9rem auto 0;
    color: rgba(255,255,255,.94);
    font-size: 1.05rem;
}

.hero-compact {
    min-height: 285px;
    padding: 4.5rem 2rem;
}

.hero-compact h1 { font-size: 2.4rem; }

.hero-explore { background-position: center 48%; }
.hero-offers { background-position: center 58%; }

/* =========================
   BUSCADOR GLASS
========================= */
.search-container {
    width: min(1180px, calc(100% - 2rem));
    margin: 2.3rem auto -7.2rem;
    padding: 1.2rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
    background: rgba(25, 55, 31, 0.94);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.26);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.search-field {
    text-align: left;
    min-width: 0;
}

.search-field label {
    display: block;
    margin: 0 0 6px 2px;
    color: rgba(255,255,255,.84);
    font-size: .78rem;
    font-weight: 700;
}

.search-field input,
.search-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.44);
    border-radius: 7px;
    background: rgba(255,255,255,.90);
    color: #262b27;
    outline: none;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.search-field input:focus,
.search-field select:focus {
    border-color: #9bd19f;
    box-shadow: 0 0 0 3px rgba(47,127,53,.14);
}

.btn-search,
.btn-submit,
.btn-glass-submit {
    border: 0;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn-search {
    min-height: 44px;
    padding: 0 28px;
    border-radius: 7px;
    box-shadow: 0 8px 20px rgba(47,127,53,.28);
}

.btn-search:hover,
.btn-submit:hover,
.btn-glass-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* =========================
   CONTENIDO GENERAL
========================= */
.main-container {
    width: min(1220px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 5.6rem 0 2.5rem;
}

.hero-compact + .main-container { padding-top: 3rem; }

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 1.6rem;
}

.section-kicker { color: var(--primary); margin-bottom: .25rem; }
.section-heading h2,
.form-card-heading h2 { font-size: 1.8rem; line-height: 1.2; }
.section-heading > p,
.form-card-heading > p { color: var(--text-muted); max-width: 520px; font-size: .92rem; }

.layout-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.filter-panel,
.card-panel {
    background: rgba(255,255,255,.96);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.filter-panel {
    padding: 1.4rem;
    position: sticky;
    top: 92px;
}

.filter-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-header h3 { font-size: 1.05rem; }
.filter-header span { font-size: .78rem; color: var(--text-muted); }

.filter-group { margin-bottom: 1.2rem; }
.filter-group > label:first-child {
    display: block;
    margin-bottom: .55rem;
    font-size: .83rem;
    font-weight: 800;
}

.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.filter-row input {
    width: 100%; min-width: 0;
    padding: 9px 8px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    outline: none;
}

.check-option {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: .48rem 0;
    color: var(--text-muted);
    font-size: .84rem;
    cursor: pointer;
}

.check-option input { accent-color: var(--primary); }

.btn-submit {
    padding: 11px 22px;
    border-radius: 7px;
    box-shadow: 0 8px 18px rgba(47,127,53,.18);
}
.btn-full { width: 100%; }

/* =========================
   TARJETAS DE HOTELES
========================= */
.hotel-list { display: grid; gap: 1.15rem; }

.hotel-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 10px 26px rgba(34,48,36,.07);
    transition: transform .2s ease, box-shadow .2s ease;
}

.hotel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(34,48,36,.12);
}

.hotel-card-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.hotel-card-content {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.hotel-card-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.hotel-name { font-size: 1.25rem; line-height: 1.2; }
.hotel-meta { color: var(--text-muted); font-size: .82rem; margin-top: .35rem; }
.hotel-price { color: var(--primary); font-size: 1.25rem; font-weight: 800; white-space: nowrap; text-align: right; }
.hotel-price-sub { color: var(--text-muted); font-size: .72rem; font-weight: 500; }

.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.tag-item {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: .73rem;
    font-weight: 700;
}

.source-info {
    display: inline-block;
    width: 100%;
    padding: 8px 10px;
    border-left: 3px solid var(--primary);
    border-radius: 5px;
    background: #f5f7f5;
    color: var(--text-muted);
    font-size: .72rem;
}

/* =========================
   REGISTRO DE HOTEL
========================= */
.form-page-container { max-width: 1040px; }
.card-panel { padding: 2rem; }
.form-card { border-top: 4px solid var(--primary); }

.form-card-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    padding-bottom: 1.4rem;
    margin-bottom: 1.6rem;
    border-bottom: 1px solid var(--border-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
}

.form-group { display: flex; flex-direction: column; gap: .42rem; }
.full-width { grid-column: 1 / -1; }

.form-group label { font-size: .82rem; font-weight: 800; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    color: var(--text-dark);
    transition: border .2s ease, box-shadow .2s ease;
}

.form-group textarea { resize: vertical; min-height: 110px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #74b77b;
    box-shadow: 0 0 0 3px rgba(47,127,53,.11);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .8rem;
    padding-top: .4rem;
}

.btn-secondary {
    padding: 10px 18px;
    border-radius: 7px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: #fff;
    text-decoration: none;
    font-weight: 700;
}

/* =========================
   ACTIVIDADES Y OFERTAS
========================= */
.activity-grid,
.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.activity-card,
.offer-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(34,48,36,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.activity-card:hover,
.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(34,48,36,.13);
}

.activity-image,
.offer-image {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
}

.activity-content,
.offer-content { padding: 1.25rem; }

.activity-type,
.offer-badge {
    display: inline-block;
    margin-bottom: .65rem;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: .7rem;
    font-weight: 800;
}

.activity-card h3,
.offer-card h3 { font-size: 1.08rem; line-height: 1.3; margin-bottom: .45rem; }
.activity-card h3 a { color: inherit; text-decoration: none; }
.activity-card h3 a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }
.activity-card a:focus-visible { outline: 3px solid #77a8bd; outline-offset: 3px; }
.activity-card p,
.offer-card p { color: var(--text-muted); font-size: .86rem; }
.activity-footer,
.offer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .7rem;
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid var(--border-color);
}
.activity-price,
.offer-price { color: var(--primary); font-weight: 800; }
.small-muted { color: var(--text-muted); font-size: .72rem; }



/* =========================
   A04 - INTEGRACIÓN DE ACTIVIDADES
========================= */
.activity-location {
    margin-top: .85rem;
    color: #536456;
    font-size: .78rem;
    font-weight: 600;
}

.activity-source-a04 {
    display: flex;
    flex-direction: column;
    gap: .22rem;
    margin-top: .9rem;
    padding: .8rem .85rem;
    border: 1px solid #dce8dd;
    border-radius: 9px;
    background: #f7fbf7;
    color: #526154;
    font-size: .7rem;
    line-height: 1.45;
}

.activity-source-a04 strong {
    color: #34563a;
}

.activity-source-a04 span {
    color: #68776b;
}

.activity-source-a04 small {
    margin-top: .25rem;
    color: #7b6a45;
    font-size: .66rem;
}

/* Presentación adaptable del listado público de actividades. */
#listado-actividades {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
#listado-actividades > .activity-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
#listado-actividades > .activity-card:only-child {
    width: min(100%, 680px);
    justify-self: center;
}
#listado-actividades .activity-image {
    height: 240px;
    flex-shrink: 0;
}
#listado-actividades .activity-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
}
#listado-actividades .activity-location { margin-bottom: 1rem; }
#listado-actividades .activity-footer {
    width: 100%;
    margin-top: auto;
    flex-wrap: wrap;
}
#listado-actividades .activity-source-a04 { display: none; }

/* =========================
   LOGIN GLASSMORPHISM
========================= */
.login-body {
    min-height: 100vh;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(rgba(12, 20, 16, .44), rgba(12, 20, 16, .60)),
        url("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1600&q=85");
    background-size: cover;
    background-position: center;
    position: relative;
}

.login-brand {
    position: absolute;
    top: 24px;
    left: 30px;
    color: rgba(255,255,255,.96);
    font-size: 1.15rem;
}

.glass-card {
    width: min(390px, 100%);
    padding: 2.8rem 2.5rem 2.4rem;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 18px;
    background: rgba(80,80,80,0.38);
    color: #fff;
    text-align: center;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.glass-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,.42);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.glass-card h1 { font-size: 1.65rem; font-weight: 700; }
.glass-card > p { margin: .35rem 0 2rem; color: rgba(255,255,255,.75); font-size: .82rem; }

.glass-input-group { margin-bottom: 1.35rem; text-align: left; }
.glass-input-group label {
    display: block;
    margin-bottom: .25rem;
    color: rgba(255,255,255,.78);
    font-size: .72rem;
}

.glass-input-group input {
    width: 100%;
    padding: 10px 0;
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.52);
    color: #fff;
    outline: none;
}

.glass-input-group input::placeholder { color: rgba(255,255,255,.48); }
.glass-input-group input:focus { border-bottom-color: #91d497; }

.btn-glass-submit {
    width: 100%;
    padding: 11px;
    margin-top: .45rem;
    border-radius: 8px;
}

/* En el login, incluso el botón conserva fondo transparente */
.login-body .btn-glass-submit {
    background: transparent;
    border: 1px solid rgba(105, 205, 116, .95);
    color: #fff;
    box-shadow: none;
}

.login-body .btn-glass-submit:hover {
    background: rgba(47, 127, 53, .20);
    border-color: #8bd594;
}

/* Evita fondos blancos automáticos del navegador en los campos del login */
.login-body .glass-input-group input,
.login-body .glass-input-group input:focus {
    background-color: transparent !important;
    box-shadow: none !important;
}

.login-body .glass-input-group input:-webkit-autofill,
.login-body .glass-input-group input:-webkit-autofill:hover,
.login-body .glass-input-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    transition: background-color 9999s ease-out 0s;
    box-shadow: 0 0 0 1000px transparent inset !important;
}

.glass-footer-link {
    display: block;
    margin-top: 1.25rem;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-size: .74rem;
}
.glass-footer-link:hover { color: #fff; text-decoration: underline; }
.secondary-link { margin-top: .55rem; opacity: .72; }

/* =========================
   ESTADOS / FOOTER
========================= */
.alert-banner {
    padding: 11px 13px;
    margin-bottom: 1rem;
    border: 1px solid #efd79b;
    border-radius: 8px;
    background: #fff8df;
    color: #72581e;
    font-size: .82rem;
}

.spinner-container { text-align: center; padding: 2.5rem; color: var(--text-muted); }
.spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto .7rem;
    border: 3px solid #d9ded9;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

.footer {
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: .8rem;
}

/* =========================
   A02 - CONSUMO DE API REST
========================= */
.api-state-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(24, 41, 27, 0.06);
}

.api-state-card strong {
    display: block;
    margin-bottom: .2rem;
    color: var(--text-dark);
    font-size: .93rem;
}

.api-state-card p {
    color: var(--text-muted);
    font-size: .82rem;
}

.api-state-card code {
    display: inline-block;
    margin-top: .45rem;
    padding: .25rem .5rem;
    border-radius: 6px;
    background: #f1f4f1;
    color: #3e5141;
    font-size: .72rem;
}

.api-state-loading .spinner {
    flex: 0 0 auto;
    margin: 0;
}

.api-state-error {
    align-items: flex-start;
    border-color: #ebc2c2;
    background: #fff7f7;
}

.api-state-empty {
    align-items: flex-start;
    background: #fbfcfb;
}

.api-state-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f5dddd;
    color: #9b3434;
    font-weight: 800;
}

.api-state-empty .api-state-icon {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.api-state-content { flex: 1; }

.api-state-actions {
    display: flex;
    gap: .6rem;
    margin-top: .8rem;
}

.btn-api-retry {
    border: 0;
    border-radius: 7px;
    padding: 9px 15px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.btn-api-retry:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.api-success-note {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 .9rem;
    padding: .42rem .7rem;
    border: 1px solid #b8dabb;
    border-radius: 999px;
    background: #f2faf3;
    color: #35643a;
    font-size: .72rem;
    font-weight: 600;
}

.api-success-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}

.detail-api-status {
    margin: 1rem 0 1.4rem;
}

.hotel-detail-shell.api-pending .detail-heading,
.hotel-detail-shell.api-pending .detail-gallery,
.hotel-detail-shell.api-pending .detail-layout,
.hotel-detail-shell.api-error .detail-heading,
.hotel-detail-shell.api-error .detail-gallery,
.hotel-detail-shell.api-error .detail-layout {
    display: none;
}

.hotel-detail-shell.api-ready .detail-api-status {
    display: none !important;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1050px) {
    .header { padding: 0 1.5rem; }
    .nav { gap: 1rem; }
    .search-container { grid-template-columns: repeat(2, 1fr); margin-bottom: -10rem; }
    .btn-search { grid-column: 1 / -1; }
    .main-container { padding-top: 8.4rem; }
    .hero-compact + .main-container { padding-top: 3rem; }
    .activity-grid, .offer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
    .header { min-height: auto; padding: 1rem 1.2rem; align-items: flex-start; gap: .8rem; }
    .nav { flex-wrap: wrap; justify-content: flex-end; gap: .65rem 1rem; }
    .nav a { font-size: .82rem; }
    .nav .btn-nav-action { padding: 7px 12px; }
    .layout-grid { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
    .hotel-card { grid-template-columns: 1fr; }
    .hotel-card-img { height: 220px; }
    .section-heading, .form-card-heading { align-items: flex-start; flex-direction: column; gap: .65rem; }
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: auto; }
}

@media (max-width: 600px) {
    .header { flex-direction: column; align-items: stretch; }
    .logo { text-align: center; }
    .nav { justify-content: center; }
    .hero { min-height: 470px; padding-left: 1rem; padding-right: 1rem; }
    .hero-compact { min-height: 270px; }
    .search-container { grid-template-columns: 1fr; margin-bottom: -18rem; width: calc(100% - 1.5rem); }
    .btn-search { grid-column: auto; }
    .main-container { width: min(100% - 1.5rem, 1220px); padding-top: 16rem; }
    .hero-compact + .main-container { padding-top: 2rem; }
    .activity-grid, .offer-grid { grid-template-columns: 1fr; }
    .hotel-card-header { flex-direction: column; }
    .hotel-price { text-align: left; }
    .card-panel { padding: 1.3rem; }
    .form-actions { flex-direction: column-reverse; align-items: stretch; }
    .btn-secondary, .btn-submit { width: 100%; text-align: center; }
    .login-body { padding: 1rem; }
    .login-brand { left: 18px; top: 18px; }
    .glass-card { padding: 2.2rem 1.5rem; }
}


/* =========================
   RESERVAS - MODAL Y BOTÓN
========================= */
.hotel-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hotel-card-bottom .source-info {
    flex: 1;
    width: auto;
}

.btn-reservar {
    min-width: 120px;
    padding: 11px 20px;
    border: none;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(47, 127, 53, .20);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-reservar:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(47, 127, 53, .28);
}

.btn-reservar:active {
    transform: translateY(0);
}

.modal-abierto {
    overflow: hidden;
}

.modal-reserva {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 12, .62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-contenido {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, .30);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, .30);
    animation: modalEntrada .25s ease;
}

@keyframes modalEntrada {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-cerrar {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, .05);
    color: #444;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.modal-header {
    padding-right: 2rem;
    margin-bottom: 1.4rem;
}

.modal-kicker {
    display: inline-block;
    margin-bottom: .35rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .68rem;
    font-weight: 800;
}

.modal-header h2 {
    color: var(--text-dark);
    font-size: 1.55rem;
    line-height: 1.2;
    margin-bottom: .4rem;
}

.modal-header p {
    color: var(--text-muted);
    font-size: .85rem;
}

.reserva-hotel-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(232, 244, 233, .65);
}

.reserva-hotel-info > div {
    display: flex;
    flex-direction: column;
}

.reserva-label {
    margin-bottom: 2px;
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 600;
}

.reserva-hotel-info strong {
    color: var(--text-dark);
    font-size: .9rem;
}

.reserva-precio-container { text-align: right; }
.reserva-precio-container strong { color: var(--primary); font-size: 1.05rem; }

.form-reserva {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-reserva-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-reserva-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.form-reserva-group label {
    color: var(--text-dark);
    font-size: .78rem;
    font-weight: 700;
}

.form-reserva-group input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, .88);
    color: var(--text-dark);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-reserva-group input:focus {
    border-color: #74b77b;
    box-shadow: 0 0 0 3px rgba(47, 127, 53, .11);
}

.modal-aviso {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .8rem .9rem;
    border-radius: 8px;
    background: #f5f7f5;
    color: var(--text-muted);
    font-size: .75rem;
}

.modal-aviso span {
    color: var(--primary);
    font-size: .65rem;
    margin-top: 3px;
}

.modal-acciones {
    display: flex;
    justify-content: flex-end;
    gap: .7rem;
    padding-top: .4rem;
}

.btn-modal-secundario,
.btn-confirmar-reserva {
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.btn-modal-secundario {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-muted);
}

.btn-confirmar-reserva {
    border: none;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 7px 18px rgba(47, 127, 53, .20);
}

.btn-confirmar-reserva:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-confirmar-reserva:disabled {
    opacity: .65;
    cursor: wait;
}

.mensaje-reserva {
    padding: .9rem;
    border-radius: 8px;
    text-align: center;
    font-size: .85rem;
    font-weight: 700;
}

.mensaje-procesando {
    border: 1px solid #d8d8d8;
    background: #f5f5f5;
    color: #555;
}

.mensaje-exito {
    border: 1px solid #9ed2a4;
    background: #edf8ee;
    color: var(--primary-dark);
}

@media (max-width: 600px) {
    .hotel-card-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-reservar { width: 100%; }
    .modal-reserva { padding: .8rem; }
    .modal-contenido { padding: 1.5rem; border-radius: 14px; }
    .form-reserva-row { grid-template-columns: 1fr; }
    .reserva-hotel-info { align-items: flex-start; flex-direction: column; }
    .reserva-precio-container { text-align: left; }
    .modal-acciones { flex-direction: column-reverse; }
    .btn-modal-secundario, .btn-confirmar-reserva { width: 100%; }
}

/* =========================
   SESIÓN / REGISTRO USUARIO
========================= */
.nav-user-name {
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap;
}

.glass-card-register {
    width: min(430px, 100%);
    padding-top: 2.2rem;
    padding-bottom: 2rem;
}

.auth-demo-note {
    margin: -.15rem 0 1rem;
    color: rgba(255,255,255,.66);
    font-size: .7rem;
    text-align: left;
}

.auth-message {
    margin-top: 1rem;
    padding: .72rem .85rem;
    border-radius: 8px;
    font-size: .75rem;
    text-align: left;
}

.auth-message.error {
    border: 1px solid rgba(255, 153, 153, .58);
    background: rgba(130, 24, 24, .22);
    color: #fff;
}

.auth-message.ok {
    border: 1px solid rgba(130, 220, 142, .72);
    background: rgba(31, 112, 43, .22);
    color: #fff;
}

/* =========================
   TARJETA CLICKEABLE
========================= */
.hotel-card-clickable {
    cursor: pointer;
}

.hotel-card-clickable:focus-visible {
    outline: 3px solid rgba(47,127,53,.28);
    outline-offset: 3px;
}

/* =========================
   DETALLE DEL HOTEL
========================= */
.hotel-detail-page {
    min-height: 100vh;
    background: #f6f7f5;
}

.hotel-detail-shell {
    width: min(1220px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

.detail-back-link {
    display: inline-block;
    margin-bottom: 1.1rem;
    color: var(--primary);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
}

.detail-back-link:hover { text-decoration: underline; }

.detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.35rem;
}

.detail-category {
    display: inline-flex;
    padding: 5px 9px;
    margin-bottom: .55rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: .72rem;
    font-weight: 800;
}

.detail-heading h1 {
    overflow-wrap: anywhere;
    font-size: 2.25rem;
    line-height: 1.05;
    letter-spacing: 0;
}

.detail-location {
    margin-top: .5rem;
    color: var(--text-muted);
    font-size: .92rem;
}

.detail-price-block {
    min-width: 190px;
    text-align: right;
}

.detail-price-block span,
.detail-price-block small {
    display: block;
    color: var(--text-muted);
    font-size: .72rem;
}

.detail-price-block strong {
    display: block;
    margin: .1rem 0;
    color: var(--primary-dark);
    font-size: 1.7rem;
}

.detail-gallery {
    display: grid;
    grid-template-columns: 1.55fr .8fr .8fr;
    grid-template-rows: 190px 190px;
    gap: 8px;
    overflow: hidden;
    margin-bottom: 1.7rem;
    border-radius: 18px;
    background: #e7ebe7;
}

.detail-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-gallery-img-1 {
    grid-row: 1 / 3;
}


.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    align-items: start;
}

.detail-main-column {
    display: grid;
    gap: 1.35rem;
}

.detail-panel {
    padding: 1.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 28px rgba(34,48,36,.06);
}

.detail-panel h2 {
    margin: .1rem 0 .75rem;
    font-size: 1.4rem;
}

.detail-description {
    color: #4e554f;
    line-height: 1.75;
}

.detail-services {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.25rem;
}

.detail-service-chip {
    padding: 8px 11px;
    border: 1px solid #dbe8dc;
    border-radius: 999px;
    background: #f4faf4;
    color: #335b37;
    font-size: .78rem;
    font-weight: 700;
}

.detail-policy {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: .82rem;
}

.detail-policy strong { color: var(--text-dark); }

.detail-disclaimer {
    margin-bottom: 1.2rem;
    color: var(--text-muted);
    font-size: .78rem;
}

.area-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem;
}

.area-info-card {
    display: flex;
    gap: .8rem;
    min-height: 145px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fafbfa;
}

.area-info-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 900;
}

.area-info-card h3 {
    margin-bottom: .35rem;
    font-size: .88rem;
}

.area-info-card p {
    color: var(--text-muted);
    font-size: .78rem;
    line-height: 1.55;
}

/* =========================
   PANEL DE RESERVA
========================= */
.booking-card {
    position: sticky;
    top: 92px;
    overflow: hidden;
    border: 1px solid #d8e3d9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(31,52,35,.12);
}

.booking-card-top {
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, #e9f7ea, #f8fbf8);
    border-bottom: 1px solid #dce8dd;
}

.booking-card-top span {
    display: block;
    margin-bottom: .2rem;
    color: var(--primary);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.booking-card-top strong {
    font-size: .95rem;
}

.booking-form {
    display: grid;
    gap: .95rem;
    padding: 1.2rem;
}

.booking-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}

.booking-field label {
    display: block;
    margin-bottom: .32rem;
    color: #3f4540;
    font-size: .74rem;
    font-weight: 800;
}

.booking-field input,
.booking-field select {
    width: 100%;
    min-height: 43px;
    padding: 9px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    outline: none;
}

.booking-field input:focus,
.booking-field select:focus {
    border-color: #78b77e;
    box-shadow: 0 0 0 3px rgba(47,127,53,.10);
}

.booking-summary {
    display: grid;
    gap: .55rem;
    padding: .9rem;
    border-radius: 10px;
    background: #f6f8f6;
}

.booking-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}

.booking-summary span {
    color: var(--text-muted);
    font-size: .75rem;
}

.booking-summary strong {
    font-size: .78rem;
}

.booking-summary-total {
    padding-top: .55rem;
    border-top: 1px solid #dde2dd;
}

.booking-summary-total strong {
    color: var(--primary-dark);
    font-size: 1rem;
}

.booking-account-note {
    padding: .8rem;
    border: 1px solid #dce8dd;
    border-radius: 9px;
    background: #f5faf5;
}

.booking-account-note strong {
    color: var(--primary-dark);
    font-size: .78rem;
}

.booking-account-note p {
    margin-top: .18rem;
    color: var(--text-muted);
    font-size: .72rem;
}

.btn-book-now {
    min-height: 46px;
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 9px 20px rgba(47,127,53,.2);
    transition: background .2s ease, transform .2s ease;
}

.btn-book-now:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.booking-small-note {
    margin-top: -.25rem;
    color: var(--text-muted);
    text-align: center;
    font-size: .68rem;
}

.booking-message {
    padding: .75rem .8rem;
    border-radius: 8px;
    font-size: .74rem;
    line-height: 1.45;
}

.booking-message.error {
    border: 1px solid #e7b5b5;
    background: #fff1f1;
    color: #8b2b2b;
}

.booking-message.info {
    border: 1px solid #cbd7e8;
    background: #f0f6ff;
    color: #345274;
}

.booking-message.ok {
    border: 1px solid #b8dabc;
    background: #eff8f0;
    color: #275f2e;
}

/* Checkout con resumen más completo */
.reserva-hotel-info-column {
    display: grid;
    gap: .75rem;
    align-items: stretch;
}

.reserva-info-row {
    display: flex;
    flex-direction: column;
}

.reserva-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
}

.reserva-info-grid > div {
    display: flex;
    flex-direction: column;
    padding: .65rem;
    border-radius: 8px;
    background: rgba(255,255,255,.55);
}

.reserva-total-highlight strong {
    color: var(--primary-dark);
    font-size: 1.05rem;
}

@media (max-width: 980px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .booking-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .hotel-detail-shell {
        width: min(100% - 1.5rem, 1220px);
        padding-top: 1.2rem;
    }

    .detail-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .detail-price-block {
        text-align: left;
    }

    .detail-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 230px 130px;
    }

    .detail-gallery-img-1 {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .detail-gallery-img-4,
    .detail-gallery-img-5 {
        display: none;
    }

    .area-info-grid {
        grid-template-columns: 1fr;
    }

    .area-info-card {
        min-height: auto;
    }

    .detail-policy {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .booking-date-grid,
    .reserva-info-grid {
        grid-template-columns: 1fr;
    }

    .detail-gallery {
        display: block;
    }

    .detail-gallery-img {
        display: none;
    }

    .detail-gallery-img-1 {
        display: block;
        height: 260px;
    }
}


/* =========================
   A03 - PRECIOS / PROMOCIONES EXTERNAS
========================= */
.external-price-badge {
    display: block;
    width: max-content;
    margin-left: auto;
    margin-bottom: .25rem;
    padding: 4px 7px;
    border-radius: 999px;
    background: #e8f6e9;
    color: var(--primary-dark);
    font-size: .62rem;
    font-weight: 800;
    line-height: 1;
}

.hotel-old-price,
.offer-old-price,
.detail-old-price {
    color: #8b938d;
    text-decoration: line-through;
    font-weight: 600;
}

.hotel-old-price {
    display: block;
    margin-bottom: -2px;
    font-size: .75rem;
}

.hotel-current-price { display: block; }

.source-info-a03 {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .55rem;
}

.source-info-a03 strong { color: #4f5a52; }
.source-info-a03 span { display: block; width: 100%; }

.offer-old-price {
    margin-top: .25rem;
    font-size: .76rem;
}

.offer-source-a03 {
    display: grid;
    gap: .22rem;
    margin-top: .9rem;
    padding: .75rem .8rem;
    border-left: 3px solid var(--primary);
    border-radius: 6px;
    background: #f5f7f5;
    color: var(--text-muted);
    font-size: .72rem;
}

.offer-source-a03 strong { color: var(--text-dark); }
.offer-source-a03 small { opacity: .88; line-height: 1.35; }

.a03-demo-note {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px solid #cfe5d1;
    border-radius: 12px;
    background: #f4fbf5;
}

.a03-demo-note strong { color: var(--primary-dark); }
.a03-demo-note p {
    margin-top: .25rem;
    color: var(--text-muted);
    font-size: .82rem;
}

.detail-old-price {
    display: block;
    margin-top: .15rem;
    font-size: .8rem !important;
}

.detail-promo-label {
    margin-bottom: .18rem;
    color: var(--primary-dark) !important;
    font-weight: 800;
}

.external-source-panel {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    margin: -1rem 0 1.35rem;
    padding: .9rem 1rem;
    border: 1px solid #cfe5d1;
    border-radius: 12px;
    background: #f4fbf5;
}

.external-source-panel > div {
    display: grid;
    gap: .15rem;
}

.external-source-panel > div:last-child { text-align: right; }
.external-source-panel span:not(.section-kicker) {
    color: var(--text-muted);
    font-size: .7rem;
}
.external-source-panel strong {
    color: var(--text-dark);
    font-size: .82rem;
}

@media (max-width: 600px) {
    .external-price-badge { margin-left: 0; }
    .external-source-panel { flex-direction: column; }
    .external-source-panel > div:last-child { text-align: left; }
}


/* =========================
   A05/A06 - METADATOS DE INTEGRACIÓN
========================= */
.integration-meta-note {
    margin: -.35rem 0 1rem;
    padding: .65rem .8rem;
    border: 1px solid #dce7dd;
    border-radius: 9px;
    background: #f8faf8;
    color: #687169;
    font-size: .72rem;
    line-height: 1.45;
}

/* Identidad compartida por catálogo, cuenta y paneles de todos los roles. */
.hotel-rating-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .65rem; }
.hotel-rating { display: inline-block; background: #e9f1f5; color: #284f63; border-radius: 4px; padding: .25rem .45rem; font-size: .8rem; font-weight: 700; }
.hotel-rating-caption, .hotel-rating-empty { color: var(--text-muted); font-size: .73rem; }
[hidden] { display: none !important; }
:where(h1, h2, h3, .section-kicker, .hero-eyebrow, .modal-kicker, .detail-kicker) { letter-spacing: 0; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #77a8bd; outline-offset: 3px; }
:where(button, input, select, textarea) { accent-color: var(--primary); }
:where(button, a) { touch-action: manipulation; }
.hero-compact { min-height: 220px; padding: 3rem 1.5rem; }
.section-heading, .form-card-heading { min-width: 0; }
.section-heading h2, .form-card-heading h2 { overflow-wrap: anywhere; }
.card-panel, .filter-panel { box-shadow: none; }
.activity-card, .offer-card, .modal-contenido, .booking-card, .detail-gallery, .external-source-panel { border-radius: 8px; }
.activity-card, .offer-card { box-shadow: var(--shadow); }
.activity-card { scroll-margin-top: 140px; }
.detail-panel { padding: 1.4rem 0; border: 0; border-top: 1px solid var(--border-color); border-radius: 0; box-shadow: none; background: transparent; }
.area-info-card { border: 0; border-radius: 0; border-top: 1px solid var(--border-color); background: transparent; padding: 1rem 0; }
.booking-card { box-shadow: var(--shadow); }
.booking-card-top { background: #edf2f4; }
.booking-card-top span { letter-spacing: 0; color: var(--primary-dark); }
.discover-inner .section-kicker { color: var(--primary-dark); }
.detail-heading > div { min-width: 0; }
.detail-service-chip, .detail-category { border-radius: 4px; }
.btn-submit, .btn-search, .btn-reservar, .btn-book-now, .btn-confirmar-reserva, .btn-api-retry { border-radius: 5px; box-shadow: none; min-height: 42px; }
.btn-submit:hover, .btn-search:hover, .btn-reservar:hover { transform: none; }
.tag-item, .activity-type { border-radius: 4px; background: #edf2f4; color: #3a5560; }
.footer { background: #fff; color: var(--text-muted); border-top: 1px solid var(--border-color); }
@media (max-width: 600px) {
    .hero-compact { min-height: 190px; padding: 2.5rem 1rem; }
    .hero-compact h1 { font-size: 1.9rem; }
    .section-heading h2, .form-card-heading h2 { font-size: 1.5rem; }
    .detail-heading h1 { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
