/**
 * C3 Event Manager — Frontend styles.
 */

.c3em-wizard{

    --c3em-color-primary:#003da5;
    --c3em-color-secondary:#ffd100;
    --c3em-color-accent:#f47920;
    --c3em-text:#333;

    max-width:920px;
    margin:40px auto;
    padding:20px;

    font-family:inherit;

}


/* ==========================
   TARJETA
========================== */

.c3em-card{

    background:#fff;

    border-radius:18px;

    border-top:6px solid var(--c3em-color-primary);

    box-shadow:0 12px 35px rgba(0,0,0,.10);

    padding:18px;

}


/* ==========================
   ENCABEZADO
========================== */

.c3em-header{

    text-align:center;

    margin-bottom:20px;

}

.c3em-header h2{

    margin:0 0 8px;

    color:var(--c3em-color-primary);

    font-size:28px;

    font-weight:700;

}

.c3em-subtitle{

    color:#666;

    font-size:16px;

}


/* ==========================
   PROGRESO
========================== */

.c3em-progress{

    margin-bottom:20px;

    text-align:center;

}

.c3em-progress-bar{

    height:10px;

    background:#e8e8e8;

    border-radius:25px;

    overflow:hidden;

    margin-bottom:10px;

}

.c3em-progress-fill{

    height:100%;

    width:20%;

    background:linear-gradient(
        90deg,
        var(--c3em-color-primary),
        var(--c3em-color-accent)
    );

    border-radius:25px;

    transition:.35s;

}

#c3em-step-title{

    font-size:14px;

    color:#666;

}


/* ==========================
   PASOS
========================== */

.c3em-step h3{

    text-align:center;

    font-size:22px;

    color:var(--c3em-text);

    margin-bottom:20px;

}

.c3em-description{

    text-align:center;

    margin-bottom:25px;

    color:#666;

}
/* /* ==========================
   OPCIONES
========================== */

.c3em-option{

    display:flex;

    align-items:flex-start;

    gap:16px;

    padding:14px 18px;

    margin-bottom:10px;

    border:2px solid #e5e5e5;

    border-radius:12px;

    cursor:pointer;

    background:#fff;

    transition:all .25s ease;

}

.c3em-option:hover{

    border-color:var(--c3em-color-primary);

    background:#f8fbff;

}

.c3em-option.selected{

    border-color:var(--c3em-color-primary);

    background:#eef5ff;

    box-shadow:0 0 0 3px rgba(0,61,165,.12);

}

.c3em-option input{

    width:20px;

    height:20px;

    margin-top:6px;

    accent-color:var(--c3em-color-primary);

    flex-shrink:0;

}

.c3em-option span{

    display:block;

    flex:1;

}

.c3em-option strong{

    display:inline;

    font-size:22px;

    font-weight:600;

    color:#222;

}

.c3em-option small{

    display:block;

    margin-top:6px;

    color:#666;

    line-height:1.45;

}


/* ==========================
   BOTONES
========================== */

.c3em-buttons{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-top:50px;

    padding-top:20px;

    border-top:1px solid #ececec;

}

.c3em-prev,
.c3em-next{

    background:var(--c3em-color-primary);

    color:#fff;

    border:none;

    border-radius:30px;

    padding:14px 34px;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.c3em-prev:hover,
.c3em-next:hover{

    background:#002b78;

    transform:translateY(-2px);

}

.c3em-prev:disabled,
.c3em-next:disabled{

    background:#bcc3cf;

    cursor:not-allowed;

    transform:none;

    opacity:.75;

}
/* ==========================
   FORMULARIO
========================== */

#c3em-registration-form{

    margin-top:10px;

}


/* ==========================
   BOTÓN ATRÁS
========================== */

.c3em-prev{

    visibility:hidden;

}

.c3em-prev.active{

    visibility:visible;

}


/* ==========================
   ANIMACIONES
========================== */

.c3em-step{

    animation:c3emFade .25s ease;

}

@keyframes c3emFade{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}


/* ==========================
   RESPONSIVE
========================== */

@media (max-width:768px){

    .c3em-wizard{

        margin:20px auto;

        padding:10px;

    }

    .c3em-card{

        padding:25px 18px;

    }

    .c3em-header h2{

        font-size:22px;

    }

    .c3em-step h3{

        font-size:20px;

    }

    .c3em-option{

        padding:15px;

        font-size:15px;

    }

    .c3em-buttons{

        gap:12px;

    }

    .c3em-prev,
    .c3em-next{

        flex:1;

        padding:13px 20px;

        font-size:15px;

    }

}


/* ==========================
   MÓVILES PEQUEÑOS
========================== */

@media (max-width:480px){

    .c3em-buttons{

        flex-direction:column;

    }

    .c3em-prev,
    .c3em-next{

        width:100%;

    }

}
/* =====================================================
   PASO 4 - FORMULARIO PARTICIPANTES
===================================================== */

.c3em-participant-card{

    background:#ffffff;

    border:1px solid #e5e7eb;

    border-radius:14px;

    padding:25px;

    margin-top:20px;

    box-shadow:0 4px 12px rgba(0,0,0,.05);

}

.c3em-participant-card h4{

    margin:0 0 25px;

    color:var(--c3em-color-primary);

    font-size:20px;

    font-weight:700;

}

.c3em-form-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

}

.c3em-field{

    display:flex;

    flex-direction:column;

}

.c3em-field label{

    margin-bottom:10px;

    font-size:16px;

    font-weight:600;

    color:#333;

}

.c3em-field input,
.c3em-field select{

    width:100%;

    height:56px;

    padding:0 18px;

    font-size:17px;

    border:2px solid #d8d8d8;

    border-radius:12px;

    background:#fff;

    transition:.25s;

    box-sizing:border-box;

}

.c3em-field input:focus,
.c3em-field select:focus{

    outline:none;

    border-color:var(--c3em-color-primary);

    box-shadow:0 0 0 4px rgba(0,61,165,.12);

}

.c3em-field input::placeholder{

    color:#999;

}

.c3em-group-actions{

    margin-top:30px;

    text-align:right;

}

.c3em-add-participant{

    background:var(--c3em-color-primary);

    color:#fff;

    border:none;

    padding:14px 28px;

    border-radius:30px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.25s;

}

.c3em-add-participant:hover{

    background:#002b78;

    transform:translateY(-2px);

}

/* Campos de ancho completo */

.c3em-field.full{

    grid-column:1 / -1;

}

/* Responsive */

@media(max-width:768px){

    .c3em-form-grid{

        display:grid;
    
        grid-template-columns:repeat(2,1fr);
    
        gap:28px;
    
    }

    .c3em-group-actions{

        text-align:center;

    }

    .c3em-add-participant{

        width:100%;

    }

}

/* ======================================================
   PASO 5 - CHECKOUT
====================================================== */

.c3em-checkout{

    margin-top:30px;

}

.c3em-summary,
.c3em-total-box,
.c3em-rules{

    background:#fff;

    border:1px solid #e7e7e7;

    border-radius:14px;

    padding:25px;

    margin-bottom:25px;

    box-shadow:0 3px 12px rgba(0,0,0,.04);

}

.c3em-summary h4,
.c3em-total-box h4,
.c3em-rules h4{

    margin:0 0 18px;

    font-size:18px;

    color:var(--c3em-color-primary);

    font-weight:700;

}

#c3em-summary-participants{

    line-height:1.8;

    font-size:15px;

}

.c3em-total-box{

    text-align:center;

}

#c3em-total-value{

    font-size:36px;

    font-weight:700;

    color:var(--c3em-color-primary);

    margin-top:10px;

}

.c3em-rules-content{

    max-height:260px;

    overflow-y:auto;

    border:1px solid #ddd;

    border-radius:10px;

    background:#fafafa;

    padding:20px;

    font-size:14px;

    line-height:1.8;

}

.c3em-checkout-options{

    margin:25px 0;

}

.c3em-checkout-options label{

    display:block;

    margin-bottom:16px;

    font-size:15px;

    cursor:pointer;

}

.c3em-checkout-options input{

    margin-right:8px;

}

.c3em-pay-button{

    width:100%;

    background:var(--c3em-color-primary);

    color:#fff;

    border:none;

    border-radius:30px;

    padding:18px;

    font-size:18px;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

}

.c3em-pay-button:hover:not(:disabled){

    transform:translateY(-2px);

}

.c3em-pay-button:disabled{

    opacity:.45;

    cursor:not-allowed;

}
/* ==========================
   Capitán del grupo
========================== */

.c3em-captain-label{

    display:flex;

    align-items:flex-start;

    gap:12px;

    cursor:pointer;

    padding:14px;

    border:1px solid #dfe6ef;

    border-radius:10px;

    background:#f8fafc;

}

.c3em-captain-label input{

    margin-top:4px;

    flex-shrink:0;

}

.c3em-captain-label strong{

    display:block;

    color:var(--c3em-color-primary);

    font-size:16px;

}

.c3em-captain-label small{

    display:block;

    margin-top:4px;

    color:#666;

    font-size:13px;

    line-height:1.5;

}
/* Checkbox Capitán del grupo */

.c3em-captain-label input[type="checkbox"]{

    width:20px !important;

    height:20px !important;

    padding:0 !important;

    margin-top:3px;

    border:none;

    box-shadow:none;

    flex-shrink:0;

}
/* ==================================
   PARTICIPANTES - BOTÓN ELIMINAR
================================== */

.c3em-participant-card {
    position: relative;
}


/* Botón X eliminar participante */

.c3em-remove-participant {

    position: absolute;

    top: 12px;

    right: 12px;

    width: 32px;

    height: 32px;

    border-radius: 50%;

    border: none;

    background: #f44336;

    color: #ffffff;

    font-size: 18px;

    font-weight: bold;

    line-height: 32px;

    text-align: center;

    cursor: pointer;

    transition: all .2s ease;

    z-index: 5;

}


/* Hover */

.c3em-remove-participant:hover {

    transform: scale(1.08);

    opacity: .85;

}



/* Solo mostrar botón en participantes agregados */

.c3em-participant-card:not(.c3em-cloned-participant)
.c3em-remove-participant {

    display:none;

}



/* Ajuste del encabezado */

.c3em-participant-card h4 {

    padding-right:45px;

}