/* FUENTES - Importar las tipografías corporativas */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Definición de variables de color según manual corporativo */
:root {
    /* Colores principales basados en PANTONE 1505 C y colores corporativos */
    --color-primary: #FF6B35;       /* PANTONE 1505 C - Naranja principal */
    --color-primary-dark: #E05A2A;  /* Versión oscura para hover */
    --color-primary-light: #FF8C5A; /* Versión clara para efectos */
    --color-secondary: #2A3F54;     /* Azul oscuro corporativo */
    --color-secondary-light: #3A6C9B; /* Azul claro para gradientes */
    --color-accent: #55B0E2;        /* Azul claro/acento */
    --color-dark: #06263F;          /* Azul muy oscuro */
    --color-text: #333333;          /* Color de texto principal */
    --color-text-light: #555555;    /* Color de texto secundario */
    --color-background: #FFFFFF;    /* Fondo blanco */
    --color-background-alt: #F8F9FA; /* Fondo alternativo */
    --color-border: #E1E8ED;        /* Color de bordes */
    --color-success: #2E8B57;       /* Color para éxito */
}

#formulario-4 {
    width: 85%;
    padding: 60px 40px 60px 60px;
    box-sizing: border-box;
    position: relative;
    margin: 50px auto;
    background: linear-gradient(135deg, var(--color-secondary-light) 0%, var(--color-secondary) 100%);
    display: block;
    border-radius: 16px;
    margin-bottom: 3%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

#formulario-4-form {
    padding: 0;
    box-sizing: border-box;
    margin: 0px auto;
    display: flex;
    width: 100%;
    max-width: 1200px;
    background: var(--color-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* estilos para información del formulario */
#formulario-4-form-info {
    padding: 50px 35px;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-dark) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40%;
    color: var(--color-background);
}

#formulario-4-form-info h4 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-bottom: 35px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#formulario-4-form-info h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

#formulario-4-form-info span {
    display: flex;
    flex-direction: column;
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 10px;
    position: relative;
    padding-left: 65px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--color-primary);
    backdrop-filter: blur(10px);
}

#formulario-4-form-info span:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.12);
}

#formulario-4-form-info span::before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 26px;
    color: var(--color-primary);
}

#formulario-4-form-info span:nth-child(2)::before {
    content: '\f3c5';
}

#formulario-4-form-info span:nth-child(3)::before {
    content: '\f879';
}

#formulario-4-form-info span:nth-child(4)::before {
    content: '\f0e0';
}

#formulario-4-form-info h5 {
    color: var(--color-primary-light);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

#formulario-4-form-info a {
    color: var(--color-background);
    font-size: 1.15rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    display: inline-block;
    padding: 2px 0;
}

#formulario-4-form-info a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* MEJORAS UX PARA FORMULARIO - Campos más visibles y accesibles */
#formulario-4-form-formulario {
    display: block;
    padding: 45px;
    box-sizing: border-box;
    width: 60%;
    background-color: var(--color-background);
    z-index: 1;
}

.formulario-4-form-cont {
    width: 100%;
    margin: 0px auto;
    height: auto;
    padding: 0;
    box-sizing: border-box;
}

/* Grupo de campos para mejor estructura visual */
.formulario-4-group {
    margin-bottom: 20px;
    position: relative;
}

.formulario-4-label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-secondary);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.formulario-4-input {
    border: 2px solid var(--color-border);
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: 'Montserrat', sans-serif;
    padding: 16px 18px;
    margin: 8px 0;
    box-sizing: border-box;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Placeholders mejorados */
.formulario-4-input::-webkit-input-placeholder {
    color: var(--color-text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

.formulario-4-input::-moz-placeholder {
    color: var(--color-text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

.formulario-4-input:-ms-input-placeholder {
    color: var(--color-text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

.formulario-4-input:-moz-placeholder {
    color: var(--color-text-light);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
}

/* Estados de focus mejorados */
.formulario-4-input:focus {
    border-color: var(--color-primary);
    background-color: var(--color-background);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    transform: translateY(-1px);
}

/* Textarea con mejor UX */
#formulario-4-form-formulario textarea {
    border: 2px solid var(--color-border);
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: 'Montserrat', sans-serif;
    padding: 16px 18px;
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 140px;
    resize: vertical;
    margin: 8px 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

#formulario-4-form-formulario textarea:focus {
    border-color: var(--color-primary);
    background-color: var(--color-background);
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    transform: translateY(-1px);
}

/* Checkbox con mejor accesibilidad */
.formulario-4-terminos {
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
    color: var(--color-text);
    font-family: 'Montserrat', sans-serif;
    text-align: left;
    font-size: 0.95rem;
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
}

.formulario-4-terminos input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.formulario-4-terminos label {
    cursor: pointer;
    font-weight: 400;
}

.formulario-4-terminos a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px dotted transparent;
}

.formulario-4-terminos a:hover {
    color: var(--color-primary-dark);
    border-bottom: 1px dotted var(--color-primary);
}

/* Botón con mejor feedback visual */
#formulario-4-boton {
    width: auto;
    min-width: 180px;
    color: var(--color-background);
    border: none;
    background: linear-gradient(to right, var(--color-primary), var(--color-primary-dark));
    text-align: center;
    margin: 25px 0 15px 0;
    padding: 16px 36px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

#formulario-4-boton:hover {
    background: linear-gradient(to right, var(--color-primary-dark), var(--color-primary));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

#formulario-4-boton:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

/* Efecto de ripple para el botón */
#formulario-4-boton::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

#formulario-4-boton:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Estados de validación */
.formulario-4-input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.formulario-4-input:valid:not(:placeholder-shown) {
    border-color: var(--color-success);
}

/* Loading state para el botón */
#formulario-4-boton.loading {
    pointer-events: none;
    opacity: 0.8;
}

#formulario-4-boton.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive mejorado para UX móvil */
@media (max-width: 1024px) {
    #formulario-4 {
        width: 90%;
        padding: 40px 30px;
    }
    
    #formulario-4-form-info,
    #formulario-4-form-formulario {
        padding: 35px;
    }
    
    .formulario-4-input,
    #formulario-4-form-formulario textarea {
        padding: 15px;
    }
}

@media (max-width: 900px) {
    #formulario-4 {
        width: 92%;
        padding: 30px 25px;
    }
    
    #formulario-4-form {
        flex-direction: column;
    }
    
    #formulario-4-form-info {
        width: 100%;
        padding: 35px 30px;
        order: 2;
    }
    
    #formulario-4-form-formulario {
        width: 100%;
        padding: 35px 30px;
        order: 1;
    }
    
    /* Mejor espaciado en móvil */
    .formulario-4-input,
    #formulario-4-form-formulario textarea {
        padding: 16px;
        font-size: 16px; /* Previene zoom en iOS */
    }
}

@media (max-width: 600px) {
    #formulario-4 {
        width: 95%;
        padding: 25px 20px;
        margin: 30px auto;
        border-radius: 12px;
    }
    
    #formulario-4-form-info,
    #formulario-4-form-formulario {
        padding: 25px 20px;
    }
    
    #formulario-4-form-info span {
        padding: 18px 15px 18px 55px;
    }
    
    #formulario-4-form-info span::before {
        left: 18px;
        font-size: 22px;
    }
    
    /* Botón a ancho completo en móvil */
    #formulario-4-boton {
        width: 100%;
        margin: 20px 0 10px 0;
    }
    
    .formulario-4-terminos {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    #formulario-4 {
        padding: 20px 15px;
    }
    
    #formulario-4-form-info,
    #formulario-4-form-formulario {
        padding: 20px 15px;
    }
    
    #formulario-4-form-info h4 {
        font-size: 1.4rem;
    }
    
    .formulario-4-input,
    #formulario-4-form-formulario textarea {
        padding: 14px;
    }
}