/* --- ESTILOS ESPECÍFICOS PARA PAQUETES --- */

.packages-page {
    padding-top: 100px; 
    background-color: #f8fafc; 
    min-height: 100vh;
    color: var(--text-dark);
}

.packages-hero {
    text-align: center;
    padding: 50px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.packages-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-dark);
    letter-spacing: -1px;
}

.packages-hero p {
    font-size: 1.15rem;
    color: var(--text-grey);
    line-height: 1.6;
}

/* --- GRID DE PAQUETES --- */
.packages-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 80px;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columnas para que sean más anchas */
    gap: 40px;
}

.pack-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.4s ease, box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.pack-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pack-img-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
}

.pack-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.pack-card:hover .pack-img {
    transform: scale(1.05);
}

.pack-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    color: var(--brand-teal);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.pack-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pack-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.pack-location {
    font-size: 0.9rem;
    color: var(--brand-orange);
    font-weight: 600;
    margin-bottom: 15px;
}

.pack-desc {
    color: #475569;
    line-height: 1.5;
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pack-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 30px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
}

.pack-features span {
    font-size: 0.85rem;
    color: var(--text-dark);
    font-weight: 500;
}

.pack-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.pack-price {
    display: flex;
    flex-direction: column;
}

.pack-price span { font-size: 0.8rem; color: var(--text-grey); }
.pack-price h4 { font-size: 1.8rem; font-weight: 900; color: var(--brand-teal); margin: 0;}

.btn-book-pack {
    background: var(--brand-orange);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-book-pack:hover {
    background: var(--brand-teal);
    transform: translateX(5px);
}


/* =========================================
   MODALES (POPUPS)
========================================= */

.pack-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
    z-index: 1000; display: none; justify-content: center; align-items: center; padding: 20px;
}
.pack-modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }

.pack-modal-content {
    background: white; border-radius: 20px; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    max-height: 90vh; overflow-y: auto; width: 100%; max-width: 800px; padding: 40px;
}

.pack-modal-close {
    position: absolute; top: 20px; right: 20px; background: #f1f5f9; border: none;
    width: 35px; height: 35px; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: var(--text-dark); transition: 0.2s; z-index: 10;
}
.pack-modal-close:hover { background: #e2e8f0; color: var(--brand-orange); }

/* Estilos de lo inyectado en el modal */
#packModalContent .pack-img-wrapper { height: 300px; border-radius: 16px; margin-bottom: 20px;}
#packModalContent .pack-content { padding: 0; }
#packModalContent .pack-desc { -webkit-line-clamp: unset; display: block; font-size: 1.05rem; }
#packModalContent .pack-footer { display: none; /* Ocultamos el footer clonado porque ponemos el nuestro */ }

.pack-divider { border: 0; border-top: 1px solid #e2e8f0; margin: 30px 0; }

.modal-booking-actions {
    text-align: center;
}
.modal-booking-actions p { color: var(--text-grey); margin-bottom: 15px;}

.action-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;}

.btn-primary-action { background: var(--brand-teal); color: white; border: none; padding: 15px 35px; border-radius: 50px; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: 0.3s;}
.btn-primary-action:hover { background: var(--brand-orange); transform: translateY(-2px);}

.btn-secondary-action { background: transparent; border: 2px solid #e2e8f0; color: var(--text-dark); padding: 13px 25px; border-radius: 50px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: 0.3s;}
.btn-secondary-action:hover { border-color: var(--airbnb); color: var(--airbnb); background: #fff0f2;}


/* Modal Auth (Family Friendly) - Mismo estilo que el blog */
.auth-modal { max-width: 450px; padding: 40px; text-align: center; }
.auth-modal-body { display: flex; flex-direction: column; align-items: center; }
.auth-icon { font-size: 4rem; margin-bottom: 10px; animation: wave 2s infinite; display: inline-block; transform-origin: 70% 70%;}
.auth-modal-body h2 { font-size: 2rem; margin-bottom: 15px; color: var(--text-dark); }
.auth-modal-body p { color: var(--text-grey); line-height: 1.6; margin-bottom: 30px; font-size: 1.05rem; }
.auth-buttons { display: flex; flex-direction: column; gap: 15px; width: 100%; margin-bottom: 20px;}
.btn-primary-auth { background: var(--brand-teal); color: white; border: none; padding: 15px; border-radius: 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: 0.2s;}
.btn-primary-auth:hover { background: var(--brand-orange); box-shadow: 0 5px 15px rgba(227, 110, 38, 0.3); transform: translateY(-2px);}
.btn-secondary-auth { background: transparent; border: 2px solid var(--brand-teal); color: var(--brand-teal); padding: 13px; border-radius: 12px; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: 0.2s;}
.btn-secondary-auth:hover { background: #f0fdfa; }
.auth-modal-body small { color: #94a3b8; font-size: 0.85rem;}

@keyframes wave { 0% { transform: rotate(0deg); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 30% { transform: rotate(14deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } 60% { transform: rotate(0deg); } 100% { transform: rotate(0deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .packages-grid { grid-template-columns: 1fr; }
    .pack-features { grid-template-columns: 1fr; }
    .pack-modal-content { padding: 25px; }
}