/* ==========================================================================
   NUEVO DISEÑO PARA AGENDA Y CONFIRMACIÓN - By Gemini
   ========================================================================== */

/* -----------------------------------------
   1. VARIABLES Y ESTILOS GLOBALES
   ----------------------------------------- */
:root {
    --color-principal: #E74C3C; /* Rojo Intenso */
    --color-principal-oscuro: #C0392B;
    --color-secundario: #F39C12; /* Naranja Vibrante */
    --color-secundario-oscuro: #D35400;
    --color-acento: #2ECC71; /* Verde Éxito */
    --color-acento-oscuro: #27AE60;
    --color-whatsapp: #25D366;
    --color-info: #3498DB;
    --color-texto-oscuro: #34495E;
    --color-texto-gris: #7f8c8d;
    --color-fondo: #f8f9fa; /* Un gris muy claro para el fondo */
    --color-card-fondo: #FFFFFF;
    --sombra-suave: 0 8px 32px rgba(0, 0, 0, 0.08);
    --sombra-profunda: 0 15px 45px rgba(0, 0, 0, 0.12);
}

body {
    background-color: var(--color-fondo);
    font-family: 'Poppins', sans-serif;
    color: var(--color-texto-oscuro);
    line-height: 1.6;
    margin: 0;
    padding: 2rem 1rem;
}

.main-container {
    max-width: 1100px;
    margin: 0 auto;
}

/* -----------------------------------------
   2. ENCABEZADO Y BARRA DE PROGRESO
   ----------------------------------------- */
.booking-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--color-texto-oscuro);
}

.booking-header h1 span {
    color: var(--color-principal);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.steps-progress-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 3.5rem;
}

.steps-progress-container::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 5%;
    right: 5%;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 1;
}

.step-progress-item {
    text-align: center;
    position: relative;
    flex: 1;
    z-index: 2;
}

.step-icon {
    width: 50px;
    height: 50px;
    background-color: #e0e0e0;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 5px solid var(--color-fondo);
    transition: all 0.4s ease;
}

.step-progress-item.active .step-icon {
    background-color: var(--color-secundario);
    transform: scale(1.1);
    box-shadow: 0 0 0 4px var(--color-fondo), 0 5px 15px rgba(243, 156, 18, 0.4);
}

.step-title {
    font-weight: 500;
    color: var(--color-texto-gris);
}

.step-progress-item.active .step-title {
    color: var(--color-secundario);
    font-weight: 700;
}

/* -----------------------------------------
   3. TARJETAS Y FORMULARIO
   ----------------------------------------- */
.booking-card {
    background-color: var(--color-card-fondo);
    border-radius: 24px;
    padding: clamp(1.5rem, 5vw, 3rem);
    box-shadow: var(--sombra-profunda);
    border: 1px solid #eee;
}

.package-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--sombra-suave);
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-profunda);
}

.package-card.selected {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 0 4px var(--color-principal), var(--sombra-profunda);
}

.package-img {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.package-content {
    padding: 1.5rem;
}

.package-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-principal);
}

.package-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-secundario);
}

/* -----------------------------------------
   4. BOTONES PRINCIPALES
   ----------------------------------------- */
.btn-primary, .btn-secondary {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(45deg, var(--color-principal), var(--color-secundario));
    color: white;
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.4);
}

.btn-secondary {
    background-color: #e9ecef;
    color: var(--color-texto-oscuro);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}
.btn-secondary:hover {
    background-color: #dee2e6;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* -----------------------------------------
   5. PÁGINA DE CONFIRMACIÓN (MIAGENDA.PHP)
   ----------------------------------------- */
.confirmation-container {
    width: 100%;
}

#downloadable-content {
    background: var(--color-card-fondo);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid #eee;
}

#confirmation-header h3 {
    color: var(--color-principal) !important;
    font-weight: 800;
}

#confirmation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.detail-item {
    background-color: var(--color-fondo);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    text-align: left;
    transition: all 0.3s ease;
}
.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-suave);
}

.detail-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: white !important;
    margin-right: 1rem;
}

.detail-content strong {
    font-size: 0.9rem;
    color: var(--color-texto-gris);
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.detail-content p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-texto-oscuro);
}

/* Botones de acción en Confirmación */
.d-flex.justify-content-center.mt-4.gap-3 {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    margin: 1.5rem auto 0;
}

#downloadBtn, #whatsappBtn {
    font-weight: 700;
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}
#downloadBtn {
    background-color: var(--color-acento);
    color: white;
    box-shadow: 0 6px 15px rgba(46, 204, 113, 0.3);
}
#downloadBtn:hover {
    background-color: var(--color-acento-oscuro);
    transform: translateY(-3px);
}
#whatsappBtn {
    background-color: var(--color-whatsapp);
    color: white;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}
#whatsappBtn:hover {
    background-color: #1EBE57;
    transform: translateY(-3px);
}

/* Botón flotante para volver */
.back-button-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.back-button {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    /* 👇 AÑADE ESTO AQUÍ 👇 */
    display: flex;
    align-items: center;
    justify-content: center;
    /* 👆 HASTA AQUÍ 👆 */
}
/* -----------------------------------------
   6. RESPONSIVE DESIGN
   ----------------------------------------- */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }
    .steps-progress-container {
        flex-direction: row; /* Asegura que los pasos se muestren en fila */
        justify-content: space-around; /* Distribuye el espacio entre los pasos */
        align-items: flex-start; /* Alinea los pasos al inicio para evitar que se desalineen */
        gap: 0; /* Elimina cualquier espacio adicional entre los elementos */
    }

    .steps-progress-container::before {
        display: block; /* Vuelve a mostrar la línea de la barra de progreso */
        top: 25px;
        left: 10%;
        right: 10%;
    }

    .step-progress-item {
        flex: none; /* Evita que los pasos se expandan de manera irregular */
        width: 20%; /* O un valor fijo para controlar el ancho de cada paso */
    }

    .step-title {
        font-size: 0.8rem; /* Ajusta el tamaño del texto para que quepa */
    }
    .booking-card {
        padding: 1.5rem;
    }
    .d-flex.justify-content-between.mt-5 {
        flex-direction: column;
        gap: 1rem;
    }
    .d-flex.justify-content-between.mt-5 button {
        width: 100%;
    }
}
