/**
 * STYLES.CSS
 * Diseño Premium, Responsivo y Moderno.
 */

:root {
    --primary: #0b3d5c;
    --primary-light: #156c8a;
    --accent: #c8923f;
    --accent-light: #d4a853;
    --success: #27ae60;
    --danger: #c0392b;
    --bg-main: #f0f4f8;
    --bg-card: #ffffff;
    --text-main: #2c3e50;
    --text-muted: #5a6c7d;
    --white: #ffffff;
    
    --shadow-sm: 0 4px 12px rgba(11, 61, 92, 0.08);
    --shadow-md: 0 12px 36px rgba(11, 61, 92, 0.12);
    --shadow-lg: 0 24px 64px rgba(11, 61, 92, 0.18);
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── BASE ──────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

/* ─── LAYOUT ────────────────────────── */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
}

.section-header.visible {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition);
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-header .divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* ─── HERO ──────────────────────────── */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Background overlay with image generated earlier */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 61, 92, 0.8), rgba(11, 61, 92, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-light);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--accent-light);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.stat-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-item p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* ─── NAVIGATION ────────────────────── */
.sticky-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(11, 61, 92, 0.05);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.5rem 1rem;
}

.nav-container::-webkit-scrollbar { display: none; }

.nav-link {
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    white-space: nowrap;
}

.nav-link.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

/* ─── TIMELINE ──────────────────────── */
.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 3rem;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), var(--primary-light));
}

.timeline-day {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateX(-30px);
    transition: var(--transition);
}

.timeline-day.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-day::before {
    content: '';
    position: absolute;
    left: -2.7rem;
    top: 2.5rem;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
}

.timeline-day.day-type-libre::before { border-color: var(--accent); }
.timeline-day.day-type-vuelo::before { border-color: var(--success); }

.day-number {
    position: absolute;
    top: -1rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(11, 61, 92, 0.05);
}

.day-number span { font-size: 1rem; vertical-align: middle; margin-right: 0.5rem; }

.day-meta { margin-bottom: 1.5rem; }
.day-date { font-weight: 700; color: var(--accent); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.day-route { font-size: 1.5rem; color: var(--primary); margin-top: 0.2rem; }

.day-description { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1.05rem; }

.day-highlights { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2rem; }
.highlight-tag {
    padding: 0.4rem 1rem;
    background: rgba(21, 108, 138, 0.06);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Options Grid in Free Days */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.option-card {
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.option-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent); }

.option-badge { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 4px; margin-bottom: 0.5rem; display: inline-block; }
.official .option-badge { background: var(--primary); color: var(--white); }
.by-self .option-badge { background: var(--success); color: var(--white); }

.option-price { float: right; font-weight: 800; color: var(--primary); }
.option-title { font-weight: 700; margin-bottom: 0.5rem; clear: both; }
.option-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }

.day-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.day-meals span { margin-right: 1rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.day-meals i { color: var(--accent); margin-right: 0.3rem; }

.day-hotel-link { font-size: 0.85rem; font-weight: 700; color: var(--primary-light); }

/* ─── MAP ──────────────────────────── */
.map-container {
    height: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

#map { height: 100%; width: 100%; }

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
}

.custom-div-icon i {
    position: absolute;
    width: 30px;
    font-size: 14px;
    color: white;
    text-align: center;
    top: 5px;
    left: 0;
    z-index: 10;
}

/* ─── TRANSPORT ALTERNATIVES ───────── */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.transport-card {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
}

.transport-card.visible { opacity: 1; transform: translateY(0); transition: var(--transition); }

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(21, 108, 138, 0.1);
    color: var(--primary-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.transport-card h4 { color: var(--primary); margin-bottom: 0.5rem; }
.mode { font-weight: 700; color: var(--accent); font-size: 0.9rem; margin-bottom: 0.5rem; }
.transport-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.2rem; }

.value-tip {
    margin-top: 1rem;
    padding: 0.8rem;
    background: #fff8eb;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #856404;
    font-weight: 600;
}

/* ─── BUDGET ────────────────────────── */
.budget-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: start;
}

.budget-card {
    background: var(--primary);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.budget-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.budget-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 2rem 0; }

.budget-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
}

.budget-total strong { font-size: 2.5rem; color: var(--accent-light); }

.budget-note { font-size: 0.8rem; opacity: 0.6; margin-top: 1rem; }

/* ─── FOOTER ────────────────────────── */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.footer-logo { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; display: block; }
.footer-text { opacity: 0.6; font-size: 0.9rem; margin-bottom: 2rem; }

.back-to-top {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--accent);
    border-radius: 50px;
    font-weight: 700;
    margin-top: 2rem;
}

/* ─── RESPONSIVE ────────────────────── */
@media (max-width: 768px) {
    section { padding: 4rem 0; }
    .hero-stats { gap: 1.5rem; }
    .timeline-container { padding-left: 2rem; }
    .timeline-day { padding: 1.5rem; }
    .day-hotel-link { display: block; margin-top: 1rem; }
    .day-footer { flex-direction: column; align-items: flex-start; }
}
