.navbar-rojo {
    background-color: #c90219 !important;
}

.fieldset-custom {
    border: 1px solid #ced4da;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease-in-out;
    background-color: #ffffff;
}

.fieldset-custom:hover {
    box-shadow: 0 0 13px 1px #0000002b;
}

.navbar-logo {
    height: 60px;
    width: auto;
    margin-right: 10px;
}

.fieldset-custom legend {
    padding: 0 10px;
    float: none;
    width: auto;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 950px !important;
    }
}

@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 950px !important;
    }
}

h1.form-title{
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    text-align: right;
    font-size: 19pt;
}

h2{
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: #c90219;
    font-size: 19pt;
}
body{
    background-color: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.form-control::placeholder {
    color: #a6a6a6;
    font-size: 0.9rem;
    opacity: 1;
}

.form-check-inline {
    margin-right: 3rem !important;
}

.box-privacidad {
    height: 200px;
    font-size: 9pt;
}

button.btn.btn-lg.boton-enviar {
    background-color: #c90219;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.form-check-input:checked {
    background-color: #c90219;
    border-color: #c90219;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.form-check-input:checked[type="checkbox"] {
    background-color: #c90219;
    border-color: #c90219;
}

.fondo-rojo-suave {
    background-color: rgba(220, 53, 69, 0.08);
}

.cuadro-custom {
    border: 1px solid #ced4da;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 12pt;
}
@media (max-width: 575px) {
    .img-pc {
        display: none;
    }

    .img-mvl {
        display: block;
    }
    .form-title-box h1{
        text-align: center;
    }

    .logo-box{
        text-align: center;
        margin-bottom: 20px;
        display: none !important;
    }
}
@media (min-width: 576px) {
    .img-pc {
        display: block;
    }

    .img-mvl {
        display: none;
    }

    .form-title-box h1{
        text-align: right;
    }

    .logo-box{
        text-align: left;
    }
}

@media (max-width: 767px) {
    .logo-box {
        margin-bottom: 20px !important;
    }

    .form-title-box h1{
        font-size: 15pt;
    }
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.is-invalid .form-check-input ~ .form-check-label,
.is-invalid .g-recaptcha,
.is-invalid .form-check {
    color: #dc3545;
}

.success-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}
.success-card {
    background: white;
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
    margin: 0 auto;
}
.success-icon {
    width: 80px;
    height: 80px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease-out;
}
.success-icon svg {
    width: 50px;
    height: 50px;
    color: white;
}
@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.success-title {
    color: #28a745;
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}
.nombre-afiliado {
    color: #dc3545;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}
.success-subtitle {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.next-steps {
    text-align: left;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
}
.next-steps h3 {
    color: #dc3545;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}
.next-steps ul {
    list-style: none;
    padding: 0;
}
.next-steps li {
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: start;
}
.next-steps li:last-child {
    border-bottom: none;
}
.next-steps li::before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 15px;
    flex-shrink: 0;
}
.btn-home {
    background: #dc3545;
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s;
    margin-top: 20px;
}
.btn-home:hover {
    background: #c82333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}
.social-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #dee2e6;
}
.social-links h4 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}
.social-links a {
    display: inline-block;
    margin: 0 10px;
    color: #dc3545;
    font-size: 1.5rem;
    transition: transform 0.3s;
}
.social-links a:hover {
    transform: scale(1.2);
}
.info-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px 20px;
    border-radius: 5px;
    margin: 20px 0;
    text-align: left;
}
.info-box strong {
    color: #856404;
}
.email-confirm {
    color: #666;
    font-size: 0.95rem;
    margin-top: 10px;
}
.success-card {
    font-family: 'Montserrat', sans-serif;
}
@media (max-width: 768px) {
    .success-card {
        padding: 30px 20px;
    }
    .success-title {
        font-size: 2rem;
    }
    .nombre-afiliado {
        font-size: 1.5rem;
    }
}

.col.cuadro-custom.fondo-rojo-suave span a {
    color: #e40014;
}

/* Modal de Stripe más compacto */
#stripeModal .modal-dialog {
    max-width: 450px;
}

#stripeModal .modal-body {
    padding: 1rem 1.5rem;
}

#stripeModal .modal-header {
    padding: 0.75rem 1.5rem;
}

#stripeModal .modal-title {
    font-size: 1.1rem;
}

#stripeModal .alert-info {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
}

#payment-element {
    margin-bottom: 1rem;
}

/* Ajustar el formulario de Stripe */
#payment-element iframe {
    min-height: auto !important;
}