body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    color: #03396c;
}

.header {
    text-align: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(180deg, #e0f7fa 0%, #ffffff 100%);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 100%;
    margin-bottom: 1rem;
    padding: 0 2rem;
}

.header-row h2 {
    flex: 1;
    text-align: center;
    font-size: 2rem;
    margin: 0;
    color: #03396c;
}

.header-row img {
    width: 150px;
    height: auto;
    object-fit: contain;
}

#formularioInscripcion {
    max-width: 750px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border: 2px solid #00acc1;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

#formularioInscripcion h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: #007c91;
    border-left: 5px solid #00bcd4;
    padding-left: 0.6rem;
}

.form-part {
    margin-bottom: 1.8rem;
}

#formularioInscripcion label {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
    font-weight: 500;
    gap: 5px;
}

#formularioInscripcion input,
#formularioInscripcion select,
#formularioInscripcion textarea {
    padding: 0.7rem 0.9rem;
    border: 1px solid #00acc1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

#formularioInscripcion input:focus,
#formularioInscripcion select:focus,
#formularioInscripcion textarea:focus {
    outline: none;
    border-color: #007c91;
    box-shadow: 0 0 6px rgba(0, 140, 160, 0.4);
}

#formularioInscripcion textarea {
    resize: vertical;
    min-height: 90px;
    width: 100%;
}

#formularioInscripcion button:hover {
    background: linear-gradient(135deg, #0097a7, #006978);
    transform: scale(1.02);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

#formularioInscripcion button {
    display: block;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #00bcd4, #007c91);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

#btnInscripcion:disabled {
    background: #cccccc;
    cursor: not-allowed;
    color: #666666;
}

.checkbox-group label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#btnInscripcion:disabled {
    background: #cccccc;
    /* gris */
    cursor: not-allowed;
    color: #666666;
}

#btnInscripcion:enabled {
    background: linear-gradient(135deg, #00bcd4, #007c91);
    color: white;
    cursor: pointer;
}

#btnInscripcion:enabled:hover {
    background: linear-gradient(135deg, #0097a7, #006978);
    transform: scale(1.02);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.label-checkbox {
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
}

.leyenda-obligatorio {
    font-size: 0.75rem;
    /* más chica */
    color: red;
    margin-bottom: 1rem;
    font-style: italic;
    /* cursiva */
    font-family: 'Montserrat', sans-serif;
    /* coherente con el formulario */
}

h3:not(.opcional)::after {
    content: " *";
    color: red;
    margin-left: 4px;
}

.btn-grupales {
    background: linear-gradient(135deg, #fb8c00, #ef6c00);
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

/* Botón grupales */
.btn-grupales {
    background: linear-gradient(135deg, #fb8c00, #ef6c00);
    /* tonos del sol */
    color: white;
    border: none;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.btn-grupales:hover {
    background: linear-gradient(135deg, #f57c00, #e65100);
    /* un poco más oscuro al pasar el mouse */
    transform: scale(1.03);
}

.mensaje-grupales a {
    color: #ef6c00;
    text-decoration: none;
    font-weight: 600;
}

.edad-box {
    background: #f5f7fb;
    border: 1px solid #dbe3f0;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.referido-item {
    margin-bottom: 15px;
}

.referido-check {
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
}

.inputReferido {
    margin-top: 10px;
}

.texto-secundario {
    font-size: 0.85rem;
    color: #666;
}

.pago-box {
    background: #f5f7fb;
    border-left: 5px solid #00acc1;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.dlocal-wrapper {
    display: flex;
    justify-content: center;
    margin: 16px 0 20px;
}

.dlocal-wrapper iframe,
.dlocal-wrapper button,
.dlocal-wrapper div {
    max-width: 420px;
    width: 100% !important;
    border-radius: 10px !important;
}

@media (max-width: 768px) {

    .header-row {
        gap: 10px;
        padding: 0 1rem;
    }

    .header-row h2 {
        font-size: 1.2rem;
    }

    .header-row img {
        width: 80px;
    }

    #formularioInscripcion {
        padding: 1.5rem;
        margin: 1rem;
    }

}

@media (max-width: 480px) {

    .dlocal-wrapper iframe,
    .dlocal-wrapper button,
    .dlocal-wrapper div {
        max-width: 100%;
    }

}

.politica-oculta,
.terminos-oculta,
.reglamento-oculta {
    display: none;
    /* tus funciones lo cambian */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
}

.politica-contenido,
.terminos-contenido,
.reglamento-contenido {
    background: #fff;
    max-width: 700px;
    width: 95%;
    padding: 30px;
    border-radius: 12px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.cerrar {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #007c91;
    transition: all 0.2s ease;
    line-height: 1;
    padding: 0;
}

.cerrar:hover {
    color: #005f6b;
    transform: scale(1.08);
}

.section-title {
    margin-top: 0;
    color: #007c91;
}

.loader-validacion {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #007c91;
    font-size: 0.95rem;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 3px solid #cfeef2;
    border-top: 3px solid #00acc1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}

.mensaje-error-validacion {
    margin-top: 10px;
    background: #ffebee;
    border-left: 4px solid #e53935;
    color: #b71c1c;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.92rem;
}

.mensaje-ok-validacion {
    margin-top: 10px;
    background: #e8f5e9;
    border-left: 4px solid #43a047;
    color: #1b5e20;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.92rem;
}

.footer-mini {
    width: 100%;
    text-align: center;
    margin: 40px auto 20px;
    padding: 0 20px;
    box-sizing: border-box;
    color: #555;
    font-size: 11px;
    line-height: 1.5;
    opacity: 0.85;
}

.footer-links {
    margin-top: 8px;
}

.footer-links a {
    color: #0066cc;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.telefono-group {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.telefono-group input {
    text-align: center;
}

.telefono-corto {
    max-width: 90px;
}

.telefono-area {
    max-width: 110px;
}

.telefono-numero {
    flex: 1;
}

@media (max-width: 768px) {

    .telefono-group {
        flex-direction: column;
    }

    .telefono-corto,
    .telefono-area,
    .telefono-numero {
        max-width: 100%;
    }

}

/* ============================================
TELÉFONO CUSTOM — SELECT PAÍS + INPUT
   ============================================ */

.telefono-wrapper {
    display: flex;
    gap: 0;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 1rem;
    border: 1px solid #00acc1;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s;
    height: 44px;
    box-sizing: border-box;
}

.telefono-wrapper:focus-within {
    border-color: #007c91;
    box-shadow: 0 0 6px rgba(0, 140, 160, 0.4);
}

.select-pais {
    border: none;
    background: #f5f7fb;
    padding: 0 8px 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #007c91;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    height: 100%;
    line-height: 44px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23007c91' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 20px;
    border-right: 1px solid #dbe3f0;
    min-width: 90px;
}

.select-pais option {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    padding: 8px;
}

.input-telefono {
    border: none;
    outline: none;
    flex: 1;
    padding: 0 0.9rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #03396c;
    height: 100%;
    line-height: 44px;
    background: transparent;
    min-width: 0;
}

.input-telefono::placeholder {
    color: #999;
    line-height: 44px;
}

/* ============================================
   SELECT PAÍS — HACE OVERRIDE DE ESTILOS GENERALES PARA QUE ENCAJE PERFECTO CAPO
   ============================================ */

/* Reset completo del select de países para que no herede los paddings generales */
#formularioInscripcion .telefono-wrapper .select-pais,
#formularioInscripcion .select-pais {
    padding: 0 20px 0 10px !important;  /* derecha: espacio para la flecha */
    margin: 0 !important;
    height: 100% !important;
    min-height: 44px !important;
    line-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    border: none !important;
    border-radius: 0 !important;
    background-color: #f5f7fb !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #007c91 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-align: center !important;
    text-align-last: center !important;  /* centra el texto seleccionado */
}

/* Centrar las opciones del dropdown */
#formularioInscripcion .select-pais option {
    text-align: center !important;
    padding: 8px !important;
    font-size: 0.95rem !important;
}

/* Asegurar que el input de número también ignore paddings generales si hace falta */
#formularioInscripcion .telefono-wrapper .input-telefono,
#formularioInscripcion .input-telefono {
    padding: 0 0.9rem !important;
    margin: 0 !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 44px !important;
}

/* ============================================
   SECCIÓN REINGRESO (COMPACTA Y CENTRADA)
   ============================================ */

.reingreso-box {
    max-width: 400px;        /* Caja más angosta */
    margin: 0.2rem auto 1.5rem; /* Pegada al elemento superior */
    padding: 1rem;           /* Padding mínimo */
    background: #f5f7fb;
    border: 2px solid #dbe3f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    box-sizing: border-box;
}

.reingreso-box h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
}

.reingreso-box .texto-secundario {
    margin: 0 0 0.4rem 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.lista-reingreso {
    margin: 0 0 0.8rem 0;
    padding: 0;         
    list-style-position: inside; 
    text-align: left;        
    display: inline-block;   
    font-size: 0.8rem;
    line-height: 1.4;
}

.reingreso-box form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 280px;        /* Formulario y botón más chicos */
}

.reingreso-box label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 500;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.reingreso-box input {
    padding: 0.4rem 0.6rem;  /* Input más bajo */
    border: 1px solid #00acc1;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center; 
}

.reingreso-box button {
    padding: 0.55rem;        /* Botón menos alto */
    background: linear-gradient(135deg, #00bcd4, #007c91);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.reingreso-box button:hover {
    background: linear-gradient(135deg, #0097a7, #006978);
}

@media (max-width: 768px) {
    .reingreso-box { margin: 0.2rem 1rem 1.5rem; }
}

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.floating-buttons.active {
    opacity: 1;
    pointer-events: auto;
}

.floating-btn {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s, width 0.3s, height 0.3s, line-height 0.3s, font-size 0.3s;
}

.home-btn {
    background: #0066cc;
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }

    .floating-btn {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }
}