/* ============================================
   ENCUESTA SYSOP - ESTILOS GLOBALES
   ============================================ */

:root {
    /* COLORES SYSOP */
    --sysop-primary: #003698;
    --sysop-secondary: #042A79;
    --sysop-accent: #0047D0;
    --sysop-light-blue: #0057FF;
    
    /* GRISES */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    
    /* OTROS */
    --white: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e8eef5 100%);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */

.encuesta-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.encuesta-hero {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--sysop-primary) 0%, var(--sysop-secondary) 100%);
    border-radius: 16px;
    color: var(--white);
    overflow: hidden;
}

.encuesta-hero__decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--white);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
}

.shape-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
}

.shape-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 10%;
}

.encuesta-hero__content {
    position: relative;
    z-index: 1;
}

.encuesta-logo {
    margin-bottom: 30px;
}

.encuesta-logo h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.encuesta-logo p {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #cffafe;
}

.encuesta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.encuesta-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   WRAPPER & FORM
   ============================================ */

.encuesta-wrapper {
    background: var(--white);
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 54, 152, 0.1);
    border: 1px solid var(--gray-200);
}

.encuesta-form {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* ============================================
   TICKET INFO
   ============================================ */

.encuesta-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 54, 152, 0.05) 0%, rgba(0, 71, 208, 0.05) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--sysop-primary);
}

.ticket-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--sysop-primary);
    font-size: 15px;
}

.badge-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ticket-date {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
}

/* ============================================
   PREGUNTAS
   ============================================ */

.encuesta-pregunta {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 30px;
    background: var(--gray-100);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.encuesta-pregunta:hover {
    border-color: var(--sysop-primary);
    box-shadow: 0 8px 24px rgba(0, 54, 152, 0.1);
}

.pregunta-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.pregunta-numero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--sysop-primary) 0%, var(--sysop-accent) 100%);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.pregunta-titulo {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.pregunta-descripcion {
    font-size: 13px;
    color: var(--gray-600);
    margin: 0;
    padding-left: 68px;
}

/* ============================================
   ESCALA
   ============================================ */

.escala-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.escala-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    padding: 0 10px;
}

.label-min, .label-max {
    flex: 1;
}

.label-max {
    text-align: right;
}

.escala-opciones {
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.escala-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
    gap: 8px;
}

.escala-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    padding: 12px 0;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.escala-item input[type="radio"] {
    display: none;
}

.escala-numero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-200);
    color: var(--gray-600);
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-300);
}

.escala-emoji {
    font-size: 18px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.escala-item:hover .escala-numero {
    background: rgba(0, 54, 152, 0.1);
    color: var(--sysop-primary);
    border-color: var(--sysop-primary);
    transform: scale(1.1);
}

.escala-item input[type="radio"]:checked + .escala-numero {
    background: linear-gradient(135deg, var(--sysop-primary) 0%, var(--sysop-accent) 100%);
    color: var(--white);
    border-color: var(--sysop-primary);
    box-shadow: 0 4px 12px rgba(0, 54, 152, 0.3);
}

.escala-item input[type="radio"]:checked ~ .escala-emoji {
    opacity: 1;
    transform: scale(1);
}

.escala-seleccion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(0, 54, 152, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--sysop-primary);
    font-size: 14px;
}

.seleccion-valor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    background: var(--sysop-primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
}

.seleccion-texto {
    color: var(--gray-600);
    font-size: 13px;
}

/* ============================================
   COMENTARIOS
   ============================================ */

.encuesta-comentarios {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comentarios-label {
    cursor: pointer;
}

.comentarios-titulo {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.comentarios-hint {
    display: block;
    font-size: 13px;
    color: var(--gray-600);
}

.comentarios-textarea {
    padding: 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--gray-800);
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    background: var(--white);
}

.comentarios-textarea:focus {
    outline: none;
    border-color: var(--sysop-primary);
    box-shadow: 0 0 0 3px rgba(0, 54, 152, 0.1);
}

.comentarios-textarea::placeholder {
    color: var(--gray-400);
}

/* ============================================
   BOTÓN ENVIAR
   ============================================ */

.encuesta-acciones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.btn-enviar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--sysop-primary) 0%, var(--sysop-accent) 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 54, 152, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    max-width: 400px;
}

.btn-enviar:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 54, 152, 0.4);
}

.btn-enviar:active:not(:disabled) {
    transform: translateY(0);
}

.btn-enviar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, var(--gray-600) 0%, var(--gray-700) 100%);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-enviar:not(:disabled):hover .btn-icon {
    transform: translateX(4px);
}

.encuesta-disclaimer {
    font-size: 13px;
    color: var(--gray-600);
    text-align: center;
    margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.encuesta-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray-600);
    font-size: 13px;
}

.footer-text {
    margin: 0;
    line-height: 1.8;
}

.footer-values {
    display: block;
    margin-top: 12px;
    font-weight: 700;
    color: var(--sysop-primary);
    letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .encuesta-container {
        padding: 20px 16px;
    }

    .encuesta-hero {
        padding: 50px 30px;
        margin-bottom: 40px;
    }

    .encuesta-logo h1 {
        font-size: 32px;
    }

    .encuesta-title {
        font-size: 24px;
    }

    .encuesta-subtitle {
        font-size: 14px;
    }

    .encuesta-wrapper {
        padding: 30px 20px;
        gap: 30px;
    }

    .encuesta-pregunta {
        padding: 20px;
        gap: 15px;
    }

    .pregunta-header {
        flex-direction: column;
        gap: 12px;
    }

    .pregunta-numero {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .pregunta-titulo {
        font-size: 16px;
    }

    .pregunta-descripcion {
        padding-left: 0;
    }

    .escala-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }

    .escala-numero {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .btn-enviar {
        padding: 14px 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .encuesta-hero {
        padding: 40px 20px;
    }

    .encuesta-logo h1 {
        font-size: 28px;
    }

    .encuesta-title {
        font-size: 20px;
    }

    .encuesta-wrapper {
        padding: 20px 16px;
        gap: 25px;
    }

    .escala-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .escala-numero {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .escala-labels {
        font-size: 11px;
    }
}