/* ==========================================================================
   afiliarme_mejoras.css — Estilos modernos para el proceso de afiliación
   ========================================================================== */

/* 1. PROGRESS BAR / STEP INDICATOR */
.step-progress-container {
    max-width: 800px;
    margin: 40px auto 30px;
    padding: 0 20px;
}

.step-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0;
    margin: 0;
    list-style: none;
}

.step-progress::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 0;
    height: 4px;
    width: 100%;
    background: #e4dbff;
    z-index: 1;
}

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

.step-icon {
    width: 54px;
    height: 54px;
    background: #fff;
    border: 4px solid #e4dbff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 800;
    color: #5633C1;
    transition: all 0.4s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.step-item.active .step-icon {
    border-color: #5633C1;
    background: #5633C1;
    color: #fff;
    box-shadow: 0 8px 20px rgba(86, 51, 193, 0.35);
}

.step-item.completed .step-icon {
    border-color: #FCAA12;
    background: #FCAA12;
    color: #fff;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #5633C1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. HERO & VIDEO SECTION */
.hero-afiliarme {
    text-align: center;
    padding: 30px 20px 40px;
    background: linear-gradient(180deg, #fff 0%, #f9f7ff 100%);
}

.hero-afiliarme h1 {
    color: #5633C1;
    font-weight: 800;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero-afiliarme p {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.video-premium-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
    background: #000;
}

.video-premium-wrapper video {
    width: 100%;
    display: block;
}

/* 3. STEP HEADERS */
.step-header {
    background: #fff;
    border-radius: 20px;
    padding: 25px 30px;
    margin-bottom: 30px;
    border-left: 8px solid #FCAA12;
    box-shadow: 0 10px 35px rgba(86, 51, 193, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #FCAA12;
    line-height: 1;
    opacity: 0.5;
}

.step-info h3 {
    color: #5633C1;
    font-weight: 800;
    margin-bottom: 4px;
}

.step-info p {
    margin: 0;
    color: #666;
    font-size: 1.05rem;
}

/* 4. MODERN FORMS */
.form-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.afiliarme-input {
    background: #fff !important;
    border: 2px solid #e8e4f5 !important;
    border-radius: 14px !important;
    padding: 12px 15px !important;
    font-size: 0.95rem !important;
    color: #333 !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 50px !important;
    line-height: 1.4 !important;
}

.afiliarme-input:focus {
    border-color: #5633C1 !important;
    box-shadow: 0 0 0 4px rgba(86, 51, 193, 0.15) !important;
}

/* 4.1 COBERTURA BOX FIX */
.cobertura-box {
    background: #f8f8fc !important;
    border: 2px solid #5633C1 !important;
    border-radius: 18px !important;
    padding: 25px !important;
    margin: 20px 0 !important;
}

.cobertura-box h4 {
    color: #5633C1 !important;
    font-weight: 800 !important;
}

.cobertura-box p {
    color: #555 !important;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
}

.afiliarme-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235633C1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 35px !important;
    white-space: normal !important;
    /* Permitir que el texto largo se vea mejor */
    line-height: normal !important;
    min-height: 50px !important;
}

/* 5. MASCOTA CARDS */
.mascota-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    max-width: 800px;
    margin: 0 auto;
}

.mascota-card:hover {
    transform: translateY(-5px);
}

.mascota-card h4 {
    color: #5633C1;
    font-weight: 800;
    border-bottom: 2px solid #f0eaf8;
    padding-bottom: 12px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mascota-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mascota-photo-section {
    grid-column: span 2;
    display: flex;
    gap: 20px;
    align-items: center;
    background: #f8f8fc;
    padding: 20px;
    border-radius: 16px;
    margin-top: 10px;
}

.foto-ejemplo-trigger {
    color: #5633C1;
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}

.quitarMascotaBtn {
    background: #ffeded !important;
    color: #dc3545 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
}

.quitarMascotaBtn:hover {
    background: #dc3545 !important;
    color: #fff !important;
}

/* 6. RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    .mascota-grid {
        grid-template-columns: 1fr;
    }

    .hero-afiliarme h1 {
        font-size: 2.1rem;
    }

    .hero-afiliarme {
        padding: 0px 15px 15px;
    }

    .afiliarme-section {
        margin-top: 5px !important;
        /* Forces content even higher if needed */
        padding-top: 0 !important;
    }

    .section-title {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .form-card {
        padding: 20px 10px;
        border-radius: 16px;
    }

    .step-progress-container {
        margin: 0px auto 10px;
        padding-top: 0 !important;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .step-icon {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .step-progress::before {
        top: 22px;
    }
}

/* 7. STEP 3 & FOOTER */
.checkout-footer {
    background: #5633C1;
    border-radius: 24px;
    padding: 40px;
    color: #fff;
    margin-top: 40px;
}

.captcha-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
}

.terminos-check-wrapper {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
}

.terminos-check-wrapper input {
    width: 20px;
    height: 20px;
    accent-color: #FCAA12;
}

.btn-confirmar-afiliacion {
    width: 100%;
    max-width: 400px;
    padding: 18px !important;
    border-radius: 50px !important;
    font-size: 1.2rem !important;
    background: #FCAA12 !important;
    color: #000 !important;
    border: none !important;
    box-shadow: 0 10px 30px rgba(252, 170, 18, 0.4) !important;
    transition: all 0.3s ease !important;
}

.btn-confirmar-afiliacion:hover:not(:disabled) {
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 40px rgba(252, 170, 18, 0.6) !important;
}

.btn-confirmar-afiliacion:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* TOOLTIP MODAL PARA FOTO CARNET */
#modalFotoEjemplo {
    display: none;
    position: fixed;
    z-index: 100001;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.foto-ejemplo-content {
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    text-align: center;
}

.foto-ejemplo-content img {
    max-width: 100%;
    border-radius: 10px;
}

.foto-ejemplo-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}