* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f2f5;
    min-height: 100vh;
    padding: 76px 0 0;
    margin: 0;
    line-height: 1.5;
    color: #202124;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px;
}

.header {
    text-align: left;
    margin-bottom: 20px;
    padding: 24px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    border-top: 8px solid #673ab7;
}

.header h1 {
    color: #202124;
    margin-bottom: 8px;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
}

.header p {
    color: #5f6368;
    font-size: 1rem;
    font-weight: 400;
}

.preguntas-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.pregunta-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
}

.pregunta-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
}

.pregunta-card label {
    display: block;
    margin-bottom: 12px;
    color: #202124;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.2px;
}

.input-field {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #202124;
}

.input-field:focus {
    outline: none;
    border-color: #673ab7;
    box-shadow: 0 0 0 2px rgba(103, 58, 183, 0.1);
}

.input-field:hover {
    border-color: #b0b0b0;
}

.input-field::placeholder {
    color: #9aa0a6;
    font-size: 0.95rem;
}

textarea.input-field {
    min-height: 100px;
    line-height: 1.5;
    resize: vertical;
}

.seccion-titulo {
    color: #202124;
    font-size: 1.25rem;
    margin: 24px 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.seccion-titulo:first-of-type {
    margin-top: 0;
}

.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #673ab7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.submit-btn:hover {
    background: #5e35b1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.submit-btn:active {
    background: #512da8;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.submit-btn:disabled {
    background: #b39ddb;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.7;
}

.status {
    padding: 16px 20px;
    border-radius: 4px;
    margin: 16px 0;
    text-align: left;
    font-weight: 400;
    animation: slideIn 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 0.95rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status.success {
    background: #e6f4ea;
    color: #1e4620;
    border-left-color: #34a853;
}

.status.error {
    background: #fce8e8;
    color: #c5221f;
    border-left-color: #d93025;
}

.status.info {
    background: #e8f0fe;
    color: #174ea6;
    border-left-color: #1a73e8;
}

.status.warning {
    background: #fef7e0;
    color: #b45f06;
    border-left-color: #f9ab00;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 16px 0 8px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #673ab7;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.progress-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 14px;
    background: rgba(240, 242, 245, 0.95);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid #e0e0e0;
}

.progress-inner {
    max-width: 900px;
    margin: 0 auto;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.progress-label {
    font-size: 0.85rem;
    color: #5f6368;
    font-weight: 500;
}

.progress-count {
    font-size: 0.85rem;
    color: #673ab7;
    font-weight: 700;
}

.loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-top: 2px solid #673ab7;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para inputs numéricos */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Estilos para focus visible accessibility */
.input-field:focus-visible,
.submit-btn:focus-visible {
    outline: 2px solid #673ab7;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 640px) {
    body {
        padding-top: 70px;
    }

    .progress-wrapper {
        padding: 8px 10px;
    }

    .container {
        padding: 12px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 0.95rem;
    }
    
    .pregunta-card {
        padding: 20px;
    }
    
    .pregunta-card label {
        font-size: 0.95rem;
    }
    
    .input-field {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .seccion-titulo {
        font-size: 1.1rem;
        margin: 20px 0 8px 0;
    }
    
    .submit-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 66px;
    }

    .container {
        padding: 8px;
    }
    
    .header {
        padding: 16px;
        border-top-width: 6px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .pregunta-card {
        padding: 16px;
    }
    
    .status {
        padding: 14px 16px;
        font-size: 0.9rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 360px) {
    .header h1 {
        font-size: 1.2rem;
    }
    
    .pregunta-card label {
        font-size: 0.9rem;
    }
    
    .input-field {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Para tablets en modo portrait */
@media (min-width: 641px) and (max-width: 768px) {
    .container {
        max-width: 600px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
}

/* Para tablets en modo landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 700px;
    }
}

/* Para pantallas grandes */
@media (min-width: 1400px) {
    .container {
        max-width: 1000px;
    }
    
    .header {
        padding: 32px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .pregunta-card {
        padding: 28px;
    }
}

/* Estilo para campos requeridos */
.pregunta-card > label::after {
    content: " *";
    color: #d93025;
    font-weight: 400;
}

/* Excepción para campos no requeridos (si los hay) */
.pregunta-card > label.optional::after {
    content: " (opcional)";
    color: #5f6368;
    font-weight: 400;
    font-size: 0.9rem;
}

/* Estilo para el contador de progreso */
.progress-text {
    text-align: right;
    font-size: 0.85rem;
    color: #5f6368;
    margin-top: 4px;
}

/* Footer del formulario */
.form-footer {
    margin-top: 24px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-align: center;
    color: #5f6368;
    font-size: 0.85rem;
    border: 1px solid #e0e0e0;
}

.form-footer a {
    color: #673ab7;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Estilos para preguntas tipo radio */
.radio-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.radio-option:hover {
    border-color: #b39ddb;
    background: #f8f5ff;
}

.radio-input {
    width: 18px;
    height: 18px;
    accent-color: #673ab7;
    flex-shrink: 0;
    cursor: pointer;
}

.radio-label {
    margin: 0 !important;
    color: #202124 !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.radio-label::after {
    content: "" !important;
}

/* Estilos para opciones múltiples */
.multiselect-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.checkbox-option:hover {
    border-color: #b39ddb;
    background: #f8f5ff;
}

.checkbox-option.selected {
    border-color: #673ab7;
    background: #f3edff;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #673ab7;
    flex-shrink: 0;
}

.checkbox-label {
    margin: 0 !important;
    font-weight: 400 !important;
    color: #202124 !important;
    cursor: pointer;
    font-size: 0.95rem !important;
    line-height: 1.3;
}

.checkbox-label:hover {
    color: #673ab7;
}

.checkbox-label::after {
    content: "" !important;
}

.multi-otro-container {
    margin-top: 10px;
    padding-left: 12px;
}

.multi-otro-label {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 0.9rem !important;
    color: #5f6368 !important;
    font-weight: 400 !important;
}

.multi-otro-input {
    max-width: 420px;
}

/* Bloque de redes sociales */
.redes-container {
    margin-top: 12px;
    padding: 12px;
    border: 1px dashed #d6c8f3;
    border-radius: 10px;
    background: #faf7ff;
}

.redes-title {
    font-size: 0.9rem;
    color: #5f6368;
    margin-bottom: 10px;
}

.red-handle-wrap {
    margin: -2px 0 8px 30px;
}

.red-handle-input {
    max-width: 420px;
}

/* Responsive para checkboxes */
@media (max-width: 640px) {
    .checkbox-option {
        gap: 10px;
    }
    
    .checkbox-input {
        width: 16px;
        height: 16px;
    }
    
    .checkbox-label {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .multiselect-container {
        gap: 8px;
    }
    
    .checkbox-option {
        padding: 2px 0;
    }
}

/* Estilos para campo de monto */
.monto-container {
    margin-top: 12px;
    padding-left: 24px;
}

.monto-label {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 0.9rem !important;
    color: #5f6368 !important;
    font-weight: 400 !important;
}

.monto-field {
    width: 200px;
}

/* Responsive para montos */
@media (max-width: 640px) {
    .monto-field {
        width: 100%;
    }
    
    .monto-container {
        padding-left: 16px;
    }
}

/* Estilos para campo de monto */
.monto-container {
    margin-top: 12px;
    padding-left: 24px;
    display: none;
}

.monto-label {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 0.9rem !important;
    color: #5f6368 !important;
    font-weight: 400 !important;
}

.monto-field {
    width: 200px;
}

/* Responsive para montos */
@media (max-width: 640px) {
    .monto-field {
        width: 100%;
    }
    
    .monto-container {
        padding-left: 16px;
    }
}

/* Estilos para campos de texto y URL */
.texto-container, .url-container {
    margin-top: 12px;
    padding-left: 24px;
    display: none;
}

.texto-label, .url-label {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 0.9rem !important;
    color: #5f6368 !important;
    font-weight: 400 !important;
}

.texto-field, .url-field {
    width: 100%;
    max-width: 400px;
}

/* Responsive */
@media (max-width: 640px) {
    .texto-field, .url-field {
        max-width: 100%;
    }
    
    .texto-container, .url-container {
        padding-left: 16px;
    }
}