/* ==========================================================================
   La Casita de las Hortensias — Design System
   Identidad: verde salvia #507070 · naranja #fb5f00
   Tipografía: Playfair Display (display) · Poppins (texto)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Marca */
    --lch-primary: #507070;
    --lch-primary-strong: #3f5a5a;
    --lch-primary-deep: #2c4242;
    --lch-primary-soft: #6b9090;
    --lch-accent: #fb5f00;
    --lch-accent-strong: #d95300;

    /* Neutros cálidos */
    --lch-ink: #1c2a2a;
    --lch-body-color: #44565a;
    --lch-muted: #64767a;
    --lch-surface: #ffffff;
    --lch-bg-tint: #f4f8f7;
    --lch-line: rgba(80, 112, 112, 0.14);
    --lch-line-strong: rgba(80, 112, 112, 0.28);

    /* Tintas translúcidas de marca */
    --lch-primary-08: rgba(80, 112, 112, 0.08);
    --lch-primary-12: rgba(80, 112, 112, 0.12);
    --lch-primary-20: rgba(80, 112, 112, 0.2);

    /* Sombras en capas (suaves, teñidas de marca) */
    --shadow-xs: 0 1px 2px rgba(28, 42, 42, 0.05);
    --shadow-sm: 0 1px 2px rgba(28, 42, 42, 0.04), 0 4px 12px rgba(28, 42, 42, 0.06);
    --shadow-md: 0 2px 4px rgba(28, 42, 42, 0.04), 0 10px 28px rgba(28, 42, 42, 0.09);
    --shadow-lg: 0 4px 8px rgba(28, 42, 42, 0.05), 0 20px 48px rgba(28, 42, 42, 0.13);
    --shadow-primary: 0 8px 24px rgba(80, 112, 112, 0.32);
    --shadow-primary-lg: 0 14px 36px rgba(80, 112, 112, 0.4);

    /* Radios */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* Movimiento */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --dur-fast: 0.22s;
    --dur-med: 0.4s;
    --dur-slow: 0.7s;

    /* Compat Bootstrap */
    --bs-primary: #507070;
    --bs-secondary: #fb5f00;

    /* Layout */
    --nav-height: 76px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html {
    scroll-padding-top: calc(var(--nav-height) + 12px);
    overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--lch-body-color);
    background-color: var(--lch-surface);
    overflow-x: clip;
    line-height: 1.75;
    font-size: 1rem;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--lch-ink);
    line-height: 1.2;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

::selection {
    background: var(--lch-primary);
    color: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

/* Enlace para saltar al contenido (accesibilidad teclado / lector) */
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10001;
    padding: 0.75rem 1.25rem;
    background: var(--lch-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transform: translateY(-200%);
    transition: transform var(--dur-fast) var(--ease-out);
}

.skip-link:focus-visible {
    transform: translateY(0);
    color: #fff;
    outline: none;
}

/* Foco visible consistente en todo el sitio */
:focus-visible {
    outline: 3px solid var(--lch-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible,
.filter-btn:focus-visible {
    outline: 3px solid var(--lch-primary);
    outline-offset: 3px;
    box-shadow: none;
}

/* Compat: clase heredada del contenido; alineación natural para mejor lectura */
.text-justify {
    text-align: left !important;
}

.text-secondary {
    color: var(--lch-body-color) !important;
}

.bg-light {
    background-color: var(--lch-bg-tint) !important;
}

/* --------------------------------------------------------------------------
   3. Motor de animaciones de scroll (sustituye a AOS)
   Los atributos data-aos existentes se convierten en transiciones nativas.
   El JS añade .aos-in al entrar en el viewport.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    [data-aos] {
        opacity: 0;
        transition:
            opacity var(--dur-slow) var(--ease-out),
            transform var(--dur-slow) var(--ease-out);
        transition-delay: var(--aos-delay, 0ms);
    }

    [data-aos="fade-up"]    { transform: translateY(26px); }
    [data-aos="fade-down"]  { transform: translateY(-26px); }
    [data-aos="fade-right"] { transform: translateX(-30px); }
    [data-aos="fade-left"]  { transform: translateX(30px); }

    [data-aos].aos-in {
        opacity: 1;
        transform: none;
    }
}

/* Sin JS (o bots): todo visible */
.no-js [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
    --btn-y: 0px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: var(--radius-pill);
    transition:
        transform var(--dur-fast) var(--ease-out),
        box-shadow var(--dur-fast) var(--ease-out),
        background-color var(--dur-fast) ease,
        color var(--dur-fast) ease,
        border-color var(--dur-fast) ease;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--lch-primary), var(--lch-primary-strong));
    border: none;
    padding: 0.8rem 2rem;
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Barrido de luz sutil al hacer hover */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.7s var(--ease-out);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: linear-gradient(135deg, var(--lch-primary-strong), var(--lch-primary-deep));
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

.btn-primary:hover::before {
    transform: translateX(120%);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-primary);
}

.btn-outline-light {
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.8rem 2rem;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background: #fff;
    border-color: #fff;
    color: var(--lch-primary-strong);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.btn-outline-light:hover i {
    color: var(--lch-primary-strong) !important;
}

.btn-outline-primary {
    color: var(--lch-primary);
    border: 1.5px solid var(--lch-line-strong);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background: var(--lch-primary);
    border-color: var(--lch-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background-color: var(--lch-accent);
    border-color: var(--lch-accent);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--lch-accent-strong);
    border-color: var(--lch-accent-strong);
}

.btn i {
    transition: transform var(--dur-fast) var(--ease-out);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-sm {
    padding: 0.45rem 1.15rem;
    min-height: 38px;
}

/* --------------------------------------------------------------------------
   5. Navbar — vidrio esmerilado que se solidifica al hacer scroll
   -------------------------------------------------------------------------- */
.navbar {
    min-height: var(--nav-height);
    background: rgba(255, 255, 255, 0.82) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    border-bottom: 1px solid transparent;
    box-shadow: none !important;
    transition:
        background-color var(--dur-med) ease,
        border-color var(--dur-med) ease,
        box-shadow var(--dur-med) ease;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom-color: var(--lch-line);
    box-shadow: 0 8px 30px rgba(28, 42, 42, 0.07) !important;
}

.navbar-brand img {
    height: 48px;
    width: auto;
    transition: height var(--dur-med) var(--ease-out);
}

.navbar-scrolled .navbar-brand img {
    height: 42px;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--lch-ink);
    padding: 0.6rem 0.9rem !important;
    position: relative;
}

/* Subrayado animado */
.navbar .nav-link:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    border-radius: 2px;
    background: var(--lch-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-med) var(--ease-out);
}

.navbar .nav-link:not(.btn):hover::after,
.navbar .nav-link:not(.btn):focus-visible::after,
.navbar .nav-link:not(.btn).active::after {
    transform: scaleX(1);
}

.navbar .nav-link:not(.btn):hover,
.navbar .nav-link:not(.btn).active {
    color: var(--lch-primary);
}

.navbar .nav-link.btn {
    padding: 0.55rem 1.35rem !important;
}

.navbar-toggler {
    border: 1px solid var(--lch-line-strong);
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.65rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem var(--lch-primary-20);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem 0.25rem 1rem;
        border-top: 1px solid var(--lch-line);
    }

    .navbar .nav-link {
        padding: 0.7rem 0.9rem !important;
    }

    .navbar .nav-link.btn {
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background-color: var(--lch-primary-deep);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-media {
        animation: hero-zoom 26s var(--ease-out) both;
    }

    @keyframes hero-zoom {
        from { transform: scale(1.08); }
        to   { transform: scale(1); }
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(90% 60% at 50% 42%, rgba(0, 0, 0, 0) 40%, rgba(12, 22, 22, 0.34) 100%),
        linear-gradient(180deg, rgba(12, 22, 22, 0.5) 0%, rgba(12, 22, 22, 0.18) 45%, rgba(12, 22, 22, 0.55) 100%);
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 300;
    letter-spacing: 0.01em;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* Separador ornamental bajo el título */
.hero-rule {
    width: 72px;
    height: 2px;
    margin: 0 auto 1.5rem;
    border: 0;
    opacity: 1;
    background: linear-gradient(90deg, transparent, var(--lch-accent), transparent);
}

/* Indicador de scroll */
.hero-scroll-indicator {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    text-decoration: none;
    transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

.hero-scroll-indicator a:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.8);
    color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-scroll-indicator {
        animation: hero-bounce 2.4s ease-in-out infinite;
    }

    @keyframes hero-bounce {
        0%, 100% { transform: translate(-50%, 0); }
        50%      { transform: translate(-50%, 8px); }
    }
}

/* --------------------------------------------------------------------------
   7. Secciones y cabeceras de sección
   -------------------------------------------------------------------------- */
.section-padding {
    padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.section-divider {
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--lch-accent), #ffa25c);
    margin: 0 auto 1.1rem;
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--lch-muted);
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   8. Sección "Bienvenida" (about)
   -------------------------------------------------------------------------- */
.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Marco interior fino, detalle editorial */
.about-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: calc(var(--radius-lg) - 10px);
    pointer-events: none;
}

.about-image-wrapper img {
    display: block;
    width: 100%;
    transition: transform 1.2s var(--ease-out);
}

.about-image-wrapper:hover img {
    transform: scale(1.04);
}

.about-content .lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--lch-ink);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--lch-surface);
    border: 1px solid var(--lch-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--dur-med) var(--ease-out),
        box-shadow var(--dur-med) var(--ease-out),
        border-color var(--dur-med) ease;
    height: 100%;
}

.highlight-item:hover {
    transform: translateY(-3px);
    border-color: var(--lch-line-strong);
    box-shadow: var(--shadow-md);
}

.highlight-item i {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--lch-primary), var(--lch-primary-soft));
    color: #fff !important;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(80, 112, 112, 0.28);
    transition: transform var(--dur-med) var(--ease-spring);
}

.highlight-item:hover i {
    transform: scale(1.08) rotate(-4deg);
}

.highlight-item span {
    font-weight: 600;
    font-size: 1rem;
    color: var(--lch-primary-strong);
}

/* --------------------------------------------------------------------------
   9. Galería
   -------------------------------------------------------------------------- */
.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--lch-surface);
    border: 1px solid var(--lch-line-strong);
    color: var(--lch-primary-strong);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    min-height: 44px;
    transition:
        background-color var(--dur-fast) ease,
        color var(--dur-fast) ease,
        border-color var(--dur-fast) ease,
        box-shadow var(--dur-fast) ease,
        transform var(--dur-fast) var(--ease-out);
}

.filter-btn:hover {
    border-color: var(--lch-primary);
    background: var(--lch-primary-08);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--lch-primary), var(--lch-primary-strong));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

a:hover .gallery-item,
a:focus-visible .gallery-item {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: var(--lch-bg-tint);
    transition: transform 0.9s var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.07);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 26, 26, 0.85) 0%, rgba(15, 26, 26, 0.25) 55%, transparent 100%);
    opacity: 0;
    transition: opacity var(--dur-med) ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay,
a:focus-visible .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: #fff;
    transform: translateY(10px);
    transition: transform var(--dur-med) var(--ease-out);
}

.gallery-item:hover .gallery-content,
a:focus-visible .gallery-content {
    transform: translateY(0);
}

.gallery-content h3 {
    color: #fff;
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
}

.gallery-content p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    font-weight: 300;
}

.gallery-content i {
    font-size: 1.4rem;
    opacity: 0.9;
}

/* Filtrado: transición suave de entrada/salida */
.gallery-col {
    transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}

.gallery-col.is-filtering {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
}

.gallery-col.is-filtered-out {
    display: none;
}

/* --------------------------------------------------------------------------
   10. Características
   -------------------------------------------------------------------------- */
.feature-card {
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--lch-surface);
    border: 1px solid var(--lch-line);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--dur-med) var(--ease-out),
        box-shadow var(--dur-med) var(--ease-out),
        border-color var(--dur-med) ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--lch-line-strong);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.35rem;
    background: linear-gradient(135deg, var(--lch-primary), var(--lch-primary-soft));
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(80, 112, 112, 0.3);
    transition: transform var(--dur-med) var(--ease-spring), box-shadow var(--dur-med) ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.08) rotate(-4deg);
    box-shadow: 0 12px 28px rgba(80, 112, 112, 0.38);
}

.feature-card h3 {
    color: var(--lch-primary-strong);
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--lch-muted);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   11. Opiniones — estadísticas y tarjetas
   -------------------------------------------------------------------------- */
.review-stats {
    background: linear-gradient(160deg, var(--lch-primary-08), var(--lch-primary-12));
    border: 1px solid var(--lch-line);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
}

.stat-card {
    background: var(--lch-surface);
    padding: 1.9rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--lch-line);
    box-shadow: var(--shadow-xs);
    height: 100%;
    transition:
        transform var(--dur-med) var(--ease-out),
        box-shadow var(--dur-med) var(--ease-out),
        border-color var(--dur-med) ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--lch-line-strong);
}

.stat-number {
    font-size: clamp(2.4rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--lch-primary);
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.1;
    margin-bottom: 0.4rem;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.92rem;
    color: var(--lch-muted);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-stars {
    color: #ffa41c;
    font-size: 1.3rem;
    letter-spacing: 3px;
}

.stat-icon {
    font-size: 2rem;
    color: var(--lch-primary);
    margin-top: 0.25rem;
}

.review-card {
    background: var(--lch-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--lch-line);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.review-author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lch-primary), var(--lch-primary-soft));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(80, 112, 112, 0.3);
    flex-shrink: 0;
}

.review-author-details p {
    margin: 0;
    color: var(--lch-muted);
    font-size: 0.8rem;
}

/* El nombre del autor no es un encabezado (accesibilidad: heading-order) */
.review-author-details .review-author-name {
    color: var(--lch-ink);
    font-weight: 600;
    font-size: 0.95rem;
}

.review-rating-box {
    text-align: right;
    flex-shrink: 0;
}

.review-rating {
    background: linear-gradient(135deg, var(--lch-primary), var(--lch-primary-soft));
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 3px 10px rgba(80, 112, 112, 0.3);
}

.review-source {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--lch-muted);
}

.review-source.booking { color: #003580; }
.review-source.google  { color: #4285f4; }

.review-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--lch-primary);
    margin-bottom: 0.7rem;
    line-height: 1.3;
}

.review-comment {
    color: var(--lch-body-color);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--lch-line);
    margin-top: auto;
}

.review-date {
    color: var(--lch-muted);
    font-size: 0.78rem;
}

.review-helpful {
    color: var(--lch-muted);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.review-helpful i,
.review-date i {
    color: var(--lch-primary);
}

/* Grid de reseñas dentro del carrusel */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0.25rem 0.25rem 1rem;
}

@media (max-width: 767.98px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* Controles del carrusel: discretos y accesibles */
#reviewsCarousel {
    position: relative;
    padding-bottom: 2.5rem;
}

#reviewsCarousel .carousel-indicators {
    position: absolute;
    bottom: 0;
    margin-bottom: 0;
}

#reviewsCarousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 0;
    margin: 0 5px;
    background-color: var(--lch-primary);
    opacity: 0.25;
    transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

#reviewsCarousel .carousel-indicators .active {
    opacity: 1;
    transform: scale(1.25);
}

#reviewsCarousel .carousel-control-prev,
#reviewsCarousel .carousel-control-next {
    width: 46px;
    height: 46px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--lch-surface);
    border: 1px solid var(--lch-line-strong);
    box-shadow: var(--shadow-sm);
    opacity: 0.9;
    transition: background-color var(--dur-fast) ease, opacity var(--dur-fast) ease;
}

#reviewsCarousel .carousel-control-prev { left: -10px; }
#reviewsCarousel .carousel-control-next { right: -10px; }

#reviewsCarousel .carousel-control-prev:hover,
#reviewsCarousel .carousel-control-next:hover {
    background: var(--lch-primary);
    opacity: 1;
}

#reviewsCarousel .carousel-control-prev-icon,
#reviewsCarousel .carousel-control-next-icon {
    width: 1.1rem;
    height: 1.1rem;
    filter: invert(45%) sepia(12%) saturate(700%) hue-rotate(135deg);
}

#reviewsCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#reviewsCarousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

@media (max-width: 991.98px) {
    #reviewsCarousel .carousel-control-prev,
    #reviewsCarousel .carousel-control-next {
        display: none;
    }
}

.booking-badge {
    display: inline-block;
    padding: 1rem;
}

.booking-badge img {
    width: 150px;
    height: auto;
    transition: transform var(--dur-med) var(--ease-spring);
}

.booking-badge img:hover {
    transform: scale(1.06) rotate(2deg);
}

@media (max-width: 767.98px) {
    .booking-badge img {
        width: 180px;
    }
}

/* --------------------------------------------------------------------------
   12. Sección de ofertas / reserva
   -------------------------------------------------------------------------- */
.booking-section {
    background:
        radial-gradient(120% 140% at 85% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
        linear-gradient(140deg, var(--lch-primary-deep) 0%, var(--lch-primary) 55%, var(--lch-primary-soft) 100%);
    position: relative;
    overflow: hidden;
}

.booking-section::before,
.booking-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    filter: blur(2px);
}

.booking-section::before {
    top: -40%;
    right: -8%;
    width: 480px;
    height: 480px;
}

.booking-section::after {
    bottom: -35%;
    left: -6%;
    width: 380px;
    height: 380px;
    background: rgba(255, 255, 255, 0.04);
}

@media (prefers-reduced-motion: no-preference) {
    .booking-section::before {
        animation: float-orb 22s infinite ease-in-out;
    }

    .booking-section::after {
        animation: float-orb 17s infinite ease-in-out reverse;
    }

    @keyframes float-orb {
        0%, 100% { transform: translate(0, 0) scale(1); }
        50%      { transform: translate(26px, -26px) scale(1.06); }
    }
}

.booking-section .container {
    position: relative;
    z-index: 1;
}

.booking-section .section-title {
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}

.booking-section .section-divider {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), #fff, rgba(255, 255, 255, 0.55));
}

.booking-section a {
    transition: color var(--dur-fast) ease;
    text-underline-offset: 3px;
}

.booking-section a:hover {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* Tarjeta de vidrio para la info de reserva */
.booking-info .alert-light {
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-md);
    color: #fff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   13. Contacto
   -------------------------------------------------------------------------- */
.contact-card {
    padding: 2.25rem 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--lch-surface);
    border: 1px solid var(--lch-line);
    box-shadow: var(--shadow-xs);
    transition:
        transform var(--dur-med) var(--ease-out),
        box-shadow var(--dur-med) var(--ease-out),
        border-color var(--dur-med) ease;
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--lch-line-strong);
}

.contact-card h3 {
    color: var(--lch-primary-strong);
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.contact-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--lch-primary), var(--lch-primary-soft));
    color: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(80, 112, 112, 0.3);
    transition: transform var(--dur-med) var(--ease-spring);
}

.contact-card:hover .contact-icon {
    transform: scale(1.08) rotate(-4deg);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: #172222 !important;
}

.footer h3,
.footer h5 {
    color: #fff;
    font-size: 1.15rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    display: inline-block;
    padding: 0.3rem 0;
    transition: color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    text-decoration: none;
    transition:
        background-color var(--dur-fast) ease,
        border-color var(--dur-fast) ease,
        transform var(--dur-fast) var(--ease-out);
}

.social-links a:hover {
    background: var(--lch-accent);
    border-color: var(--lch-accent);
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   15. Overlays de consentimiento (cookies / aviso)
   -------------------------------------------------------------------------- */
.cookie-overlay,
.disclaimer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 26, 26, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 1rem;
}

.disclaimer-overlay {
    z-index: 10000;
}

.cookie-overlay.hidden,
.disclaimer-overlay.hidden {
    display: none;
}

.cookie-banner,
.disclaimer-banner {
    background: var(--lch-surface);
    border: 1px solid var(--lch-line);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 5vw, 3rem);
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

.disclaimer-banner {
    max-width: 700px;
}

@media (prefers-reduced-motion: no-preference) {
    .cookie-banner,
    .disclaimer-banner {
        animation: slide-up 0.55s var(--ease-out) both;
    }

    @keyframes slide-up {
        from {
            opacity: 0;
            transform: translateY(36px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }
}

.cookie-banner h3,
.disclaimer-banner h3 {
    color: var(--lch-primary);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.disclaimer-banner h3 {
    justify-content: center;
    text-align: center;
}

.disclaimer-icon {
    text-align: center;
    margin-bottom: 1.25rem;
}

.disclaimer-icon i {
    font-size: 3.2rem;
    color: var(--lch-primary);
}

.cookie-banner p,
.disclaimer-banner p {
    color: var(--lch-body-color);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.cookie-banner a,
.disclaimer-banner a {
    color: var(--lch-primary);
    font-weight: 500;
}

.btn-accept {
    background: linear-gradient(135deg, var(--lch-primary), var(--lch-primary-strong));
    border: none;
    color: #fff;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1.05rem;
    width: 100%;
    box-shadow: var(--shadow-primary);
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
}

.btn-accept:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

.cookie-links {
    margin-top: 1.1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--lch-muted);
}

.cookie-links a {
    color: var(--lch-primary);
    text-decoration: none;
    margin: 0 0.5rem;
}

.cookie-links a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   16. Botón volver arriba
   -------------------------------------------------------------------------- */
.scroll-top-btn {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 48px;
    height: 48px;
    background: var(--lch-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity var(--dur-med) var(--ease-out),
        visibility var(--dur-med),
        transform var(--dur-med) var(--ease-out),
        background-color var(--dur-fast) ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--lch-accent);
}

/* --------------------------------------------------------------------------
   17. Página "Descubre Segovia" (sugerencias)
   -------------------------------------------------------------------------- */
.hero-section-suggestions {
    position: relative;
    min-height: 62vh;
    padding: calc(var(--nav-height) + 4.5rem) 0 5rem;
    display: flex;
    align-items: center;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(90% 70% at 50% 40%, rgba(12, 22, 22, 0.15) 0%, rgba(12, 22, 22, 0.55) 100%),
        linear-gradient(180deg, rgba(12, 22, 22, 0.45), rgba(12, 22, 22, 0.4)),
        url('/assets/img/rincones/lch-rincon-ciruelo.jpg') center / cover no-repeat;
    background-image:
        radial-gradient(90% 70% at 50% 40%, rgba(12, 22, 22, 0.15) 0%, rgba(12, 22, 22, 0.55) 100%),
        linear-gradient(180deg, rgba(12, 22, 22, 0.45), rgba(12, 22, 22, 0.4)),
        image-set(
            url('/assets/img/rincones/lch-rincon-ciruelo.webp') type('image/webp'),
            url('/assets/img/rincones/lch-rincon-ciruelo.jpg') type('image/jpeg')
        );
}

.service-card,
.activity-card {
    background: var(--lch-surface);
    border: 1px solid var(--lch-line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition:
        transform var(--dur-med) var(--ease-out),
        box-shadow var(--dur-med) var(--ease-out),
        border-color var(--dur-med) ease;
    box-shadow: var(--shadow-xs);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover,
.activity-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--lch-line-strong);
}

.service-card .btn,
.activity-card .btn {
    margin-top: auto;
}

.service-icon,
.activity-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--lch-primary), var(--lch-primary-soft));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(80, 112, 112, 0.3);
    transition: transform var(--dur-med) var(--ease-spring);
}

.service-card:hover .service-icon,
.activity-card:hover .activity-icon {
    transform: scale(1.08) rotate(-4deg);
}

.service-icon i,
.activity-icon i {
    font-size: 1.7rem;
    color: #fff;
}

.service-card h3,
.activity-card h3 {
    color: var(--lch-primary-strong);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.service-card p,
.activity-card p {
    margin-bottom: 1.1rem;
    font-size: 0.92rem;
}

.restaurant-card {
    background: var(--lch-surface);
    border: 1px solid var(--lch-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition:
        transform var(--dur-med) var(--ease-out),
        box-shadow var(--dur-med) var(--ease-out);
    box-shadow: var(--shadow-xs);
    height: 100%;
}

.restaurant-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.restaurant-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: var(--lch-bg-tint);
}

.restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out);
}

.restaurant-card:hover .restaurant-image img {
    transform: scale(1.07);
}

.restaurant-overlay {
    position: absolute;
    inset: 0;
    background: rgba(80, 112, 112, 0.85);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--dur-med) ease;
}

.restaurant-card:hover .restaurant-overlay,
.restaurant-card a:focus-visible .restaurant-overlay {
    opacity: 1;
}

.restaurant-overlay i {
    color: #fff;
    font-size: 1.7rem;
}

.restaurant-info {
    padding: 1.5rem;
}

.restaurant-info h3 {
    color: var(--lch-primary-strong);
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.restaurant-info p {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   18. Páginas legales
   -------------------------------------------------------------------------- */
.legal-page {
    background: var(--lch-bg-tint);
    min-height: 100vh;
}

.legal-header {
    background: var(--lch-surface);
    border-bottom: 1px solid var(--lch-line);
    padding: 1rem 0;
}

.legal-header img {
    height: 44px;
    width: auto;
}

.legal-card {
    background: var(--lch-surface);
    border: 1px solid var(--lch-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.75rem, 5vw, 3.5rem);
    max-width: 60rem;
    margin: 0 auto;
}

.legal-card h1 {
    color: var(--lch-primary);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 2rem;
}

.legal-card h2 {
    color: var(--lch-primary-strong);
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
}

.legal-card p,
.legal-card li {
    color: var(--lch-body-color);
    line-height: 1.8;
}

.legal-card a {
    color: var(--lch-primary);
}

/* --------------------------------------------------------------------------
   19. Utilidades finales y accesibilidad
   -------------------------------------------------------------------------- */
[x-cloak] {
    display: none !important;
}

.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

/* Usuarios que prefieren menos movimiento: sin animaciones ni parallax */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .navbar,
    .scroll-top-btn,
    .cookie-overlay,
    .disclaimer-overlay,
    .hero-scroll-indicator {
        display: none !important;
    }
}
