/* LibreViajes - Estilos Centralizados */

:root {
    --primary: #0F172A;
    --primary-light: #1E293B;
    --accent: #F43F5E;
    --accent-hover: #E11D48;
    --bg: #F8FAFC;
    --text: #334155;
    --text-light: #64748B;
    --card-bg: #FFFFFF;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(244, 63, 94, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* UTILS */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HERO HEADER */
.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.85) 100%), url('https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 70vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    animation: slideDown 1s ease-out;
}

.hero p {
    font-size: 1.4rem;
    max-width: 650px;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 300;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: slideUp 1s ease-out 0.2s backwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BUSCADOR */
.search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px;
    border-radius: 60px;
    display: flex;
    gap: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 750px;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 1s ease-out 0.5s backwards;
}

.search-input {
    flex-grow: 1;
    border: 1px solid transparent;
    padding: 16px 24px;
    font-size: 1.1rem;
    outline: none;
    border-radius: 40px;
    background: #F8FAFC;
    font-family: inherit;
    transition: all 0.3s ease;
    color: var(--primary);
}

.search-input:focus {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.search-select {
    border: 1px solid transparent;
    padding: 16px 24px;
    font-size: 1rem;
    outline: none;
    border-radius: 40px;
    background: #F8FAFC;
    font-family: inherit;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.3s ease;
}

.search-select:hover {
    background: white;
}

.search-select:focus {
    border-color: var(--accent);
}

/* FILTROS */
.filter-section {
    padding: 3rem 1rem 1rem;
    text-align: center;
}

.pills-container {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 1rem;
    padding: 10px 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pills-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar (Chrome/Safari) */
}

.pill {
    padding: 10px 24px;
    border-radius: 50px;
    border: 1px solid #E2E8F0;
    background: white;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.pill:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* GRID DE VIAJES */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 24px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid #F1F5F9;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(244, 63, 94, 0.1);
}

.card-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.card:hover img {
    transform: scale(1.15);
}

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.98);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.card-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-location {
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin: 0 0 0.75rem 0;
    color: var(--primary);
    line-height: 1.25;
}

.card-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #F1F5F9;
    padding-top: 1.25rem;
    margin-top: auto;
}

.price-value {
    color: var(--primary);
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

.btn-card {
    background: var(--bg);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.card:hover .btn-card {
    background: var(--primary);
    color: white;
    transform: rotate(-45deg);
}

/* --- SECCIÓN CLUB (Fusionada) --- */
.club-section {
    margin-top: 6rem;
    padding: 5rem 1rem;
    text-align: center;
    background: linear-gradient(to bottom, transparent, #F1F5F9);
    border-top: 1px solid #E2E8F0;
}

.club-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.club-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 4rem auto 0;
    padding: 0 1rem;
}

.price-card {
    background: white;
    border-radius: 30px;
    padding: 3rem;
    flex: 1;
    min-width: 320px;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #E2E8F0;
    position: relative;
    text-align: left;
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card.premium {
    border: 2px solid var(--accent);
    transform: scale(1.05);
    z-index: 2;
    background: #FFF;
    box-shadow: 0 25px 50px -12px rgba(244, 63, 94, 0.25);
}

.price-card.premium:hover {
    transform: scale(1.08);
}

.badge-premium {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 5px 15px rgba(244, 63, 94, 0.4);
}

.plan-name {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    letter-spacing: -2px;
}

.price span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: normal;
}

.features {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0;
}

.features li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--text);
}

.check {
    color: white;
    background: var(--accent);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.btn-club {
    display: block;
    width: 100%;
    padding: 1.25rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn-filled {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.btn-filled:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.3);
}

/* Icono del plan */
.plan-icon {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Lista de características de newsletter */
.newsletter-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.newsletter-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Input de newsletter mejorado */
.newsletter-input {
    border-radius: 50px !important;
    padding: 14px 20px !important;
    border: 2px solid #E2E8F0 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.newsletter-input:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.1) !important;
}

/* Botón de submit mejorado */
.newsletter-submit-btn {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    color: #FFFFFF !important;
    background: linear-gradient(135deg, var(--primary) 0%, #1e293b 100%) !important;
    border-radius: 50px !important;
    border: none !important;
    width: 100% !important;
    padding: 14px 24px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
}

.newsletter-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3) !important;
    background: linear-gradient(135deg, #1e293b 0%, var(--primary) 100%) !important;
}

.newsletter-submit-btn span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Ajustes para integrar Brevo visualmente en la tarjeta */
#sib-container {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sib-input {
    padding: 0 !important;
}

.sib-form-block {
    padding: 5px 0 !important;
}

/* IMPORTANTE: Corregir visibilidad de mensajes de error/éxito */
.sib-form-message-panel {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    overflow: hidden !important;
}

/* Mostrar solo cuando Brevo añade la clase de visibilidad */
.sib-form-message-panel--active {
    display: block !important;
}

/* Ocultar TODOS los iconos de carga de Brevo */
.sib-hide-loader-icon,
.progress-indicator__icon,
svg.progress-indicator__icon {
    display: none !important;
}

/* Ocultar labels de error de Brevo */
.entry__error,
.entry__error--primary {
    display: none !important;
}

/* El formulario en sí transparente, pero NO los mensajes */
.sib-form {
    background-color: transparent !important;
}

/* Botón LOGIN en Header */
.nav-login {
    position: absolute;
    top: 20px;
    right: 20px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.nav-login:hover {
    background: white;
    color: var(--primary);
}

/* Botón FAVORITO (Corazón) */
.btn-fav {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    border: none;
    font-size: 1.2rem;
    color: #CBD5E1;
}

.btn-fav:hover {
    transform: scale(1.1);
}

.btn-fav.active {
    color: var(--accent);
}

/* FOOTER */
footer {
    background: var(--primary);
    color: white;
    padding: 6rem 1rem 3rem;
    text-align: center;
    margin-top: 0;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 2rem;
    display: inline-block;
}

.footer-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Global Mobile Optimizations */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        /* Menos altura en tablet/móvil */
        height: auto;
        padding: 4rem 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Título más pequeño */
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    /* Buscador en columna en móvil */
    .search-container {
        flex-direction: column;
        width: 95%;
        padding: 10px;
        gap: 10px;
        border-radius: 20px;
    }

    .search-input,
    .search-select {
        width: 100%;
        /* Ocupar todo el ancho */
        box-sizing: border-box;
        padding: 14px 20px;
    }

    .search-select {
        border-radius: 40px;
        /* Redondear también el select al estar solo */
    }

    .container {
        padding: 1.5rem 16px;
        /* Menos padding lateral */
    }

    /* Club Cards */
    .pricing-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .price-card.premium {
        transform: scale(1);
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .price-card {
        width: 100%;
        box-sizing: border-box;
        padding: 2rem;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
    position: fixed;
    bottom: -100px;
    /* Hidden initially */
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.cookie-banner.visible {
    bottom: 20px;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--primary);
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.cookie-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
    font-family: inherit;
    white-space: nowrap;
}

.btn-cookie.btn-outline {
    background: transparent;
    border: 2px solid #E2E8F0;
    color: var(--text);
}

.btn-cookie.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-cookie.btn-filled {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-cookie.btn-filled:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: flex-end;
    }

    .btn-cookie {
        flex: 1;
        text-align: center;
        padding: 0.8rem;
    }
}

/* WARNING BOX (Dynamic Prices) */
.warning-box {
    background-color: #FFF7ED;
    /* Light orange background */
    border-left: 4px solid #F59E0B;
    /* Orange accent */
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #9A3412;
    /* Darker orange text */
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.warning-icon {
    font-size: 1.5rem;
    color: #F59E0B;
    flex-shrink: 0;
    margin-top: -2px;
}

.warning-title {
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    color: #9A3412;
}

.warning-text {
    margin: 0;
    line-height: 1.5;
    opacity: 0.9;
}