/* =========================================================
   Admin panel — hoja de estilos única
   Sustituye a includes/style.php y a los <style> de cada página.
   ========================================================= */

/* ---------- 1. Variables de diseño ---------- */
:root {
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --text: #111827;
    --text-2: #374151;
    --muted: #6b7280;

    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-soft: #eef2ff;

    --success: #16a34a;
    --success-soft: #f0fdf4;
    --warning: #d97706;
    --warning-soft: #fffbeb;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --info: #2563eb;
    --info-soft: #eff6ff;

    --sidebar-bg: #0f172a;
    --sidebar-text: #cbd5e1;
    --sidebar-muted: #64748b;
    --sidebar-hover: rgba(255, 255, 255, .06);
    --sidebar-active: rgba(99, 102, 241, .18);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 4px 16px rgba(15, 23, 42, .08);

    --sidebar-w: 248px;
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
}

h1, h2, h3 { margin: 0; line-height: 1.25; color: var(--text); }
h1 { font-size: 24px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 18px; font-weight: 600; margin: 28px 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
p  { margin: 0 0 8px; }

a { color: var(--primary); text-decoration: none; cursor: pointer; }
a:hover { color: var(--primary-hover); text-decoration: underline; }
h1 a { font-size: 18px; text-decoration: none !important; }

img { max-width: 100%; }

/* ---------- 3. Layout ---------- */
.content-wrapper { display: flex; min-height: 100vh; }

.body-content {
    flex: 1;
    min-width: 0;
    padding: 32px 36px 64px;
}

/* Barra lateral */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 20px 14px 32px;
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 18px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.sidebar-brand img { height: 28px; width: auto; }

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    margin-bottom: 14px;
    border-radius: var(--radius);
    background: var(--sidebar-hover);
    color: #fff;
    font-weight: 600;
}
.sidebar-user:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .1); }
.sidebar-user .avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: var(--primary);
    font-size: 13px;
    text-transform: uppercase;
}

.nav-title {
    margin: 18px 10px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--sidebar-muted);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    font-weight: 500;
}
.nav-item .ico { width: 20px; text-align: center; }
.nav-item:hover { background: var(--sidebar-hover); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--sidebar-active); color: #fff; box-shadow: inset 3px 0 0 #818cf8; }

/* Barra superior (solo móvil) */
.topbar { display: none; }
.sidebar-backdrop { display: none; }

/* ---------- 4. Formularios ---------- */
label {
    display: block;
    margin: 14px 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
}

input:not([type]),
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="date"],
input[type="search"],
select,
textarea {
    font: inherit;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    transition: border-color .15s, box-shadow .15s;
}

input:not([type]),
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea { width: 100%; }

input:not([type]), input[type="text"], input[type="password"], input[type="number"],
input[type="email"], input[type="url"], input[type="date"], input[type="search"], select { min-height: 40px; }
input[type="number"] { width: 100%; max-width: 220px; }
select { min-width: 140px; max-width: 100%; cursor: pointer; }

textarea {
    display: block;
    min-height: 180px;
    resize: vertical;
    line-height: 1.55;
}
textarea.code, .error-text {
    font-family: var(--mono);
    font-size: 12.5px;
    min-height: 360px;
    background: var(--surface-2);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .15);
}

input[type="file"] { font: inherit; }

.field { display: flex; flex-direction: column; }
.field label { margin-top: 0; }

/* Formulario en rejilla (añadir pendientes, correcciones…) */
.inline-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    align-items: end;
    padding: 18px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

/* Buscador sobre las tablas */
.searchbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.searchbar input[type="text"],
.searchbar input[type="search"] { flex: 1 1 260px; width: auto; max-width: 480px; }

/* ---------- 5. Botones ---------- */
button,
.button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 9px 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s, filter .15s;
}
button:hover,
.button:hover,
input[type="submit"]:hover { background: var(--primary-hover); color: #fff; text-decoration: none; }
button:focus-visible,
.button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
button:disabled { opacity: .55; cursor: not-allowed; }

.delete-button,
.deletebutton,
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.delete-button:hover,
.deletebutton:hover,
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-secondary,
.country_image_button { background: var(--surface); color: var(--text-2); border-color: var(--border-strong); }
.btn-secondary:hover,
.country_image_button:hover { background: var(--surface-2); color: var(--text); }

/* Separación de botones que van tras un campo o una tabla */
.form_wrapper > button, .form_wrapper > .button,
.body-content > button, .body-content > .button,
.settings-group form > .button, .settings-group form > button,
textarea + button, textarea + .button { margin-top: 14px; }
.body-content > input + button, .body-content > input + .button { margin-top: 10px; }

/* Botón de icono (editar, borrar dentro de tablas) */
.iconbutton,
.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: inherit;
    font-size: 15px;
}
.iconbutton:hover,
.icon-btn:hover { background: var(--primary-soft); border-color: #c7d2fe; text-decoration: none; }
.icon-btn.danger:hover { background: var(--danger-soft); border-color: #fecaca; }

/* ---------- 6. Tarjetas y secciones ---------- */
.container,
.form_wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}
.form_wrapper { max-width: 960px; }
.form_wrapper > select { display: block; }
.form_wrapper.narrow { max-width: 420px; }
.form_wrapper > h2:first-child,
.form_wrapper > label:first-child { margin-top: 0; }

/* Cabecera plegable */
.toggle-hide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    margin: 8px 0 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    user-select: none;
}
.toggle-hide:hover { border-color: var(--border-strong); }
.toggle-hide h1 { font-size: 17px; margin: 0; }
.toggle-hide p { margin: 0; }

.arrow {
    display: inline-block;
    color: var(--muted);
    transition: transform .2s ease;
    transform: rotate(90deg);            /* abierto */
}
.arrow.collapsed { transform: rotate(0deg); }

/* Pestañas */
.navbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    margin-bottom: 18px;
    background: #e9ecf3;
    border-radius: var(--radius);
    width: fit-content;
    max-width: 100%;
}
.navbar a {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
}
.navbar a:hover { color: var(--text); text-decoration: none; }
.navbar a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.settings-group { display: none; width: 100%; }
.settings-group.active { display: block; }

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.section-head h2 { margin: 0; }

/* ---------- 7. Tablas ---------- */
.table-container {
    width: 100%;
    max-height: 75vh;
    overflow: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.domains-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.domains-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 12px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}
.domains-table th.center { text-align: center; }
.domains-table tbody td {
    padding: 7px 12px;
    border-bottom: 1px solid #f1f3f7;
    color: var(--text-2);
    vertical-align: middle;
}
.domains-table tbody tr:last-child td { border-bottom: none; }
.domains-table tbody tr:hover td { background: #f9fafb; }
.domains-table td a { font-weight: 500; }

.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--text); }
th[data-dir="asc"]::after  { content: " ▲"; font-size: 9px; }
th[data-dir="desc"]::after { content: " ▼"; font-size: 9px; }

/* Barra de filtro que añade admin.js encima de cada tabla */
.table-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
}
.table-tools input { max-width: 320px; }
.table-tools .count { color: var(--muted); font-size: 12.5px; white-space: nowrap; }

/* Tablas sin clase (idiomas, traducciones) */
table:not(.domains-table) {
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 13px;
}
table:not(.domains-table) th,
table:not(.domains-table) td {
    border: 1px solid var(--border);
    padding: 8px 10px;
}
table:not(.domains-table) th { background: var(--surface-2); color: var(--muted); font-weight: 600; }
table:not(.domains-table) td > div { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
table:not(.domains-table) td p { margin: 0; }
table:not(.domains-table) input { min-width: 140px; padding: 6px 8px; }
table:not(.domains-table) textarea { min-width: 180px; min-height: 90px; }

.scroll-x { width: 100%; overflow-x: auto; }

/* ---------- 8. Estados y avisos ---------- */
.error-result { color: var(--danger); font-weight: 500; margin: 8px 0; }
.error-result:empty { display: none; }

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    max-width: 420px;
    padding: 12px 18px;
    border-radius: var(--radius);
    background: var(--danger);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    animation: slideIn .25s ease-out;
}
.toast.success { background: var(--success); }
.toast.info { background: var(--text); }
@keyframes slideIn { from { transform: translateY(20px); opacity: 0; } }

.spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #e0e7ff;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row { justify-content: center; padding: 12px 0; width: 100%; }
.loading-row .spinner { display: block; margin: 0 auto; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}
.chip { background: #f3f4f6; color: var(--text-2); padding: 3px 9px; border-radius: 999px; font-size: 12px; }

.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    background: var(--danger-soft);
    color: var(--danger);
}
a.alert:hover { color: var(--danger); text-decoration: none; border-color: var(--danger); }

.empty-state { text-align: center; color: var(--muted); padding: 48px 0; font-size: 16px; }

/* ---------- 9. Utilidades ---------- */
.center { text-align: center; }
.bold { font-weight: 700; }
.muted { color: var(--muted); }
.green, .text-success { color: var(--success); }
.text-info { color: var(--info); }
.text-danger { color: var(--danger); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row > input[type="text"] { flex: 1 1 240px; width: auto; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; width: 100%; }
.mt { margin-top: 16px; }
.clickable { cursor: pointer; }

/* ---------- 10. Componentes de páginas ---------- */

/* Dashboard */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.stat {
    display: block;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: inherit;
}
a.stat:hover { border-color: #c7d2fe; text-decoration: none; box-shadow: var(--shadow); }
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 4px; color: var(--text); }
.stat.warn .value { color: var(--warning); }
.stat.alert .value { color: var(--danger); }

.category_count {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.category_count .chip { font-size: 13px; padding: 5px 12px; }
.category_count .chip.bad { background: var(--danger-soft); color: var(--danger); }

/* Login */
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 16px;
}
.login-card {
    width: 100%;
    max-width: 380px;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.login-card h1 { justify-content: center; margin-bottom: 8px; }
.login-card .header-logo { height: 36px; }
.login-card button { width: 100%; margin-top: 20px; }

/* Edición de hotel / tour / ciudad */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    width: 100%;
}
.image-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius-sm); }

.facility-icon { width: 40px; height: 40px; object-fit: contain; display: block; margin: 0 auto 6px; }

.facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.facility {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    text-transform: capitalize;
}

.room_info { padding: 4px 0; flex: 1; min-width: 0; }
.hotel_room { display: flex; gap: 18px; align-items: flex-start; }
.hotel_room .room-img { width: 30%; max-width: 320px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.beds { display: flex; flex-wrap: wrap; gap: 6px 14px; }

.thumb-wide   { width: 192px; height: 108px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.thumb-square { width: 160px; height: 160px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.thumbs { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }

.id_selector { display: flex; align-items: center; gap: 12px; font-weight: 600; margin-bottom: 8px; }
.id_selector p { margin: 0; color: var(--muted); }

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}
.gallery-item { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery-item .gallery-img { display: block; width: 100%; height: 130px; object-fit: cover; }
.gallery-item p { padding: 8px 10px; margin: 0; font-size: 12.5px; color: var(--muted); }
.gallery-item .gallery-del {
    position: absolute; top: 8px; right: 8px;
    width: 30px; height: 30px; padding: 5px;
    background: rgba(255, 255, 255, .9);
    border-radius: 50%;
    cursor: pointer;
}
.addgal { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.addgal input { flex: 1 1 220px; width: auto; }

/* Analítica */
.selector {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #e9ecf3;
    border-radius: var(--radius);
    margin-bottom: 18px;
}
.selector_option { padding: 7px 14px; border-radius: var(--radius-sm); color: var(--muted); font-weight: 600; font-size: 13px; }
.selector_option:hover { color: var(--text); text-decoration: none; }
.selector_option.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.filters input[type="text"] { width: 220px; }

.chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 20px; }

.an_holder { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.an_display { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.an_display_inner { display: flex; flex-direction: column; gap: 6px; }
.an_chart { display: grid; grid-template-columns: minmax(0, 40%) 1fr; gap: 10px; align-items: center; }
.an_chart > div:first-child, .an_chart_name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an_label { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; }
.an_chart_name { font-weight: 500; font-size: 13px; color: var(--text-2); }
.an_chart_fill { position: relative; height: 26px; background: #eef0f5; border-radius: var(--radius-sm); overflow: hidden; }
.an_chart_filled { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #818cf8, var(--primary)); border-radius: var(--radius-sm); }
.an_chart_num, .an_chart_percent { position: absolute; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; }
.an_chart_num { left: 8px; color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, .35); }
.an_chart_percent { right: 8px; color: var(--text-2); }

/* Reviews */
.rv-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.rv-header h1 { margin: 0; }
#reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.review {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 18px 20px; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 12px;
}
.review:hover { box-shadow: var(--shadow); }
.review[hidden] { display: none; }
.rv-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rv-hotel { font-weight: 700; font-size: 16px; margin: 0; }
.rv-slug { font-size: 12px; color: #9ca3af; }
.rv-rating { min-width: 46px; text-align: center; font-weight: 700; font-size: 18px; padding: 6px 10px; border-radius: var(--radius); color: #fff; background: var(--muted); }
.rv-rating.good { background: var(--success); }
.rv-rating.mid  { background: #f59e0b; }
.rv-rating.bad  { background: var(--danger); }
.rv-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-user { font-size: 13px; color: #4b5563; }
.rv-block { font-size: 14px; line-height: 1.5; color: #1f2937; padding: 10px 12px; border-radius: 8px; }
.rv-block strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.rv-good { background: var(--success-soft); border-left: 3px solid var(--success); }
.rv-good strong { color: #15803d; }
.rv-bad { background: var(--danger-soft); border-left: 3px solid var(--danger); }
.rv-bad strong { color: #b91c1c; }
.rv-msg { background: #f9fafb; border-left: 3px solid #9ca3af; }
.rv-msg strong { color: #4b5563; }
.rv-header .rv-translate-all { margin-left: auto; }
.rv-text { white-space: pre-line; }
.rv-translate {
    margin-left: auto;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    background: var(--surface);
    color: var(--primary);
    border: 1px solid #c7d2fe;
    border-radius: 999px;
}
.rv-translate:hover { background: var(--primary-soft); color: var(--primary-hover); }
.review.is-translated .rv-block { border-left-style: dashed; }
.rv-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.rv-actions button { flex: 1; }
.btn-publish { background: var(--success); }
.btn-publish:hover { background: #15803d; }
.btn-delete { background: var(--danger-soft); color: #b91c1c; }
.btn-delete:hover { background: var(--danger); color: #fff; }

/* Correo */
.mails_info { display: flex; gap: 16px; align-items: center; color: var(--muted); }
.email-form { display: flex; gap: 8px; margin-bottom: 16px; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.page-button {
    min-width: 36px; padding: 6px 10px; text-align: center;
    border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border);
    color: var(--text-2); font-weight: 600;
}
.page-button:hover { border-color: var(--primary); text-decoration: none; }
.page-button.current-page { background: var(--primary); border-color: var(--primary); color: #fff; }

.mail-container {
    display: flex;
    min-height: 520px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.email-list { width: 340px; flex-shrink: 0; border-right: 1px solid var(--border); overflow-y: auto; max-height: 75vh; }
.mail-preview {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    color: var(--text-2);
    cursor: pointer;
}
.mail-preview:hover { background: var(--surface-2); text-decoration: none; }
.mail-preview p { margin: 2px 0; font-size: 13px; }
.mail-preview.is-new     { border-left-color: var(--primary); background: var(--primary-soft); font-weight: 600; }
.mail-preview.is-read    { border-left-color: var(--border-strong); }
.mail-preview.is-replied { border-left-color: var(--success); }
.mail-preview.is-spam    { border-left-color: var(--danger); opacity: .6; }
.subject { color: var(--muted); }
.current-mail { flex: 1; min-width: 0; padding: 24px; }
.current-mail span { display: flex; align-items: center; gap: 8px; }
.mail-topper { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--muted); }
.mail-topper p { margin: 0; }
.mail-sender-info { display: flex; gap: 20px; flex-wrap: wrap; margin: 10px 0; font-weight: 600; }
.mail-sender-info p { margin: 0; }
.mail-label { color: var(--muted); font-weight: 600; font-size: 13px; margin-top: 14px; }
.message { white-space: pre-wrap; background: var(--surface-2); padding: 12px 14px; border-radius: var(--radius); }
.respuesta-holder { display: flex; flex-direction: column; gap: 10px; }
#respuesta-msg { min-height: 220px; }

/* Resultados de subida de report / sitemaps */
.report, #results { margin-top: 12px; }

/* ---------- 11. Responsive ---------- */
@media (max-width: 900px) {
    .topbar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        inset: 0 0 auto 0;
        height: 56px;
        padding: 0 14px;
        z-index: 40;
        background: var(--sidebar-bg);
        color: #fff;
        font-weight: 700;
    }
    .menu-toggle { background: transparent; font-size: 22px; padding: 4px 8px; }
    .menu-toggle:hover { background: var(--sidebar-hover); }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform .2s ease;
    }
    body.menu-open .sidebar { transform: none; }
    body.menu-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(15, 23, 42, .5);
    }

    .body-content { padding: 76px 16px 48px; }
    .login-page .body-content { padding: 0; }

    .mail-container { flex-direction: column; }
    .email-list { width: 100%; max-height: 300px; border-right: none; border-bottom: 1px solid var(--border); }
    .domains-table td { white-space: nowrap; }
    .hotel_room { flex-direction: column; }
    .hotel_room .room-img { width: 100%; max-width: none; }
    .an_holder { grid-template-columns: 1fr; }
    #reviews { grid-template-columns: 1fr; }
}
