/* ============================================
   ONA Club - Landing de eventos (/eventos)
   Portado de la landing de Fitness a Domicilio; los colores salen de
   variables.css (tokens ONA) mas los --ev-* locales de abajo.
   ============================================ */

:root {
    --ev-accent: var(--color-primary-dark, #8a7762);
    --ev-accent-hover: #6f5f4d;
    --ev-accent-rgb: 138, 119, 98;
    --ev-line: #e6dccf;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 400;
    color: var(--text-heading);
    background-color: var(--bg-cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    max-width: 520px;
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

/* === Layout === */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Divider === */
.divider {
    width: 100%;
    height: 1px;
    background: var(--ev-line);
    margin: 20px 0;
}

/* === Section Label === */
.section-label {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    width: 100%;
    background: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

.hero-carousel {
    width: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 24px 24px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    text-align: center;
}

.hero-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.hero-logo {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.hero-site-name {
    margin: 0;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

@media (min-width: 768px) {
    .hero-top-bar {
        padding: 24px 32px;
    }
    .hero-logo {
        height: 56px;
    }
    .hero-site-name {
        font-size: 17px;
    }
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.hero-subtitle {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-section {
    background: var(--bg-cream-soft);
    padding: 30px 0;
    text-align: center;
}

.intro-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 15px;
    line-height: 1.3;
}

.intro-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.intro-text p {
    margin-bottom: 8px;
}

.btn-cta-inline {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 36px;
    background: var(--ev-accent);
    color: #fff;
    border-radius: 40px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(var(--ev-accent-rgb), 0.25);
}

.btn-cta-inline:hover {
    background: var(--ev-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(var(--ev-accent-rgb), 0.35);
}

/* ============================================
   DETAILS SECTION
   ============================================ */
.details-section {
    padding: 0;
}

.details-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-card {
    padding: 25px 20px;
    text-align: center;
}

.detail-info {
    background: var(--bg-cream);
}

.venue-image {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.event-details-list {
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
}

.event-details-list p {
    margin-bottom: 10px;
}

.event-details-list strong {
    font-weight: 700;
}

.includes-list {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.includes-list li {
    padding: 3px 0;
    font-size: 14px;
}

.event-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--ev-accent);
    text-align: center;
    margin-top: 10px;
}

.event-price-card {
    background: linear-gradient(135deg, var(--ev-accent) 0%, var(--color-accent) 100%);
    color: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 12px;
}

.price-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.85;
}

.price-amount {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.price-amount small {
    font-size: 22px;
    font-weight: 600;
}

.price-note {
    font-size: 12px;
    opacity: 0.75;
}

.detail-schedule {
    background: var(--bg-cream);
    padding: 25px 20px;
}

.schedule-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-align: left;
}

.capacity-heading {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-heading);
    text-align: center;
    margin: 15px 0;
    line-height: 1.3;
}

.schedule-item {
    font-size: 15px;
    text-align: center;
    margin: 10px 0;
    line-height: 1.6;
}

.schedule-status {
    font-weight: 700;
    font-size: 13px;
}

.status-full {
    color: var(--ev-accent);
}

.status-limited {
    color: #e67e22;
    text-transform: uppercase;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery-section {
    padding: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.08);
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px;
    font-size: 12px;
    text-align: center;
    font-weight: 600;
}

/* ============================================
   DRESS CODE SECTION
   ============================================ */
.dresscode-section {
    padding: 20px 0;
}

.dresscode-card {
    background: var(--dc, var(--ev-accent));
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    border-radius: 14px;
    margin: 0 20px;
    box-shadow: 0 4px 20px rgba(var(--ev-accent-rgb), 0.2);
}

.dresscode-card h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.dresscode-color {
    font-size: 28px;
    font-weight: 800;
}

/* ============================================
   BRUNCH HIGHLIGHT
   ============================================ */
.brunch-highlight {
    padding: 20px 0;
}

.brunch-card {
    background: var(--bg-cream);
    text-align: center;
    padding: 30px 20px;
    border-radius: 14px;
    margin: 0 20px;
    border: 1px solid var(--ev-line);
}

.brunch-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.5;
}

/* ============================================
   PROGRAM SECTION
   ============================================ */
.program-section {
    background: var(--bg-cream-soft);
    padding: 30px 0;
}

.program-item {
    margin-bottom: 25px;
}

.program-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.program-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   COLLABORATORS SECTION
   ============================================ */
.collaborators-section {
    background: var(--bg-cream-soft);
    padding: 0 0 30px;
}

.collaborators-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.collaborator-card {
    text-align: center;
}

.collaborator-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: #fff;
    padding: 12px;
    border-radius: 50%;
    margin: 0 auto 10px;
    border: 3px solid var(--ev-line);
    aspect-ratio: 1;
    flex-shrink: 0;
}

.collaborator-card h5 {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.3;
}

/* ============================================
   RESERVATION FORM
   ============================================ */
.reservation-section {
    background: var(--bg-cream);
    padding: 50px 0 80px;
}

.reservation-heading {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.reservation-subtext {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--ev-line);
    border-radius: 40px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 15px;
    color: var(--text-heading);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--ev-accent);
    box-shadow: 0 0 0 3px rgba(var(--ev-accent-rgb), 0.1);
    background: var(--bg-cream-soft);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* Form Separator */
.form-separator {
    display: flex;
    align-items: center;
    margin: 25px 0 15px;
    gap: 12px;
}

.form-separator::before,
.form-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ccc;
}

.form-separator span {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Visual Options (Radio/Checkbox cards) */
.form-header-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.visual-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.visual-option {
    width: calc(50% - 5px);
    flex-grow: 1;
}

.visual-option-input {
    display: none;
}

.visual-option-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 2px solid var(--ev-line);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #fff;
    height: 100%;
}

.visual-option-card:hover {
    border-color: var(--ev-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.visual-option-input:checked+.visual-option-card {
    border-color: var(--ev-accent);
    background: var(--bg-cream-soft);
    box-shadow: 0 0 0 3px rgba(var(--ev-accent-rgb), 0.15);
}

.visual-option-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.visual-option-text {
    padding: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    padding: 10px 0;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--ev-accent);
}

/* Form Messages */
.form-error {
    background: #ffe6e6;
    color: var(--color-error);
    border: 1px solid var(--color-error);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
}

.form-success {
    background: #e6ffe6;
    color: #008000;
    border: 1px solid #008000;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
}

/* Bizum Info */
.bizum-info {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid var(--ev-line);
}

.bizum-info p {
    font-size: 14px;
    color: var(--text-heading);
}

.bizum-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bizum-info strong {
    font-size: 20px;
    display: block;
    margin-top: 5px;
}

/* Submit Button */
.btn-submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--ev-accent);
    color: #fff;
    border: none;
    border-radius: 40px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--ev-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--ev-accent-rgb), 0.4);
}

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

.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============================================
   CONTACT / WHATSAPP SECTION
   ============================================ */
.contact-section {
    background: var(--text-heading);
    padding: 40px 0;
    text-align: center;
}

.contact-section h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 8px;
}

.contact-section p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 14px 34px;
    border-radius: 40px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
    letter-spacing: 0.3px;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

/* ============================================
   NO EVENT STATE / GENERIC LANDING
   ============================================ */
.generic-hero {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-cream-soft) 0%, var(--bg-cream) 100%);
    padding: 60px 20px 40px;
}

.generic-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 42px;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.generic-tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    max-width: 500px;
}

.generic-coming-soon {
    font-size: 20px;
    color: var(--ev-accent);
    font-weight: 600;
    margin-top: 20px;
    padding: 12px 28px;
    background: rgba(var(--ev-accent-rgb), 0.08);
    border-radius: 30px;
}

/* Events listing */
.events-listing-section {
    padding: 50px 20px;
    background: #fff;
}

.events-listing-section--past {
    background: var(--bg-cream-soft);
}

.events-listing-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.events-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 20px auto 0;
}

.event-listing-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.event-listing-card--past {
    opacity: 0.75;
}

.event-listing-card--past:hover {
    opacity: 1;
}

.event-listing-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-listing-body {
    padding: 18px 20px;
}

.event-listing-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.event-listing-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.event-listing-venue {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.event-listing-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--ev-accent);
    margin-bottom: 6px;
}

.event-listing-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.generic-contact-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(204, 35, 102, 0.25);
}

.btn-instagram:hover {
    box-shadow: 0 4px 20px rgba(204, 35, 102, 0.4);
    transform: translateY(-1px);
}

/* Event past notice */
.event-past-notice {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-cream-soft);
    border-radius: 16px;
    border: 1px solid var(--ev-line);
}

.event-past-notice h2 {
    font-size: 24px;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.event-past-notice p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.event-past-notice .btn-instagram {
    margin-top: 16px;
}

/* RGPD consent */
.form-group-consent {
    margin-top: 16px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--ev-accent);
    width: 16px;
    height: 16px;
}

.legal-link {
    color: var(--ev-accent);
    text-decoration: underline;
}

.form-legal {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

/* Privacy Modal */
.privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.privacy-modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 650px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.privacy-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.privacy-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
}

.privacy-modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    line-height: 1;
}

.privacy-modal-close:hover {
    color: var(--text-heading);
}

.privacy-modal-body {
    padding: 25px;
    overflow-y: auto;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
}

.privacy-modal-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 18px 0 8px;
}

.privacy-modal-body h4:first-child {
    margin-top: 0;
}

.privacy-modal-body ul {
    padding-left: 20px;
    margin: 8px 0;
}

.privacy-modal-body ul li {
    margin-bottom: 4px;
}

.privacy-modal-body a {
    color: var(--ev-accent);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

.footer-legal-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-legal-sep {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ============================================
   LEGAL PAGE
   ============================================ */
.legal-page-wrapper {
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
}

.legal-header {
    background: var(--text-heading);
    padding: 28px 24px;
    text-align: center;
}

.legal-header-brand {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    transition: opacity 0.2s;
}

.legal-header-brand:hover {
    opacity: 0.8;
}

.legal-header h1 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.legal-body {
    padding: 30px 24px 50px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.8;
}

.legal-body h2 {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 28px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ev-line);
}

.legal-body h2:first-child {
    margin-top: 0;
}

.legal-body p {
    margin-bottom: 10px;
}

.legal-body ul {
    padding-left: 20px;
    margin: 8px 0 16px;
}

.legal-body ul li {
    margin-bottom: 6px;
}

.legal-body a {
    color: var(--ev-accent);
}

.legal-body strong {
    color: var(--text-heading);
}

.legal-updated {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--ev-line);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ev-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 20px;
    transition: opacity 0.2s;
}

.legal-back:hover {
    opacity: 0.7;
}

@media (min-width: 520px) {
    .legal-page-wrapper {
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--ev-line);
        border-right: 1px solid var(--ev-line);
    }
}

/* ============================================
   RESPONSIVE (Tablet & Desktop)
   ============================================ */
/* === Sticky CTA Bar === */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    z-index: 100;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sticky-cta.visible {
    opacity: 1;
    pointer-events: auto;
}

.sticky-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 24px;
    background: var(--ev-accent);
    color: #fff;
    border-radius: 40px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(var(--ev-accent-rgb), 0.35);
    transition: all 0.3s;
}

.sticky-cta-btn:hover {
    background: var(--ev-accent-hover);
    transform: translateY(-1px);
}

.sticky-cta-price {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 13px;
}

/* === Footer === */
.site-footer {
    background: var(--text-heading);
    color: var(--text-muted);
    text-align: center;
    padding: 32px 20px;
}

.footer-inner {
    max-width: 520px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 4px;
}

.footer-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 11px;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 520px) {
    .page-wrapper {
        max-width: 520px;
        margin: 0 auto;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
        border-left: 1px solid var(--ev-line);
        border-right: 1px solid var(--ev-line);
    }

    .site-footer {
        max-width: 520px;
        margin: 0 auto;
        border-left: 1px solid var(--ev-line);
        border-right: 1px solid var(--ev-line);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 480px;
    }

    .hero-image {
        max-height: 80vh;
        object-fit: cover;
    }

    .collaborators-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .collaborator-card img {
        width: 90px;
        height: 90px;
    }
}

@media (min-width: 1024px) {
    .page-wrapper {
        max-width: 520px;
    }

    .intro-heading {
        font-size: 26px;
    }

    .capacity-heading {
        font-size: 26px;
    }

    .reservation-heading {
        font-size: 30px;
    }

    .hero-title {
        font-size: 28px;
    }

    .sticky-cta {
        max-width: 520px;
    }
}

/* ============================================
   WHATSAPP FLOATING BUTTON 
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 90;
    transition: all 0.3s;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
    fill: #fff;
    width: 28px;
    height: 28px;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === Map Section === */
.map-section {
    padding: 40px 0;
    text-align: center;
}

.map-venue-name {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.venue-map {
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid var(--ev-line);
    z-index: 0;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Leaflet overrides - hide branding */
.venue-map .leaflet-control-attribution,
.venue-map .leaflet-control-zoom {
    display: none !important;
}

/* Warm tone filter on tiles */
.venue-map .leaflet-tile-pane {
    filter: saturate(0.35) brightness(1.03) sepia(0.12);
}

/* Popup styling */
.venue-map .leaflet-popup-content-wrapper {
    background: var(--bg-cream-soft);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    border: 1px solid var(--ev-line);
    padding: 4px 8px;
}

.venue-map .leaflet-popup-tip {
    background: var(--bg-cream-soft);
}

.venue-map .leaflet-popup-close-button {
    display: none;
}

/* Custom marker - remove default bg */
.custom-marker {
    background: none !important;
    border: none !important;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ev-accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 2px 12px rgba(var(--ev-accent-rgb), 0.25);
}

.btn-directions:hover {
    background: var(--ev-accent-hover);
    box-shadow: 0 4px 20px rgba(var(--ev-accent-rgb), 0.35);
    transform: translateY(-1px);
}

/* Time Slot Selector */
.timeslot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.timeslot-card {
    text-align: center;
    padding: 16px 12px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.timeslot-time {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
}

.timeslot-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.visual-option-input:checked+.timeslot-card .timeslot-time {
    color: var(--ev-accent);
}

/* === Form Error Highlighting === */
.form-input-error,
.form-input.form-input-error {
    border-color: var(--color-error) !important;
    background-color: #FEF2F2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.form-group-error {
    position: relative;
}

.form-group-error > .form-label,
.form-group-error label {
    color: var(--color-error);
}

.form-field-error-msg {
    display: block;
    color: var(--color-error);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.consent-label.form-group-error > span {
    color: var(--color-error);
}

.form-group-dietary {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.form-group-dietary .form-label {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
}

#alergias-notas-wrapper textarea {
    margin-top: 4px;
}
/* ============================================
   Añadidos ONA
   ============================================ */

/* Barra superior: logo ONA + acceso al espacio personal */
.ev-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 14px;
}
.ev-topbar__logo { height: 38px; width: auto; display: block; }
.ev-topbar--solid { position: relative; background: var(--bg-cream-soft); border-bottom: 1px solid var(--ev-line); }
.ev-topbar--over .ev-topbar__logo { filter: drop-shadow(0 2px 6px rgba(42, 34, 27, .45)); }

.ev-access {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.ev-topbar--over .ev-access {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .65);
    background: rgba(42, 34, 27, .28);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.ev-topbar--solid .ev-access { color: #fff; background: var(--ev-accent); border: 1px solid var(--ev-accent); }
.ev-access:hover { background: var(--ev-accent-hover); color: #fff; }

/* El hero ya no lleva logo+nombre centrados (lo sustituye .ev-topbar) */
.hero-section { position: relative; }

/* Tarjetas del listado: ahora enlazan a /eventos/<slug> */
a.event-listing-card { display: block; color: inherit; text-decoration: none; }

/* Estado de la inscripcion de una usuaria con sesion */
.ev-mine {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--bg-cream-soft);
    border: 1px solid var(--ev-line);
    font-size: 14px;
    color: var(--text-primary);
    text-align: center;
}
.ev-mine strong { color: var(--ev-accent); }

/* Sin anulación ni devolución; se puede ceder la entrada */
.ev-policy {
    margin: 0 0 16px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

.ev-full-notice {
    padding: 18px;
    border-radius: 12px;
    background: var(--bg-cream-soft);
    border: 1px solid var(--ev-line);
    text-align: center;
    color: var(--text-secondary);
}

.ev-preview-bar {
    position: sticky;
    top: 0;
    z-index: 9999;
    padding: 9px 14px;
    background: var(--text-heading);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: center;
}

.ev-preview-bar__back { color: #fff; margin-right: 12px; text-decoration: underline; white-space: nowrap; }
.generic-back { margin-top: 18px; font-size: 14px; }
.generic-back a { color: var(--text-secondary); }

/* Hero sin banner: el titulo deja de ir superpuesto (blanco sobre foto) y pasa
   a un bloque crema legible */
.hero-section--plain .hero-overlay {
    position: static;
    background: var(--bg-cream-soft);
    color: var(--text-heading);
    padding: 36px 24px 8px;
}
.hero-section--plain .hero-title { text-shadow: none; font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 30px; }
.hero-section--plain .hero-subtitle { color: var(--text-secondary); }

/* Tipografia de marca en los titulares de la landing */
.hero-title, .intro-heading, .reservation-heading, .events-listing-title, .generic-title { font-family: 'Fraunces', Georgia, serif; font-weight: 500; letter-spacing: 0; }

/* Turno sin plazas (aforo por turno) */
.timeslot-card--full { opacity: .45; cursor: not-allowed; }

/* «Incluye»: tarjetas con icono, debajo del precio (feedback de Atenea, 25 nov) */
.includes-block { margin-top: 26px; text-align: left; }
.includes-title {
    font-family: 'Fraunces', Georgia, serif; font-size: 13px; font-weight: 600; letter-spacing: .22em;
    text-transform: uppercase; text-align: center; color: var(--ev-accent); margin: 0 0 14px;
}
.includes-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.include-card {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
    padding: 18px 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--ev-line);
    box-shadow: 0 4px 14px rgba(var(--ev-accent-rgb), .08); text-align: center;
}
.include-card__icon {
    width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--bg-cream-soft); color: var(--ev-accent);
}
.include-card__text { font-size: 14px; line-height: 1.35; color: var(--text-heading); font-weight: 500; }
.includes-grid .include-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Dress code con el color de verdad (si el nombre es un color conocido) */
.dresscode-card--light { color: var(--text-heading); border: 1px solid var(--ev-line); }

/* Frase destacada: cita, no botón */
.event-quote { margin: 6px 32px; padding: 0 8px; text-align: center; }
.event-quote::before {
    content: "\201C"; display: block; height: 34px; font-family: 'Fraunces', Georgia, serif;
    font-size: 64px; line-height: 1; color: var(--ev-accent); opacity: .7;
}
.event-quote::after { content: ""; display: block; width: 48px; height: 1px; margin: 18px auto 0; background: var(--ev-accent); opacity: .5; }
.event-quote p { margin: 0; font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 400;
    font-size: 21px; line-height: 1.45; color: var(--text-heading); }

/* Frase con vídeo o foto de fondo (como el vídeo de Inicio) */
.quote-media { position: relative; overflow: hidden; min-height: 62vh; display: flex; align-items: center; justify-content: center; padding: 60px 0; margin: 20px 0; }
.quote-media__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background-size: cover; background-position: center; }
.quote-media__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,.35) 0%, rgba(20,14,10,.55) 100%); }
.event-quote--over { position: relative; z-index: 1; margin: 0 32px; }
.event-quote--over::before { color: #fff; opacity: .85; }
.event-quote--over::after { background: #fff; opacity: .7; }
.event-quote--over p { color: #fff; font-size: 24px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }

/* «Lugar» del evento: abre Google Maps (Atenea, 26-11) */
.venue-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(var(--ev-accent-rgb), .45); text-underline-offset: 3px; }
.venue-link svg { color: var(--ev-accent); margin-left: 2px; }
.venue-link:hover { text-decoration-color: var(--ev-accent); }
