
:root {
    --brand-color: #A1488E;
    --brand-dark: #7a356b;
    --brand-glow: rgba(161, 72, 142, 0.4);
    --rating-color: #fbbf24;
    --bg-body: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-main: #1e293b;
    --text-secondary: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    body { padding-bottom: 80px !important; }
}

/* FONDO DINÁMICO */
.ambient-light {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(161, 72, 142, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(161, 72, 142, 0.05) 0%, transparent 40%);
    z-index: -2;
}

/* NAVBAR FLOTANTE */
.navbar-floating {
    position: fixed; top: 20px; left: 20px; right: 20px;
    display: flex; justify-content: space-between; z-index: 100;
    pointer-events: none; /* Dejar pasar clicks salvo en botones */
}
.nav-btn {
    pointer-events: auto;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-main); display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.nav-btn:hover {
    background: var(--brand-color); color: white; transform: scale(1.1);
    box-shadow: 0 0 20px var(--brand-glow); border-color: var(--brand-color);
}

/* HERO PARALLAX */
.hero-wrapper {
    position: relative; height: 75vh; overflow: hidden;
    display: flex; align-items: flex-end;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
.hero-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 120%; /* Extra height for parallax */
    object-fit: cover; z-index: -1; will-change: transform;
}
.hero-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg-body) 0%, rgba(248,250,252,0.8) 40%, transparent 100%);
}
.hero-content {
    width: 100%; max-width: 900px; margin: 0 auto;
    padding: 40px 24px 80px; text-align: center;
    position: relative; z-index: 2;
    transform: translateY(30px); opacity: 0; animation: fadeUp 1s ease forwards;
}

/* TEXTOS */
.super-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 8vw, 5.5rem);
    font-weight: 600; line-height: 0.9;
    letter-spacing: -2px; margin-bottom: 20px;
    background: linear-gradient(to bottom, #0f172a 40%, #475569 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.hero-badges {
    display: flex; gap: 10px; justify-content: center; margin-bottom: 20px;
}
.pill {
    padding: 6px 16px; border-radius: 100px;
    background: #ffffff; backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-secondary); box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.pill.brand { border-color: var(--brand-color); color: var(--brand-color); background: rgba(161, 72, 142, 0.05); }

/* BARRA DE ESTADÍSTICAS (GLASS) */
.stats-bar {
    max-width: 600px; margin: -40px auto 60px;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 20px;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    position: relative; z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}
.stat-item { text-align: center; border-right: 1px solid rgba(0,0,0,0.05); }
.stat-item:last-child { border: none; }
.stat-val { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text-main); }
.stat-lbl { font-size: 0.7rem; text-transform: uppercase; color: var(--text-secondary); letter-spacing: 1px; }

/* TIMELINE REINVENTADO */
.journey-section {
    max-width: 800px; margin: 0 auto; padding: 0 20px 100px;
    position: relative;
}
.center-line {
    position: absolute; top: 0; bottom: 0; left: 50%; width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(161, 72, 142, 0.2) 10%, rgba(161, 72, 142, 0.2) 90%, transparent);
    transform: translateX(-50%);
}

.stop-row {
    display: flex; justify-content: center; align-items: center;
    margin-bottom: 80px; position: relative;
}

/* El punto central animado */
.stop-marker {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 16px; height: 16px; background: #ffffff;
    border: 3px solid var(--brand-color); border-radius: 50%;
    z-index: 5; box-shadow: 0 0 0 4px rgba(255,255,255,0.8);
    transition: all 0.5s ease;
}
.stop-row:hover .stop-marker { background: var(--brand-color); box-shadow: 0 0 20px var(--brand-glow); transform: translate(-50%, -50%) scale(1.5); }

/* Tarjeta */
.stop-card {
    width: 45%;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 24px; padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    position: relative;
    text-decoration: none; color: inherit;
    overflow: hidden;
}
/* Alternar lados */
.stop-row:nth-child(odd) { justify-content: flex-start; }
.stop-row:nth-child(odd) .stop-card { margin-right: auto; text-align: right; }
.stop-row:nth-child(even) { justify-content: flex-end; }
.stop-row:nth-child(even) .stop-card { margin-left: auto; text-align: left; }

.stop-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-color);
    box-shadow: 0 15px 40px rgba(161, 72, 142, 0.15);
}

/* Contenido Tarjeta */
.card-category {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px;
    color: var(--brand-color); margin-bottom: 8px; display: block; font-weight: 700;
}
.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem; line-height: 1; margin-bottom: 12px; color: var(--text-main);
}
.card-img-preview {
    width: 100%; height: 160px; border-radius: 16px;
    object-fit: cover; margin-top: 15px; opacity: 0.9;
    transition: 0.5s;
}
.stop-card:hover .card-img-preview { opacity: 1; }

/* FOOTER FLOTANTE */
.action-bar {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 8px 8px 8px 24px;
    border-radius: 100px;
    display: flex; align-items: center; gap: 20px;
    z-index: 50; box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    width: 90%; max-width: 400px; justify-content: space-between;
}
.price-tag { font-size: 0.9rem; color: var(--text-main); }
.btn-reserve {
    background: var(--brand-color); color: #ffffff;
    font-weight: 700; padding: 12px 24px; border-radius: 50px;
    text-decoration: none; transition: 0.3s; border: 1px solid var(--brand-color);
}
.btn-reserve:hover { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }

/* RESPONSIVE */
@media (max-width: 768px) {
    .action-bar { bottom: 76px; }
    .center-line { left: 20px; }
    .stop-row { flex-direction: column; align-items: flex-start; margin-left: 20px; padding-left: 30px; margin-bottom: 60px; }
    .stop-marker { left: 0; top: 24px; transform: translate(-50%, 0); }
    .stop-card { width: 100%; text-align: left !important; margin: 0 !important; }
    .super-title { font-size: 3.5rem; }
    .hero-wrapper { height: 65vh; }
}

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

.flash-message {
    position: fixed;
    top: 90px; /* Debajo de la navbar flotante */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--brand-color);
    color: var(--text-main);
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    animation: slideDownFade 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    min-width: 300px;
    justify-content: center;
}

.flash-message i {
    color: var(--brand-color);
    font-size: 1.2rem;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
