/* ============================================
   ENCUESTA ZONA 3 - ESTILOS MODERNOS
   ============================================ */

:root {
    --bg-primary: #ffffff;        /* Blanco puro - fondo principal */
    --bg-card: #f8fafc;           /* Gris muy claro - para tarjetas */
    --bg-input: #ffffff;          /* Blanco - campos de texto */
    --bg-hover: #f1f5f9;          /* Gris claro - hover */
    --bg-modal: rgba(0, 0, 0, 0.6); /* Oscuro semitransparente para modales */
    
    --text-primary: #0f172a;      /* Azul marino muy oscuro - texto principal */
    --text-secondary: #1e293b;    /* Azul pizarra oscuro - texto secundario */
    --text-muted: #475569;        /* Gris medio - texto menos importante */
    
    --primary: #ea580c;           /* ← NARANJA */
    --primary-hover: #c2410c;     /* ← NARANJA OSCURO */
    --primary-light: #f97316;     /* ← NARANJA CLARO */
    
    --success: #16a34a;           /* Verde - para éxito */
    --danger: #dc2626;            /* Rojo - para errores */
    --warning: #ca8a04;           /* Amarillo - para advertencias */
    
    --border: #e2e8f0;            /* Gris claro - bordes */
    --border-light: #cbd5e1;      /* Gris medio - bordes hover */
    
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
    
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 8px 30px rgba(0, 0, 0, 0.3);
    --shadow-modal: 0 25px 80px rgba(0, 0, 0, 0.8);
    
    --transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at top right, #1a1c22, #0a0b0e);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.survey-container {
    width: 100%;
    max-width: 780px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(40px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* ============================================
   HEADER
   ============================================ */
.survey-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    padding: 2px;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
}

.logo-area h1 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.logo-area span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: block;
}

.area-badge {
    background: rgba(239, 68, 68, 0.15);
    color: var(--primary-light);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

/* ============================================
   MAIN
   ============================================ */
.survey-main {
    padding: 32px;
    min-height: 460px;
}

/* ===== STEPS ===== */
.step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TIMER BANNERS
   ============================================ */
.timer-banner {
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.timer-banner i {
    color: var(--primary-light);
    font-size: 1rem;
}

.timer-banner span {
    font-weight: 700;
    color: var(--text-primary);
}

.timer-banner.warning {
    background: rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.2);
}

.timer-banner.warning i {
    color: var(--warning);
}

.timer-banner.success {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.2);
}

.timer-banner.success i {
    color: var(--success);
}

/* ============================================
   WELCOME
   ============================================ */
.welcome-content {
    text-align: center;
    padding: 20px 10px 10px;
}

.welcome-icon {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.welcome-content h2 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-content p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 550px;
    margin: 0 auto 6px;
    line-height: 1.6; /* Espaciado entre líneas */

}

.welcome-content .sub-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.btn-start {
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.3);
}

.btn-start:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.4);
}

/* ============================================
   QUESTIONS
   ============================================ */
.questions-header {
    margin-bottom: 28px;
}

.questions-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.questions-header h2 i {
    color: var(--primary);
    margin-right: 12px;
}

.questions-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 6px;
}

.questions-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 28px;
}

/* ===== QUESTION CARD ===== */
.question-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    transition: var(--transition);
}

.question-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

.question-card .question-text {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.question-card .question-number {
    color: var(--primary);
    font-weight: 800;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* ============================================
   RATING - EMOJIS GRANDES
   ============================================ */
.rating-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.rating-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    background: transparent;
    min-width: 70px;
}

.rating-option:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.rating-option.selected {
    background: rgba(239, 68, 68, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.1);
}

.rating-option .emoji {
    font-size: 2.8rem;
    line-height: 1;
    transition: var(--transition);
}

.rating-option:hover .emoji {
    transform: scale(1.15);
}

.rating-option.selected .emoji {
    transform: scale(1.2);
}

.rating-option .label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rating-option.selected .label {
    color: var(--primary-light);
}

/* ============================================
   BOTONES
   ============================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(239, 68, 68, 0.35);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.form-actions {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 4px;
}

/* ============================================
   THANKS
   ============================================ */
.thanks-content {
    text-align: center;
    padding: 30px 10px 10px;
}

.thanks-icon {
    font-size: 5rem;
    color: var(--success);
    margin-bottom: 20px;
    animation: bounce 1s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.2); }
    60% { transform: scale(0.9); }
}

.thanks-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.thanks-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 6px;
}

.thanks-content .sub-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ============================================
   FOOTER
   ============================================ */
.survey-footer {
    padding: 16px 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--bg-primary);
}

.survey-footer p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.survey-footer .footer-version {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 2px;
}

/* ============================================
   MODAL ADVERTENCIA
   ============================================ */
.modal-warning .modal-header {
    border-bottom-color: rgba(234, 179, 8, 0.2);
}

.warning-icon {
    font-size: 4rem;
    color: var(--warning);
    margin-bottom: 16px;
}

.warning-countdown {
    font-size: 4rem;
    font-weight: 900;
    color: var(--warning);
    margin: 12px 0;
    font-family: 'Inter', sans-serif;
}

/* ============================================
   MODAL TELÉFONO
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-modal);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: modalFadeIn 0.4s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-modal);
    overflow: hidden;
    animation: modalSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-title h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-subtext {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== DISPLAY TELÉFONO ===== */
.phone-display {
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.phone-display.filled {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.1);
}

.phone-placeholder {
    color: var(--text-muted);
    font-size: 1rem;
}

.phone-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 3px;
    display: none;
}

.phone-number.show {
    display: block;
}

.phone-placeholder.hide {
    display: none;
}

/* ===== TECLADO NUMÉRICO ===== */
.phone-keypad {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.keypad-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.key-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.key-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: scale(1.05);
}

.key-btn:active {
    transform: scale(0.92);
}

.key-btn.key-delete {
    color: var(--warning);
    font-size: 1.2rem;
}

.key-btn.key-delete:hover {
    background: rgba(234, 179, 8, 0.15);
    border-color: var(--warning);
}

.key-btn.key-clear {
    color: var(--danger);
    font-size: 1.2rem;
}

.key-btn.key-clear:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: var(--danger);
}

/* ===== CONTADOR ===== */
.phone-counter {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.phone-counter span {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== MODAL FOOTER ===== */
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.modal-footer .btn-secondary {
    padding: 12px 24px;
}

.modal-footer .btn-primary {
    padding: 12px 28px;
}

.modal-footer .btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 28px;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 99999;
    max-width: 400px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.toast.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast.warning {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    color: #0f172a;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .survey-container {
        border-radius: var(--radius);
    }

    .survey-header {
        padding: 16px 18px;
    }

    .survey-main {
        padding: 20px 18px;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-img {
        width: 44px;
        height: 44px;
    }

    .logo-area h1 {
        font-size: 1rem;
    }

    .area-badge {
        font-size: 0.7rem;
        padding: 5px 14px;
    }

    .welcome-content h2,
    .thanks-content h2 {
        font-size: 1.5rem;
    }

    .welcome-content p,
    .thanks-content p {
        font-size: 0.95rem;
    }

    .rating-option {
        min-width: 56px;
        padding: 6px 10px;
    }

    .rating-option .emoji {
        font-size: 2.2rem;
    }

    .rating-option .label {
        font-size: 0.55rem;
    }

    .question-card {
        padding: 16px 18px;
    }

    .question-card .question-text {
        font-size: 0.95rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        margin: 10px;
        max-width: 100%;
    }

    .key-btn {
        width: 54px;
        height: 54px;
        font-size: 1.3rem;
    }

    .phone-number {
        font-size: 1.5rem;
    }

    .toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
        font-size: 0.85rem;
        padding: 14px 20px;
    }

    .btn-start {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .timer-banner {
        font-size: 0.75rem;
        padding: 8px 12px;
        flex-wrap: wrap;
    }

    .warning-countdown {
        font-size: 3rem;
    }
}

@media (max-width: 400px) {
    .rating-option {
        min-width: 48px;
        padding: 4px 8px;
    }

    .rating-option .emoji {
        font-size: 1.8rem;
    }

    .rating-group {
        gap: 6px;
    }

    .key-btn {
        width: 46px;
        height: 46px;
        font-size: 1.1rem;
    }
}

/* ============================================
   ESTILOS MODAL - NOMBRE + TELÉFONO
   ============================================ */

/* ===== CAMPO NOMBRE ===== */
.form-group-modal {
    margin-bottom: 20px;
}

.form-group-modal label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group-modal label i {
    margin-right: 6px;
    color: var(--primary);
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.modal-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.modal-input::placeholder {
    color: var(--text-muted);
}

.input-hint {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== SEPARADOR ===== */
.modal-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 16px 0 20px;
}

.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.modal-divider span {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 8px;
}










/* ============================================
   ESTILOS PARA PREGUNTAS SÍ/NO
   ============================================ */

/* ===== OPCIONES SÍ/NO ===== */
.rating-group.si-no {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.rating-option.si-no-option {
    min-width: 100px;
    padding: 12px 20px;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    background: var(--bg-input);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.rating-option.si-no-option:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateY(-3px);
}

.rating-option.si-no-option.selected-si {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.12);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
}

.rating-option.si-no-option.selected-no {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.12);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.1);
}

.rating-option.si-no-option .emoji {
    font-size: 3rem;
    line-height: 1;
}

.rating-option.si-no-option .label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rating-option.si-no-option.selected-si .label {
    color: var(--success);
}

.rating-option.si-no-option.selected-no .label {
    color: var(--danger);
}

/* ============================================
   ESTILOS PARA COMENTARIOS ADICIONALES
   ============================================ */
.comentarios-container {
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.comentarios-container:hover {
    border-color: var(--border-light);
}

.comentarios-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comentarios-header i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.comentarios-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.comentarios-subtext {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.comentarios-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: var(--transition);
    min-height: 80px;
}

.comentarios-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.comentarios-textarea::placeholder {
    color: var(--text-muted);
}

.comentarios-counter {
    display: block;
    text-align: right;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.comentarios-counter span {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ============================================
   RESPONSIVE PARA SÍ/NO Y COMENTARIOS
   ============================================ */
@media (max-width: 640px) {
    .rating-option.si-no-option {
        min-width: 80px;
        padding: 10px 16px;
    }

    .rating-option.si-no-option .emoji {
        font-size: 2.5rem;
    }

    .rating-option.si-no-option .label {
        font-size: 0.85rem;
    }

    .comentarios-container {
        padding: 16px 18px;
    }

    .comentarios-textarea {
        font-size: 0.85rem;
        min-height: 60px;
    }
}

@media (max-width: 400px) {
    .rating-option.si-no-option {
        min-width: 70px;
        padding: 8px 12px;
    }

    .rating-option.si-no-option .emoji {
        font-size: 2rem;
    }

    .rating-option.si-no-option .label {
        font-size: 0.75rem;
    }
}









/* ============================================
   MEJORAS PARA MODAL DE TELÉFONO
   ============================================ */

/* Para móviles medianos */
@media (max-width: 640px) {
    /* Modal más compacto */
    .modal-content {
        padding: 0;
        margin: 8px;
        border-radius: var(--radius);
        max-height: 95vh;
        overflow-y: auto;
    }

    .modal-body {
        padding: 16px 18px;
    }

    .modal-header {
        padding: 14px 18px;
    }

    .modal-footer {
        padding: 12px 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-footer .btn-secondary,
    .modal-footer .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Teclado más pequeño */
    .key-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .keypad-row {
        gap: 6px;
    }

    .phone-keypad {
        gap: 6px;
    }

    /* Display de teléfono más compacto */
    .phone-display {
        padding: 12px 16px;
        min-height: 48px;
    }

    .phone-number {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .phone-placeholder {
        font-size: 0.85rem;
    }

    .phone-counter {
        font-size: 0.75rem;
    }

    /* Título del modal */
    .modal-title h3 {
        font-size: 0.95rem;
    }

    .modal-title i {
        font-size: 1rem;
    }

    .modal-subtext {
        font-size: 0.75rem;
        margin-bottom: 14px;
    }

    .form-group-modal label {
        font-size: 0.75rem;
    }

    .modal-input {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .modal-divider {
        margin: 12px 0 14px;
    }

    .modal-divider span {
        font-size: 0.7rem;
    }
}

/* Para móviles muy pequeños */
@media (max-width: 400px) {
    .modal-body {
        padding: 12px 14px;
    }

    .modal-header {
        padding: 10px 14px;
    }

    .modal-footer {
        padding: 10px 14px;
    }

    /* Teclado aún más pequeño */
    .key-btn {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .keypad-row {
        gap: 4px;
    }

    .phone-keypad {
        gap: 4px;
    }

    .phone-display {
        padding: 10px 12px;
        min-height: 40px;
        margin-bottom: 16px;
    }

    .phone-number {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .phone-placeholder {
        font-size: 0.75rem;
    }

    .phone-counter {
        font-size: 0.65rem;
    }

    .modal-title h3 {
        font-size: 0.85rem;
    }

    .modal-subtext {
        font-size: 0.7rem;
    }

    .modal-input {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .form-group-modal label {
        font-size: 0.7rem;
    }
}

/* Para pantallas muy pequeñas (menos de 360px) */
@media (max-width: 360px) {
    .key-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .keypad-row {
        gap: 3px;
    }

    .phone-keypad {
        gap: 3px;
    }

    .phone-number {
        font-size: 0.95rem;
    }

    .phone-display {
        padding: 8px 10px;
        min-height: 36px;
    }
}




/* ===== BOTÓN DE MENÚ ===== */
.menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.menu-btn i {
    font-size: 1rem;
}

.menu-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Dropdown del menú */
.menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    min-width: 200px;
    overflow: hidden;
    z-index: 100;
    animation: fadeIn 0.3s ease;
}

.menu-dropdown.active {
    display: block;
}

.menu-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.menu-dropdown a:last-child {
    border-bottom: none;
}

.menu-dropdown a:hover {
    background: var(--bg-hover);
}

.menu-dropdown a i {
    width: 20px;
    text-align: center;
}

/* Contenedor del menú */
.menu-wrapper {
    position: relative;
    display: inline-block;
}







/* ===== RESPONSIVE PARA MÓVILES ===== */
@media (max-width: 640px) {
    /* Ajuste del header para móviles */
    .header-content {
        display: grid;
        grid-template-columns: 1fr auto auto;
        gap: 8px;
        align-items: center;
    }

    /* Logo más pequeño */
    .logo-img {
        width: 36px;
        height: 36px;
    }

    .logo-area h1 {
        font-size: 0.85rem;
    }

    .logo-area span {
        font-size: 0.55rem;
    }

    /* Botón de menú más pequeño */
    .menu-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
        gap: 4px;
    }

    .menu-btn i {
        font-size: 0.75rem;
    }

    /* Dropdown ocupa todo el ancho en móviles */
    .menu-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        min-width: unset;
        width: 100%;
        border-radius: var(--radius) var(--radius) 0 0;
        max-height: 60vh;
        overflow-y: auto;
        animation: slideUp 0.3s ease;
    }

    .menu-dropdown a {
        padding: 14px 20px;
        font-size: 1rem;
        justify-content: center;
    }

    /* Badge de zona más pequeño */
    .area-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
        gap: 4px;
    }

    .area-badge i {
        font-size: 0.7rem;
    }

    /* Texto de "FARMACIA" debajo del badge */
    .header-content > div:last-child {
        font-size: 0.6rem !important;
        grid-column: 1 / -1;
        text-align: center !important;
        margin-top: -4px !important;
    }
}

/* Ajuste para pantallas muy pequeñas */
@media (max-width: 400px) {
    .header-content {
        grid-template-columns: 1fr auto auto;
        gap: 4px;
    }

    .logo-area {
        gap: 8px;
    }

    .logo-img {
        width: 30px;
        height: 30px;
    }

    .logo-area h1 {
        font-size: 0.75rem;
    }

    .logo-area span {
        font-size: 0.5rem;
    }

    .menu-btn {
        padding: 4px 10px;
        font-size: 0.6rem;
    }

    .menu-btn i {
        font-size: 0.65rem;
    }

    .area-badge {
        font-size: 0.5rem;
        padding: 3px 8px;
    }

    .menu-dropdown a {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* Animación para el menú en móviles */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}