/* ============================================================
   TURNOBOT / EL CORTE — ESTILO GENERAL
   Paleta: Azul premium SaaS
   ============================================================ */

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

/* ACCESIBILIDAD: foco visible consistente para navegación por teclado */

:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* ENLACE PARA SALTAR AL CONTENIDO */

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--primary);
    color: #FFFFFF;
    padding: 12px 18px;
    border-radius: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    z-index: 50;
}

.skip-link:focus {
    left: 0;
}

:root {
    --primary: #1463FF;
    --primary-dark: #0757E8;
    --primary-deep: #0B1B3A;
    --primary-hover: #0757E8;
    --primary-light: #3B82F6;

    --blue-50: #EEF6FF;
    --blue-100: #EAF4FF;
    --blue-200: #DCEBFF;
    --blue-border: #C9DDF8;

    --bg: #EAF4FF;
    --surface: #FFFFFF;
    --surface-hover: #F8FAFF;

    --text: #102A56;
    --text-secondary: #4A6590;
    --text-muted: #5B6B84;
    --border: #C9DDF8;

    --success: #16A34A;
    --success-bg: #F0FDF4;
    --success-border: #BBF7D0;
    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --danger-border: #FECACA;
    --warning: #D97706;

    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;

    --shadow-sm: 0 1px 4px rgba(11,27,58,.06);
    --shadow-md: 0 4px 16px rgba(11,27,58,.08);
    --shadow-lg: 0 12px 40px rgba(11,27,58,.10);
    --shadow-blue: 0 4px 16px rgba(20,99,255,.12);
    --shadow-glass: 0 8px 32px rgba(11,27,58,.08);

    --font-family: "DM Sans";
}

body {
    font-family: var(--font-family), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

/* Decorative background shapes */
body::before {
    content: "";
    position: fixed;
    top: -120px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20,99,255,.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    bottom: -150px;
    left: -80px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20,99,255,.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}


/* ============================================================
   CONTENEDOR
   ============================================================ */

.app-shell {
    width: 100%;
    max-width: 760px;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    max-height: 920px;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--blue-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}


/* ============================================================
   HEADER
   ============================================================ */

.chat-header {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--blue-border);
}

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

.brand-mark {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 700;
    box-shadow: var(--shadow-blue);
    flex-shrink: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 14px;
    background: var(--primary);
    padding: 4px;
    box-shadow: var(--shadow-blue);
}

.brand-info h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-deep);
    letter-spacing: -0.3px;
}

.status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 2px;
    color: var(--text-secondary);
    font-size: 12px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(22,163,74,.15);
}

.header-badge {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: var(--blue-50);
    border: 1px solid var(--blue-border);
    padding: 6px 14px;
    border-radius: 20px;
}


/* ============================================================
   CHAT
   ============================================================ */

.chat {
    flex: 1;
    min-height: 0;
    min-width: 0;
    padding: 28px 26px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--blue-border) transparent;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--bg) 100%);
}

.chat::-webkit-scrollbar {
    width: 5px;
}

.chat::-webkit-scrollbar-thumb {
    background: var(--blue-border);
    border-radius: 10px;
}


/* ============================================================
   BIENVENIDA
   ============================================================ */

.welcome {
    text-align: center;
    padding: 20px 20px 32px;
}

.welcome-icon {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 12px;
    display: inline-block;
    filter: drop-shadow(0 2px 8px rgba(20,99,255,.2));
}

.welcome-label {
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.welcome h2 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--primary-deep);
    letter-spacing: -0.5px;
}

.welcome h2 .highlight {
    color: var(--primary);
}

.welcome-text {
    max-width: 440px;
    margin: auto;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}


/* ============================================================
   MENSAJES
   ============================================================ */

.message {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.avatar {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
}

.message-content {
    max-width: 82%;
}

.message-name {
    display: block;
    margin: 0 0 6px 4px;
    color: var(--text-muted);
    font-size: 11px;
}

.bubble {
    padding: 14px 17px;
    border: 1px solid var(--blue-border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    line-height: 1.55;
    font-size: 14px;
    white-space: pre-wrap;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.message.bot .bubble {
    border-bottom-left-radius: 4px;
}

.initial-message .bubble {
    white-space: normal;
}

.message.user .bubble {
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-blue);
}


/* ============================================================
   FORMULARIOS DENTRO DEL CHAT
   ============================================================ */

.bubble input,
.message-content input {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--blue-50);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.bubble input:focus,
.message-content input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20,99,255,.1);
}

.bubble select,
.message-content select {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--blue-50);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A6590' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.bubble select:focus,
.message-content select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20,99,255,.1);
}

.bubble label,
.message-content label {
    display: block;
    margin-top: 14px;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.bubble label:first-of-type {
    margin-top: 16px;
}


/* Botones generados dentro de los mensajes */

.bubble button,
.message-content button {
    min-height: 40px;
    margin-top: 10px;
    margin-right: 6px;
    padding: 0 16px;
    border: 1px solid var(--blue-border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--primary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.bubble button:hover,
.message-content button:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue);
}

.bubble button:disabled,
.message-content button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* ============================================================
   TARJETAS DE TURNOS
   ============================================================ */

.appointment-card {
    margin-top: 12px;
    padding: 16px;
    background: var(--blue-50);
    border: 1px solid var(--blue-border);
    border-radius: var(--radius);
    transition: border-color .2s;
}

.appointment-card:hover {
    border-color: var(--primary-light);
}

.appointment-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--primary-deep);
}

.appointment-title-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--blue-200);
    color: var(--primary);
}

.appointment-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
}

.appointment-info-row {
    display: flex;
    align-items: center;
    gap: 9px;
}

.appointment-info-row span:first-child {
    color: var(--primary);
}

.appointment-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-top: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    background: var(--success-bg);
    color: var(--success);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    border: 1px solid var(--success-border);
}

.appointment-status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.appointment-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.appointment-actions button {
    flex: 1;
    min-height: 38px;
    margin: 0;
    border-radius: var(--radius-sm);
}

.appointment-actions .cancel,
.appointment-cancel {
    border-color: var(--danger-border);
    background: var(--danger-bg);
    color: var(--danger);
}

.appointment-actions .cancel:hover,
.appointment-cancel:hover {
    background: var(--danger);
    color: #FFFFFF;
    border-color: var(--danger);
}

.appointment-actions .reschedule,
.appointment-reschedule {
    background: var(--blue-50);
    color: var(--primary);
    border-color: var(--blue-border);
}

.appointment-actions .reschedule:hover,
.appointment-reschedule:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
}

.appointment-reschedule {
    background: var(--blue-50);
    color: var(--primary);
    border: 1px solid var(--blue-border);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    min-height: 40px;
    margin-top: 10px;
    margin-right: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.appointment-reschedule:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    transform: translateY(-1px);
}

.appointment-cancel {
    border: 1px solid var(--danger-border);
    background: var(--danger-bg);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    min-height: 40px;
    margin-top: 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.appointment-cancel:hover {
    background: var(--danger);
    color: #FFFFFF;
    border-color: var(--danger);
}


/* ============================================================
   QUICK ACTIONS
   ============================================================ */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--blue-border);
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.quick-action {
    min-height: 72px;
    border: 1px solid var(--blue-border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    transition: all .2s;
    position: relative;
    overflow: hidden;
}

.quick-action::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform .2s;
}

.quick-action:hover {
    border-color: var(--primary);
    background: var(--blue-50);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.quick-action:hover::before {
    transform: scaleX(1);
}

.quick-icon {
    color: var(--primary);
    font-size: 20px;
    line-height: 1;
}

.quick-action-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
}

.quick-action:hover .quick-action-text {
    color: var(--primary);
}

.quick-action-sub {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.2;
}

.quick-action:hover .quick-action-sub {
    color: var(--text-secondary);
}


/* ============================================================
   INPUT
   ============================================================ */

.input-area {
    padding: 14px 20px 12px;
    background: var(--surface);
    border-top: 1px solid var(--blue-border);
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--blue-50);
    transition: border-color .2s, box-shadow .2s;
}

.input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20,99,255,.08);
    background: var(--surface);
}

.input-area input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
}

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

.send-button {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 14px;
    background: var(--primary);
    color: #FFFFFF;
    cursor: pointer;
    transition: all .2s;
}

.send-button svg {
    width: 18px;
    height: 18px;
}

.send-button:hover {
    background: var(--primary-dark);
    transform: scale(1.04);
    box-shadow: var(--shadow-blue);
}

.send-button:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.privacy-note {
    text-align: center;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.privacy-note::before {
    content: "\1F6E1";
    font-size: 11px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.app-footer {
    width: 100%;
    max-width: 760px;
    flex: 0 0 auto;
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 11px;
    background: var(--blue-50);
    border-top: 1px solid var(--blue-border);
}


/* ============================================================
   DISPONIBILIDAD / TURNOS / FORMULARIOS
   ============================================================ */

.availability-result,
.availability-options,
.reservation-form,
.appointment-search,
.cancel-confirmation,
.date-picker,
.service-list {
    width: 100%;
}

.availability-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-deep);
    margin-bottom: 12px;
}

.appointment-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.availability-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.time-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.time-button:hover {
    background: var(--primary);
    color: #FFFFFF;
    border-color: var(--primary);
    box-shadow: var(--shadow-blue);
}

.time-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.reservation-select {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--blue-50);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.reservation-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20,99,255,.1);
}

.reservation-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 16px;
    padding: 0 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.reservation-submit:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-blue);
}

.reservation-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.reservation-cancel {
    width: 100%;
    min-height: 40px;
    margin-top: 8px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.reservation-cancel:hover {
    background: var(--blue-100);
    color: var(--text);
}

.appointment-name-input {
    width: 100%;
    height: 44px;
    margin-top: 12px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    background: var(--blue-50);
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.appointment-name-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20,99,255,.1);
}

.appointment-search-button {
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
    padding: 0 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.appointment-search-button:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-blue);
}

.appointment-search-button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.appointment-results {
    width: 100%;
}

.appointment-results-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-deep);
    margin-bottom: 14px;
}

.appointment-service {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.appointment-detail {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.service-list-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-deep);
    margin-bottom: 14px;
}

.service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: var(--blue-50);
    border: 1px solid var(--blue-border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    transition: border-color .2s;
}

.service-card:hover {
    border-color: var(--primary);
}

.service-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.service-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}


/* ============================================================
   TYPING INDICATOR
   ============================================================ */

.typing-message .bubble {
    color: var(--text-muted);
    font-style: italic;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {

    .initial-message .bubble br + br {
        display: none;
    }

    body {
        padding: 0;
        justify-content: flex-start;
    }

    .app-shell {
        height: auto;
        min-height: 0;
        max-width: none;
        border-radius: 0;
    }

    .chat-header {
        padding: 12px 16px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .brand-info h1 {
        font-size: 18px;
    }

    .header-badge {
        font-size: 9px;
        padding: 5px 10px;
    }

    .chat {
        padding: 18px 14px;
    }

    .welcome h2 {
        font-size: 24px;
    }

    .welcome-text {
        font-size: 13px;
    }

    .message-content {
        max-width: 88%;
    }

    .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 10px 12px;
        gap: 6px;
    }

    .quick-action {
        min-height: 64px;
        font-size: 10px;
    }

    .quick-icon {
        font-size: 18px;
    }

    .quick-action-sub {
        display: none;
    }

    .input-area {
        padding: 10px 12px 10px;
    }

    .time-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .app-footer {
        max-width: none;
        padding: 14px;
        font-size: 10px;
    }
}

/* ============================================================
   ESTADOS DE MENSAJES EN EL CHAT
   ============================================================ */

.bubble.is-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success-border);
}

.bubble.is-error {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-border);
}

/* ============================================================
   ESTADO VACÍO EN EL CHAT
   ============================================================ */

.chat-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.chat-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: .6;
    display: block;
}

.chat-empty-state h3 {
    color: var(--primary-deep);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 16px;
}

.chat-empty-state p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ============================================================
   ACCESIBILIDAD: RESPETAR MOVIMIENTO REDUCIDO
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
