/* Explain: Styles for UI components like cards, forms, and sections. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.86), rgba(250, 249, 246, 0.52));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

/* Título principal de cada sección: mismo nivel, tamaño y estilo en toda la portada. */
.section-title {
    margin-top: 1rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 8vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

/* Título secundario que agrupa un bloque dentro de una sección. */
.section-subtitle {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* Cabecera unificada de sección: mismo Kicker, título, ancho de texto y márgenes en toda la portada. */
.section-header {
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;
}

.section-header .section-kicker {
    justify-content: center;
}

.section-lead {
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 2;
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.78), rgba(255, 255, 255, 0.48));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(250, 249, 246, 0.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(74vh, 720px);
    min-height: 500px;
    border-radius: 999px 999px 2.5rem 2.5rem;
}

.arch-frame-medium {
    height: 620px;
    max-width: 450px;
    border-radius: 999px 999px 2.1rem 2.1rem;
}

.floating-note {
    position: absolute;
    right: -1.5rem;
    bottom: 4rem;
    display: flex;
    max-width: 250px;
    align-items: center;
    gap: 0.85rem;
    border-radius: 999px;
    padding: 1rem 1.2rem;
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 600;
}

.story-card {
    position: absolute;
    right: 0;
    bottom: 2.5rem;
    max-width: 290px;
    border-radius: 2rem;
    padding: 1.5rem;
}

/* Tarjetas unificadas de toda la web */
.card-surface,
.quiet-detail,
.amenity-row,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.78), rgba(255, 255, 255, 0.48));
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.card-surface:hover,
.card-surface:focus-within,
.quiet-detail:hover {
    border-color: rgba(88, 129, 87, 0.5);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.11);
    transform: translateY(-5px);
}

.card-icon {
    display: inline-flex;
    height: 2.75rem;
    width: 2.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--accent-color);
    transition: background-color 300ms ease, color 300ms ease, transform 300ms ease;
}

.card-surface:hover .card-icon,
.card-surface:focus-within .card-icon {
    background: var(--primary-color);
    color: var(--poster-cream);
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .card-surface,
    .card-surface:hover .card-icon,
    .card-surface:focus-within .card-icon {
        transform: none;
        transition: border-color 300ms ease, box-shadow 300ms ease, background-color 300ms ease, color 300ms ease;
    }
}

.class-card {
    min-height: 360px;
    border-radius: 2.2rem;
    padding: 2rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.class-card:hover {
    border-color: rgba(88, 129, 87, 0.58);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.11);
    transform: translateY(-6px);
}

.amenity-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
}

.amenity-dot {
    width: 0.8rem;
    height: 0.8rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    background: var(--accent-color);
    box-shadow: 0 0 0 0.45rem var(--terracotta-soft);
}

.amenity-image-wrap {
    position: relative;
    min-height: 480px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 3rem 999px 999px 3rem;
    box-shadow: var(--shadow-soft);
}

.booking-form,
.booking-overlay-panel {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.form-label {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--text-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .form-label {
        margin-bottom: 0.7rem;
    }
}

.form-status {
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    padding: 0.95rem 1.15rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
    box-shadow: var(--shadow-soft);
}

.form-status:not(.hidden) {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.form-status-icon {
    flex-shrink: 0;
    margin-top: 0.15rem;
    font-size: 1.2rem;
}

.form-status.success {
    border-color: rgba(74, 107, 83, 0.45);
    background: rgba(74, 107, 83, 0.12);
    color: #3A5A40;
}

.form-status.success .form-status-icon {
    color: #4A6B53;
}

.form-status.error {
    border-color: rgba(155, 74, 61, 0.45);
    background: rgba(155, 74, 61, 0.1);
    color: #8A3F33;
}

.form-status.error .form-status-icon {
    color: #9B4A3D;
}

.form-status.loading {
    border-color: var(--glass-border);
    background: var(--field-bg);
    color: var(--text-muted);
}

.form-status.loading .form-status-icon {
    color: var(--accent-color);
    animation: form-status-spin 900ms linear infinite;
}

@keyframes form-status-spin {
    to {
        transform: rotate(360deg);
    }
}

.mobile-book-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(250, 249, 246, 0.86);
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

.booking-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    overflow-y: auto;
    background: rgba(31, 46, 35, 0.32);
    padding: 1rem;
}

.booking-overlay.is-open {
    display: block;
}

.booking-overlay-panel {
    min-height: calc(100vh - 2rem);
    background: var(--background-color);
    box-shadow: 0 30px 90px rgba(31, 46, 35, 0.22);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large,
    .arch-frame-medium {
        height: 510px;
        min-height: 0;
    }

    .amenity-image-wrap {
        min-height: 440px;
    }

    .arch-frame-large {
        margin-right: auto;
        margin-left: auto;
        width: min(100%, 450px);
    }

    .floating-note,
    .story-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin: -2.5rem auto 0;
    }

    .amenity-image-wrap {
        border-radius: 999px 999px 2rem 2rem;
    }
}

.poster-hero {
    background:
        radial-gradient(circle at 12% 18%, var(--poster-gold-soft), transparent 26rem),
        linear-gradient(180deg, rgba(251, 243, 224, 0.7), transparent);
}

.poster-title-brush {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.poster-title-brush::before {
    position: absolute;
    inset: -0.5rem -1.6rem;
    z-index: -1;
    border-radius: 48% 52% 46% 54% / 62% 58% 42% 38%;
    background: var(--poster-gold-soft);
    content: "";
    filter: blur(3px);
    transform: rotate(-2deg);
}

.speech-bubble {
    position: relative;
    border: 2px solid var(--poster-navy);
    border-radius: 1.75rem;
    background: linear-gradient(180deg, #FFFDF8, var(--poster-cream));
    padding: clamp(1rem, 3vw, 1.6rem) clamp(1.5rem, 5vw, 2.6rem);
    color: var(--poster-navy);
    font-weight: 600;
    line-height: 1.35;
    box-shadow: 0 22px 55px rgba(31, 46, 35, 0.18), 0 5px 0 rgba(30, 58, 86, 0.1);
}

.speech-bubble::after {
    position: absolute;
    top: -0.62rem;
    left: 50%;
    width: 1.15rem;
    height: 1.15rem;
    border-top: 2px solid var(--poster-navy);
    border-left: 2px solid var(--poster-navy);
    border-top-left-radius: 0.3rem;
    background: #FFFDF8;
    content: "";
    transform: translateX(-50%) rotate(45deg);
}

.poster-banner {
    border-radius: 1.8rem;
    background: var(--poster-navy);
    padding: clamp(1.3rem, 3vw, 2rem);
    color: var(--poster-cream);
    box-shadow: 0 24px 70px rgba(31, 46, 35, 0.18);
}

.poster-note {
    position: absolute;
    color: var(--poster-gold);
    font-size: 1.7rem;
    opacity: 0.85;
    pointer-events: none;
}

.contacto-input {
    width: 100%;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--field-bg);
    padding: 0.85rem 1rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.contacto-input::placeholder {
    color: rgba(56, 73, 59, 0.6);
}

.contacto-input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--sage-soft);
}

.contacto-input.is-invalid {
    border-color: #9B4A3D;
    background: rgba(155, 74, 61, 0.06);
}

.contacto-input.is-invalid:focus {
    border-color: #9B4A3D;
    box-shadow: 0 0 0 3px rgba(155, 74, 61, 0.18);
}

.field-error {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    min-height: 1.3rem;
    margin-top: 0.5rem;
    color: #9B4A3D;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .field-error {
        margin-top: 0.6rem;
        font-size: 0.9rem;
        line-height: 1.55;
    }
}

.field-error i {
    display: none;
    margin-top: 0.12rem;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.field-error.is-visible i {
    display: inline-block;
}

.field-error [data-field-error-text] {
    flex: 1;
}