@font-face {
    font-family: 'HelveticaRounded';
    src: url('../src/fonts/HelveticaRoundedCondensedBold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

/* Volver a Inicio */

.btn-volver {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #003d82;
    transition: all 0.3s ease;
    text-decoration: none;
    z-index: 100;
    letter-spacing: 0.5px;
    animation: fadeIn 0.4s ease;
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.btn-volver:hover {
    background: linear-gradient(135deg, #005baa, #003d82);
    color: #fff;
    transform: translateX(3px);
}

/* CB ONCINEDA - INSCRIPCIÓN  */

html { background-color: #002a5c; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100dvh;
    overflow: hidden;
    background: #002a5c;
    padding-bottom: env(safe-area-inset-bottom);
}

.inscripcion-container {
    display: grid;
    grid-template-columns: 30% 70%;
    height: 100dvh;
    width: 100%;
}

/* ===== COLUMNA IZQUIERDA: HEADER ===== */
.left-column {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
    border-right: 3px solid #ffd700;
}

.left-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../public/img/logo_transparente_oncineda.png') center/contain no-repeat;
    opacity: 0.05;
    z-index: 1;
}

.header-section {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.logo {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    padding: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.header-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffd700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.header-section p {
    font-size: none;
    opacity: 0.9;
    line-height: 1.4;
}

/* ===== COLUMNA DERECHA: FORMULARIO CON PESTAÑAS ===== */
.right-column {
    background: white;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===== NAVEGACIÓN DE PESTAÑAS ===== */
.tabs-nav {
    display: flex;
    background: linear-gradient(135deg, #f8f9fc, #e8eaf6);
    border-bottom: 3px solid #003d82;
    padding: 0;
    min-height: 80px;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    cursor: default;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-right: 1px solid #ddd;
    position: relative;
    opacity: 0.38;
}

.tab-item:last-child {
    border-right: none;
}

.tab-item.active {
    background: linear-gradient(135deg, #003d82, #002a5c);
    color: white;
    opacity: 1;
}

/* Pasos completados (anteriores al actual) */
.tab-item.done {
    opacity: 0.65;
}

.tab-item.disabled {
    opacity: 0.25;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: #ffd700;
}

.tab-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.tab-item.active .tab-number {
    background: #ffd700;
    color: #003d82;
    transform: scale(1.1);
}

.tab-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Icono y etiqueta alternativos para móvil — ocultos en desktop */
.tab-step-icon { display: none; }
.tab-mobile-label { display: none; }

/* ===== CONTENIDO DE LAS PESTAÑAS ===== */
.tabs-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.tab-content {
    display: none;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tab-content-title {
    color: #003d82;
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tab-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 30px;
    font-style: italic;
}

/* ===== GRID PARA CADA PESTAÑA ===== */
.form-grid-tab {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    height: fit-content;
}

/* ===== SECCIONES DENTRO DE PESTAÑAS ===== */
.form-section {
    background: #f8f9fc;
    border: 2px solid #e8eaf6;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: fit-content;
    margin-bottom: 8px;
}

.form-section.wide {
    grid-column: span 2;
}

.section-title {
    color: #003d82;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #ffd700;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ===== NOTA MÉDICA ===== */
.medical-note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 0;
}

/* Eliminar márgenes inferiores del último bloque antes de la nota amarilla */
.form-section>.form-row:last-of-type,
.form-section>.input-group:last-of-type {
    margin-bottom: 0;
}

.form-section>.form-row:last-of-type .input-group,
.form-section>.form-row:last-of-type input,
.form-section>.form-row:last-of-type textarea {
    margin-bottom: 0;
}

.medical-note p {
    margin: 0;
    font-size: 0.9rem;
    color: #856404;
}

/* ===== NAVEGACIÓN ENTRE PESTAÑAS ===== */
.tabs-navigation {
    padding: 20px 30px;
    background: #f8f9fc;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.nav-btn.prev {
    background: #6c757d;
    color: white;
}

.nav-btn.prev:hover {
    background: #5a6268;
    transform: translateX(-3px);
}

.nav-btn.next {
    background: linear-gradient(135deg, #003d82, #002a5c);
    color: white;
}

.nav-btn.next:hover {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #003d82;
    transform: translateX(3px);
}

.nav-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    transform: none;
}

/* ===== GRUPOS DE INPUT ===== */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.input-group label {
    font-weight: 600;
    color: #003d82;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin-bottom: 2px;
}

/* ===== CAMPOS DE ENTRADA ===== */
input,
select,
textarea {
    padding: 8px 12px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    margin-bottom: 3px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #003d82;
    background: white;
    box-shadow: 0 0 0 2px rgba(0, 61, 130, 0.1);
    transform: translateY(-1px);
}

textarea {
    resize: vertical;
    min-height: 45px;
    max-height: 70px;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ===== FILAS DEL FORMULARIO ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 15px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

/* ===== CHECKBOX ===== */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-group:hover {
    border-color: #003d82;
    background: #f0f4ff;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #003d82;
}

.checkbox-group label {
    cursor: pointer;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    text-transform: none;
    letter-spacing: normal;
}

.checkbox-group.checkbox-error {
    border-color: #dc3545;
    background: #fff5f5;
    flex-wrap: wrap;
    align-items: flex-start;
}
.checkbox-group.checkbox-error .field-error {
    flex: 0 0 100%;
    margin-top: .35rem;
}

.checkbox-group.checkbox-ok {
    border-color: #28a745;
    background: #f0fff4;
}

/* Checkbox opcional (imagen) — borde punteado y fondo diferenciado */
.checkbox-group--optional {
    border-style: dashed;
    border-color: #b0bec5;
    background: #f4f7fa;
}

.checkbox-group--optional:hover {
    border-color: #003d82;
    border-style: solid;
    background: #f0f4ff;
}

.checkbox-group--optional.checkbox-ok {
    border-style: solid;
}

/* Badge "Voluntario" */
.optional-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #166534;
    background: #dcfce7;
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
}

/* Enlace a documentos legales */
.legal-link {
    color: #003d82;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.legal-link:hover {
    color: #0056b3;
}

/* ===== BOTÓN DE ENVÍO ===== */
.submit-btn {
    background: linear-gradient(135deg, #003d82, #002a5c);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 61, 130, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    justify-self: center;
    width: 100%;
    max-width: 300px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 61, 130, 0.4);
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #003d82;
}

.submit-btn:active {
    transform: translateY(0);
}

/* ===== VALIDACIÓN ===== */
.error {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
}

.field-error {
    display: block;
    color: #dc3545;
    font-size: 0.78rem;
    margin-top: 4px;
    font-weight: 500;
}

.success {
    border-color: #28a745 !important;
    background: #f0fff4 !important;
}

/* ===== TARJETA EQUIPO ASIGNADO ===== */
.equipo-card {
    background: linear-gradient(135deg, #f0f4ff, #e8edf8);
    border: 2px solid #003d82;
    border-radius: 12px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.equipo-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.equipo-card-icon {
    color: #003d82;
    flex-shrink: 0;
}

.equipo-card-nombre {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003d82;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.equipo-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.equipo-card-pill {
    background: #003d82;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.equipo-card-nota {
    font-size: 0.8rem;
    color: #5a6a85;
    font-style: italic;
    margin: 0;
}

.equipo-card-vacio {
    color: #856404;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== TOASTS FLOTANTES ===== */
#mensaje-zona {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 340px;
    max-width: calc(100vw - 48px);
    pointer-events: none;
}

.message {
    pointer-events: all;
    padding: 14px 16px;
    border-radius: 10px;
    border-left: 4px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
    animation: toastIn 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
}

.message-text {
    flex: 1;
}

.message-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    opacity: 0.5;
    padding: 0;
    color: inherit;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.message-close:hover {
    opacity: 1;
}

.message.error {
    background: #fff1f2;
    color: #7f1d1d;
    border-left-color: #ef4444;
}

.message.success {
    background: #f0fdf4;
    color: #14532d;
    border-left-color: #22c55e;
}

.message.info {
    background: #eff6ff;
    color: #1e3a5f;
    border-left-color: #3b82f6;
}

@media (max-width: 768px) {

    #mensaje-zona {
        bottom: 16px;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
    }
}

/* ===== SEGUNDO TUTOR ===== */
.add-tutor-row {
    padding: 8px 0 4px;
}

.btn-add-tutor {
    width: 100%;
    background: none;
    border: 2px dashed #003d82;
    border-radius: 8px;
    color: #003d82;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-align: center;
}

.btn-add-tutor:hover {
    background: #f0f4ff;
    border-color: #ffd700;
    color: #002a5c;
}

.segundo-tutor-bloque {
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 15px;
    margin-top: 8px;
    background: #fffef5;
}

.segundo-tutor-title {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #ffd700;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.btn-remove-tutor {
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.btn-remove-tutor:hover {
    color: #dc3545;
}

/* ===== RESPONSIVE PARA TABLETS ===== */
@media (max-width: 1024px) {
    .inscripcion-container {
        grid-template-columns: 35% 65%;
    }

    .header-section h1 {
        font-size: 2.5rem;
    }

    .logo {
        width: 100px;
        height: 100px;
    }
}

/* ===== RESPONSIVE PARA MÓVILES ===== */
@media (max-width: 768px) {

    /* scroll de documento normal — el color del rebote se gestiona via JS */
    html {
        background-color: #002a5c; /* valor inicial; JS lo actualiza al acercarse al fondo */
    }

    body {
        background: transparent;
        min-height: 100dvh;
        height: auto;
        overflow: visible;
        -webkit-overflow-scrolling: touch;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .inscripcion-container {
        display: flex;
        flex-direction: column;
        min-height: 100dvh;
        height: auto;
    }

    .btn-volver {
        position: absolute;
        top: max(calc(env(safe-area-inset-top) + 10px), 12px);
        left: 12px;
        padding: 8px 16px;
        font-size: 0.85rem;
        z-index: 200;
    }

    .left-column {
        height: auto;
        min-height: 0;
        padding: 16px 20px;
        padding-top: max(calc(env(safe-area-inset-top) + 44px), 60px);
        padding-bottom: 16px;
        border-right: none;
        border-bottom: 1px solid #ffd700;
    }

    .header-section p { display: none; }

    .right-column {
        flex: 1;
        min-height: 0;
        padding: 0 18px;
        overflow: visible;
        background: #f8f9fc;
    }

    /* tabs-nav y tabs-navigation rompen el padding horizontal de right-column
       para ir de borde a borde */
    .tabs-nav {
        margin: 0 -18px;
    }

    .tabs-navigation {
        margin: 0 -18px;
    }

    /* El contenido del formulario mantiene padding propio */
    .tabs-content {
        padding: 20px 0;
    }

    /* El form ya no necesita altura fija — el body hace scroll */
    .tabs-content {
        flex: none;
        overflow: visible;
        height: auto;
    }

    .tab-content {
        height: auto;
        overflow-y: visible;
    }

    /* Grid del formulario: 1 columna */
    .form-grid-tab {
        grid-template-columns: 1fr;
    }

    .form-section.wide {
        grid-column: span 1;
    }

    .header-section h1 {
        font-size: 2rem;
    }

    .header-section h2 {
        font-size: 1.2rem;
    }

    .logo {
        margin-top: 6px;
        width: 70px;
        height: 70px;
        margin-bottom: 8px;
    }

    .tab-content-title {
        font-size: 1.4rem;
    }

    .tabs-nav {
        min-height: 64px;
    }

    /* En móvil: número encima, icono SVG debajo del número, etiqueta corta */
    .tab-title { display: none; }

    .tab-number {
        margin-bottom: 1px;
    }

    .tab-step-icon {
        display: block;
        width: 17px;
        height: 17px;
        flex-shrink: 0;
        margin-top: 2px;
        margin-bottom: 3px;
        color: #aaa;
    }

    .tab-item.active .tab-step-icon { color: #ffd700; }
    .tab-item.done   .tab-step-icon { color: rgba(255,255,255,0.7); }

    .tab-mobile-label { display: none; }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    input,
    select,
    textarea {
        padding: 12px;
        font-size: 1rem;
    }

    .submit-btn {
        width: 100%;
        padding: 16px;
        font-size: 1rem;
        max-width: none;
    }

    .tabs-navigation {
        padding: 14px 16px;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
        gap: 12px;
        background: #f8f9fc;
        border-top: 1px solid #ddd;
    }

    .nav-btn {
        flex: 1;
        min-height: 48px;
        text-align: center;
    }
}

/* ===== RESPONSIVE PARA TELÉFONOS PEQUEÑOS ===== */
@media (max-width: 480px) {
    .btn-volver {
        top: 8px;
        left: 8px;
        padding: 7px 13px;
        font-size: 0.8rem;
    }

    .left-column {
        padding-top: max(calc(env(safe-area-inset-top) + 44px), 60px);
        padding-bottom: 20px;
    }

    .header-section p {
        display: none;
    }

    .right-column {
        padding: 0 14px;
    }

    .tabs-nav {
        margin: 0 -14px;
    }

    .tabs-navigation {
        margin: 0 -14px;
    }

    .header-section h1 {
        font-size: 1.8rem;
    }

    .logo {
        width: 70px;
        height: 70px;
        margin-bottom: 10px;
    }

    .tab-item {
        padding: 8px 4px;
    }

    .tabs-nav {
        min-height: 60px;
    }

    .tab-number {
        width: 24px;
        height: 24px;
        font-size: 0.78rem;
        margin-bottom: 1px;
    }

    .tab-step-icon {
        width: 15px;
        height: 15px;
        margin-top: 1px;
        margin-bottom: 2px;
    }

    .tab-mobile-label {
        font-size: 0.52rem;
    }

    .tab-content-title {
        font-size: 1.25rem;
    }

    .tabs-navigation {
        padding: 12px 14px;
        padding-bottom: max(12px, env(safe-area-inset-bottom));
        gap: 12px;
    }

    .nav-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .form-section {
        padding: 12px;
    }
}

/* ===== MODAL PERSONALIZADO ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .52);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 16px;
    animation: modalFadeIn .2s ease both;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-box {
    background: #fff;
    border-radius: 14px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
    animation: modalSlideUp .25s cubic-bezier(.34, 1.3, .64, 1) both;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(18px) scale(.97);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #003d82 0%, #002a5c 100%);
    padding: 24px 24px 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.modal-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: #fff;
}

.modal-brand {
    margin: 0;
    color: rgba(255, 255, 255, .65);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    align-self: center;
    flex: 1;
}

.modal-x {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .55);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color .15s;
    border-radius: 4px;
}

.modal-x:hover {
    color: #fff;
}

.modal-stripe {
    height: 5px;
    background: #ffd700;
}

.modal-stripe--success {
    background: #22c55e;
}

.modal-body {
    padding: 24px 28px 28px;
}

.modal-titulo {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2a4a;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.modal-mensaje {
    margin: 0 0 22px;
    font-size: 0.93rem;
    color: #4a5568;
    line-height: 1.65;
    white-space: pre-line;
}

.modal-btn-cerrar {
    display: block;
    width: 100%;
    padding: 11px 20px;
    background: linear-gradient(135deg, #003d82 0%, #002a5c 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
    font-family: 'HelveticaRounded', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    letter-spacing: .5px;
}

.modal-btn-cerrar:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.modal-btn-cerrar--success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}