/* Formulario BioAdapt - Estilos específicos */

/* Variables de color para los botones */
:root {
    --primaryColor: #148f23;
    --hoverColor: #20df36;
    --paleGreen: #119220;
}

/* Responsive Logo Positioning */

/* Fix para negritas en elementos con clase lead */
.lead strong {
    font-weight: 700 !important;
}

/* Color de texto más oscuro */
.content-section h1,
.content-section .lead {
    color: #2c2c2c !important;
}

/* Estilos para formulario horizontal - EXCEPTO step3 */
.form-horizontal .form-group:not(#step3 .form-group) {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    min-height: 50px;
}

.form-horizontal .form-group:not(#step3 .form-group) label {
    width: 200px;
    margin-bottom: 0;
    margin-right: 20px;
    text-align: left;
    font-weight: 500;
    color: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    line-height: 1.2;
}

.form-horizontal .form-group:not(#step3 .form-group) .form-control {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 15px;
    background-color: #ededed;
    height: 44px;
    line-height: 1.2;
    vertical-align: middle;
    margin-bottom: 0 !important;
}

.form-horizontal .form-group:not(#step3 .form-group) .form-control:focus {
    border-color: #109219;
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(16, 146, 25, 0.25);
}

/* Estilos para placeholders - EXCEPTO step3 */
.form-horizontal .form-group:not(#step3 .form-group) .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-horizontal .form-group:not(#step3 .form-group) .form-control::-webkit-input-placeholder {
    color: #9ca3af;
}

.form-horizontal .form-group:not(#step3 .form-group) .form-control::-moz-placeholder {
    color: #9ca3af;
    opacity: 1;
}

.form-horizontal .form-group:not(#step3 .form-group) .form-control:-ms-input-placeholder {
    color: #9ca3af;
}

/* Para los campos de fecha en fila */
.form-horizontal .birth-date-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    min-height: 50px;
}

.form-horizontal .birth-date-group label {
    width: 200px;
    margin-bottom: 0;
    margin-right: 20px;
    text-align: left;
    font-weight: 500;
    color: #2c2c2c;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    line-height: 1.2;
}

.form-horizontal .birth-date-group .date-inputs {
    flex: 1;
    display: flex;
    gap: 10px;
}

.form-horizontal .birth-date-group .date-inputs .form-control {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 15px;
    background-color: #ededed;
    height: 44px;
    line-height: 1.2;
    vertical-align: middle;
    margin-bottom: 0 !important;
}

.form-horizontal .birth-date-group .date-inputs .form-control:focus {
    border-color: #109219;
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(16, 146, 25, 0.25);
}

/* Placeholders para campos de fecha */
.form-horizontal .birth-date-group .date-inputs .form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Mejora de alineación vertical general */
.form-horizontal .form-group,
.form-horizontal .birth-date-group {
    box-sizing: border-box;
}

.form-horizontal .form-control {
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

/* Estilos específicos para select - EXCEPTO step3 */
.form-horizontal .form-group:not(#step3 .form-group) select.form-control {
    padding: 12px 15px;
    height: 44px;
    line-height: 1.2;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
}

/* Estilos para el cuestionario SNA */
.sna-select {
    font-weight: 500;
}

/* Estilos para radio buttons del cuestionario SNA */
.radio-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
}

.radio-option {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    width: auto !important;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option .radio-text {
    font-weight: normal;
    font-size: 15px;
    line-height: 1.4;
}

/* Estilos para opción A (Rojo) */
.radio-option.option-a {
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background-color: rgb(255, 236, 236);
    box-shadow: rgba(128, 34, 34, 0.12) 0px 1px 1px 0px, rgba(128, 34, 34, 0.16) 0px 0px 0px 1px, rgba(128, 34, 34, 0.08) 0px 2px 5px 0px;
    color: rgba(128, 34, 34, 1);
    font-weight: normal;
}

.radio-option.option-a:has(input[type="radio"]:checked) {
    box-shadow: rgb(255, 68, 68) 0px 0px 0px 2px, rgba(255, 68, 68, 0.16) 0px 0px 0px 1px !important;
}

.radio-option.option-a input[type="radio"]:checked + .radio-text {
    font-weight: normal;
}

/* Estilos para opción B (Verde) */
.radio-option.option-b {
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background-color: rgb(233, 250, 235);
    box-shadow: rgba(16, 101, 26, 0.12) 0px 1px 1px 0px, rgba(16, 101, 26, 0.16) 0px 0px 0px 1px, rgba(16, 101, 26, 0.08) 0px 2px 5px 0px;
    color: rgba(16, 101, 26, 1);
    font-weight: normal;
}

.radio-option.option-b:has(input[type="radio"]:checked) {
    box-shadow: rgb(32, 201, 51) 0px 0px 0px 2px, rgba(32, 201, 51, 0.16) 0px 0px 0px 1px !important;
}

.radio-option.option-b input[type="radio"]:checked + .radio-text {
    font-weight: normal;
}

/* Estilos para opción C (Azul) */
.radio-option.option-c {
    border-radius: 8px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background-color: rgb(230, 242, 255);
    box-shadow: rgba(0, 61, 128, 0.12) 0px 1px 1px 0px, rgba(0, 61, 128, 0.16) 0px 0px 0px 1px, rgba(0, 61, 128, 0.08) 0px 2px 5px 0px;
    color: rgba(0, 61, 128, 1);
    font-weight: normal;
}

.radio-option.option-c:has(input[type="radio"]:checked) {
    box-shadow: rgb(0, 122, 255) 0px 0px 0px 2px, rgba(0, 122, 255, 0.16) 0px 0px 0px 1px !important;
}

.radio-option.option-c input[type="radio"]:checked + .radio-text {
    font-weight: normal;
}

/* Fallback para navegadores que no soportan :has() */
.radio-option.selected .radio-text {
    font-weight: normal;
}

.radio-option.option-a.selected {
    box-shadow: rgb(255, 68, 68) 0px 0px 0px 2px, rgba(255, 68, 68, 0.16) 0px 0px 0px 1px !important;
}

.radio-option.option-b.selected {
    box-shadow: rgb(32, 201, 51) 0px 0px 0px 2px, rgba(32, 201, 51, 0.16) 0px 0px 0px 1px !important;
}

.radio-option.option-c.selected {
    box-shadow: rgb(0, 122, 255) 0px 0px 0px 2px, rgba(0, 122, 255, 0.16) 0px 0px 0px 1px !important;
}

/* Estilos específicos para el step3 - Cuestionario SNA */
#step3 .form-group {
    position: relative;
    z-index: 1;
    margin-bottom: 25px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

#step3 .form-group label {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
    text-align: left;
    position: relative;
    z-index: 2;
}

#step3 .form-group select.form-control {
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

#step3 {
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden !important;
    contain: layout style !important;
    padding: 20px 0;
}

#step3 .form-group {
    background-color: transparent;
    border: none;
    box-shadow: none;
    clear: both;
    contain: layout;
}

#step3 .form-group label strong {
    color: #2c2c2c;
    font-size: 18px;
    font-weight: 700;
}

#step3 .form-group > label {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.4;
    color: #2c2c2c;
    font-weight: 500;
    text-align: left;
}

.form-wrapper #step3 {
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

#step3 * {
    position: static !important;
    float: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
}

#step3 .form-group label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.responsive-logo {
    z-index: 999 !important;
}

.form-wrapper {
    position: relative;
    z-index: 1000;
    background-color: #ffffff;
    padding: 30px;
    margin-top: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#step3.form-step {
    background-color: rgba(243, 250, 244, 0.8);
    padding: 2px;
    border-radius: 10px;
    margin: 20px 0;
    position: relative;
    z-index: 1001;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Estilos para checkboxes */
input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background-color: #109219;
    border-color: #109219;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(16, 146, 25, 0.25);
}

/* Estilos para PhoneInput personalizado */
.form-horizontal .form-group .phone-input {
    flex: 1;
    display: flex;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #ededed;
    height: 44px;
    align-items: center;
    overflow: hidden;
    margin-bottom: 0;
}

.form-horizontal .form-group .phone-input:focus-within {
    border-color: #109219;
    background-color: #fff;
    box-shadow: 0 0 0 0.2rem rgba(16, 146, 25, 0.25);
}

.PhoneInputCountry {
    display: flex;
    align-items: center;
    padding: 0 12px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border-right: 1px solid #ddd;
}

.PhoneInputCountrySelect {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    border: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
}

.PhoneInputCountryIcon {
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.PhoneInputCountryIconImg {
    width: 20px;
    height: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.PhoneInputCountrySelectArrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #6b7280;
    margin-left: 4px;
}

.PhoneInputInput {
    border: none;
    background: transparent;
    padding: 12px 15px;
    height: 100%;
    flex: 1;
    font-family: inherit;
    font-size: inherit;
    color: #2c2c2c;
    outline: none;
    line-height: 1.2;
}

.PhoneInputInput::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.PhoneInputInput::-webkit-input-placeholder {
    color: #9ca3af;
}

.PhoneInputInput::-moz-placeholder {
    color: #9ca3af;
    opacity: 1;
}

.PhoneInputInput:-ms-input-placeholder {
    color: #9ca3af;
}

/* Estilos para SVG en botones */
.btn svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.btn:hover svg {
    transform: translateX(2px);
}

/* Texto del botón en negrita */
.btn {
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Estilos para navegación de botones */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 50px;
}

.navigation-buttons .back-button-container {
    flex: 0 0 auto;
}

.navigation-buttons .next-button-container {
    flex: 0 0 auto;
}

/* Estilo para botón primario (Siguiente) */
.btn--primary {
    background: linear-gradient(145deg, var(--primaryColor), var(--hoverColor));
    border: 1px solid var(--hoverColor);
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all .3s ease;
    cursor: pointer;
    min-width: 140px;
    width: auto !important;
    box-shadow: 0 2px 8px rgba(20, 146, 25, 0.3);
}

.btn--primary:hover {
    background: linear-gradient(145deg, var(--hoverColor), var(--primaryColor));
    border-color: var(--hoverColor);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(20, 146, 25, 0.4);
}

.btn--primary:hover,
.btn--primary:active,
.btn--primary:focus {
    border-color: var(--hoverColor) !important;
    box-shadow: 0 0 0 0.2rem rgba(32, 223, 54, 0.25) !important;
}

.btn--primary svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.btn--primary:hover svg {
    transform: translateX(2px);
}

/* Estilo para botón secundario (Atrás) */
.btn--secondary {
    background-color: transparent;
    border: 1px solid #e0e0e0;
    color: #8e8e8e;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: .75rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    transition: all .3s ease;
    cursor: pointer;
    opacity: 0.7;
    min-width: 140px;
    width: auto !important;
}

.btn--secondary:hover {
    background-color: #f5f5f5;
    border-color: #c0c0c0;
    color: #6c6c6c;
    text-decoration: none;
    opacity: 1;
}

.btn--secondary:hover,
.btn--secondary:active,
.btn--secondary:focus {
    border-color: var(--hoverColor) !important;
    box-shadow: 0 0 0 0.2rem rgba(32, 223, 54, 0.25) !important;
}

.btn--secondary svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.btn--secondary:hover svg {
    transform: translateX(-2px);
}

/* Estilos para las tarjetas de redes sociales del Step 4 */
.social-card {
    transition: all 0.3s ease !important;
}

.social-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
    border-color: #d1d5db !important;
}

.social-btn {
    transition: all 0.3s ease !important;
}

.social-btn:hover {
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

/* Efectos específicos por red social */
.social-card:has(.social-btn[href*="instagram"]):hover {
    border-color: #f56565 !important;
}

.social-card:has(.social-btn[href*="youtube"]):hover {
    border-color: #ff0000 !important;
}

.social-card:has(.social-btn[href*="tiktok"]):hover {
    border-color: #000000 !important;
}

/* Fallback para navegadores que no soportan :has() */
.social-card.instagram-card:hover {
    border-color: #f56565 !important;
}

.social-card.youtube-card:hover {
    border-color: #ff0000 !important;
}

.social-card.tiktok-card:hover {
    border-color: #000000 !important;
}

/* Animaciones para los iconos */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.social-card:hover .social-btn svg {
    animation: bounce 1s ease infinite;
}

/* === ESTILOS ESPECÍFICOS PARA TÉRMINOS Y CONDICIONES === */

/* Estilos para el área de contenido scrollable */
.terms-content {
    scrollbar-width: thin;
    scrollbar-color: #109219 #f1f1f1;
}

.terms-content::-webkit-scrollbar {
    width: 6px;
}

.terms-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.terms-content::-webkit-scrollbar-thumb {
    background: #109219;
    border-radius: 10px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
    background: #20c933;
}

/* Estilos para checkbox de términos */
#termsAccepted {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #109219;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#termsAccepted:checked {
    background-color: #109219;
    border-color: #109219;
}

#termsAccepted:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

#termsAccepted:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(16, 146, 25, 0.25);
}

/* Estilos para el botón deshabilitado */
.btn--primary:disabled {
    background: #d1d5db !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.btn--primary:disabled:hover {
    background: #d1d5db !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn--primary:disabled svg {
    opacity: 0.5;
}

/* ANULAR CAPITALIZACIÓN AUTOMÁTICA DE LABELS */
.form-wrapper label,
#SNAForm label,
.form-group label,
.birth-date-group label,
.radio-option .radio-text,
.step-label {
    text-transform: none !important;
}

/* Mantener capitalización solo para títulos principales */
.wizard-title,
h1, h2, h3, h4 {
    text-transform: initial !important;
}

/* Quitar padding-bottom del form-wizard-header */
.form-wizard-header {
    padding-bottom: 0 !important;
}

/* Estilos personalizados para wizard-title */
.wizard-title {
    padding-top: 3rem !important;
    margin-bottom: 3rem !important;
}

/* Estilo personalizado para la barra de progreso */
.progress {
    background: linear-gradient(145deg, var(--primaryColor), var(--hoverColor)) !important;
}

/* MEDIA QUERIES - RESPONSIVE */

/* Responsive para radio buttons en móviles */
@media only screen and (max-width: 767px) {
    .radio-group {
        gap: 10px;
    }
    
    .radio-option {
        padding: 7px 6px;
        font-size: 14px;
    }
    
    .radio-option .radio-text {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .form-horizontal .form-group:not(#step3 .form-group) {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-horizontal .form-group:not(#step3 .form-group) label {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .form-horizontal .birth-date-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-horizontal .birth-date-group label {
        width: 100%;
        margin-bottom: 8px;
        margin-right: 0;
    }
    
    .form-horizontal .birth-date-group .date-inputs {
        width: 100%;
    }
    
    .form-horizontal .form-group .phone-input {
        width: 100%;
        height: 44px;
    }
    
    .PhoneInputCountry {
        padding: 0 8px;
    }
    
    .PhoneInputInput {
        font-size: 16px;
        padding: 8px 12px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .navigation-buttons .back-button-container,
    .navigation-buttons .next-button-container {
        width: auto;
    }
    
    .navigation-buttons .back-button-container .btn,
    .navigation-buttons .next-button-container .btn {
        width: auto !important;
        min-width: 140px;
        justify-content: center;
    }
    
    #intro-title {
        font-size: 2.4rem !important;
        line-height: 1.1 !important;
    }
    
    .social-cards-container {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .social-card {
        padding: 1.5rem !important;
    }
    
    .value-section {
        padding: 1.5rem !important;
    }
    
    .value-section div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Estilos responsive para términos y condiciones */
    .terms-content {
        max-height: 300px !important;
        font-size: 0.85rem !important;
    }
    
    .terms-content div {
        padding: 1rem !important;
    }
    
    .terms-content h4 {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }
    
    .terms-content p {
        margin-bottom: 1rem !important;
    }
    
    .terms-acceptance {
        padding: 1rem !important;
    }
    
    .terms-acceptance label {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    
    #termsAccepted {
        width: 18px !important;
        height: 18px !important;
        margin-top: 2px !important;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media only screen and (max-width: 480px) {
    .radio-option {
        padding: 6px 5px;
    }
    
    .radio-option .radio-text {
        font-size: 13px;
    }
    
    #intro-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
    }
    
    /* Términos y condiciones en pantallas muy pequeñas */
    .terms-content {
        max-height: 250px !important;
        font-size: 0.8rem !important;
    }
    
    .terms-content h4 {
        font-size: 0.95rem !important;
    }
    
    .terms-acceptance {
        padding: 0.8rem !important;
    }
    
    .terms-acceptance label {
        font-size: 0.85rem !important;
    }
    
    #termsAccepted {
        width: 16px !important;
        height: 16px !important;
    }
}



/* Ajuste del wizard-title para dispositivos móviles */
@media only screen and (max-width: 991px) {
    .wizard-title {
        padding-top: 50px !important;
    }
}

/* Estilos para el cuestionario SNA - RESPONSIVE */
@media only screen and (max-width: 991px) {
    .wizard-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

/* === ESTILOS PARA ERRORES INLINE === */

/* Estilos para validación de campos con errores */
.form-group.has-error .form-control,
.birth-date-group.has-error .form-control {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25) !important;
}

.form-group.has-error .phone-input {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25) !important;
}

/* Estilos para campos válidos */
.form-group.has-success .form-control,
.birth-date-group.has-success .form-control {
    border-color: #148f23 !important;
    box-shadow: 0 0 0 0.2rem rgba(20, 143, 35, 0.15) !important;
}

.form-group.has-success .phone-input {
    border-color: #148f23 !important;
    box-shadow: 0 0 0 0.2rem rgba(20, 143, 35, 0.15) !important;
}

/* Estilos para checkboxes y radios con error */
.checkbox-group.has-error,
.radio-group.has-error {
    background-color: #fef2f2;
    border: 2px solid #dc2626;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

/* Estilos específicos para step 3 (cuestionario SNA) */
#step3 .form-group.has-error .radio-group {
    background-color: #fef2f2;
    border: 2px solid #dc2626;
    border-radius: 8px;
    padding: 15px;
}

/* Estilos para mensajes de error inline */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 6px;
    display: block;
    line-height: 1.3;
}

/* Estilos para mensajes de error en grupos */
.group-error-message {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 8px;
    display: block;
    line-height: 1.4;
}

/* Ocultar mensajes de error cuando no hay error */
.error-message.hidden,
.group-error-message.hidden {
    display: none;
}

/* Errores inline para preguntas individuales del SNA */
.question-error {
    color: #ef4444;
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 6px;
    display: block;
    line-height: 1.3;
}

.question-error.hidden {
    display: none;
}

/* Responsivo para mensajes de error */
@media (max-width: 480px) {
    .error-message,
    .group-error-message,
    .question-error {
        font-size: 0.8rem;
    }
}

/* FORZAR errores debajo de los campos en pantallas grandes */
@media (min-width: 768px) {
    /* Romper el layout flex horizontal y crear estructura vertical */
    .form-group {
        flex-wrap: wrap !important;
    }
    
    .birth-date-group {
        flex-wrap: wrap !important;
    }
    
    /* Los errores ocupan toda la línea debajo */
    .error-message {
        flex-basis: 100% !important;
        margin-top: 8px;
        margin-left: 220px;
        width: calc(100% - 220px);
    }
    
    .group-error-message {
        flex-basis: 100% !important;
        margin-top: 10px;
        margin-left: 220px;
        width: calc(100% - 220px);
    }
    
    /* Para el birth-date-group */
    .birth-date-group .error-message {
        flex-basis: 100% !important;
        margin-top: 8px;
        margin-left: 220px;
        width: calc(100% - 220px);
    }
}

/* Estilos para el step indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 5px;
}

/* Estilo base del círculo */
.step-circle {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #6b7280;
    position: relative;
    z-index: 2;
}

/* Línea base - se ajusta al centro del círculo */
.step-indicator::before {
    content: "";
    position: absolute;
    top: 20px; /* (40px altura del círculo) / 2 */
    left: 27px;
    right: 27px;
    height: 2px;
    background-color: #e5e7eb;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 11px;
    color: #777777;
    font-weight: 500;
    text-align: center;
    max-width: 80px;
    transition: all 0.3s ease;
    line-height: 1.2;
}

/* Por defecto mostrar labels largos */
.step-label .label-full {
    display: block;
}

.step-label .label-short {
    display: none;
}

/* Estado activo */
.step.active .step-circle {
    background-color: #109219;
    border-color: #109219;
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(16, 146, 25, 0.2);
}

.step.active .step-label {
    color: #109219;
    font-weight: 600;
}

/* Estado completado */
.step.completed .step-circle {
    background-color: #109219;
    border-color: #109219;
    color: #ffffff;
}

.step.completed .step-label {
    color: #109219;
    font-weight: 500;
}

/* Media queries para responsividad */
@media only screen and (min-width: 401px) and (max-width: 480px) {
    .step-indicator::before {
        top: 20px;
        left: 27px;
        right: 27px;
    }
}

/* Ajustes adicionales para pantallas muy pequeñas */
@media only screen and (max-width: 400px) {
    .step-indicator {
        margin-bottom: 0;
        gap: 5px;
    }

    .step {
        min-width: 40px;
    }

    .step-circle {
        width: 32px; /* Cambiado de 24px a 32px */
        height: 32px; /* Cambiado de 24px a 32px */
        font-size: 9px;
    }

    .step-label {
        font-size: 7px;
        max-width: 40px;
    }

    .step-indicator::before {
        top: 16px; /* (32px altura del círculo) / 2 */
        left: 27px;
        right: 27px;
    }
}

/* Media query para pantallas medianas */
@media only screen and (max-width: 768px) {
    .step-indicator::before {
        top: 15px;
        left: calc(15px + 5px);  /* Mitad del ancho del círculo (30px/2) más padding */
        right: calc(15px + 5px);
    }
}

/* Media query para pantallas pequeñas */
@media only screen and (max-width: 480px) {
    .step-indicator {
        overflow-x: auto;
        justify-content: center;
        gap: 8px;
        padding-bottom: 10px;
    }

    .step-indicator::before {
        top: 12px;
        left: calc(12px + 5px);  /* Mitad del ancho del círculo (24px/2) más padding */
        right: calc(12px + 5px);
    }
}

/* Media query para pantallas muy pequeñas */
@media only screen and (max-width: 400px) {
    .step-indicator {
        margin-bottom: 0;
        gap: 5px;
    }

    .step {
        min-width: 40px;
    }

    .step-circle {
        width: 32px; /* Cambiado de 24px a 32px */
        height: 32px; /* Cambiado de 24px a 32px */
        font-size: 9px;
    }

    .step-label {
        font-size: 7px;
        max-width: 40px;
    }

    .step-indicator::before {
        top: 16px; /* (32px altura del círculo) / 2 */
        left: 27px;
        right: 27px;
    }
}

/* Media query para dispositivos entre 341px y 480px */
@media only screen and (min-width: 341px) and (max-width: 480px) {
    .step-indicator {
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 4px 0 0 0; /* Aumentado de 2px a 4px */
        position: relative;
        width: 100%;
        margin: 0 auto;
    }

    .step {
        min-width: 45px;
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 2;
    }

    .step-circle {
        width: 32px; /* Cambiado de 24px a 32px */
        height: 32px; /* Cambiado de 24px a 32px */
        font-size: 10px;
        margin-bottom: 0.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #f8f9fa;
        border: 2px solid #e0e0e0;
        border-radius: 50%;
        position: relative;
        z-index: 2;
    }

    .step-label {
        font-size: 8px;
        max-width: 45px;
        line-height: 1.1;
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Mostrar solo labels cortos en móviles */
    .step-label .label-full {
        display: none !important;
    }

    .step-label .label-short {
        display: block !important;
        text-align: center;
        width: 100%;
    }

    /* Línea conectora */
    .step-indicator::before {
        content: '';
        position: absolute;
        top: 12px;
        left: 27px;  /* Posición exacta para comenzar desde el centro del primer círculo */
        right: 27px; /* Posición exacta para terminar en el centro del último círculo */
        height: 2px;
        background-color: #e0e0e0;
        z-index: 1;
    }
}

/* Para pantallas medianas donde se muestra el label corto */
@media only screen and (min-width: 341px) and (max-width: 480px) {
    .step-indicator::before {
        top: 15px;
        left: 27px;
        right: 27px;
    }
}

/* Para pantallas muy pequeñas donde solo se muestra el círculo */
@media only screen and (max-width: 340px) {
    .step-indicator::before {
        top: 17px;
        left: 27px;
        right: 27px;
    }
}

/* Para tablets y dispositivos medianos */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    .step-circle {
        width: 32px; /* Cambiado de 24px a 32px */
        height: 32px; /* Cambiado de 24px a 32px */
    }
    .step-indicator::before {
        top: 16px; /* (32px altura del círculo) / 2 */
    }
}

/* Para pantallas medianas donde se muestra el label corto */
@media only screen and (min-width: 401px) and (max-width: 480px) {
    .step-indicator::before {
        top: 20px;
        left: 27px;
        right: 27px;
    }
}

/* Para pantallas pequeñas con label corto */
@media only screen and (min-width: 341px) and (max-width: 400px) {
    .step-circle {
        width: 32px; /* Cambiado de 24px a 32px */
        height: 32px; /* Cambiado de 24px a 32px */
    }
    .step-indicator::before {
        top: 16px; /* (32px altura del círculo) / 2 */
    }
}

/* Para pantallas muy pequeñas donde solo se muestra el círculo */
@media only screen and (max-width: 340px) {
    .step-indicator::before {
        top: 17px;
        left: 27px;
        right: 27px;
    }
}

/* Desktop XL y XXL: ≥1400px */
@media screen and (min-width: 1400px) {
    .bg-section {
        background-image: url('../images/form/equilibrio2.png') !important;
    }
} 