/* Estilos mejorados de la encuesta con altura fija y slider horizontal */
        .survey-banner {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            z-index: 1000;
            height: 500px; /* Altura fija */
            transform: translateY(calc(100% - 60px)); /* Solo muestra la pestaña */
            transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
            box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
            border-radius: 12px 12px 0 0;
            overflow: hidden;
        }

        .survey-banner.expanded {
            transform: translateY(0);
        }

        .survey-banner.hidden {
            transform: translateY(100%);
        }

        .survey-tab {
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            color: white;
            padding: 12px 30px;
            text-align: center;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.95em;
            border-radius: 11px 11px 0 0;
            position: relative;
            transition: all 0.3s ease;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .survey-tab:hover {
            background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
        }

        .survey-tab::after {
            content: "👆";
            margin-left: 10px;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-5px); }
            60% { transform: translateY(-3px); }
        }

        .survey-content {
            padding: 25px;
            height: calc(100% - 60px); /* Altura fija menos la pestaña */
            display: flex;
            flex-direction: column;
        }

        .close-btn {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.3s ease;
            z-index: 10;
        }

        .close-btn:hover {
            opacity: 1;
        }

        /* Contenedor slider horizontal para las preguntas */
        .questions-slider {
            flex: 1;
            overflow: hidden;
            position: relative;
            margin-bottom: 20px;
        }

        .questions-track {
            display: flex;
            width: 500%; /* 5 preguntas × 100% */
            height: 100%;
            transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
        }

        .question-container {
            width: 20%; /* 100% / 5 preguntas */
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
            padding: 0 20px;
        }

        .question-title {
            font-size: 1.3em;
            margin-bottom: 20px;
            color: #ecf0f1;
            font-weight: 600;
            line-height: 1.4;
        }

        .rating-container {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .rating-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 15px;
            border-radius: 15px;
            min-width: 80px;
        }

        .rating-item:hover {
            background: rgba(255,255,255,0.1);
            transform: translateY(-3px);
        }

        .rating-item.selected {
            background: rgba(52, 152, 219, 0.3);
            transform: scale(1.1);
            border: 2px solid #3498db;
        }

        .rating-face {
            font-size: 2.5em;
            margin-bottom: 8px;
            transition: all 0.3s ease;
        }

        .rating-item:hover .rating-face {
            transform: scale(1.2);
        }

        .rating-text {
            font-size: 0.85em;
            color: #bdc3c7;
            font-weight: 500;
        }

        .rating-item.selected .rating-text {
            color: #3498db;
            font-weight: 600;
        }

        .feedback-textarea {
            width: 100%;
            min-height: 80px;
            padding: 15px;
            border: 2px solid #34495e;
            border-radius: 12px;
            background: rgba(255,255,255,0.95);
            color: #2c3e50;
            font-size: 1em;
            resize: vertical;
            margin-top: 15px;
            transition: border-color 0.3s ease;
        }

        .feedback-textarea:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
        }

        .feedback-textarea::placeholder {
            color: #7f8c8d;
        }

        /* Controles fijos en la parte inferior */
        .survey-controls {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 20px;
            margin-top: auto;
        }

        .progress-indicator {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-bottom: 20px;
        }

        .progress-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: rgba(255,255,255,0.3);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .progress-dot:hover {
            background: rgba(255,255,255,0.5);
            transform: scale(1.2);
        }

        .progress-dot.active {
            background: #3498db;
            transform: scale(1.3);
        }

        .progress-dot.completed {
            background: #27ae60;
        }

        .navigation-buttons {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-btn {
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 25px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            font-size: 0.95em;
        }

        .nav-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
        }

        .nav-btn:disabled {
            background: #7f8c8d;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .success-message {
            display: none;
            text-align: center;
            padding: 40px 20px;
            color: #ecf0f1;
            height: 100%;
            justify-content: center;
            align-items: center;
            flex-direction: column;
        }

        .success-message.show {
            display: flex;
        }

        .success-icon {
            font-size: 4em;
            color: #27ae60;
            margin-bottom: 20px;
            animation: checkmark 0.8s ease-in-out;
        }

        @keyframes checkmark {
            0% { transform: scale(0); opacity: 0; }
            50% { transform: scale(1.2); opacity: 0.8; }
            100% { transform: scale(1); opacity: 1; }
        }

        .success-title {
            font-size: 1.8em;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .success-text {
            font-size: 1.1em;
            color: #bdc3c7;
            line-height: 1.5;
        }

        .loading {
            display: none;
            text-align: center;
            color: #3498db;
            font-weight: 600;
            margin: 10px 0;
        }

        .loading.show {
            display: block;
        }

        /* Botón de minimizar/maximizar mejorado */
        .minimize-btn {
            position: absolute;
            top: 15px;
            left: 20px;
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            font-size: 18px;
            cursor: pointer;
            opacity: 0.7;
            transition: all 0.3s ease;
            z-index: 10;
            border-radius: 50%;
            width: 35px;
            height: 35px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .minimize-btn:hover {
            opacity: 1;
            background: rgba(255,255,255,0.3);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .survey-banner {
                min-height: 350px;
            }
            
            .rating-container {
                gap: 10px;
            }
            
            .rating-item {
                min-width: 60px;
                padding: 10px;
            }
            
            .rating-face {
                font-size: 2em;
            }
            
            .question-title {
                font-size: 1.1em;
            }

            .survey-content {
                padding: 20px 15px;
            }

            .question-container {
                padding: 0 10px;
            }
        }
