:root {
    --pm-yellow: #f6a118;
    --pm-black: #000000;
    --pm-white: #ffffff;
    --pm-soft: #fff5df;
    --pm-border: #e4ddd2;
    --pm-text: #1e1e1e;
    --pm-shadow: 0 14px 40px rgba(0,0,0,.16);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--pm-text);
    background: linear-gradient(rgba(246,161,24,.90), rgba(246,161,24,.90)), url('../img/bg-pizzamania.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
}
.page { width: min(100%, 1180px); margin: 0 auto; padding: 24px 16px 50px; }
.brand { text-align: center; margin-bottom: 20px; }
.brand img { width: min(330px, 72vw); max-width: 100%; height: auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.22)); }
.card { background: rgba(255,255,255,.96); border-radius: 28px; overflow: hidden; box-shadow: var(--pm-shadow); }
.hero { text-align: center; padding: 30px 20px 24px; background: linear-gradient(180deg, #fffdf8 0%, #fff7ea 100%); border-bottom: 1px solid #f0e1c0; }
.pill-title, .section-title {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    width: min(100%, 820px); padding: 14px 22px; border-radius: 999px; font-weight: 800;
    color: var(--pm-white); background: var(--pm-yellow); text-align: center; line-height: 1.15;
    box-shadow: 0 8px 20px rgba(246,161,24,.28);
}
.pill-title::before, .pill-title::after, .section-title::before, .section-title::after { content: '•'; font-size: 1.2em; }
.pill-title { font-size: clamp(1.15rem, 2.2vw, 2.2rem); }
.section-title { font-size: clamp(1.1rem, 2vw, 1.9rem); }
.hero p { margin: 16px auto 0; max-width: 760px; font-size: clamp(1rem, 1.35vw, 1.4rem); font-weight: 700; line-height: 1.35; }
.form-body { padding: 24px; }
.alert { border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-weight: 700; }
.alert-success { background: #edf9ef; color: #186a2b; border: 1px solid #bde2c5; }
.alert-error { background: #fff1f1; color: #9a1f1f; border: 1px solid #efc0c0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-bottom: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .sub-question { font-weight: 800; color: var(--pm-black); font-size: .98rem; }
.req { color: var(--pm-yellow); }
input, select, textarea {
    width: 100%; border: 1px solid var(--pm-border); border-radius: 12px; padding: 14px;
    font-size: 1rem; color: var(--pm-text); background: var(--pm-white); outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus { border-color: var(--pm-yellow); box-shadow: 0 0 0 4px rgba(246,161,24,.18); }
.section-divider { text-align: center; margin: 12px 0 24px; }
.ratings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 26px; }
.rating-card { background: #fff; border: 1px solid #f1e5cd; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 18px rgba(0,0,0,.05); }
.rating-card h3 { margin: 0; padding: 16px 18px; background: var(--pm-yellow); color: var(--pm-white); text-align: center; font-size: clamp(1rem, 1.4vw, 1.35rem); }
.rating-table { width: 100%; border-collapse: collapse; }
.rating-table th, .rating-table td { padding: 11px 8px; text-align: center; border-bottom: 1px solid #f3e8d8; font-size: .93rem; }
.rating-table th:first-child, .rating-table td:first-child { text-align: left; width: 42%; font-weight: 700; }
.rating-table thead th { background: var(--pm-soft); color: var(--pm-black); font-size: .84rem; font-weight: 800; }
.rating-table tr:last-child td { border-bottom: none; }

/* Ajuste de centrado de caritas */
.emoji-option, .nps-option {
    appearance: none; -webkit-appearance: none;
    width: 44px; height: 44px; border: 2px solid #e7c46b; border-radius: 50%;
    background: #fffaf0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
    margin: 0 auto; position: relative; vertical-align: middle;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.emoji-option::before, .nps-option::before {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    line-height: 1; text-align: center;
}
.emoji-option:hover, .nps-option:hover { transform: translateY(-1px); }
.emoji-option:checked, .nps-option:checked { border-color: var(--pm-black); box-shadow: 0 0 0 4px rgba(246,161,24,.18); background: #ffe4a8; }
.emoji-option::before { font-size: 22px; }
.excelente::before { content: '😊'; }
.bueno::before { content: '🙂'; }
.regular::before { content: '😐'; }
.malo::before { content: '☹️'; }
.question-block { margin: 14px 0 26px; }
.inline-options, .comment-types, .nps-scale { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.choice-chip, .check-chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid #ead9b9; background: #fff; cursor: pointer; font-weight: 700; }
.choice-chip input, .check-chip input { width: auto; margin: 0; }
.nps-scale { justify-content: center; gap: 10px; }
.nps-option::before { content: attr(data-value); font-size: 1rem; font-weight: 800; color: var(--pm-black); }
textarea { min-height: 130px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: .95rem; line-height: 1.4; }
.consent input { width: 18px; height: 18px; margin-top: 2px; }
.captcha-box { width: min(100%, 320px); margin: 24px auto 18px; border: 1px solid #d8d8d8; border-radius: 10px; padding: 16px; text-align: center; color: #666; background: #fff; font-size: .94rem; }
.actions { display: flex; justify-content: center; }
.btn-submit { border: none; background: var(--pm-yellow); color: var(--pm-white); padding: 16px 42px; border-radius: 999px; font-size: 1.06rem; font-weight: 800; cursor: pointer; box-shadow: 0 10px 18px rgba(246,161,24,.28); }
@media (max-width: 992px) {
    .grid-2, .ratings-grid { grid-template-columns: 1fr; }
    .form-body { padding: 20px 16px 26px; }
}
@media (max-width: 680px) {
    body { background-attachment: scroll; }
    .page { padding: 14px 10px 28px; }
    .card { border-radius: 18px; }
    .hero { padding: 22px 14px 18px; }
    .pill-title, .section-title { width: 100%; padding: 14px 16px; }
    .rating-table, .rating-table thead, .rating-table tbody, .rating-table th, .rating-table td, .rating-table tr { display: block; width: 100%; }
    .rating-table thead { display: none; }
    .rating-table tr { border-bottom: 1px solid #f3e8d8; padding: 12px; }
    .rating-table td { border: none; padding: 7px 0; text-align: left; }
    .rating-table td:first-child { width: 100%; margin-bottom: 6px; }
    .rating-table td[data-label] { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .rating-table td[data-label]::before { content: attr(data-label); font-weight: 800; font-size: .86rem; }
    .emoji-option, .nps-option { width: 42px; height: 42px; }
}
