/* ============================================
   RESULTADOS DE COTIZACIÓN - ESTILOS CORREGIDOS
   Diseño compacto y responsive
   ============================================ */

/* Variables CSS */
:root {
    --color-primary: #1e375a;
    --color-accent: #d4af37;
    --color-accent-light: rgba(212, 175, 55, 0.15);
    --color-text: #2c3e50;
    --color-text-light: #546e7a;
    --color-bg: #f8f9fa;
    --color-white: #ffffff;
    --color-success: #2e7d32;
    --color-border: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 45px rgba(0, 0, 0, 0.15);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Main Content */
.main-content {
    padding: 3rem 0 4rem;
    margin-top: 130px;
    /* Espacio para header fijo */
}

/* Badge Recomendado */
.recommended-section {
    position: relative;
    margin-bottom: 3rem;
}

.recommended-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, #f4a261 100%);
    color: var(--color-white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-md);
}

.badge-icon {
    font-size: 1.2rem;
}

/* ============================================
   NIVEL 1: TARJETA PRINCIPAL (MAX 400px altura)
   ============================================ */
.card-main {
    background: rgba(255, 255, 255, 0.75);
    /* Fondo cristalino con transparencia */
    backdrop-filter: blur(12px);
    /* Efecto de cristal esmerilado */
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    /* Borde suave para el efecto cristal */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-main:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
    transform: translateY(-4px);
}

/* Cabecera de la Unidad */
/* Cabecera de la Unidad - Ahora dentro de la columna visual */
.unit-premium-header {
    background: var(--color-primary);
    padding: 1.25rem 1.5rem;
    /* Más padding vertical */
    text-align: center;
    border-radius: 0;
    /* Reset */
    /* Solo redondear la esquina superior izquierda que coincide con la tarjeta */
    /* La esquina derecha es recta porque colinda con la columna de detalles */
    border-top-left-radius: 16px;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
    /* Pegado a la imagen visualmente */
    display: flex;
    justify-content: center;
    align-items: center;
}

.unit-name-premium {
    color: var(--color-white);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: capitalize;
    /* Coincidir con el estilo "Sedán" */
    line-height: 1.2;
}

/* Cuerpo de la Tarjeta */
.card-main-body {
    display: grid;
    grid-template-columns: 38% 62%;
    min-height: 400px;
}

/* Columna Visual */
.card-column-visual {
    padding: 0;
    /* Padding eliminado para que el header toque los bordes */
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.3);
    /* Transparencia para armonizar con el cristal */
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.card-main-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    /* Sin border radius arriba para que parezca salir del header */
    border-radius: 0 0 8px 8px;
    margin-bottom: 1.5rem;
}

.card-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.card-main:hover .card-main-image img {
    transform: scale(1.04);
}

/* Caja de Aprobación - Identica a la imagen de muestra */
.approval-rating-box {
    margin: 1rem 0 1.5rem;
    background: #f8fbff;
    /* Fondo azul muy claro */
    border: 1px solid #e2e8f0;
    /* Borde sutil */
    border-radius: 12px;
    /* Bordes redondeados */
    padding: 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
}

.rating-stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.2rem;
}

.stars-gold {
    color: #9c7b2e;
    /* Tono bronce/oro oscuro como la imagen */
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.rating-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary);
    /* Azul oscuro */
}

.approval-level {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
}

.approval-icon {
    width: 18px;
    height: 18px;
    stroke: var(--color-primary);
}

.approval-text {
    font-size: 0.95rem;
    color: var(--color-primary);
}

.reviews-count {
    font-size: 0.75rem;
    color: #718096;
    /* Gris texto secundario */
    margin: 0;
}

/* Columna de Detalles */
.card-column-details {
    padding: 1.5rem 2rem;
    /* Reducido de 2rem 2.5rem */
    display: flex;
    flex-direction: column;
}

/* Lista de Características Elegante */
.features-elegant-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    /* Reducido de 1.2rem */
    margin-bottom: 1.5rem;
    /* Reducido de 2.5rem */
}

.feature-elegant-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text);
}

.feature-svg {
    width: 20px;
    height: 20px;
    color: var(--color-text-light);
    stroke-width: 1.5;
}

.feature-text {
    font-size: 1.05rem;
    font-weight: 500;
}

/* Footer Premium */
.card-premium-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.2rem;
    /* Reducido de 1.5rem */
    border-top: 1px solid var(--color-border);
}

.price-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.price-value-container {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.price-main-val {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.price-curr {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.price-small-converted {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 0.4rem;
}

/* Botón VIP */
.btn-reserve-vip {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 1.1rem 2.2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
}

.btn-reserve-vip:hover {
    background: #2a5298;
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(26, 54, 93, 0.3);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .card-main-body {
        grid-template-columns: 100%;
    }

    .card-column-visual {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }
}

@media (max-width: 600px) {
    .features-elegant-list {
        grid-template-columns: 100%;
    }

    .card-premium-footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .action-side {
        width: 100%;
    }

    .btn-reserve-vip {
        width: 100%;
        justify-content: center;
    }
}

/* Bloque 1: Datos del viaje (COMPACTO) */
.trip-info-compact {
    margin-bottom: 1rem;
}

/* Nuevo diseño de ruta moderno y fino */
.trip-route-modern {
    margin-bottom: 1rem;
    /* Reducido de 2rem */
    padding-bottom: 1rem;
    /* Reducido de 1.5rem */
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    width: 100%;
}

.route-labels {
    display: flex;
    width: 100%;
    margin-bottom: 0.8rem;
}

.route-label-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Poppins', sans-serif;
    flex: 1;
}

.route-label-text:first-child {
    text-align: left;
}

.route-label-text:last-child {
    /* Centrado en la segunda mitad para alinearse con su valor */
    text-align: center;
    padding-left: 2rem;
    /* Espacio para el separador */
}

.route-values {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0;
}

.route-value-box {
    flex: 1;
    min-width: 0;
    /* Permite que el texto se trunque o rompa */
}

.route-value-box:first-child {
    padding-right: 1.5rem;
}

.route-value-box:last-child {
    padding-left: 1.5rem;
    text-align: center;
}

.route-value-main {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    font-family: 'Poppins', sans-serif;
    word-break: break-word;
}

/* Línea divisoria vertical sutil */
.route-separator-main {
    display: block !important;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--color-border), transparent);
    opacity: 0.6;
    flex-shrink: 0;
}

.route-arrow-modern {
    display: none;
    /* Quitamos la flecha para usar la línea */
}

/* Responsive para tarjeta de resultados */
@media (max-width: 768px) {
    .route-labels {
        display: none;
    }

    .route-values {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .route-value-box {
        width: 100%;
        padding: 0 !important;
        text-align: left !important;
    }

    .route-separator-main {
        display: none !important;
    }

    .route-value-box::before {
        content: attr(data-label);
        display: block;
        font-size: 0.65rem;
        font-weight: 700;
        color: var(--color-text-light);
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 0.4rem;
    }
}

.trip-details-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 1.05rem;
    /* Aumentado de 1rem */
    color: var(--color-text);
}

.detail-item-compact {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.detail-icon {
    font-size: 1.1rem;
    /* Aumentado de 1rem */
}

/* ============================================
   NIVEL 2: TARJETAS ALTERNATIVAS (Modernas)
   ============================================ */
.card-alternative-modern {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card-alternative-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.alt-card-body {
    display: grid;
    grid-template-columns: 35% 65%;
    /* Reducir ancho columna visual */
    align-items: stretch;
    min-height: 160px;
    /* Reducido de 200px */
}

/* Columna Visual de Alternativa */
.alt-card-visual {
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(0, 0, 0, 0.04);
}

/* --- Layout 4 Columnas (Nuevo) --- */
/* --- Layout 4 Columnas (Nuevo) --- */
.alt-card-layout-4col {
    display: grid;
    grid-template-columns: 160px 1fr auto auto;
    /* Reducido ancho de columna imagen */
    gap: 1.5rem;
    align-items: center;
    padding: 1rem;
}

/* 1. Columna Imagen */
.alt-col-img {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alt-col-img img {
    max-width: 100%;
    width: auto;
    /* Permitir ancho natural hasta el maximo */
    height: 100px;
    /* Altura fija contenida */
    object-fit: contain;
}

/* 2. Columna Info */
.alt-col-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 3. Columna Rating */
.alt-col-rating {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 140px;
}

/* 4. Columna Action */
/* 4. Columna Action */
.alt-col-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    min-width: 150px;
}

/* --- Estilos internos restaurados --- */
.alt-card-title-internal {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.alt-specs-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0px;
    /* Ajuste para grid */
}

.alt-spec-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4a5568;
    /* var(--color-text) fallback */
}

.alt-spec-row.highlight {
    color: #10b981;
    /* var(--color-success) fallback */
    font-weight: 500;
}

.alt-feature-icon {
    width: 16px;
    height: 16px;
    color: #a0aec0;
    /* var(--color-text-light) fallback */
    min-width: 16px;
    /* Asegurar que no se aplaste */
}

/* Responsive: Stack columns on mobile */
@media (max-width: 900px) {
    .alt-card-layout-4col {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .alt-col-img img {
        height: 150px;
        max-width: 80%;
    }

    .alt-col-info {
        align-items: center;
    }

    .alt-specs-list {
        align-items: center;
        /* Centrar items */
    }

    .alt-col-action {
        align-items: center;
        width: 100%;
    }

    .btn-select-alt {
        width: 100%;
        justify-content: center;
    }
}

.alt-card-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alt-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
    /* Reducido padding para que imagen no se vea tan pequeña por el padding blanco pero el container es mas chico */
    transition: transform 0.4s ease;
    max-height: 130px;
    /* Limitar altura imagen */
}

.card-alternative-modern:hover .alt-card-image-wrapper img {
    transform: scale(1.08);
}

.alt-rating-mini {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    backdrop-filter: blur(4px);
}

.alt-stars {
    color: #9c7b2e;
}

.alt-score {
    font-weight: 700;
    color: var(--color-primary);
}

/* Columna de Contenido */
/* Eliminar estilos viejos que ya no se usan si existen */
.alt-card-content,
.alt-pre-footer,
.alt-card-footer {
    display: none;
}

.alt-price-right {
    text-align: right;
}

/* Mini Approval Box Styles */
.alt-approval-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alt-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars-gold-mini {
    color: #9c7b2e;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.rating-number-mini {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-primary);
}

.alt-approval-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--color-primary);
}

.approval-icon-mini {
    width: 14px;
    height: 14px;
}

.alt-reviews-count {
    font-size: 0.65rem;
    color: #718096;
    margin: 0;
}

/* Obsoleto en nueva estructura pero mantenido por si caso */
.alt-price-block {
    display: none;
}

.alt-price-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
    font-weight: 600;
}

.alt-price-value {
    font-size: 1.15rem;
    /* Reducido de 1.25 */
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.alt-curr {
    font-size: 0.7rem;
    font-weight: 600;
}

.btn-select-alt {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

/* Revertir full-width */
.full-width-btn {
    width: auto;
}

.btn-select-alt:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateX(2px);
}

/* Responsive para Alternativas y Promociones */
@media (max-width: 768px) {
    .cards-grid-alternatives {
        display: grid;
        grid-template-columns: 1fr;
        /* Una columna en móvil */
        gap: 1.5rem;
    }

    .alt-card-body {
        grid-template-columns: 35% 65%;
        /* Mantener estructura horizontal pero ajustada */
    }

    .alt-features-grid {
        grid-template-columns: 1fr;
        /* Características en lista */
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .alt-card-body {
        grid-template-columns: 100%;
        /* Vertical completa en pantallas muy pequeñas */
    }

    .alt-card-visual {
        min-height: 160px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .alt-card-image-wrapper img {
        max-height: 140px;
    }
}



.price-includes-compact span {
    font-weight: 500;
}

.price-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.price-action-row .price-main-compact {
    margin-bottom: 0;
}

.price-action-row .btn-primary-compact {
    margin-top: 0;
    flex-shrink: 0;
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
}

.btn-primary-compact {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2c5282 100%);
    color: var(--color-white);
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

.btn-primary-compact:hover {
    background: linear-gradient(135deg, #2c5282 0%, var(--color-primary) 100%);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ============================================
   NIVEL 2: 4 TARJETAS ALTERNATIVAS (MAX 350px altura)
   ============================================ */
.alternatives-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Lista vertical de tarjetas alternativas - diseño horizontal discreto */
.cards-grid-alternatives {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-alternative {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 180px;
    max-height: 220px;
}

.card-alternative:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-accent-light);
    transform: translateX(4px);
}

.card-alternative-image {
    width: 270px;
    min-width: 270px;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.card-alternative-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-alternative:hover .card-alternative-image img {
    transform: scale(1.05);
}

.card-alternative-content {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: row;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
}

.card-alternative-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.card-alternative-header {
    margin-bottom: 0.5rem;
}

.card-alternative-rating {
    display: none;
    /* Ocultar rating en diseño horizontal */
}

.card-alternative-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.card-alternative-name {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-alternative-category {
    font-size: 0.85rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.card-alternative-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text);
}

.card-alternative-capacity {
    display: flex;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.card-alternative-advantage {
    display: inline-block;
    background: var(--color-accent-light);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.card-alternative-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
    min-width: 140px;
}

.card-alternative-price {
    text-align: right;
}

.price-alternative {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.price-comparison {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-width: 140px;
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
}

/* ============================================
   NIVEL 3: PROMOCIONES
   Estilos movidos a css/promociones.css para reutilización
   ============================================ */



.promotion-description {
    font-size: 1rem;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promotion-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.promotion-discount {
    font-size: 0.75rem;
    color: var(--color-accent);
    font-weight: 600;
}

.btn-tertiary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 0.75rem;
}

.btn-tertiary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-1px);
}

.card-promotion:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.promotion-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    flex-shrink: 0;
}

.promotion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-promotion:hover .promotion-image img {
    transform: scale(1.1);
}

.promotion-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.promotion-name {
    font-size: 1.2rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.promotion-description {
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promotion-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.promotion-discount {
    font-size: 0.95rem;
    color: var(--color-success);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.btn-tertiary {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 1.2rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-tertiary:hover {
    background: #c9a028;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--color-white);
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 968px) {
    .hero-section-results {
        height: 35vh;
        min-height: 280px;
        background-attachment: scroll;
    }

    .hero-title-results {
        font-size: clamp(1.8rem, 4vw, 2rem);
    }

    .hero-subtitle-results {
        font-size: clamp(0.95rem, 2vw, 1rem);
    }

    .card-main {
        grid-template-columns: 1fr;
        max-height: none;
        height: auto;
    }

    .card-main-image {
        height: 250px;
        min-height: 250px;
    }

    .card-alternative {
        flex-direction: column;
        max-height: none;
        min-height: auto;
    }

    .card-alternative-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .card-alternative-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .card-alternative-footer {
        width: 100%;
        align-items: stretch;
        min-width: auto;
    }

    .btn-secondary {
        width: 100%;
        min-width: auto;
    }

    /* Grid crystal responsive - Tablet: mostrar 2 tarjetas */
    .promociones-grid-crystal {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .hero-section-results {
        margin-top: 100px;
        padding: 1rem 0;
        height: 35vh;
        min-height: 250px;
        background-attachment: scroll;
    }

    .hero-content-results {
        padding: 0 1rem;
    }

    .hero-title-results {
        font-size: clamp(1.8rem, 5vw, 2rem);
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .hero-subtitle-results {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .main-content {
        padding: 2rem 0 3rem;
    }

    .card-main {
        grid-template-columns: 1fr;
        max-height: none;
        height: auto;
    }

    .card-main-image {
        height: 200px;
        min-height: 200px;
    }

    .card-main-content {
        padding: 1.25rem;
    }

    .trip-route-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .route-arrow-compact {
        transform: rotate(90deg);
        margin: 0.25rem 0;
    }

    .price-amount-compact {
        font-size: 1.75rem;
    }

    .card-alternative {
        flex-direction: column;
        max-height: none;
        min-height: auto;
    }

    .card-alternative-image {
        width: 100%;
        min-width: 100%;
        height: 180px;
    }

    .card-alternative-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
        padding: 0.875rem 1rem;
    }

    .card-alternative-footer {
        width: 100%;
        align-items: stretch;
        min-width: auto;
    }

    .btn-secondary {
        width: 100%;
        min-width: auto;
    }

    /* Slider responsive handled in promociones.css */

    .section-title {
        font-size: 1.5rem;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Utility Classes for Inline Replacements */
.no-padding-bottom {
    padding-bottom: 0 !important;
}

.margin-bottom-40 {
    margin-bottom: 40px !important;
}

.display-none {
    display: none;
}

.error-box {
    padding: 2rem;
    text-align: center;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    margin-top: 1rem;
}

.error-text {
    color: #856404;
    font-weight: 600;
}

.loading-box {
    padding: 2rem;
    text-align: center;
}

.loading-text {
    color: var(--color-text-light);
}