:root {
    /* --- Identidad SextantIA (sacada del logo) --- */
    --navy: #0B1A39;            /* Azul noche (esquina inferior izquierda del logo) */
    --teal-deep: #0B4C52;       /* Verde petróleo (zona media del degradado) */
    --teal: #1F7A68;            /* Verde esmeralda (esquina superior derecha) */
    --brand-gradient: linear-gradient(135deg, #0B1A39 0%, #0B4C52 55%, #1F7A68 100%);

    /* --- Uso en la interfaz --- */
    --primary: #0E6A62;         /* Verde marino: botones, enlaces, iconos (contraste AA sobre blanco) */
    --primary-dark: #0A4F49;    /* Hover */
    --primary-tint: #E8F3F1;    /* Fondos suaves de selección */
    --primary-rgb: 14, 106, 98; /* Para sombras y focos con transparencia */
    --accent: #D69E2E;          /* Dorado: se mantiene para la intensidad y las estrellas */

    --bg: #F7FAFA;              /* Fondo de página (pon #FFFFFF si lo quieres blanco puro) */
    --text-dark: #1F2A37;
    --text-muted: #5B6B7C;
    --text-light: #F7FAFC;
    --border: #E2E8EC;
    --card-bg: #FFFFFF;
    --glass-border: #E2E8EC;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: var(--bg);
}

/* --- FONDO ESCÉNICO (Zen / Viaje) --- */
.scenic-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    /* Degradado sutil basado en tu paleta (Azul noche a Verde marino muy claro) */
    background: linear-gradient(135deg, #a5cbc4 0%, #124d4d 100%);
}

/* Mejoras visuales vacacionales */
.glass-container {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto Bruma/Niebla: desactivado para mantener la lectura limpia */
.fog-layer,
.fog-2 {
    display: none;
}

.fog-layer {
    position: absolute;
    bottom: 0; left: 0;
    width: 200%;
    height: 400px;
    background: url('https://raw.githubusercontent.com/danielstuart14/CSS_FOG_ANIMATION/master/fog1.png') repeat-x;
    background-size: 50% 100%;
    opacity: 0.4;
    animation: drift 60s linear infinite;
}

.fog-2 {
    bottom: -50px;
    animation: drift 40s linear infinite reverse;
    opacity: 0.2;
}

@keyframes drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- TARJETAS --- */
.glass-container {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(11, 26, 57, 0.06);
    border: 1px solid var(--glass-border);
    max-width: 900px;
    margin: 60px auto 40px;
    padding: 50px;
    text-align: center;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .glass-container {
        margin: 30px 20px;
        padding: 30px 20px;
    }
}

/* --- FORMULARIO DE INICIO --- */
.home-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-field {
    text-align: left;
}

.form-field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-field input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-field input::placeholder {
    color: #A0AEC0;
}

.date-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .date-fields {
        grid-template-columns: 1fr;
    }
}

/* --- TIPOGRAFÍA Y NAVEGACIÓN --- */
h1 {
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
    line-height: 1.2;
}

h2 {
    font-weight: 600;
    color: var(--navy);
}

h3 {
    font-weight: 600;
    color: var(--navy);
    margin: 0;
}

p {
    line-height: 1.6;
    margin: 0.5rem 0;
}

.subtitle-text {
    color: var(--text-muted);
}

.button-wrapper {
    margin-top: 30px;
}

/* Cabecera: banda con el degradado del logo (el logo es blanco, necesita fondo oscuro).
   El resto de la web se mantiene blanca. */
nav {
    background: var(--brand-gradient);
    padding: 14px 24px;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(11, 26, 57, 0.15);
}
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 1.2rem;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #FFFFFF;
}
.brand-logo img {
    display: block;
    height: 52px;     /* tamaño del logo completo en escritorio */
    width: auto;
}

@media (max-width: 600px) {
    nav { padding: 10px 16px; }
    .brand-logo img { height: 40px; }
}

.language-selector {
    margin-left: auto;
}

/* Selector de idioma sobre fondo oscuro */
.language-selector select {
    padding: 8px 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.language-selector select option {
    color: var(--text-dark);
    background: #FFFFFF;
}

.language-selector select:hover {
    background: #FFFFFF;
    color: var(--navy);
}

.language-selector select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

/* --- GRID Y TARJETAS DE SELECCIÓN --- */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.option-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: var(--primary);
}

/* Estado Seleccionado */
.option-card:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-tint);
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.15);
}

/* Cabecera de tarjeta con ICONO */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.icon-badge {
    color: var(--primary);
    font-size: 28px !important; /* Tamaño del Material Icon */
    /* Fondo sutil detrás del icono */
    background: var(--primary-tint);
    padding: 8px;
    border-radius: 12px;
}

.option-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 600;
    color: var(--navy);
}

.option-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- INTENSIDAD (Triángulos) --- */
.intensity-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 2px;
}
.triangle-bar {
    width: 6px;
    background: #CBD5E0;
    border-radius: 1px;
}
/* Altura creciente */
.triangle-bar:nth-child(1) { height: 6px; }
.triangle-bar:nth-child(2) { height: 10px; }
.triangle-bar:nth-child(3) { height: 14px; }
.triangle-bar:nth-child(4) { height: 18px; }
.triangle-bar:nth-child(5) { height: 22px; }

/* Colores activos */
.lvl-1 .triangle-bar:nth-child(1) { background: var(--accent); }
.lvl-2 .triangle-bar:nth-child(-n+2) { background: var(--accent); }
.lvl-3 .triangle-bar:nth-child(-n+3) { background: var(--accent); }
.lvl-4 .triangle-bar:nth-child(-n+4) { background: #E53E3E; } /* Rojo si es muy intenso */
.lvl-5 .triangle-bar:nth-child(-n+5) { background: #E53E3E; }

/* Botón Principal */
.btn-main {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    transition: 0.3s;
}
.btn-main {
    position: relative;
    overflow: hidden;
}

.btn-main:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.35);
}

.btn-main::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-main:hover::before {
    width: 300px;
    height: 300px;
}

/* Tarjetas de opciones mejoradas */
.option-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-card:hover {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 16px 28px rgba(0,0,0,0.12);
}

.option-card .fa-2x {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.option-card:hover .fa-2x {
    transform: scale(1.15) rotate(-4deg);
}

.pref-card {
    transition: background-color 0.35s ease, transform 0.25s, box-shadow 0.25s;
}
.pref-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

/* Animación de carga mejorada */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(var(--primary-rgb), 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Efectos de hover en iconos */
.material-symbols-outlined {
    transition: transform 0.3s;
}

.option-card:hover .material-symbols-outlined {
    transform: scale(1.1) rotate(5deg);
}

/* ========================================
   ESTILOS PARA PÁGINA DE RESULTADOS
   ======================================== */

/* Grid principal de resultados */
.result-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    text-align: left;
}

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

/* Budget Overview */
.budget-overview {
    background: var(--brand-gradient);
    color: white;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 25px;
}

.budget-overview h3 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
}

.budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.budget-item {
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

.budget-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.budget-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Info Boxes */
.info-box {
    background: #FFFFFF;
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(11,26,57,0.04);
}

.info-box h3 {
    margin: 0 0 20px 0;
    color: var(--navy);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logistics Grid */
.logistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.logistics-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px;
    background: rgba(var(--primary-rgb), 0.06);
    border-radius: 8px;
}

.logistics-item i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 2px;
}

.logistics-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.logistics-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

/* Tips Box */
.tip-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.tip-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tip-section strong {
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.tip-section ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.tip-section li {
    margin-bottom: 5px;
    line-height: 1.5;
}

.phrases-list {
    list-style: none;
    padding: 0;
}

.phrases-list li {
    padding: 5px 0;
}

/* Day Cards */
.day-card {
    background: white;
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.day-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.day-header {
    background: var(--brand-gradient);
    color: white;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-header h2 {
    margin: 0;
    font-size: 1.6rem;
    color: white;
    font-weight: 600;
}

.day-header span {
    font-size: 1rem;
    opacity: 0.95;
    color: white;
}

.day-header small {
    color: white;
    opacity: 0.9;
    font-size: 0.85rem;
}

.day-cost {
    background: rgba(255,255,255,0.25);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.accommodation-zone {
    background: #f7fafc;
    padding: 12px 25px;
    border-bottom: 1px solid #e2e8f0;
    color: #555;
    font-size: 0.9rem;
}

.day-body { 
    padding: 30px; 
}

@media (max-width: 768px) {
    .day-body {
        padding: 20px;
    }
}

/* Activity Blocks */
.activity-block {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
    transition: all 0.25s ease;
}

.activity-block:last-child {
    margin-bottom: 0;
}

.restaurant-block {
    border-left-color: var(--accent);
    background: #fffbeb;
}

.activity-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.activity-header .emoji {
    font-size: 1.5rem;
}

.activity-header strong {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 600;
    text-transform: capitalize;
}

.activity-content h4 {
    margin: 0 0 10px 0;
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 600;
}

.activity-content .location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: #555;
    flex-wrap: wrap;
}

.activity-content .address {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 5px 0;
}

.activity-content .cuisine {
    color: #2F855A;
    font-weight: 600;
    margin: 8px 0;
}

.maps-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    background: var(--primary);
    text-decoration: none;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.2);
}

.maps-link:hover {
    background: var(--primary-dark);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 14px rgba(var(--primary-rgb), 0.35);
    color: white;
}

.restaurant-option {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 3px solid #D9B38C;
    transition: all 0.3s;
}

.restaurant-option:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateX(3px);
}

.restaurant-option.recommended {
    border-left-color: #d69e2e;
    background: #fffbeb;
}

.restaurant-option h5 {
    margin: 0 0 8px 0;
    color: #2d3748;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.restaurant-option .badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #d69e2e;
    color: white;
}

.restaurant-dishes {
    margin: 10px 0;
    padding: 10px;
    background: #f7fafc;
    border-radius: 6px;
}

.restaurant-dishes strong {
    display: block;
    margin-bottom: 5px;
    color: #2d3748;
    font-size: 0.9rem;
}

.restaurant-dishes ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.restaurant-dishes li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 3px;
}

.description {
    line-height: 1.6;
    color: #4a5568;
    margin: 10px 0;
}

.activity-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.activity-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555;
}

.activity-details i {
    color: var(--primary);
}

.restaurant-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.restaurant-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555;
}

.price-range {
    color: #2F855A;
    font-weight: 700;
    font-size: 1.1rem !important;
}

.tip {
    background: #fff5e6;
    padding: 10px 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #744210;
    border-left: 3px solid #d69e2e;
}

.recommended {
    background: #fffbeb;
    padding: 10px 12px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #744210;
    border-left: 3px solid #f59e0b;
}

/* Transport Blocks */
.transport-block {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin: 15px 0;
    background: linear-gradient(90deg, var(--primary-tint) 0%, #F7FBFA 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.transport-block i {
    color: var(--primary);
    font-size: 1.3rem;
}

.transport-info {
    flex: 1;
}

.transport-info strong {
    display: block;
    color: var(--navy);
    margin-bottom: 4px;
}

.transport-info span {
    display: block;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.transport-info small {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.transport-info .alternative {
    color: var(--teal-deep);
    font-style: italic;
}

/* Evening Bonus */
.evening-bonus {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal-deep) 100%);
    color: white;
    border-radius: 10px;
    margin-top: 20px;
}

.evening-bonus i {
    font-size: 1.3rem;
    opacity: 0.9;
}

.evening-bonus strong {
    display: block;
    margin-bottom: 5px;
}

.evening-bonus p {
    margin: 0;
    line-height: 1.5;
}

.evening-bonus small {
    display: block;
    margin-top: 8px;
    opacity: 0.8;
}

/* Accommodation Cards */
.accommodation-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.accommodation-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.btn-reset-map {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-reset-map:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.clickable-day {
    cursor: pointer;
    transition: all 0.3s;
}

.clickable-day:hover {
    filter: brightness(1.12);
}

.activity-block {
    cursor: pointer;
    transition: all 0.3s;
}

.activity-block:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.activity-block.highlighted {
    border-left-width: 6px;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.25);
}

.day-card.highlighted {
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.2);
    border: 3px solid var(--primary);
}

/* Timeline class for better organization */
.timeline {
    max-width: 900px;
    margin: 0 auto 60px;
    text-align: left;
}

@media (max-width: 768px) {
    .timeline {
        margin: 0 20px 40px;
    }
}

/* Días: progresión de azul noche a verde esmeralda (el degradado del logo). Se repite cada 7 días */
.timeline .day-card:nth-child(7n + 1) .day-header { background: linear-gradient(135deg, #0B1A39 0%, #0E2840 100%); }
.timeline .day-card:nth-child(7n + 2) .day-header { background: linear-gradient(135deg, #0E2840 0%, #113546 100%); }
.timeline .day-card:nth-child(7n + 3) .day-header { background: linear-gradient(135deg, #113546 0%, #14434D 100%); }
.timeline .day-card:nth-child(7n + 4) .day-header { background: linear-gradient(135deg, #14434D 0%, #165154 100%); }
.timeline .day-card:nth-child(7n + 5) .day-header { background: linear-gradient(135deg, #165154 0%, #195F5B 100%); }
.timeline .day-card:nth-child(7n + 6) .day-header { background: linear-gradient(135deg, #195F5B 0%, #1C6C61 100%); }
.timeline .day-card:nth-child(7n + 0) .day-header { background: linear-gradient(135deg, #1C6C61 0%, #1F7A68 100%); }

/* Specific styling for morning and restaurant blocks in timeline */
.timeline .restaurant-block {
    border-left-color: var(--accent);
    background: #fffbeb;
}

.accommodation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.accommodation-header h4 {
    margin: 0;
    color: var(--navy);
    font-size: 1.1rem;
}

.stars {
    color: #f59e0b;
    font-weight: 600;
}

.accommodation-type {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 5px 0;
}

.accommodation-price {
    color: #2F855A;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 10px 0;
}

.accommodation-pros {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.accommodation-pros li {
    padding: 5px 0;
    color: #555;
    font-size: 0.9rem;
}

.accommodation-pros i {
    color: var(--primary);
    margin-right: 8px;
}

.booking-tip {
    background: #f7fafc;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #555;
    margin-top: 10px;
}

/* Alternative Activities */
.alternative-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 3px solid #7FA6B5;
}

.alternative-card h4 {
    margin: 0 0 8px 0;
    color: var(--navy);
    font-size: 1rem;
}

.alternative-card p {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alternative-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.alternative-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Map */
.map-wrapper {
    background: #FFFFFF;
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(11,26,57,0.04);
}

.sticky-map {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.map-wrapper iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
}

@media (max-width: 1024px) {
    .sticky-map {
        position: relative;
        top: 0;
    }
}

/* ─────────────────────────────────────────────────────
   COLORES MEJORADOS — RESULT PAGE
   ───────────────────────────────────────────────────── */

/* Días (por data-day): mismo degradado de marca */
.day-card[data-day="1"] .day-header { background: linear-gradient(135deg, #0B1A39 0%, #0E2840 100%); }
.day-card[data-day="2"] .day-header { background: linear-gradient(135deg, #0E2840 0%, #113546 100%); }
.day-card[data-day="3"] .day-header { background: linear-gradient(135deg, #113546 0%, #14434D 100%); }
.day-card[data-day="4"] .day-header { background: linear-gradient(135deg, #14434D 0%, #165154 100%); }
.day-card[data-day="5"] .day-header { background: linear-gradient(135deg, #165154 0%, #195F5B 100%); }
.day-card[data-day="6"] .day-header { background: linear-gradient(135deg, #195F5B 0%, #1C6C61 100%); }
.day-card[data-day="7"] .day-header { background: linear-gradient(135deg, #1C6C61 0%, #1F7A68 100%); }

/* Activity block: richer left borders & backgrounds */
.activity-block {
    border-radius: 10px;
    transition: box-shadow 0.25s ease;
}
.activity-block:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transform: none; 
}

/* Comidas y Cenas: Tono apetecible y cálido (Coral/Melocotón suave) */
.restaurant-block { 
    border-left: 4px solid var(--accent) !important; 
    background: #fffbeb !important; 
}
/* Opciones de Restaurantes: Recomendado vs Alternativo */
.restaurant-option.recommended {
    background: #FFFFFF;
    border: 2px solid var(--accent);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(214, 158, 46, 0.2);
}

.restaurant-option.alternative {
    background: #FAFAFA;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
}

/* Info boxes: warmer tones */
.info-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}
.info-box {
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(11,26,57,0.05);
    transition: box-shadow 0.25s;
}
.info-box:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Day card: add subtle entry animation */
.day-card {
    animation: fadeSlideIn 0.4s ease both;
}
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Stagger animation for day cards */
.day-card:nth-child(1) { animation-delay: 0.05s; }
.day-card:nth-child(2) { animation-delay: 0.1s; }
.day-card:nth-child(3) { animation-delay: 0.15s; }
.day-card:nth-child(4) { animation-delay: 0.2s; }
.day-card:nth-child(5) { animation-delay: 0.25s; }
.day-card:nth-child(6) { animation-delay: 0.3s; }
.day-card:nth-child(7) { animation-delay: 0.35s; }

/* Expert recommendation box */
.expert-rec-box {
    background: linear-gradient(135deg, var(--primary-tint) 0%, #fff 100%);
}

/* Alternative city block */
.alternative-city-block {
    animation: fadeSlideIn 0.35s ease both;
}

/* Selectable card check animation */
.floating-check {
    transition: background 0.2s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Vol bar hover pulse */
.vol-bar:hover {
    filter: brightness(1.15);
}

/* Budget pill selected: subtle glow */
.pill-selected {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pill-color, var(--primary)) 25%, transparent), 0 3px 10px rgba(0,0,0,0.1) !important;
}

/* Pace option selected: glow */
.pace-option.selected {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2), 0 0 0 2px color-mix(in srgb, var(--pace-color, var(--primary)) 30%, transparent);
}

/* --- POWERED FOOTER --- */
footer {
    position: static !important;
}

.powered-footer {
    position: static !important;
    width: 100%;
    text-align: center;
    padding: 20px 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.powered-footer p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.gemini-badge {
    background: #e8f0fe;
    color: #4285f4;
}

.django-badge {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Container to keep icons positioned relative to each other */
.travel-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center globe pulsing animation */
.travel-loader .globe-icon {
    font-size: 3.5rem;
    color: var(--primary);
    animation: pulse-earth 2s infinite ease-in-out;
}

/* Orbiting plane animation */
.travel-loader .plane-icon {
    position: absolute;
    font-size: 1.5rem;
    color: var(--navy);
    animation: orbit-plane 2.5s linear infinite;
}

/* Styling for the loading text below the logo */
.loading-text {
    color: var(--navy);
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    animation: pulse-earth 2s infinite ease-in-out;
}

/* Keyframes for the pulsing effect */
@keyframes pulse-earth {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Keyframes for the circular orbit */
@keyframes orbit-plane {
    0% { transform: rotate(0deg) translateX(45px) rotate(90deg); }
    100% { transform: rotate(360deg) translateX(45px) rotate(450deg); }
}

/* ========================================
   ACCESIBILIDAD
   ======================================== */
:focus-visible {
    outline: 3px solid rgba(var(--primary-rgb), 0.55);
    outline-offset: 2px;
}
nav :focus-visible {
    outline-color: rgba(255, 255, 255, 0.8);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
