body {
            font-family: 'Inter', Arial, sans-serif;
            margin: 0;
            background-color: #f4f6f8;
            color: #1f2937;
        }

        /* contenedor principal */
        .container {
            max-width: 1280px;
            margin: auto;
            padding: 32px;
        }

        /* header */
        .header {
            margin-bottom: 28px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        #businessName {
            margin-top: 6px;
            font-size: 17px;
            font-weight: 600;
            opacity: 1;
        }

        .header h1 {
            margin: 0;
            font-size: 30px;
            font-weight: 700;
        }

        .header p {
            color: #6b7280;
            margin-top: 8px;
            font-size: 15px;
        }

        /* botón */
        .actions {
            margin-bottom: 24px;
        }

        button {
            padding: 10px 16px;
            cursor: pointer;
            border: none;
            border-radius: 10px;
            background: #4CAF50;
            color: white;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        /* cards */
        .dashboard {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 24px;
        }

        .dashboard-card-link {
            cursor: pointer;
        }

        .dashboard-card-link:hover {
            transform: translateY(-2px);
        }

        .card {
            background: white;
            padding: 22px;
            border-radius: 16px;
            min-height: 110px;
            box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.06);
        }

        .card h3 {
            margin: 0;
            color: #6b7280;
            font-size: 15px;
            font-weight: 600;
        }

        .card p {
            font-size: 32px;
            font-weight: 700;
            margin-top: 14px;
            color: #111827;
        }

        /* layout en columnas */
        .grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 40px;
        }

        button:hover {
            transform: translateY(-1px);
        }

        /* secciones */
        .section {
            background: white;
            padding: 24px;
            border-radius: 16px;
            box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.06);
            margin-bottom: 24px;
        }

        .card, .section, .review {
            transition: all 0.3s ease;
        }

        .card:hover, .section:hover {
            transform: translateY(-2px);
            box-shadow: 0px 8px 24px rgba(0,0,0,0.08);
        }

        .dark body {
            background-color: #1e1e1e;
            color: #eee;
        }

        /* reseñas */
        .review {
            background: #f9fafb;
            padding: 14px;
            margin-bottom: 12px;
            border-radius: 10px;
            border: 1px solid #eef2f7;
        }

        /* modo oscuro */
        .dark body{
            background-color: #1e1e1e;
            color: #eee;
        }

        .dark .card,
        .dark .section {
            background-color: #1f2937;
            color: #eee;
            box-shadow: none;
        }

        .dark .review{
            background-color: #3a3a3a;
        }

        .dark button{
            background-color: #6c63ff;
        }

        .card, .section, .review{
            transition: all 0.3s ease;
        }

        .dark .card p {
            color: #fff;
        }

        .dark .header p,
        .dark .card h3 {
            color: #cbd5e1;
        }

        /* hover elegante */
        .card:hover{
            transform: translateY(-5px);
            box-shadow: 0px 6px 20px rgba(0,0,0,0.15);
        }

        @media (max-width: 900px) {
            .layout {
                flex-direction: column;
            }

            .sidebar {
                width: 100%;
                border-bottom: 1px solid rgba(255,255,255,0.08);
            }

            .container {
                padding: 20px;
            }

            .header h1 {
                font-size: 24px;
            }
        }

        .dark .review {
            background-color: #374151;
            border-color: #4b5563;
        }

        .dark .menu-btn {
            color: #e5e7eb;
        }

        /* aparición suave */
        .fade-in{
            opacity: 0;
            transform: translateY(10px);
            animation: fadeIn 0.5s forwards;
        }

        @keyframes fadeIn{
            to{
                opacity:1;
                transform: translateY(0);
            }
        }

        /* layout principal */
        .layout {
            display: flex;
            min-height: 100vh;
        }

        /* sidebar */
        .sidebar {
            width: 260px;
            background: #111827;
            color: white;
            padding: 24px 18px;
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
            height: 100vh;
        }

        .sidebar-top {
            display: flex;
            flex-direction: column;
            gap: 28px;
        }

        .sidebar h2 {
            margin: 0;
        }

        .new-reviews-notice {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 20px;

            padding: 16px 20px;
            margin-bottom: 24px;

            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-left: 4px solid #22c55e;
            border-radius: 12px;

            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
        }

        .new-reviews-notice strong {
            display: block;
            margin-bottom: 4px;
            font-size: 15px;
        }

        .new-reviews-notice p {
            margin: 0;
            font-size: 14px;
            opacity: 0.8;
        }

        .new-reviews-notice button {
            flex: 0 0 auto;

            padding: 8px 14px;

            border: none;
            border-radius: 8px;

            background: #22c55e;
            color: white;

            font-size: 13px;
            font-weight: 600;

            cursor: pointer;
            transition: transform 0.15s ease,
                        opacity 0.15s ease;
        }

        .new-reviews-notice button:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

        .sidebar button {
            background: #6c63ff;
            width: 100%;
        }

        .brand {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .brand-logo {
            width: 44px;
            height: 44px;
            border-radius: 12px;
            background: #6c63ff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
        }

        .brand h2 {
            margin: 0;
            font-size: 20px;
            font-weight: 700;
        }

        .brand-subtitle {
            margin: 4px 0 0 0;
            color: #9ca3af;
            font-size: 13px;
        }

        .user-box {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 14px;
            padding: 14px;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background:#374151;
            display:flex;
            align-items:center;
            justify-content:center;
            font-size: 18px;
        }

        .user-label {
            margin: 0;
            font-size: 12px;
            color: #9ca3af;
        }

        .user-name {
            margin: 4px 0 0 0;
            font-size: 14px;
            font-weight: 600;
            color: white;
        }

        .menu {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .menu-btn {
            width: 100%;
            text-align: left;
            background: transparent;
            color: #e5e7eb;
            border: 1px solid rgba(255,255,255,0.08);
            padding: 10px 14px;
            border-radius: 12px;
            transition: all 0.2s ease;
            font-weight: 500;
        }

        .sync-btn:hover {
            background: #16a34a;
            border-color: #16a34a;
        }

        .sync-btn {
            background: #22c55e;
            color: white;
            border-color: #22c55e;
        }

        .menu-btn:hover {
            background: rgba(255,255,255,0.08);
            border-color: rgba(255,255,255,0.12);
            transform: none;
        }

        .sidebar-bottom {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: auto;
            padding-top: 24px;
        }

        .sidebar button {
            background: #6c63ff;
            width: 100%;
        }

        /* main */
        .main {
            flex: 1;
            overflow-y: auto;
            padding: 0;
        }

        /* modo oscuro mejora */
        .dark .sidebar {
            background: #0f172a;
        }

        .dark .main {
            background: #111827;
        }

        .hidden {
            display: none;
        }

        .menu-btn.active {
            background: rgba(255,255,255,0.14);
            border-color: rgba(255,255,255,0.18);
        }

        /* LOGIN */

        .login-page{

            display:flex;
            height:100vh;

        }

        .login-left{

            flex:1;

            background:linear-gradient(135deg,#4338ca,#2563eb);

            color:white;

            display:flex;

            flex-direction:column;

            justify-content:center;

            padding:70px;

        }

        .login-right{

            width:470px;

            background:white;

            display:flex;

            align-items:center;

            justify-content:center;

        }

        .login-logo{

            width:90px;

            height:90px;

            border-radius:22px;

            background:white;

            color:#4338ca;

            display:flex;

            align-items:center;

            justify-content:center;

            font-size:42px;

            margin-bottom:25px;

        }

        .login-brand h1{

            font-size:46px;

            margin-bottom:15px;

        }

        .login-brand p{

            font-size:19px;

            opacity:.9;

            max-width:430px;

        }

        .login-info{

            margin-top:70px;

            display:flex;

            flex-direction:column;

            gap:18px;

        }

        .info-card {
            background: transparent;
            padding: 12px 0;
            border-radius: 0;
            backdrop-filter: none;
        }

        .info-title {
            font-weight: 600;
            font-size: 15px;
        }

        .info-description {
            margin-top: 4px;
            font-size: 13px;
            opacity: 0.75;
            line-height: 1.4;
        }
        

        .login-box{

            width:340px;

        }

        .login-box h2{
            color:#181616;
            margin-bottom:8px;

        }

        .login-box p{

            color:#777;

            margin-bottom:30px;

        }

        .login-box input{

            width:100%;

            box-sizing:border-box;

            margin-bottom:18px;

            padding:14px;

            border-radius:12px;

            border:1px solid #ddd;

            font-size:15px;

        }

        .login-box button{

            width:100%;

            padding:14px;

            font-size:16px;

        }

        .brand-logo{

            width:60px;
            height:60px;

            display:flex;
            align-items:center;
            justify-content:center;

        }

        .brand-logo img{

            width:100%;
            height:100%;

        }
        .card-description {
            display: block;
            margin-top: -4px;
            color: #9ca3af;
            font-size: 13px;
            font-weight: 500;
        }

        .dark .card-description {
            color: #94a3b8;
        }

        /* TARJETAS DE RESEÑAS */

        .review-card {
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 16px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.04);
            transition: all 0.2s ease;
        }

        .review-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 22px rgba(0,0,0,0.08);
        }

        .review-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            margin-bottom: 14px;
        }

        .review-platform {
            display: inline-block;
            padding: 4px 9px;
            font-size: 14px;
            font-weight: 700;
            color: #4f46e5;
            background: #eef2ff;
            border: 1px solid #c7d2fe;
            border-radius: 6px;
        }

        .review-stars {
            font-size: 16px;
        }

        .star-filled {
            color: #f5b301;
        }

        .star-empty {
            color: #cbd5e1;
        }

        .review-author {
            font-size: 14px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 12px;
        }

        .review-comment {
            font-size: 15px;
            line-height: 1.6;
            color: #1f2937;
            margin-bottom: 18px;
            white-space: pre-line;
        }

        .review-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            margin-top: 12px;
        }

        .review-date {
            font-size: 13px;
            color: #9ca3af;
        }

        .review-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .review-status {
            font-size: 13px;
            font-weight: 600;
        }

        .review-status.pending {
            color: #d97706;
        }

        .review-status.responded {
            color: #16a34a;
        }

        .btn-mark-responded {
            background: #4CAF50;
            color: white;
        }

        /* modo oscuro */

        .dark .review-card {
            background: #1f2937;
            border-color: #374151;
            box-shadow: none;
        }

        .dark .review-platform {
            color: #a5b4fc;
        }

        .dark .review-author,
        .dark .review-comment {
            color: #f3f4f6;
        }

        .dark .review-date {
            color: #94a3b8;
        }

        .sync-status {
            margin: 8px 12px 0;
            font-size: 12px;
            opacity: 0.8;
            line-height: 1.4;
        }

        .response-section {
    margin-top: 16px;
}

.response-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.response-textarea {
    width: 100%;
    min-height: 70px;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font: inherit;
    box-sizing: border-box;
}

.review-card {
    margin-bottom: 12px;
}

.reviews-scroll {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 8px;
}

.response-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn-response {
    border: none;
    border-radius: 8px;
    padding: 9px 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.15s ease,
                opacity 0.15s ease;
}

.btn-response:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111827;
}

.btn-google {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.btn-ai {
    background: #7c3aed;
    color: white;
}

.response-save-status {
    margin-top: 6px;
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
}

.response-save-status.unsaved {
    color: #d97706;
}

.booking-response-help,
.external-response-help {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    padding: 7px 10px;

    font-size: 12px;
    font-weight: 500;

    color: #475569;
    background: #f1f5f9;

    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.reviews-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    margin: 14px 0;
    padding: 12px 16px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.pagination-total {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-controls span {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.pagination-controls button {
    padding: 7px 12px;

    border: 1px solid #dbe3ea;
    border-radius: 7px;

    background: white;
    color: #334155;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.15s ease;
}

.pagination-controls button:hover:not(:disabled) {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.pagination-controls button:disabled {
    opacity: 0.4;
    cursor: default;
}

.chart-description {
    margin-top: -5px;
    margin-bottom: 15px;
    font-size: 13px;
    opacity: 0.7;
}

/* FILTROS DE RESEÑAS */

.reviews-filters {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.reviews-filters label {
    display: flex;
    flex-direction: column;
    gap: 7px;

    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.reviews-filters select {
    min-width: 170px;
    padding: 10px 36px 10px 12px;

    border: 1px solid #d1d5db;
    border-radius: 9px;

    background: white;
    color: #1f2937;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.reviews-filters select:hover {
    border-color: #9ca3af;
}

.reviews-filters select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .container {
        padding: 20px;
    }

    .header h1 {
        font-size: 24px;
    }
}

/* BOTÓN MENÚ MÓVIL */

/* NAVEGACIÓN MÓVIL */

.mobile-menu-toggle,
.mobile-brand {
    display: none;
}

@media (max-width: 900px) {

    .sidebar {
        width: 100%;
        padding: 16px 18px;
        position: relative;
        height: auto;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 18px;
        font-weight: 700;
        min-height: 42px;
    }

    .mobile-brand img {
        width: 36px;
        height: 36px;
    }

    .sidebar .mobile-menu-toggle {
        /*display: block;
        position: absolute;
        top: 14px;
        right: 18px;

        width: auto;
        padding: 8px 10px;
        font-size: 20px;
        background: transparent;
        */
        display: flex;
        align-items: center;
        justify-content: center;

        position: absolute;
        top: 14px;
        right: 18px;

        width: 42px;
        height: 42px;
        padding: 0;

        font-size: 20px;
        background: transparent;
    }

    .sidebar-top,
    .sidebar-bottom {
        display: none;
    }

    .sidebar.mobile-open .sidebar-top,
    .sidebar.mobile-open .sidebar-bottom {
        display: flex;
    }

    .sidebar.mobile-open .sidebar-bottom {
        margin-top: 20px;
        padding-top: 0;
    }

    .sidebar.mobile-open .sidebar-top .brand {
        display: none;
    }

    @media (max-width: 900px) {

        .dashboard {
            gap: 12px;
        }

        .card {
            padding: 18px;
            min-height: auto;
        }

        .card h3 {
            margin-bottom: 8px;
            font-size: 14px;
        }

        .card p {
            margin: 0 0 6px;
            font-size: 28px;
        }

        .card-description {
            font-size: 12px;
        }
    }

    .reviews-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .reviews-filters label {
        width: 100%;
    }

    .reviews-filters select {
        width: 100%;
        min-width: 0;
    }

    .reviews-scroll {
        max-height: none;
        overflow-y: visible;
    }

    .section {
        padding: 20px 16px;
    }

    .review-card {
        padding: 16px;
    }

    .response-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .response-actions button {
        width: 100%;
    }

    .response-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .response-buttons .btn-response {
        width: 100%;
    }
}

@media (max-width: 700px) {

    .login-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .login-left {
        padding: 32px 24px;
        box-sizing: border-box;
    }

    .login-right {
        width: 100%;
        box-sizing: border-box;
    }
    .login-info {
        display: none;
    }

    .login-logo {
    width: 72px;
    height: 72px;
    font-size: 34px;
    margin-bottom: 18px;
    }

    .login-brand h1 {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .login-brand p {
        font-size: 17px;
    }
}