body.encuesta-publica{
    background: 
        url('../css/img/fondo.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    position: relative;
}

.encuesta-hero {
    background: linear-gradient(135deg, #0464b4 0%, #2c3e50 100%);
    color: white;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 70%;
    height: auto;
    align-items: end;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.05);
}

.image-fallback {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}






 :root {
            --primary: #3498db;
            --secondary: #9b59b6;
            --success: #27ae60;
            --warning: #f39c12;
            --danger: #e74c3c;
            --dark: #2c3e50;
            --light: #ecf0f1;
            --gradient: linear-gradient(135deg, #0464b4 0%, #2c3e50 100%);
        }



        .encuesta-container {
            max-width: 1000px;
            margin: 0 auto 3rem;
            padding: 0 1rem;
        }

        .progress-bar {
            background: var(--light);
            border-radius: 50px;
            height: 8px;
            margin: 2rem 0;
            overflow: hidden;
        }

        .progress-fill {
            background: var(--success);
            height: 100%;
            width: 0%;
            transition: width 0.5s ease;
            border-radius: 50px;
        }

        .form-section {
            background: white;
            border-radius: 15px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            border-left: 5px solid var(--primary);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .form-section:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid var(--light);
        }

        .section-icon {
            width: 50px;
            height: 50px;
            background: var(--gradient);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
        }

        .section-title {
            color: var(--dark);
            margin: 0;
            font-size: 1.4rem;
        }

        .pregunta {
            background: var(--light);
            padding: 1.5rem;
            border-radius: 10px;
            margin-bottom: 1.5rem;
            border-left: 4px solid var(--secondary);
            transition: all 0.3s ease;
        }

        .pregunta:hover {
            background: #e8f4fc;
            transform: translateX(5px);
        }

        .pregunta label {
            display: block;
            margin-bottom: 1rem;
            font-weight: 600;
            color: var(--dark);
            font-size: 1.1rem;
            line-height: 1.4;
        }

        .pregunta-number {
            display: inline-block;
            background: var(--primary);
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            text-align: center;
            line-height: 30px;
            margin-right: 0.5rem;
            font-weight: bold;
        }

        .opciones {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }

        .opcion {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem;
            background: white;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .opcion:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
        }

        .opcion input[type="radio"],
        .opcion input[type="checkbox"] {
            margin: 0;
            transform: scale(1.2);
        }

        .opcion input:checked + .custom-checkbox {
            background: var(--success);
            border-color: var(--success);
        }

        .opcion input:checked + .custom-checkbox::after {
            content: '✓';
            color: white;
            font-weight: bold;
        }

        .custom-checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid #bdc3c7;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .otro-container {
            grid-column: 1 / -1;
            margin-top: 1rem;
        }

        .otro-input {
            width: 100%;
            max-width: 300px;
            padding: 0.75rem;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .otro-input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        textarea {
            width: 100%;
            padding: 1rem;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            font-family: inherit;
            resize: vertical;
            min-height: 120px;
            transition: border-color 0.3s ease;
        }

        textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        }

        .btn-enviar {
            background: var(--gradient);
            color: white;
            padding: 1.2rem 3rem;
            border: none;
            border-radius: 50px;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            display: block;
            margin: 3rem auto 0;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            position: relative;
            overflow: hidden;
        }

        .btn-enviar:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        }

        .btn-enviar:active {
            transform: translateY(-1px);
        }

        .btn-enviar::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .btn-enviar:hover::before {
            left: 100%;
        }

        /* Animaciones */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade-in {
            animation: fadeInUp 0.6s ease forwards;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .encuesta-hero {
                padding: 2rem 1rem;
            }

            .encuesta-hero h1 {
                font-size: 2rem;
            }

            .encuesta-container {
                padding: 0 0.5rem;
            }

            .form-section {
                padding: 1.5rem;
                margin-bottom: 1.5rem;
            }

            .section-header {
                flex-direction: column;
                text-align: center;
                gap: 0.5rem;
            }

            .opciones {
                grid-template-columns: 1fr;
            }

            .opcion {
                padding: 0.75rem;
            }

            .pregunta {
                padding: 1rem;
            }

            .btn-enviar {
                width: 100%;
                max-width: 300px;
                padding: 1rem 2rem;
            }
        }

        @media (max-width: 480px) {
            .encuesta-hero h1 {
                font-size: 1.8rem;
            }

            .form-section {
                padding: 1rem;
            }

            .section-title {
                font-size: 1.2rem;
            }

            .pregunta label {
                font-size: 1rem;
            }
        }

        /* Estados especiales */
        .required::after {
            content: ' *';
            color: var(--danger);
        }

        .form-completion {
            text-align: center;
            margin: 2rem 0;
            font-weight: 600;
            color: var(--dark);
        }
        
        
        
        /* APARTADO DE EXCEL */
        .excel{
            margin-top: 20px;
            text-decoration-color: #ccc;
  
        }
    
    
        #exportExcelForm input[type="date"] {
            background-color: white;
            color: #000;
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 5px 10px;
            font-size: 14px;
            margin-right: 10px;
            transition: all 0.2s;
        }

        #exportExcelForm input[type="date"]:focus {
            border-color: #3399ff;
            box-shadow: 0 0 5px rgba(51,153,255,0.5);
            outline: none;
        }

        #exportExcelForm button {
            background-color: #3399ff;
            color: white;
            border: none;
            border-radius: 5px;
            padding: 6px 15px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.2s;
        }

        #exportExcelForm button:hover {
            background-color: #2673cc;
        }

        /*DASHBOARD ESTADISTICAS*/



        #exportExcelForm input[type="date"] {
            background-color: white;
            color: #000;
            border: 1px solid #ccc;
            border-radius: 5px;
            padding: 6px 10px;
            font-size: 14px;
        }

        #exportExcelForm input[type="date"]:focus {
            border-color: #3399ff;
            box-shadow: 0 0 6px rgba(51,153,255,0.25);
            outline: none;
        }

        #exportExcelForm button, .btn.btn-primary {
            background: linear-gradient(135deg,#06a6ff,#0464b4);
            color: #fff;
            border: none;
            border-radius: 6px;
            padding: 8px 14px;
            cursor: pointer;
        }

        #exportExcelForm button:hover, .btn.btn-primary:hover {
            filter: brightness(0.95);
        }