/* Base reset */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
:focus { outline: none !important; box-shadow: none !important; }

:root {
    --bg: #f7f8fb;
    --text: #101218;
    --muted: #475569;
    --brand: RoyalBlue;
    --header-bg: #0f1115;
    --header-border: #1b1f2a;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --separator: #d1d5db;
    --space-section: 48px;
    --space-section-x: 28px;
    --space-card-gap: 20px;
    --space-card-pad-y: 20px;
    --space-card-pad-x: 22px;
    --header-h: 64px;
}

body { font-family: ui-sans-serif, roboto, Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif; color: var(--text); background: var(--bg); }

/* Header full-width, dark area only here (only in MainLayout) */
.top-row { position: sticky; top: 0; z-index: 50; display:flex; align-items:center; justify-content:space-between; gap: 12px; min-height: var(--header-h); padding: 20px 32px; background: var(--header-bg); border-bottom: 1px solid var(--header-border); }
.top-row .brand img { height: 22px; display:block; }
.top-row .top-nav { display:flex; align-items:center; gap: 8px; }
/* Force link styles in header to avoid UA visited purple and underline */
.top-row .top-nav a:link,
.top-row .top-nav a:visited {
  color: #e6efff !important;
  text-decoration: none !important;
}
.top-row .top-nav a:hover,
.top-row .top-nav a:active,
.top-row .top-nav a:focus-visible {
  color: #ffffff !important;
  background: #151a24;
  text-decoration: none !important;
}
    .top-row .top-nav .btn-menu {
        background: #475569;
        color: #ffffff !important;
        border: 0;
        box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset;
        padding: .5rem .8rem .4rem .8rem;
        border-radius: .45rem;
        white-space: nowrap;
        font-weight: 500;
        font-size: 1.3rem;
        margin-left: 40px;
    }
        .top-row .top-nav .btn-menu:hover {
            background-color: var(--brand);
        }

/* Main area */
.main { background: transparent; }
.content { padding: 32px 24px; }

/* Client area layout */
.client-area { display:flex; }
/* Fixed sidebar that covers full viewport height (top to bottom) */
.client-nav { width: 260px; background: #0f1115; color: #e5e7eb; border-right: 1px solid var(--header-border); padding: 16px 12px; position: fixed; top: 0; left: 0; bottom: 0; height: 100vh; overflow-y: auto; z-index: 60; }
.client-brand { display:flex; align-items:center; justify-content:center; padding: 8px 0 16px; border-bottom: 1px solid #1f2937; margin-bottom: 8px; }
.client-brand img { height: 26px; }
.client-nav nav { display:flex; flex-direction:column; gap: 4px; margin-top: 8px; }
/* Support both anchors and div.menu-item for nav items */
.client-nav nav a,
.client-nav nav .menu-item { color: #e5e7eb; text-decoration:none; padding: .55rem .6rem; border-radius: .4rem; cursor: pointer; user-select: none; }
.client-nav nav a:hover,
.client-nav nav .menu-item:hover { background: #151a24; }
.client-nav nav a.active,
.client-nav nav .menu-item.active { background: #111827; color: #fff; }
/* Content fills remaining width and scrolls independently */
.client-content { flex:1; padding: 24px; margin-left: 260px; height: calc(100vh); overflow: auto; }
/* Switch-style checkboxes inside client content */
.client-content input[type="checkbox"] {
  appearance: none;
  width: 32px; height: 18px;
  background: #e5e7eb; border-radius: 9999px; position: relative; cursor: pointer; outline: none; border: 1px solid #cbd5e1;
  transition: background .18s ease, border-color .18s ease;
  vertical-align: middle; margin-right: .5rem; display: inline-block;
}
.client-content input[type="checkbox"]::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .18s ease;
}
.client-content input[type="checkbox"]:checked { background: var(--brand); border-color: var(--brand); }
.client-content input[type="checkbox"]:checked::after { transform: translateX(14px); }
.client-content input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px rgba(85,98,234,.25); }

/* Generic inputs (for login) */
.input { border:1px solid var(--card-border); border-radius:8px; padding:.6rem .7rem; background:#fff; color:var(--text); }
.input:focus { outline: 2px solid rgba(79,70,229,.3); }

/* Hero and cards in light surface */
.hero { background: linear-gradient(180deg, #ffffff, #f7f8fb); border-bottom: 1px solid #e5e7eb; padding: 56px 24px 40px; display: grid; gap: 16px; }
.hero-title { font-size: 28px; font-weight: 800; color: var(--text); margin: 0 0 4px; }
.hero ul { list-style: none; padding: 0; margin: 0; }
.hero-subtitle { font-size: 1.0625rem; color: var(--muted); margin: 4px 0; }
.hero-cta { display: flex; gap: .75rem; margin-top: 12px; }

/* Sections and cards — restored comfy spacing */
section {
    padding: var(--space-section) var(--space-section-x);
    border-bottom: 1px solid #e5e7eb;
    border-radius: 10px;
    margin: var(--space-card-pad-y) 0;
}

section ul { padding: 0px 20px;}

    section li {
        color: var(--muted);
        padding: 2px 0px;
        font-size: 17px;
    }

.section-alt { background: #ffffff; }

#mainPageFeatures .card {
    padding-left:40px;
    padding-right:40px;
}

.feature-body {
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-card-gap);
}
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: var(--space-card-pad-y) var(--space-card-pad-x); transition: transform .2s ease, box-shadow .2s ease; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card-media { display:flex; align-items:center; justify-content:center; margin-bottom: 8px; }
.card-media img { max-width: 100%; height: 90px; object-fit: contain; filter: none; }


/* Buttons */
.btn { appearance: none; border: 0; background: var(--brand); color: white; padding: .5rem 1rem; border-radius: .4rem; cursor: pointer; text-decoration: none; display: inline-block;
       font-size:0.95rem; font-weight:500;
}
.btn:hover { filter: brightness(1.05); }
.btn.secondary { background: transparent; border: 1px solid #cbd5e1; color: var(--muted); }
.btn.secondary:hover { background: #e5e7eb; }

/* FAQ */
.faq details { padding:.5rem 1rem; margin:1rem 0rem; }
    .faq details:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0,0,0,.08);
    }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq .faq-body { margin-top: .5rem; color: var(--muted); }

.footer { padding: 2rem; color: var(--muted); text-align: center; }
.footer a { color: var(--brand); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

 a {
    text-decoration:none;
    color:royalblue;
}

.li {
    padding:5px 0px;
}

/* Remove all focus styles per spec */
:focus-visible { outline: none; }
input:focus, button:focus, a:focus { outline: none !important; box-shadow: none !important; }

/* Responsive */
@media (max-width: 900px) {
  .top-row .top-nav { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
  .cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .client-area { flex-direction: column; }
  .client-nav { position: static; width: 100%; height: auto; z-index: auto; }
  .client-content { margin-left: 0; height: auto; overflow: visible; }
}

.top-row .top-nav a {
    color: white;
    margin-left: 20px;
    padding-left: 10px;
    padding-right: 10px;
}
.top-row .top-nav a:hover {
    background-color: transparent;
}
.top-row .top-nav a:visited {
    color: whitesmoke;
}

.auth-page { max-width: 520px; margin: 60px auto; padding: 0 16px; }
.auth-container { display:flex; justify-content:center; }
.auth-card { width:100%; max-width: 520px; margin: 12px auto; }


.center-logo { display: flex; justify-content: center; margin: 20px; align-items:center; }

.menu-item {
    display: flex;
    padding:6px 10px 8px 10px;
    border-radius:6px;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
    .menu-item.disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

.menu-item:hover {
    background-color: #151a24;
}
.menu-item:active {
    background-color: #111827;
}

.fake-a {
    color: royalblue;
    text-decoration: none;
    padding: .55rem .6rem;
    border-radius: .4rem;
    cursor: pointer;
    user-select: none;
}

.shadow {
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.flex-fill {
    flex: 1;
}

/* Budget table: restore production look without affecting other tables */
.table.budget-table { width: 100%; border-collapse: collapse; }
.table.budget-table th, .table.budget-table td { padding: 12px 16px; border-bottom: 1px solid var(--separator); }
.table.budget-table thead th { text-align: left; border-bottom: 2px solid var(--separator); }
.table.budget-table .total-row td { font-weight:700; border-top: 2px solid var(--separator); border-bottom: 0; }
/* Selected (WantIt) row text weight to match production */
.table.budget-table tr.want-it td:nth-child(3), /* Concepto */
.table.budget-table tr.want-it td:nth-child(5)  /* Precio */
{ font-weight: 600; }