/* ============================================
   MI PUEBLO FEEDBACK - Multi-Step COMPLETO
   ============================================ */

.mpf-container {
    font-family: "Fira Sans", Sans-serif;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 750px;
    padding: 40px 30px 80px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Step 1: Logo --- */
.mpf-logo-section {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.mpf-logo-img {
    max-width: 180px !important;
    height: auto;
}

/* --- Step 1: Pregunta --- */
.mpf-question-section {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.mpf-question-img {
    max-width: 90%;
    height: auto;
}

/* --- Step 1: Estrellas --- */
.mpf-stars {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
    width: 100%;
}

.mpf-star-btn {
    background: transparent !important;
    -webkit-tap-highlight-color: transparent;  /* Quita el highlight al tap */
    -webkit-appearance: none;                   /* Quita estilos nativos */
    appearance: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: none !important;
    outline: none !important;
}


.mpf-star-btn:focus,
.mpf-star-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.mpf-star-btn:hover {
    transform: scale(1.1);
}

.mpf-star-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    background-color: #F4A900 !important;
    border-radius: 50%;
    transition: all 0.2s ease;
    box-shadow: 0 3px 10px rgba(244, 169, 0, 0.4);
}

.mpf-star-img {
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1);
    transition: all 0.2s ease;
}

.mpf-star-btn.hovered .mpf-star-circle {
    background-color: #FFB800 !important;
    transform: scale(1.08);
}

.mpf-star-btn.active .mpf-star-circle {
    background-color: #FFB800 !important;
}

/* --- Step 1: Texto auxiliar --- */
.mpf-stars-hint {
    font-size: 16px;
    color: #2d5016;
    margin: 0;
    text-align: center;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 20px;
    display: block;
    width: fit-content;
    margin: 0 auto !important;
}

/* --- Step 1: "Tu opinión nos importa" --- */
.mpf-opinion-text {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-align: right;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transform: rotate(-5deg);
}

/* ============================================
   ANIMACIONES MULTI-STEP
   ============================================ */

.mpf-fade-out {
    animation: mpfFadeOut 0.3s ease-out forwards;
}

.mpf-fade-in {
    animation: mpfFadeIn 0.4s ease-out;
}

@keyframes mpfFadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

@keyframes mpfFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   STEP 2: Contenido
   ============================================ */

.mpf-step2-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mpf-step2-logo-small {
    text-align: center;
    margin-bottom: 20px;
}

.mpf-step2-logo-small img {
    max-width: 120px;
    height: auto;
}

.mpf-step2-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 30px 25px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    text-align: center;
}

.mpf-step2-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.mpf-step2-subtitle {
    font-size: 15px;
    color: #6b7c93;
    margin: 0 0 25px 0;
}

/* --- Botón Google --- */
.mpf-google-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    color: #202124;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid #dadce0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 15px;
}

.mpf-google-btn:hover {
    background: #f8f9fa;
    border-color: #c0c0c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.mpf-google-icon {
    width: 22px;
    height: 22px;
}

/* --- Botón Volver --- */
.mpf-back-btn {
    display: inline-block;
    background: none;
    border: none;
    color: #6b7c93;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-family: "Fira Sans", Sans-serif;
}

.mpf-back-btn:hover {
    background: rgba(0,0,0,0.05);
    color: #1a3a5c;
}

/* ============================================
   FORMULARIO (Step 2 - Negativo)
   ============================================ */

.mpf-feedback-form {
    margin-top: 15px;
    text-align: left;
}

.mpf-form-group {
    margin-bottom: 18px;
}

.mpf-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a3a5c;
    margin-bottom: 8px;
}

.mpf-required {
    color: #e74c3c;
}

.mpf-input,
.mpf-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: "Fira Sans", Sans-serif;
    border: 2px solid #dadce0;
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.mpf-input:focus,
.mpf-textarea:focus {
    outline: none;
    border-color: #F4A900;
    box-shadow: 0 0 0 3px rgba(244, 169, 0, 0.1);
}

.mpf-textarea {
    resize: vertical;
    min-height: 100px;
}

.mpf-file-input-wrapper {
    position: relative;
}

.mpf-file-input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 2px dashed #dadce0;
    border-radius: 10px;
    background: #f8f9fa;
    cursor: pointer;
    box-sizing: border-box;
}

.mpf-file-input:hover {
    border-color: #F4A900;
    background: #fff9e6;
}

.mpf-file-hint {
    font-size: 12px;
    color: #6b7c93;
    margin-top: 6px;
}

.mpf-photo-preview {
    margin-top: 15px;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.mpf-preview-img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mpf-remove-photo {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #e74c3c;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mpf-remove-photo:hover {
    background: #c0392b;
}

.mpf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.mpf-checkbox-label:hover {
    background: #f0f4f8;
}

.mpf-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #F4A900;
    flex-shrink: 0;
}

.mpf-checkbox-text {
    font-size: 14px;
    color: #2d5016;
    line-height: 1.4;
}

.mpf-form-actions {
    margin-top: 20px;
    text-align: center;
}

.mpf-submit-btn {
    display: inline-block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #F4A900 0%, #FFB800 100%);
    color: #ffffff;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 500;
    font-family: "Fira Sans", Sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 169, 0, 0.4);
}

.mpf-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 169, 0, 0.5);
}

.mpf-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mpf-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.mpf-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mpf-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   Responsive móvil
   ============================================ */
@media (max-width: 480px) {
    .mpf-container {
        border-radius: 0;
        box-shadow: none;
        min-height: 650px;
        padding: 30px 20px 70px;
    }

    .mpf-logo-img {
        max-width: 150px;
    }

    .mpf-question-img {
        max-width: 95%;
    }

    .mpf-star-circle {
        width: 54px;
        height: 54px;
    }

    .mpf-star-img {
        width: 30px;
        height: 30px;
    }

    .mpf-stars {
        gap: 10px;
    }

    .mpf-stars-hint {
        font-size: 14px;
    }

    .mpf-opinion-text {
        font-size: 14px;
        bottom: 20px;
        right: 20px;
    }

    .mpf-step2-logo-small img {
        max-width: 100px;
    }

    .mpf-step2-card {
        padding: 20px 15px;
    }

    .mpf-step2-title {
        font-size: 18px;
    }

    .mpf-step2-subtitle {
        font-size: 14px;
    }

    .mpf-google-btn {
        font-size: 14px;
        padding: 12px 20px;
    }

    .mpf-input,
    .mpf-textarea {
        font-size: 14px;
        padding: 10px 14px;
    }

    .mpf-submit-btn {
        font-size: 20px;
        padding: 6px 20px;
    }

    .mpf-checkbox-label {
        padding: 10px;
    }

    .mpf-checkbox-text {
        font-size: 13px;
    }
}