:root {
  /* Sistema visual estratégico Carlos Sanchez · v2.5.1 */
  --brand-primary: #0E3A56;
  --brand-secondary: #155E75;
  --primary-900: var(--brand-primary);
  --primary-700: var(--brand-secondary);
  --action: #2563EB;
  --action-600: var(--action);
  --action-hover: #1D4ED8;
  --tech: #0EA5A8;
  --tech-light: #CCFBF1;
  --premium: #D9A441;
  --premium-dark: #8A5E0A;

  --background: #F8FAFC;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --border: #CBD5E1;
  --text-primary: #111827;
  --text-secondary: #64748B;

  --success: #15803D;
  --warning: #D97706;
  --danger: #B91C1C;
  --info: #0284C7;
  --analysis: #7C3AED;

  /* Alias heredados para mantener compatibilidad con todos los módulos */
  --ink: var(--brand-primary);
  --ink-2: #173F5F;
  --text: #334155;
  --muted: var(--text-secondary);
  --line: var(--border);
  --paper: var(--surface);
  --soft: var(--surface-alt);
  --calm: #EAF1F4;
  --accent: var(--brand-secondary);
  --accent-dark: var(--brand-primary);
  --accent-pale: #E7F4F6;

  --radius: 18px;
  --shadow: 0 18px 45px rgba(14, 58, 86, 0.10);
  --shadow-soft: 0 10px 28px rgba(14, 58, 86, 0.07);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { outline-offset: 3px; }
.container { width: min(calc(100% - 36px), var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -10000px; top: 10px; z-index: 9999; background: white; padding: 10px 14px; }
.skip-link:focus { left: 10px; }

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(223, 229, 236, 0.9);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 0.96rem; font-weight: 720; letter-spacing: 0.01em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.8rem;
  font-weight: 750;
}
.main-menu { display: flex; align-items: center; gap: 22px; font-size: 0.91rem; font-weight: 620; }
.main-menu > a:not(.button), .nav-link-button { color: #46556a; }
.main-menu > a:hover, .nav-link-button:hover { color: var(--accent); }
.inline-form { display: inline; margin: 0; }
.nav-link-button { border: 0; padding: 0; background: transparent; cursor: pointer; }
.menu-button {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  padding: 7px 11px;
  font-weight: 700;
  cursor: pointer;
}
.menu-icon { display: grid; gap: 3px; width: 17px; }
.menu-icon span { display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 11px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { background: white; color: var(--ink); border-color: #cbd5df; }
.button-secondary:hover { color: white; }
.button-light { background: white; border-color: white; color: var(--ink); }
.button-light:hover { background: #f3f6f8; color: var(--ink); }
.button-small { min-height: 38px; padding-inline: 15px; font-size: 0.86rem; }
.button-full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero { padding: 105px 0 94px; background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr); align-items: center; gap: 82px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.light { color: #cddde6; }
h1, h2, h3 { color: var(--ink); line-height: 1.14; letter-spacing: -.025em; }
h1 { margin: 0; font-size: clamp(2.55rem, 5.2vw, 4.45rem); font-weight: 710; max-width: 900px; }
h2 { margin: 0; font-size: clamp(1.95rem, 3.5vw, 3.05rem); }
h3 { margin: 0; font-size: 1.16rem; }
.hero-copy { max-width: 760px; margin: 25px 0 0; color: #536277; font-size: 1.12rem; }
.microcopy { margin: 17px 0 0; color: var(--muted); font-size: .84rem; }
.hero-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.card-kicker { margin: 0 0 10px; color: var(--accent); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.hero-card h2 { font-size: 1.7rem; }
.plain-list { list-style: none; margin: 24px 0 0; padding: 0; }
.plain-list li { padding: 13px 0; border-top: 1px solid var(--line); color: #46556a; }
.plain-list li::before { content: "—"; margin-right: 10px; color: var(--accent); }

.section { padding: 94px 0; scroll-margin-top: 76px; }
.section-soft { background: var(--soft); }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading.compact { margin: 0; }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 1.03rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.service-card > span { color: #8a98aa; font-size: .75rem; font-weight: 750; }
.service-card h3 { margin-top: 27px; font-size: 1.28rem; }
.service-card p { margin: 14px 0 0; color: var(--muted); }
.solutions-section { background: white; }
.solution-card { display: grid; grid-template-columns: 1.25fr .75fr; gap: 54px; align-items: center; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.solution-copy { max-width: 720px; }
.solution-label { margin: 0 0 12px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.solution-copy h3 { font-size: clamp(2rem, 3.8vw, 3.15rem); }
.solution-copy > p:not(.solution-label) { margin: 17px 0 0; color: var(--muted); font-size: 1.03rem; }
.solution-features { margin: 24px 0 28px; padding: 0; list-style: none; }
.solution-features li { padding: 10px 0; border-top: 1px solid #d7dee7; color: #46556a; }
.solution-features li::before { content: "—"; margin-right: 10px; color: var(--accent); }
.solution-visual { display: flex; flex-direction: column; justify-content: center; min-height: 290px; padding: 34px; border-radius: 16px; background: var(--ink); color: white; }
.solution-name { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 750; line-height: .9; letter-spacing: -.055em; }
.solution-type { margin-top: 10px; color: #a9c3d1; font-size: 1.2rem; font-weight: 750; letter-spacing: .18em; }
.solution-visual small { margin-top: auto; color: #cdd8df; font-size: .8rem; letter-spacing: .08em; }
.portal-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: start; }
.feature-list { border-top: 1px solid #d7dee7; }
.feature-list article { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid #d7dee7; }
.feature-list article > strong { color: var(--accent); font-size: .8rem; }
.feature-list p { margin: 7px 0 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; }
.steps li { padding: 25px; border-top: 2px solid var(--ink); background: var(--soft); }
.steps span { color: var(--accent); font-size: .78rem; font-weight: 800; }
.steps h3 { margin-top: 21px; }
.steps p { margin: 9px 0 0; color: var(--muted); }
.cta-section { padding: 70px 0; background: var(--ink); }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.cta-inner h2 { max-width: 790px; color: white; font-size: clamp(2rem, 3.8vw, 3.35rem); }

.auth-section { min-height: calc(100vh - 136px); padding: 84px 0; background: var(--soft); }
.auth-section.narrow { display: flex; align-items: center; }
.auth-grid { display: grid; grid-template-columns: .86fr 1.14fr; gap: 76px; align-items: start; }
.auth-copy { position: sticky; top: 110px; padding-top: 20px; }
.auth-copy h1 { font-size: clamp(2.35rem, 4.6vw, 4rem); }
.auth-copy > p:last-of-type { color: var(--muted); font-size: 1.03rem; }
.privacy-note { margin-top: 30px; padding: 20px; border-left: 3px solid var(--accent); background: var(--accent-pale); }
.privacy-note p { margin: 5px 0 0; color: #526576; font-size: .9rem; }
.form-card, .panel, .result-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 35px rgba(23,32,51,.055); }
.form-card { padding: 34px; }
.form-card label, .profile-form label, .upload-box label, .panel > form:not(.inline-form) label { display: block; margin-bottom: 17px; color: var(--ink-2); font-size: .88rem; font-weight: 680; }
input, select, textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cbd5df;
  border-radius: 10px;
  background: white;
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
input, select { height: 46px; padding: 0 12px; }
input[type="file"] { height: auto; padding: 10px; background: var(--soft); }
textarea { min-height: 125px; padding: 11px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49,93,120,.12); }
label small { display: block; margin-top: 5px; color: var(--muted); font-weight: 500; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.check-field { display: flex !important; gap: 11px; align-items: flex-start; font-weight: 500 !important; }
.check-field input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; }
.check-field a, .form-footer a, .text-link { color: var(--accent); font-weight: 720; }
.form-footer { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .89rem; }
.form-errors { margin-bottom: 20px; padding: 14px 16px; border: 1px solid #ecc8c8; border-radius: 10px; background: #fff4f4; color: #823939; font-size: .9rem; }
.form-errors ul { margin: 6px 0 0; padding-left: 19px; }
.flash-wrap { position: relative; z-index: 5; }
.flash { margin-top: 16px; padding: 13px 16px; border-radius: 10px; font-size: .9rem; }
.flash-success { background: #eaf5ef; color: var(--success); }
.flash-error { background: #fff0f0; color: var(--danger); }
.flash-info { background: #edf3f7; color: var(--accent-dark); }

.dashboard-head { padding: 66px 0 48px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.dashboard-head h1 { font-size: clamp(2.2rem, 4.2vw, 3.7rem); }
.dashboard-head p:last-child { margin-bottom: 0; color: var(--muted); }
.dashboard-section { padding: 46px 0 86px; background: var(--soft); }
.dashboard-layout { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: start; }
.side-nav { position: sticky; top: 94px; display: flex; flex-direction: column; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.side-nav a { padding: 10px 11px; border-radius: 8px; color: #566579; font-size: .9rem; font-weight: 640; }
.side-nav a:hover { background: var(--soft); color: var(--ink); }
.dashboard-content { display: grid; gap: 22px; min-width: 0; }
.panel { padding: 29px; scroll-margin-top: 90px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.panel-heading h2 { font-size: 1.65rem; }
.panel > p { color: var(--muted); }
.status-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: #edf2f5; color: #506071; font-size: .7rem; font-weight: 800; letter-spacing: .05em; }
.status-approved { background: #e5f2e9; color: var(--success); }
.status-declined, .status-error, .status-voided { background: #faeaea; color: var(--danger); }
.status-pending { background: #f8f0dc; color: var(--warning); }
.subtle { color: var(--muted); font-size: .82rem; }
.upload-box { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; margin-bottom: 25px; padding: 20px; border: 1px dashed #bdc8d3; border-radius: 13px; background: var(--soft); }
.upload-box label { margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: #718096; text-align: left; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
td { padding: 15px 12px; border-bottom: 1px solid #e9edf2; vertical-align: middle; }
td strong { display: block; color: var(--ink-2); }
td small { display: block; margin-top: 3px; color: var(--muted); }
.table-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.table-actions form { margin: 0; }
.link-danger { border: 0; padding: 0; background: transparent; color: var(--danger); cursor: pointer; font-weight: 680; }
.empty { padding: 30px 12px; color: var(--muted); text-align: center; }
.technical-note { margin: 18px 0 0; padding: 13px 15px; border-radius: 10px; background: var(--calm); color: #526173; font-size: .85rem; }
.profile-form .button { margin-top: 4px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.admin-wide { grid-column: 1 / -1; }
.long-cell { min-width: 360px; max-width: 520px; }

.payment-review { display: grid; grid-template-columns: 1fr .75fr; gap: 62px; align-items: center; }
.payment-review h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
.payment-amount { margin: 25px 0; color: var(--ink); font-size: 2.2rem; font-weight: 760; }
.payment-amount small { font-size: .8rem; letter-spacing: .08em; }
.order-details { display: grid; gap: 0; margin: 25px 0; border-top: 1px solid var(--line); }
.order-details div { display: grid; grid-template-columns: 135px 1fr; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-details dt { color: var(--muted); font-size: .8rem; }
.order-details dd { margin: 0; color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.centered { display: block; margin-top: 17px; text-align: center; }
.result-card { max-width: 720px; padding: 40px; }
.legal-section { padding: 82px 0; }
.legal-copy { max-width: 820px; }
.legal-copy h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); }
.legal-copy h2 { margin-top: 38px; font-size: 1.5rem; }
.legal-copy p { color: #566579; }

.footer { padding: 30px 0; border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; color: var(--muted); font-size: .83rem; }
.footer-inner p { margin: 0; }
.footer-inner div { display: flex; gap: 8px; }

@media (max-width: 980px) {
  .hero-grid, .portal-grid, .auth-grid, .payment-review { grid-template-columns: 1fr; gap: 45px; }
  .hero-card { max-width: 650px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-card { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .auth-copy { position: static; }
  .upload-box { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; flex-direction: row; overflow-x: auto; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 68px; gap: 14px; }
  .menu-button { display: inline-flex; }
  .main-menu {
    position: fixed;
    inset: 68px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: var(--shadow);
  }
  .main-menu.open { display: flex; }
  .main-menu a, .nav-link-button {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: left;
  }
  .main-menu a:not(.button):hover,
  .nav-link-button:hover { background: var(--soft); }
  .main-menu .button {
    display: inline-flex;
    justify-content: center;
    margin-top: 5px;
    text-align: center;
  }
  body.menu-open { overflow: hidden; }
  .hero { padding: 76px 0 68px; }
  h1 { font-size: 2.55rem; }
  .section { padding: 70px 0; }
  .service-grid, .steps, .field-grid, .admin-grid { grid-template-columns: 1fr; }
  .solution-card { padding: 26px; }
  .solution-visual { min-height: 230px; }
  .admin-wide { grid-column: auto; }
  .cta-inner { grid-template-columns: 1fr; }
  .panel-heading { flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 26px), var(--container)); }
  .actions, .actions .button { width: 100%; }
  .form-card, .panel, .result-card { padding: 23px; }
  .hero-card { padding: 25px; }
  .side-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .table-actions { flex-direction: column; align-items: flex-start; }
  .order-details div { grid-template-columns: 1fr; gap: 4px; }
}


/* Solicitudes y pagos del portal */
.dashboard-head-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.dashboard-head-row > div { min-width: 0; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: white; font-size: .68rem; }
.payment-alert { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 25px; border: 1px solid #d9c79e; border-radius: 14px; background: #fffaf0; }
.payment-alert p { margin: 5px 0 0; color: #6f6249; font-size: .9rem; }
.button-payment { border-color: #315d78; background: #315d78; color: white; }
.button-payment:hover { border-color: #24485e; background: #24485e; }
.request-message { min-width: 310px; max-width: 560px; white-space: normal; }
.request-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.request-create-grid textarea { min-height: 190px; }
.status-nuevo { background: #e8f0f5; color: var(--accent-dark); }

@media (max-width: 760px) {
  .dashboard-head-row, .payment-alert { align-items: flex-start; flex-direction: column; }
  .dashboard-head-row .button, .payment-alert .button { width: 100%; }
  .request-form-actions, .request-form-actions .button { width: 100%; }
}

.version-label{font-size:.72rem;color:#7d8ca3;white-space:nowrap}

/* Gestión documental por solicitud */
.document-count { display: inline-flex; margin: 2px 5px 2px 0; padding: 4px 8px; border-radius: 999px; background: var(--soft); color: #526173; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.storage-error { color: var(--danger); }
.legacy-panel { border-style: dashed; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--accent); font-size: .88rem; font-weight: 700; }
.request-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.request-title-row > div { max-width: 850px; }
.request-detail-head h1 { font-size: clamp(2rem, 4vw, 3.45rem); }
.request-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 380px); gap: 26px; align-items: start; }
.request-summary { position: sticky; top: 92px; }
.request-documents { display: grid; gap: 22px; min-width: 0; }
.request-metadata { margin: 0 0 24px; }
.request-metadata > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.request-metadata dt { color: var(--muted); font-size: .72rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.request-metadata dd { margin: 4px 0 0; color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.request-metadata dd small { display: block; color: var(--muted); font-weight: 500; }
.folder-preview { display: grid; gap: 7px; margin: 22px 0; padding: 16px; border-radius: 12px; background: var(--ink); color: #dbe5eb; font-size: .78rem; }
.folder-preview strong { color: white; }
.folder-preview code { display: block; padding-bottom: 9px; border-bottom: 1px solid rgba(255,255,255,.12); color: #a9c3d1; white-space: normal; overflow-wrap: anywhere; }
.folder-preview span { padding-left: 8px; }
.document-panel { min-width: 0; }
.document-folder-label { display: inline-flex; padding: 5px 9px; border-radius: 999px; background: var(--accent-pale); color: var(--accent-dark); font-size: .72rem; font-weight: 750; }
.request-upload { grid-template-columns: minmax(200px, 1fr) minmax(200px, 1fr) auto; }
.storage-warning { border-color: #d9c79e; background: #fffaf0; }
.storage-warning p { margin-bottom: 0; color: #6f6249; }

@media (max-width: 980px) {
  .request-detail-layout { grid-template-columns: 1fr; }
  .request-summary { position: static; }
  .request-upload { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .request-title-row { flex-direction: column; }
}

/* Requerimientos, cotización y bloqueo de entregables */
.request-local-nav { display: grid; gap: 5px; margin: 18px 0 4px; }
.request-local-nav a { padding: 8px 10px; border-radius: 8px; color: #526173; font-size: .84rem; font-weight: 650; }
.request-local-nav a:hover { background: var(--soft); color: var(--ink); }
.panel-intro { margin-top: -5px; }
.requirements-form { display: grid; gap: 2px; }
.requirements-form textarea { min-height: 105px; }
.requirements-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.requirements-grid > div { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.requirements-grid dt { color: var(--muted); font-size: .72rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.requirements-grid dd { margin: 7px 0 0; color: var(--ink-2); font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-state { padding: 24px; border: 1px dashed #c6d0da; border-radius: 13px; }
.empty-state strong { color: var(--ink); }
.empty-state p { margin: 6px 0 0; color: var(--muted); }
.calm-state { background: var(--soft); }
.quote-form { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 14px; align-items: end; }
.quote-form label { margin: 0 !important; }
.request-payment-summary { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 12px; margin-bottom: 20px; }
.request-payment-summary > div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.request-payment-summary span { display: block; color: var(--muted); font-size: .72rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }
.request-payment-summary strong { display: block; margin-top: 6px; color: var(--ink); overflow-wrap: anywhere; }
.payment-approved-box { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px; border: 1px solid #b8d6c4; border-radius: 14px; background: #f1f8f3; }
.payment-approved-box strong { color: var(--success); }
.payment-approved-box p { margin: 4px 0 0; color: #526b5d; }
.payment-approved-box > span { color: var(--ink); font-size: 1.35rem; font-weight: 780; white-space: nowrap; }
.unlock-message { margin: 14px 0 0; color: var(--success); font-weight: 650; }
.download-lock-notice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-bottom: 22px; padding: 18px; border: 1px solid #d9c79e; border-radius: 13px; background: #fffaf0; }
.download-lock-notice > span { font-size: 1.35rem; }
.download-lock-notice strong { color: var(--warning); }
.download-lock-notice p { margin: 3px 0 0; color: #6f6249; font-size: .88rem; }
.locked-label { background: #f8f0dc; color: var(--warning); }
.unlocked-label { background: #e5f2e9; color: var(--success); }
.button-disabled { border-color: #d7dde4; background: #eef1f4; color: #7b8795; box-shadow: none; cursor: not-allowed; pointer-events: none; }
.request-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status-cotizado { background: #e8f0f5; color: var(--accent-dark); }

@media (max-width: 980px) {
  .quote-form, .request-payment-summary { grid-template-columns: 1fr; }
  .download-lock-notice { grid-template-columns: auto 1fr; }
  .download-lock-notice .button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 760px) {
  .requirements-grid { grid-template-columns: 1fr; }
  .payment-approved-box { align-items: flex-start; flex-direction: column; }
  .request-actions, .request-actions .button { width: 100%; }
}

/* Marca Carlos Sanchez en la solución propia */
.solution-visual-wrap { display: grid; gap: 14px; min-width: 0; }
.solution-procentra-logo { width: 150px; max-width: 45%; height: auto; justify-self: end; object-fit: contain; }

/* Periodos, recurrencia y pagos por ciclo · v1.7 */
.periods-panel { overflow: hidden; }
.period-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.period-card { display: grid; gap: 7px; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfd; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.period-card:hover { transform: translateY(-1px); border-color: #b8c8d3; box-shadow: 0 10px 24px rgba(23,32,51,.06); }
.period-card.active { border-color: var(--accent); background: var(--accent-pale); box-shadow: inset 0 0 0 1px rgba(49,93,120,.08); }
.period-card strong { color: var(--ink); overflow-wrap: anywhere; }
.period-card > small { color: var(--muted); }
.period-sequence { color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.period-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; color: var(--muted); font-size: .75rem; }
.admin-cycle-create { margin-top: 22px; padding: 17px; border: 1px dashed #bdc8d3; border-radius: 13px; background: var(--soft); }
.admin-cycle-create summary { color: var(--ink); font-weight: 720; cursor: pointer; }
.admin-cycle-create form { margin-top: 18px; }
.form-subsection { margin: 20px 0 26px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; }
.subsection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.subsection-heading strong { color: var(--ink); }
.subsection-heading span { color: var(--muted); font-size: .82rem; }
.three-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.period-context { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: -8px 0 22px; padding: 11px 14px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: .84rem; }
.period-quote-form { grid-template-columns: minmax(0, 1fr) 180px 180px auto; }
.status-active, .status-completed { background: #e5f2e9; color: var(--success); }
.status-overdue { background: #faeaea; color: var(--danger); }
.status-upcoming, .status-open { background: #edf2f5; color: #506071; }
.status-payment_pending, .status-payment-pending { background: #f8f0dc; color: var(--warning); }

@media (max-width: 1100px) {
  .period-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .period-quote-form { grid-template-columns: 1fr 1fr; }
  .period-quote-form .button { width: 100%; }
}
@media (max-width: 760px) {
  .period-grid, .three-fields, .check-row, .period-quote-form { grid-template-columns: 1fr; }
  .subsection-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .form-subsection { padding: 17px; }
}
.status-grace { background: #fff4dc; color: #8a6726; }

/* Confirmación de cotización y plazos hábiles · v1.7 */
.confirmation-alert { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 22px 25px; border: 1px solid #b9ccd7; border-radius: 14px; background: #f3f8fa; }
.confirmation-alert p { margin: 5px 0 0; color: #526576; font-size: .9rem; }
.confirmation-panel { scroll-margin-top: 84px; }
.confirmation-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.confirmation-summary > div { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.confirmation-summary span { display: block; color: var(--muted); font-size: .7rem; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.confirmation-summary strong { display: block; margin-top: 6px; color: var(--ink); overflow-wrap: anywhere; }
.quote-decision-card > p { color: var(--muted); }
.acceptance-form { display: grid; gap: 15px; margin-top: 20px; padding: 20px; border: 1px solid #bfd1dc; border-radius: 14px; background: #f6fafc; }
.acceptance-form label { margin: 0 !important; }
.acceptance-form .button { justify-self: start; }
.reject-quote { margin-top: 17px; padding: 15px 18px; border: 1px dashed #c8d1da; border-radius: 12px; background: #fbfcfd; }
.reject-quote summary { color: var(--muted); font-weight: 700; cursor: pointer; }
.reject-quote form { margin-top: 15px; }
.confirmation-approved, .confirmation-rejected { padding: 18px 20px; border-radius: 13px; }
.confirmation-approved { border: 1px solid #b8d6c4; background: #f1f8f3; }
.confirmation-approved strong { color: var(--success); }
.confirmation-rejected { border: 1px solid #e3c2c2; background: #fff5f5; }
.confirmation-rejected strong { color: var(--danger); }
.confirmation-approved p, .confirmation-rejected p { margin: 4px 0 0; color: var(--muted); }
.acceptance-pending { background: #f8f0dc; color: var(--warning); }
.acceptance-accepted, .acceptance-not_required { background: #e5f2e9; color: var(--success); }
.acceptance-rejected { background: #faeaea; color: var(--danger); }
.status-pendiente_confirmacion, .status-pendiente-confirmacion { background: #f8f0dc; color: var(--warning); }
.status-en_ejecucion, .status-en-ejecucion { background: #e8f0f5; color: var(--accent-dark); }
.status-ajuste_solicitado, .status-ajuste-solicitado { background: #faeaea; color: var(--danger); }

@media (max-width: 980px) {
  .confirmation-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .confirmation-alert { align-items: flex-start; flex-direction: column; }
  .confirmation-alert .button, .acceptance-form .button { width: 100%; }
  .confirmation-summary { grid-template-columns: 1fr; }
}

/* Comunicación, reuniones y archivo de solicitudes · v1.8 */
.communication-panel,
.meeting-panel { scroll-margin-top: 84px; }
.conversation-thread { display: grid; gap: 12px; margin: 22px 0; }
.message-card { max-width: 86%; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; }
.message-card p { margin: 9px 0 0; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.message-admin { justify-self: start; border-color: #b9ccd7; background: #f3f8fa; }
.message-client { justify-self: end; background: white; }
.message-initial { max-width: 100%; border-style: dashed; background: var(--soft); }
.message-meta { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-size: .75rem; }
.message-meta > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.message-role { color: var(--ink); font-weight: 760; }
.message-type { padding: 3px 7px; border-radius: 999px; background: white; color: var(--accent-dark); font-size: .66rem; font-weight: 760; letter-spacing: .04em; text-transform: uppercase; }
.message-form { display: grid; gap: 13px; padding-top: 20px; border-top: 1px solid var(--line); }
.message-form label { margin: 0 !important; }
.message-form textarea { min-height: 120px; }
.message-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.message-form-actions span { color: var(--muted); font-size: .8rem; }
.meeting-free-note { display: grid; grid-template-columns: 32px 1fr; gap: 13px; margin-bottom: 22px; padding: 17px; border: 1px solid #b9ccd7; border-radius: 13px; background: #f3f8fa; }
.meeting-free-note > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: white; font-weight: 800; }
.meeting-free-note p { margin: 4px 0 0; color: #526576; font-size: .88rem; }
.meeting-form { display: grid; gap: 3px; }
.meeting-client-view { display: grid; gap: 20px; }
.meeting-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.meeting-details > div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.meeting-details dt { color: var(--muted); font-size: .7rem; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.meeting-details dd { margin: 7px 0 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.teams-button { justify-self: start; background: #4b53bc; border-color: #4b53bc; }
.teams-button:hover { background: #3d449e; border-color: #3d449e; }
.teams-placeholder { padding: 18px; border: 1px dashed #bfc9d3; border-radius: 12px; background: var(--soft); }
.teams-placeholder p { margin: 5px 0 0; color: var(--muted); }
.meeting-not_scheduled { background: #edf2f5; color: #506071; }
.meeting-proposed { background: #f8f0dc; color: var(--warning); }
.meeting-scheduled { background: #e8f0f5; color: var(--accent-dark); }
.meeting-completed { background: #e5f2e9; color: var(--success); }
.meeting-cancelled { background: #faeaea; color: var(--danger); }
.archive-box { display: grid; gap: 10px; margin-top: 20px; padding: 16px; border: 1px dashed #c5ced7; border-radius: 12px; background: #fbfcfd; }
.archive-box p { margin: 0; color: var(--muted); font-size: .82rem; }
.archived-panel { border-style: dashed; }
.status-en_entendimiento,
.status-en-entendimiento { background: #e8f0f5; color: var(--accent-dark); }

@media (max-width: 760px) {
  .message-card { max-width: 100%; }
  .message-form-actions { align-items: stretch; flex-direction: column; }
  .message-form-actions .button,
  .teams-button { width: 100%; }
  .meeting-details { grid-template-columns: 1fr; }
}


/* Recuperación de contraseña */
.form-help { margin: -8px 0 18px; text-align: right; font-size: .9rem; }
.form-help a, .dev-reset-link a { color: var(--primary, #315f78); font-weight: 700; }
.required-mark { color: #9f3f3f; }
.form-success { margin-bottom: 18px; padding: 14px 16px; border: 1px solid #b9d9c5; border-radius: 12px; background: #f2faf5; color: #214b31; }
.form-success p { margin: 5px 0 0; }
.dev-reset-link { margin-top: 18px; padding: 14px 16px; border: 1px dashed #9db3c0; border-radius: 12px; background: #f7fafb; font-size: .88rem; }
.dev-reset-link p { margin: 6px 0; color: #5f6f78; }

/* Frontend desacoplado v2.0 */
.page-main { min-height: calc(100vh - 140px); }
.stack { display: grid; gap: 18px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats-grid .panel { display: grid; gap: 6px; }
.data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.data-grid > div { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.data-grid > div > span { color: var(--muted); }
.page-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:26px; }
.page-head h1 { margin:0; color:var(--ink); }
.page-head p { margin:6px 0 0; }
.two-column { display:grid; grid-template-columns: minmax(0,1fr) minmax(320px,.55fr); gap:24px; align-items:start; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.form-grid .full { grid-column:1/-1; }
label { display:grid; gap:7px; font-weight:650; color:var(--ink-2); }
input, select, textarea { width:100%; border:1px solid #cbd5df; border-radius:10px; padding:11px 12px; color:var(--ink); background:white; }
textarea { min-height:120px; resize:vertical; }
input:focus,select:focus,textarea:focus { border-color:var(--accent); box-shadow:0 0 0 3px rgba(49,93,120,.1); }
.table-wrap table { width:100%; border-collapse:collapse; }
.table-wrap th,.table-wrap td { padding:12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.table-wrap th { color:var(--ink); font-size:.86rem; }
.solution-procentra-logo { width:150px; max-width:32%; object-fit:contain; }
.hero-note { max-width:760px; color:var(--muted); }
@media (max-width:900px){ .stats-grid{grid-template-columns:repeat(2,1fr)} .two-column,.data-grid{grid-template-columns:1fr} }
@media (max-width:650px){ .form-grid,.stats-grid{grid-template-columns:1fr} .page-head{display:block} }

/* Formulario de radicación diagnóstica · v2.1 */
.registration-layout { grid-template-columns: .72fr 1.28fr; gap: 56px; }
.intake-form { min-width: 0; }
.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 30px; }
.stepper > span { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 9px 11px; border-radius: 9px; background: var(--soft); color: #8290a2; font-size: .76rem; font-weight: 760; }
.stepper > span.active { background: var(--accent-pale); color: var(--accent-dark); }
.stepper small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.form-step { animation: intakeFade .18s ease; }
@keyframes intakeFade { from { opacity: .3; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.form-section-heading { margin-bottom: 25px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-section-heading > span { color: var(--accent); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.form-section-heading h2 { margin: 5px 0 0; font-size: 1.55rem; }
.form-section-heading p { margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.wizard-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.conditional-block { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.phone-row { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.guide-box { padding: 17px 19px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-pale); color: #496070; }
.guide-box p, .guide-box ul { margin: 0; }
.guide-box ul { margin-top: 8px; padding-left: 19px; }
.guide-box li { margin: 4px 0; }
.persistent-help { margin: 4px 0 7px; color: #586a7d; font-weight: 520; }
.field-label { display: block; margin-bottom: 9px; color: var(--ink-2); font-size: .88rem; font-weight: 680; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { display: inline-flex !important; align-items: center; gap: 7px; margin: 0 !important; padding: 8px 10px; border: 1px solid #d4dce5; border-radius: 999px; background: white; color: #526173 !important; font-size: .79rem !important; font-weight: 620 !important; cursor: pointer; }
.choice-chip input { width: 16px; height: 16px; margin: 0; padding: 0; }
.choice-chip:has(input:checked) { border-color: #9db6c5; background: var(--accent-pale); color: var(--accent-dark) !important; }
.volume-box { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.three-inputs { display: grid; grid-template-columns: .7fr 1fr 1.2fr; gap: 9px; }
.dynamic-questions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.dynamic-question { margin: 0 !important; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfd; }
.dynamic-question legend { padding: 0 5px; color: var(--ink-2); font-size: .88rem; font-weight: 680; }
.dynamic-multi { grid-column: 1 / -1; }

@media (max-width: 980px) { .registration-layout { grid-template-columns: 1fr; } .dynamic-questions { grid-template-columns: 1fr; } .auth-copy { position: static; } }
@media (max-width: 650px) { .stepper small { display: none; } .three-inputs, .phone-row { grid-template-columns: 1fr; } .wizard-actions { flex-direction: column-reverse; } .wizard-actions .button { width: 100%; } }
.intake-answers { margin-top: 18px; }
.intake-answers h3 { margin: 0 0 8px; font-size: 1rem; }
.intake-answer { display: grid; grid-template-columns: minmax(180px,.7fr) 1.3fr; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.intake-answer span { color: var(--muted); overflow-wrap: anywhere; }
@media (max-width:650px){ .intake-answer { grid-template-columns:1fr; gap:3px; } }

/* Visibilidad condicional v2.1.2 */
[hidden] { display: none !important; }


/* Solicitud cliente · corrección de composición v2.1.4 */
.request-detail-layout > .stack,
.request-detail-layout > aside {
  min-width: 0;
}

.request-detail-layout > aside {
  width: 100%;
}

.request-detail-layout .panel {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.request-detail-layout .panel h2,
.request-detail-layout .panel h3,
#requestDescription {
  overflow-wrap: anywhere;
}

#requestTitle {
  max-width: 920px;
  font-size: clamp(2rem, 3.7vw, 3.3rem);
}

#uploadForm {
  display: grid;
  gap: 16px;
  min-width: 0;
}

#uploadForm label {
  min-width: 0;
  margin-bottom: 0;
}

#uploadForm input[type="file"],
#uploadForm select {
  min-width: 0;
  max-width: 100%;
}

#uploadForm input[type="file"] {
  overflow: hidden;
}

.request-detail-layout aside .document-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.request-detail-layout aside .document-panel > div {
  min-width: 0;
}

.request-detail-layout aside .document-panel strong,
.request-detail-layout aside .document-panel .subtle {
  display: block;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .request-detail-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 20px;
  }
}

@media (max-width: 980px) {
  .request-detail-layout {
    grid-template-columns: 1fr;
  }

  .request-detail-layout > aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-detail-layout > aside > .panel:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .request-detail-layout > aside {
    grid-template-columns: 1fr;
  }

  .request-detail-layout > aside > .panel:first-child {
    grid-column: auto;
  }

  .request-detail-layout aside .document-panel {
    grid-template-columns: 1fr;
  }

  .request-detail-layout aside .document-panel .button {
    width: 100%;
  }
}


/* Gestión documental v2.1.5 */
.document-info {
  min-width: 0;
}

.document-label-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.document-label-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.button-danger-outline {
  background: transparent;
  border-color: #b54747;
  color: #8e3030;
}

.button-danger-outline:hover {
  background: #fff3f3;
  border-color: #913535;
}

.duplicate-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  background: #fff4db;
  color: #7a5512;
  white-space: nowrap;
}

.document-duplicate {
  border-left: 3px solid #d6a642;
  padding-left: 10px;
}

@media (max-width: 700px) {
  .document-actions {
    width: 100%;
    justify-content: stretch;
  }

  .document-actions .button {
    flex: 1 1 120px;
  }
}


/* Gestión documental v2.1.7 */
.button-disabled,
.button-disabled:hover {
  cursor: not-allowed;
  opacity: .52;
  background: #f4f6f8;
  border-color: #d8dee6;
  color: #657184;
  box-shadow: none;
}


/* Periodos y módulo de pagos · v2.1.9 */
.period-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 18px;
}

.period-card {
  gap: 18px;
  padding: 24px;
  min-height: 250px;
  background: #fff;
}

.period-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.period-card-head h3 {
  margin: 5px 0 0;
  font-size: 1.35rem;
}

.period-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: .73rem;
  font-weight: 800;
  white-space: nowrap;
}

.period-state-confirmed {
  background: #e6f2e9;
  color: #2f6741;
}

.period-state-waiting {
  background: #f8f0dc;
  color: #7a5b1d;
}

.period-card-detail {
  min-height: 62px;
}

.period-card-detail p {
  margin: 5px 0;
}

.period-payment-block {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(135px, .8fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: auto;
  padding: 20px;
  border: 1px solid #dbe4ea;
  border-radius: 14px;
  background: #f8fafb;
}

.period-price,
.period-payment-state {
  min-width: 0;
}

.period-price > span,
.period-payment-state > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.period-price strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.05;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.period-price small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.payment-status {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf2f5;
  color: #506071;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.payment-status-pending,
.payment-order-status-pending {
  background: #fff4dc;
  color: #80611f;
}

.payment-status-approved,
.payment-order-status-approved {
  background: #e6f2e9;
  color: #2f6741;
}

.payment-status-declined,
.payment-status-error,
.payment-order-status-declined,
.payment-order-status-error {
  background: #faeaea;
  color: #963939;
}

.period-payment-action {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.period-payment-action .button {
  min-width: 130px;
  white-space: nowrap;
}

.period-no-payment {
  margin-top: auto;
  padding: 16px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--muted);
}

.payment-complete-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #e6f2e9;
  color: #2f6741;
  font-weight: 800;
  white-space: nowrap;
}

.payment-container {
  max-width: 980px;
}

.payment-page-head {
  margin-bottom: 28px;
}

.payment-page-head h1 {
  margin-bottom: 8px;
}

.payment-module-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23,32,51,.06);
}

.payment-loading {
  padding: 36px;
  color: var(--muted);
}

.payment-module-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding: 30px 32px 24px;
  border-bottom: 1px solid var(--line);
}

.payment-module-header h2 {
  margin: 5px 0 4px;
}

.payment-module-header p {
  margin: 0;
  color: var(--muted);
}

.payment-order-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: #edf2f5;
  color: #506071;
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.payment-amount-panel {
  padding: 30px 32px;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.payment-amount-panel > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.payment-amount-panel > strong {
  display: block;
  color: var(--ink);
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  line-height: 1.05;
  white-space: nowrap;
}

.payment-amount-panel > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 750;
}

.payment-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.payment-detail-grid > div {
  min-width: 0;
  padding: 22px 32px;
  background: #fff;
}

.payment-detail-grid span,
.payment-detail-grid small {
  display: block;
}

.payment-detail-grid span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.payment-detail-grid strong {
  display: block;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.payment-detail-grid small {
  margin-top: 5px;
  color: var(--muted);
}

.payment-provider-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin: 28px 32px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.payment-provider-pending {
  border-color: #dfcc9d;
  background: #fffaf0;
}

.payment-provider-ready {
  border-color: #b9ccd7;
  background: #f3f8fa;
}

.payment-provider-approved {
  border-color: #b8d6c4;
  background: #f1f8f3;
}

.payment-provider-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(49,93,120,.1);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 900;
}

.payment-provider-box h3 {
  margin: 4px 0 6px;
}

.payment-provider-box p {
  margin: 0;
  color: #526173;
}

.payment-safety-note {
  margin-top: 10px !important;
  font-weight: 700;
}

.payment-module-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 32px 30px;
}

@media (max-width: 760px) {
  .period-payment-block {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .period-payment-action,
  .period-payment-action .button {
    width: 100%;
  }

  .period-payment-action {
    justify-content: stretch;
  }

  .payment-module-header {
    flex-direction: column;
  }

  .payment-detail-grid {
    grid-template-columns: 1fr;
  }

  .payment-provider-box {
    grid-template-columns: 1fr;
    margin: 20px;
  }

  .payment-module-header,
  .payment-amount-panel,
  .payment-detail-grid > div {
    padding-left: 22px;
    padding-right: 22px;
  }

  .payment-module-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    padding: 0 20px 22px;
  }

  .payment-module-actions .button {
    width: 100%;
  }
}

/* ==========================================================================\n   Identidad visual estratégica Carlos Sanchez · v2.5.1\n   Marca = azul petróleo · Acción = azul brillante · Tecnología = turquesa\n   Producto propio / premium = dorado · Estados = semánticos\n   ========================================================================== */

body {
  color: var(--text);
  background: var(--background);
}

::selection {
  background: rgba(37, 99, 235, .18);
  color: var(--brand-primary);
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .38);
  outline-offset: 3px;
}

/* Encabezado / marca */
.header {
  border-bottom-color: rgba(203, 213, 225, .9);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 20px rgba(14, 58, 86, .045);
}

.brand { color: var(--brand-primary); }
.brand-mark {
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  box-shadow: 0 7px 18px rgba(14, 58, 86, .18);
}
.main-menu > a:not(.button), .nav-link-button { color: #425466; }
.main-menu > a:hover, .nav-link-button:hover,
.main-menu > a:focus-visible, .nav-link-button:focus-visible { color: var(--action); }
.menu-button { color: var(--brand-primary); }
.menu-button:hover { border-color: rgba(37,99,235,.45); background: #F8FAFF; }

/* Botones: el azul brillante se reserva para acciones */
.button,
.button-payment {
  border-color: var(--action);
  background: var(--action);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .16);
}
.button:hover,
.button-payment:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .22);
}
.button:active { transform: translateY(0); }
.button-secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--brand-primary);
  box-shadow: none;
}
.button-secondary:hover {
  border-color: var(--action);
  background: #EFF6FF;
  color: var(--action-hover);
  box-shadow: none;
}
.button-light { color: var(--brand-primary); box-shadow: none; }
.text-link, .form-footer a, .check-field a, .back-link { color: var(--action); }

/* Hero: autoridad corporativa + dimensión tecnológica */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgba(14, 165, 168, .20), transparent 27%),
    radial-gradient(circle at 10% 90%, rgba(37, 99, 235, .14), transparent 30%),
    linear-gradient(135deg, #0E3A56 0%, #155E75 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -130px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.018);
  pointer-events: none;
}
.hero .hero-grid { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #B8F3F0; }
.hero .hero-note,
.hero .hero-copy > p { color: #D8E7EC; }
.hero .microcopy { color: #C5D9E1; }
.hero .button-secondary {
  border-color: rgba(255,255,255,.58);
  background: rgba(255,255,255,.06);
  color: #fff;
}
.hero .button-secondary:hover {
  border-color: #fff;
  background: #fff;
  color: var(--brand-primary);
}
.hero-card {
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 24px 60px rgba(3, 22, 34, .22);
}
.hero-card .card-kicker { color: var(--tech); }
.hero-card h2 { color: var(--brand-primary); }

/* Jerarquía editorial */
h1, h2, h3 { color: var(--brand-primary); }
.eyebrow, .card-kicker { color: var(--brand-secondary); }
.section { background: #fff; }
.section-soft, .dashboard-section, .auth-section { background: var(--surface-alt); }
.section-heading > p:last-child, .subtle { color: var(--text-secondary); }

/* Tarjetas de servicios: uniformes, claras y tecnológicas */
.service-card {
  position: relative;
  overflow: hidden;
  border-color: #DCE4EB;
  box-shadow: 0 5px 16px rgba(14,58,86,.035);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--tech);
  opacity: .75;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 168, .68);
  box-shadow: 0 16px 34px rgba(14,58,86,.09);
}
.service-card > span,
.service-card .card-kicker { color: var(--tech); }

/* Producto propio / premium */
.solution-card {
  position: relative;
  border-color: #E4E8EC;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  box-shadow: var(--shadow-soft);
}
.solution-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--premium), #E8C36A);
}
.solution-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--premium);
  color: var(--brand-primary);
  letter-spacing: .08em;
}
.solution-visual {
  background: linear-gradient(145deg, #0E3A56, #082C42);
  box-shadow: 0 20px 45px rgba(14,58,86,.20);
}
.solution-type, .solution-visual small { color: #DCEAF0; }
.solution-visual strong { color: #fff; }

/* Pasos, features y CTA */
.feature-list article > strong, .steps span { color: var(--tech); }
.steps li { border-top-color: var(--brand-primary); background: var(--surface-alt); }
.cta-section {
  background:
    radial-gradient(circle at 82% 20%, rgba(217,164,65,.12), transparent 25%),
    linear-gradient(135deg, #0E3A56, #092F47);
}
.cta-section .button-light { color: var(--brand-primary); }

/* Formularios: foco azul acción, ayuda tecnológica */
.form-card, .panel, .result-card {
  border-color: #DCE4EB;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
input, select, textarea {
  border-color: var(--border);
  color: var(--text-primary);
}
input:hover, select:hover, textarea:hover { border-color: #AEBECD; }
input:focus, select:focus, textarea:focus {
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.privacy-note,
.guide-box {
  border-left-color: var(--tech);
  background: #ECFDFB;
}
.guide-box { color: #385A61; }
.stepper > span.active {
  background: #E8F4F6;
  color: var(--brand-primary);
  box-shadow: inset 0 0 0 1px rgba(14,165,168,.18);
}
.form-section-heading > span { color: var(--tech); }
.choice-chip:has(input:checked) {
  border-color: rgba(14,165,168,.58);
  background: var(--tech-light);
  color: var(--brand-primary) !important;
}
.required-mark { color: var(--danger); }

/* Dashboard y administración: sobrios, alto contraste, color solo con función */
.dashboard-head { background: #fff; }
.dashboard-section { background: var(--background); }
.side-nav { border-color: #DCE4EB; box-shadow: 0 6px 18px rgba(14,58,86,.04); }
.side-nav a:hover { background: #EFF6FF; color: var(--action-hover); }
.panel { background: #fff; }
.stats-grid .panel { border-top: 3px solid var(--brand-secondary); }
th {
  border-bottom-color: #DCE4EB;
  color: #526276;
  background: #F8FAFC;
}
tbody tr:hover td { background: #FBFDFF; }
.nav-count { background: var(--brand-primary); }

/* Estados semánticos: el texto siempre acompaña al color */
.status-badge::before,
.payment-status::before,
.payment-order-status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 1px;
}
.status-approved, .status-active, .status-completed,
.acceptance-accepted, .acceptance-not_required,
.meeting-completed, .unlocked-label,
.payment-status-approved, .payment-order-status-approved {
  background: #E8F5EC;
  color: var(--success);
}
.status-pending, .status-payment_pending, .status-payment-pending,
.acceptance-pending, .status-pendiente_confirmacion, .status-pendiente-confirmacion,
.meeting-proposed, .locked-label,
.payment-status-pending, .payment-order-status-pending {
  background: #FFF4E5;
  color: var(--warning);
}
.status-declined, .status-error, .status-voided, .status-overdue,
.acceptance-rejected, .status-ajuste_solicitado, .status-ajuste-solicitado,
.meeting-cancelled, .payment-status-declined, .payment-status-error,
.payment-order-status-declined, .payment-order-status-error {
  background: #FDECEC;
  color: var(--danger);
}
.status-nuevo, .status-cotizado, .status-submitted,
.status-en_ejecucion, .status-en-ejecucion,
.status-en_entendimiento, .status-en-entendimiento,
.meeting-scheduled {
  background: #EAF5FB;
  color: var(--info);
}
.status-en_analisis, .status-en-analisis, .status-understanding {
  background: #F1EAFE;
  color: var(--analysis);
}

/* Avisos de pago y bloqueos */
.payment-alert,
.download-lock-notice,
.storage-warning {
  border-color: #F3C986;
  background: #FFF8ED;
}
.payment-approved-box,
.confirmation-approved,
.form-success {
  border-color: #B9DEC6;
  background: #F0F9F3;
}
.confirmation-alert,
.message-admin {
  border-color: #B9DDE4;
  background: #F0F9FA;
}
.payment-provider-icon {
  background: rgba(14,165,168,.11);
  color: var(--tech);
}

/* Periodos y módulo de pagos */
.period-card { background: #fff; }
.period-card:hover { border-color: rgba(14,165,168,.58); }
.period-card.active {
  border-color: var(--tech);
  background: #F0FDFA;
  box-shadow: inset 0 0 0 1px rgba(14,165,168,.10);
}
.period-sequence { color: var(--tech); }
.payment-amount,
.period-price,
.payment-amount-panel strong { color: var(--brand-primary); }
.payment-module-header { border-top-color: var(--brand-primary); }

/* Footer corporativo */
.footer {
  border-top: 0;
  background: var(--brand-primary);
}
.footer-inner, .footer .subtle { color: #C9DCE4; }
.footer-inner > span:first-child { color: #fff; font-weight: 800; }

@media (max-width: 760px) {
  .main-menu {
    border-bottom-color: #DCE4EB;
    background: rgba(255,255,255,.985);
  }
  .main-menu a:not(.button):hover,
  .nav-link-button:hover { background: #EFF6FF; }
  .hero { padding-top: 70px; }
}

/* ========================================================================== 
   Administración contextual · Carlos Sanchez v2.5.1
   Identificación rápida del solicitante + contexto comercial + estados humanos
   ========================================================================== */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.admin-section { background: var(--background); }
.admin-dashboard-head h1 { font-size: clamp(2.6rem, 4.2vw, 3.8rem); }
.admin-request-head { align-items: center; }
.admin-request-head h1 {
  max-width: 920px;
  font-size: clamp(2.15rem, 3.5vw, 3.35rem);
  line-height: 1.05;
}
.admin-request-title-block { min-width: 0; }
.request-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.request-ref-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border: 1px solid #D7E1E8;
  border-radius: 999px;
  background: #fff;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.request-subject-extra { color: var(--text-secondary); font-size: .9rem; }

.stat-card strong { color: var(--brand-primary); font-size: 2rem; line-height: 1; }
.admin-requests-panel { overflow: hidden; }
.admin-table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}
.admin-table-heading h2 { font-size: 1.75rem; }
.admin-table-heading .subtle { max-width: 580px; margin: 0; text-align: right; }
.admin-requests-table { min-width: 1080px; }
.admin-requests-table th { white-space: nowrap; }
.admin-requests-table td { vertical-align: middle; }
.request-ref {
  color: var(--brand-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .79rem;
  font-weight: 750;
}
.requester-name { display: block; color: var(--brand-primary); line-height: 1.3; }
.table-secondary { display: block; margin-top: 3px; color: var(--text-secondary); font-size: .76rem; }
.table-date { white-space: nowrap; color: #475569; font-size: .86rem; }
.table-action { text-align: right !important; }

.customer-profile-panel { padding: 30px; border-top: 3px solid var(--brand-secondary); }
.profile-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: 22px;
}
.profile-heading h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); }
.profile-subtitle { margin: 6px 0 0; color: var(--text-secondary); font-size: 1rem; }
.relationship-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  white-space: nowrap;
}
.relationship-new { background: #EAF5FB; color: var(--info); }
.relationship-recurrent { background: #FFF5DF; color: var(--premium-dark); }

.profile-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.profile-fact {
  min-width: 0;
  padding: 14px;
  border: 1px solid #DCE4EB;
  border-radius: 12px;
  background: var(--surface-alt);
}
.profile-fact span,
.profile-contact-line span,
.relationship-stat span {
  display: block;
  color: var(--text-secondary);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.profile-fact strong {
  display: block;
  margin-top: 4px;
  color: var(--brand-primary);
  font-size: .94rem;
  overflow-wrap: anywhere;
}
.profile-contact-line {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.profile-contact-line > div {
  padding: 12px 14px;
  border: 1px solid #DCE4EB;
  border-radius: 12px;
  background: #fff;
}
.profile-contact-line a,
.profile-contact-line strong {
  display: block;
  margin-top: 4px;
  color: var(--action);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.relationship-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #E2E8F0;
}
.relationship-heading { margin-bottom: 14px; }
.relationship-heading p { margin: 4px 0 0; }
.relationship-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.relationship-stat {
  min-width: 0;
  padding: 13px;
  border-radius: 12px;
  background: #F8FAFC;
}
.relationship-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--brand-primary);
  font-size: .96rem;
  overflow-wrap: anywhere;
}

.commercial-context-panel {
  border-left: 3px solid var(--premium);
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFCF6 100%);
}
.split-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}
.split-heading h2 { font-size: 1.75rem; }
.split-heading p { max-width: 420px; margin: 0; text-align: right; }
.commercial-context-form textarea { min-height: 95px; }
.compact-panel { padding: 15px; box-shadow: none; }
.compact-panel p { margin: 5px 0 0; }
.payment-admin-card { display: flex; justify-content: space-between; gap: 12px; align-items: center; }

@media (max-width: 1100px) {
  .profile-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relationship-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .admin-request-head { align-items: stretch; }
  .admin-request-head #runBillingBtn { width: 100%; margin-top: 16px; }
  .admin-table-heading,
  .profile-heading,
  .split-heading { display: block; }
  .admin-table-heading .subtle,
  .split-heading p { margin-top: 8px; text-align: left; }
  .relationship-badge { margin-top: 12px; }
  .profile-facts-grid,
  .profile-contact-line,
  .relationship-grid { grid-template-columns: 1fr; }
  .customer-profile-panel { padding: 22px; }
}

/* v2.5.1: keep primary identifiers readable in desktop admin tables */
.admin-requests-table .request-ref,
.admin-requests-table .status-badge {
  white-space: nowrap;
}


/* ============================================================
   PROCENTRA v2.5.1 - EDICION SEGURA DE CUENTA
   ============================================================ */
.account-page { background: var(--background, #f8fafc); }
.account-container { max-width: 1080px; }
.account-page-head { margin-bottom: 28px; }
.account-page-head .back-link { display: inline-block; margin-bottom: 22px; color: var(--action, #2563eb); font-weight: 750; text-decoration: none; }
.account-page-head .back-link:hover { text-decoration: underline; }
.account-form { padding: 32px; }
.locked-account-fields { margin-top: 4px; }
.input-locked, input[readonly].input-locked {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
  cursor: not-allowed;
  box-shadow: none;
}
.locked-account-fields small { display: block; margin-top: 7px; color: var(--text-secondary, #64748b); font-weight: 500; }
.account-divider { height: 1px; background: var(--line, #e2e8f0); margin: 30px 0; }
.account-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line, #e2e8f0); }
.account-security-note { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 26px; border-top: 3px solid var(--premium, #d9a441); }
.account-security-note h2 { margin-bottom: 8px; }
.account-security-note p { margin-bottom: 0; max-width: 760px; }
@media (max-width: 760px) {
  .account-form { padding: 22px; }
  .account-actions { flex-direction: column-reverse; }
  .account-actions .button { width: 100%; }
  .account-security-note { align-items: stretch; flex-direction: column; }
  .account-security-note .button { width: 100%; }
}

/* Administración y analítica estratégica · v2.2.0 */
.admin-page-head,
.analytics-page-head {
  align-items: center;
}

.admin-analytics-button {
  white-space: nowrap;
}

.admin-stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
}

.admin-request-heading {
  align-items: flex-end;
  margin-bottom: 22px;
}

.admin-request-heading h2,
.analytics-card-head h2,
.strategic-insights-panel h2 {
  margin: 4px 0 0;
}

.admin-request-heading p,
.analytics-filter-panel .panel-heading p,
.strategic-insights-panel .panel-heading p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(135px, .7fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--background);
}

.admin-filter-grid label,
.analytics-filter-grid label {
  margin: 0;
}

.admin-filter-grid label > span,
.analytics-filter-grid label > span {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-filter-actions {
  display: flex;
  align-items: flex-end;
}

.admin-filter-actions .button {
  min-height: 43px;
}

.admin-table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 6px;
  font-size: .84rem;
}

.admin-table-meta > span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.admin-request-table th {
  white-space: nowrap;
  color: var(--accent-dark);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-request-table td {
  min-width: 120px;
}

.admin-request-table td:first-child {
  min-width: 170px;
}

.admin-request-table td:nth-child(2) {
  min-width: 210px;
}

.admin-request-table td:nth-child(4) {
  min-width: 190px;
}

.admin-reference {
  color: var(--accent-dark);
  font-size: .82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.table-secondary {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .77rem;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  max-width: 240px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf2f5;
  color: #506071;
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-status-submitted {
  background: #e6f3f8;
  color: #0b6b98;
}

.admin-status-understanding,
.admin-status-understanding {
  background: #edf2f5;
  color: #506071;
}

.admin-status-quoted {
  background: #edf0fa;
  color: #4c5f9b;
}

.admin-status-accepted-awaiting-payment {
  background: #fff2df;
  color: #b46400;
}

.admin-status-active {
  background: #e8f4ec;
  color: #2d6a43;
}

.admin-status-closed {
  background: #e6f2e9;
  color: #2f6741;
}

.admin-status-cancelled {
  background: #faeaea;
  color: #963939;
}

.analytics-filter-panel {
  margin-bottom: 18px;
}

.analytics-filter-panel .panel-heading {
  align-items: flex-end;
}

.analytics-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(2, minmax(150px, .6fr)) auto;
  gap: 12px;
  align-items: end;
}

.analytics-filter-actions {
  display: flex;
  gap: 8px;
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.analytics-kpi-card {
  min-height: 142px;
}

.analytics-kpi-card strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.analytics-kpi-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .77rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.analytics-chart-card {
  min-width: 0;
  min-height: 390px;
}

.analytics-chart-wide {
  grid-column: 1 / -1;
}

.analytics-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.analytics-hint {
  color: var(--muted);
  font-size: .78rem;
  text-align: right;
}

.analytics-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 30px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.analytics-line-chart {
  min-height: 280px;
}

.analytics-line-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.analytics-axis {
  stroke: #d7dfe6;
  stroke-width: 1;
}

.analytics-area {
  fill: rgba(14, 85, 116, .08);
}

.analytics-line {
  fill: none;
  stroke: var(--action);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.analytics-point {
  fill: white;
  stroke: var(--action);
  stroke-width: 4;
}

.analytics-value-label {
  fill: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.analytics-axis-label {
  fill: var(--muted);
  font-size: 12px;
}

.analytics-bars {
  display: grid;
  gap: 18px;
}

.analytics-bar-row {
  display: grid;
  gap: 8px;
}

.analytics-bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.analytics-bar-label > span {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.analytics-bar-label strong {
  flex: 0 0 auto;
  font-size: .85rem;
}

.analytics-bar-label small {
  margin-left: 5px;
  color: var(--muted);
  font-weight: 600;
}

.analytics-bar-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #edf2f5;
}

.analytics-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--action);
}

.analytics-donut-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 260px;
}

.analytics-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  border-radius: 50%;
}

.analytics-donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: white;
}

.analytics-donut > div {
  position: relative;
  z-index: 1;
  display: grid;
  text-align: center;
}

.analytics-donut strong {
  font-size: 2rem;
}

.analytics-donut span {
  color: var(--muted);
  font-size: .72rem;
}

.analytics-legend {
  display: grid;
  gap: 10px;
}

.analytics-legend > div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.analytics-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.analytics-legend > div span:nth-child(2) {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.analytics-funnel {
  display: grid;
  gap: 13px;
  padding: 8px 0;
}

.analytics-funnel-step {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.analytics-funnel-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 32%;
  max-width: 100%;
  min-height: 58px;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, #EAF1F4, #DCEBF1);
  color: var(--accent-dark);
  transition: width .2s ease;
}

.analytics-funnel-block strong {
  font-size: 1.25rem;
}

.analytics-funnel-step small {
  color: var(--muted);
  font-size: .72rem;
}

.analytics-column-chart {
  min-height: 270px;
}

.analytics-column-bars {
  display: flex;
  align-items: stretch;
  gap: 14px;
  min-height: 270px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.analytics-column-item {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 7px;
  min-width: 74px;
  flex: 1 0 74px;
}

.analytics-column-value {
  min-height: 38px;
  color: var(--ink);
  font-size: .67rem;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.analytics-column-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 180px;
  border-radius: 10px 10px 3px 3px;
  background: #f1f4f6;
}

.analytics-column-track span {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 9px 9px 3px 3px;
  background: var(--action);
}

.analytics-column-label {
  color: var(--muted);
  font-size: .7rem;
  text-align: center;
}

.strategic-insights-panel {
  margin-top: 18px;
}

.strategic-insights-panel .panel-heading {
  align-items: flex-end;
  margin-bottom: 18px;
}

.strategic-insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.strategic-insight {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 14px;
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.strategic-insight-mark {
  width: 5px;
  height: 100%;
  border-radius: 999px;
  background: #8290a2;
}

.strategic-insight-positive .strategic-insight-mark {
  background: #3f7f59;
}

.strategic-insight-attention .strategic-insight-mark {
  background: #c7872a;
}

.strategic-insight h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.strategic-insight p {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .admin-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .admin-filter-search {
    grid-column: span 2;
  }
  .admin-filter-actions {
    align-self: end;
  }
}

@media (max-width: 900px) {
  .analytics-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .analytics-chart-wide {
    grid-column: auto;
  }
  .analytics-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analytics-filter-actions {
    grid-column: 1 / -1;
  }
  .strategic-insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .admin-page-head,
  .analytics-page-head,
  .admin-request-heading,
  .analytics-filter-panel .panel-heading,
  .strategic-insights-panel .panel-heading {
    display: grid;
    gap: 12px;
  }

  .admin-page-head .button,
  .analytics-page-head .button {
    width: 100%;
  }

  .admin-request-heading p,
  .analytics-filter-panel .panel-heading p,
  .strategic-insights-panel .panel-heading p {
    text-align: left;
  }

  .admin-filter-grid,
  .analytics-filter-grid,
  .analytics-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-filter-search,
  .analytics-filter-actions {
    grid-column: auto;
  }

  .admin-filter-actions,
  .analytics-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-filter-actions .button,
  .analytics-filter-actions .button {
    width: 100%;
  }

  .admin-table-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .analytics-legend {
    width: 100%;
  }

  .analytics-card-head {
    display: grid;
  }

  .analytics-hint {
    text-align: left;
  }
}

/* v2.5.1 · Separación comercial: servicios profesionales vs soluciones propias */
.portfolio-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr);
  gap: 32px;
  align-items: end;
}
.portfolio-heading > p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}
.solutions-catalog-page .page-head {
  margin-bottom: 28px;
}
.solution-detail-card {
  scroll-margin-top: 110px;
}
.solution-commercial-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.solution-commercial-meta > div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.solution-commercial-meta span,
.solution-commercial-meta strong {
  display: block;
}
.solution-commercial-meta span {
  margin-bottom: 4px;
  color: var(--text-secondary);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.solution-commercial-meta strong {
  color: var(--brand-primary);
}
.solution-interest-form,
.solution-guest-actions {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.solution-interest-form textarea {
  min-height: 110px;
}
.product-interest-summary {
  border-top: 3px solid var(--premium);
}
.dashboard-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.admin-solutions-panel {
  margin-top: 22px;
  border-top: 3px solid var(--premium);
}
.product-status-select {
  min-width: 132px;
  padding: 8px 10px;
  font-size: .78rem;
}
.product-analytics-panel {
  margin: 22px 0;
  border-top: 3px solid var(--premium);
}
.product-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.product-kpi-card .card-kicker {
  color: #9A6C10;
}
.product-note-card {
  min-height: 260px;
}
.product-note-card .analytics-empty {
  min-height: 170px;
  text-align: left;
  place-items: start;
}
.product-note-card .analytics-empty p {
  margin: 0;
  max-width: 62ch;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .portfolio-heading,
  .product-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portfolio-heading > p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .portfolio-heading,
  .solution-commercial-meta,
  .product-kpi-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-section-heading {
    display: grid;
    align-items: start;
  }
  .dashboard-section-heading .button {
    width: 100%;
  }
}


/* ==========================================================================
   Carlos Sanchez v2.5.1 · Servicios adaptativos y ecosistema tecnológico
   La solución se vende primero; las herramientas se presentan como referencia.
   ========================================================================== */
.service-card-rich { display:flex; flex-direction:column; min-height:360px; }
.service-card-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.service-business-label { display:inline-flex; align-items:center; width:max-content; padding:6px 9px; border:1px solid #DCE6EC; border-radius:999px; color:var(--primary-700); background:#F7FAFC; font-size:.68rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.service-capability-preview { margin-top:auto; padding-top:22px; }
.service-capability-preview > strong, .detail-label { display:block; margin-bottom:10px; color:var(--primary-900); font-size:.76rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.capability-chips { display:flex; flex-wrap:wrap; gap:7px; }
.capability-chips > span { padding:7px 9px; border-radius:8px; background:var(--tech-light); color:#0F5960; font-size:.76rem; font-weight:700; }
.service-detail-link { margin-top:20px; width:max-content; font-weight:800; }
.work-method-section { background:var(--surface-alt); }
.work-method-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.work-method-grid article { padding:26px; border:1px solid var(--line); border-radius:16px; background:white; }
.work-method-grid article > span { color:var(--tech); font-weight:850; letter-spacing:.08em; }
.work-method-grid h3 { margin:18px 0 8px; color:var(--primary-900); }
.work-method-grid p { margin:0; color:var(--muted); }
.technology-section { background:#fff; }
.technology-intro { max-width:920px; margin-bottom:30px; }
.technology-intro h2 { margin:10px 0 14px; }
.technology-intro > p { color:var(--muted); font-size:1.02rem; }
.technology-principle { margin-top:14px; padding-left:18px; border-left:3px solid var(--tech); }
.technology-matrix { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.technology-group { padding:24px; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.technology-group h3 { margin:0 0 16px; color:var(--primary-900); font-size:1rem; }
.technology-tags { display:flex; flex-wrap:wrap; gap:8px; }
.technology-tags > span { padding:7px 10px; border:1px solid #D7E3E9; border-radius:999px; background:#F8FBFC; color:#3F5260; font-size:.78rem; font-weight:700; }
.services-catalog-page .service-catalog-hero { padding-bottom:44px; }
.service-catalog-hero-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr); gap:42px; align-items:end; }
.service-catalog-hero h1 { max-width:920px; margin:12px 0 18px; }
.service-catalog-hero p { max-width:850px; color:var(--muted); font-size:1.05rem; }
.technology-policy-card { padding:28px; border:1px solid #BFD9E2; border-radius:16px; background:linear-gradient(145deg,#F5FBFC,#fff); }
.technology-policy-card strong { display:block; margin:14px 0 10px; color:var(--primary-900); font-size:1.08rem; }
.technology-policy-card p { margin:0; font-size:.92rem; }
.service-detail-stack { display:grid; gap:24px; }
.service-detail-card { scroll-margin-top:96px; display:grid; grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr); gap:36px; padding:34px; border:1px solid var(--line); border-radius:18px; background:white; box-shadow:0 12px 32px rgba(15,44,66,.05); }
.service-detail-summary { display:flex; flex-direction:column; align-items:flex-start; }
.service-index { color:var(--tech); font-weight:900; letter-spacing:.12em; }
.service-detail-summary .service-business-label { margin-top:12px; }
.service-detail-summary h2 { margin:20px 0 14px; color:var(--primary-900); }
.service-detail-summary > p { margin:0 0 14px; color:var(--muted); }
.service-positioning { padding-left:14px; border-left:3px solid var(--tech); color:#354C5B !important; font-weight:700; }
.service-detail-summary .button { margin-top:auto; }
.service-detail-body { display:grid; gap:28px; }
.service-detail-body section { padding-bottom:24px; border-bottom:1px solid #E8EEF2; }
.service-detail-body section:last-child { padding-bottom:0; border-bottom:0; }
.service-approach { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.service-approach span { display:inline-flex; align-items:center; gap:8px; padding:9px 11px; border-radius:9px; background:#F4F8FA; color:#405566; font-size:.82rem; font-weight:750; }
.service-approach b { color:var(--tech); font-size:.7rem; }
.capability-chips-large > span { padding:9px 11px; }
.technology-disclaimer { margin:0 0 14px; color:var(--muted); font-size:.86rem; }
.service-tech-groups { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.service-tech-group { padding:14px; border:1px solid #E1E9EE; border-radius:12px; background:#FBFDFE; }
.service-tech-group > span { display:block; margin-bottom:9px; color:var(--primary-700); font-size:.72rem; font-weight:850; text-transform:uppercase; letter-spacing:.08em; }
.technology-closing-card { padding:38px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(145deg,#F7FBFC,#FFFFFF); }
.technology-closing-card > p { max-width:860px; color:var(--muted); }
@media (max-width:980px) {
  .work-method-grid, .technology-matrix { grid-template-columns:repeat(2,1fr); }
  .service-catalog-hero-grid, .service-detail-card { grid-template-columns:1fr; }
  .service-detail-summary .button { margin-top:14px; }
}
@media (max-width:640px) {
  .work-method-grid, .technology-matrix, .service-tech-groups { grid-template-columns:1fr; }
  .service-detail-card, .technology-closing-card { padding:24px; }
  .service-card-rich { min-height:auto; }
}

/* ========================================================================== 
   Carlos Sanchez v2.5.1 · Conversión, confianza y SEO
   La página pública parte del problema, demuestra método y reduce fricción.
   ========================================================================== */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--primary-900);
  box-shadow: var(--shadow);
  font-weight: 800;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
.hero-proofline {
  margin: 20px 0 0;
  color: #B8F3F0 !important;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.portal-hero-card > p { margin: 12px 0 0; line-height: 1.6; }
.problem-section { background: #fff; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.problem-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, #FFFFFF, #FBFDFE);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.problem-grid article:hover {
  transform: translateY(-2px);
  border-color: #BFD9E2;
  box-shadow: 0 12px 28px rgba(14,58,86,.07);
}
.problem-grid article > span,
.audience-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tech-light);
  color: #0F5960;
  font-size: .72rem;
  font-weight: 900;
}
.problem-grid h3 { margin: 22px 0 10px; font-size: 1.08rem; }
.problem-grid p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.58; }
.section-inline-cta { margin-top: 26px; }
.audience-section { background: #fff; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.audience-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.audience-grid h3 { margin: 20px 0 9px; }
.audience-grid p { margin: 0; color: var(--muted); }
.portal-trust-section { background: #F7FAFC; }
.portal-lead { max-width: 640px; color: var(--muted); font-size: 1.04rem; line-height: 1.7; }
.portal-trust-note {
  margin-top: 30px;
  padding: 20px 22px;
  border-left: 3px solid var(--tech);
  background: #fff;
  color: var(--primary-900);
}
.portal-trust-note p { margin: 7px 0 0; color: var(--muted); }
.portal-feature-list article { background: rgba(255,255,255,.58); }
.portal-feature-list h3 { margin: 0; font-size: 1rem; }
.technology-reference-note {
  margin: 26px 0 0;
  padding: 16px 18px;
  border: 1px solid #D9E7EC;
  border-radius: 12px;
  background: #F8FBFC;
  color: #526775;
  font-size: .88rem;
}
.faq-section { background: #fff; }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 42px 22px 0;
  color: var(--primary-900);
  font-weight: 800;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 18px;
  color: var(--tech);
  font-size: 1.45rem;
  font-weight: 500;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: -4px 42px 22px 0; color: var(--muted); line-height: 1.65; }
.cta-copy { max-width: 760px; margin: 14px 0 0; color: #D8E7EC; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cta-actions > span { color: #C5D9E1; font-size: .78rem; }
.registration-assurance {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid #CDE1E5;
  border-radius: 12px;
  background: #F3FAFA;
}
.registration-assurance strong { color: var(--primary-900); }
.registration-assurance span { color: var(--muted); font-size: .88rem; }
[data-catalog-status="offline"]::after {
  content: "";
  display: block;
}

@media (max-width: 1100px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { align-items: flex-start; }
}
@media (max-width: 760px) {
  .audience-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-grid article { min-height: auto; }
  .cta-inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions .button { width: 100%; }
}


/* ========================================================================== 
   Carlos Sanchez v2.5.1 · Confianza, evidencia y reducción de longitud pública
   ========================================================================== */
.portal-hero-compact { align-self: center; }
.portal-mini-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 18px;
}
.portal-mini-points span {
  position: relative;
  padding-left: 22px;
  color: var(--text-primary);
  font-weight: 750;
  font-size: .92rem;
}
.portal-mini-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tech);
}
.portal-mini-link { display: inline-flex; margin-top: 2px; }
.problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.problem-grid article { min-height: 184px; padding: 22px; }
.home-service-card { min-height: 0; }
.home-service-card > p { margin-bottom: 18px; }
.home-service-card .service-detail-link { margin-top: auto; }
.audience-strip-section { padding: 34px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience-strip { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; align-items: center; }
.audience-strip-heading h2 { margin: 7px 0 0; font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.audience-strip-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.audience-strip-items span { padding: 14px 16px; border-left: 2px solid #CDE1E5; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.audience-strip-items strong { display: block; margin-bottom: 4px; color: var(--primary-900); }
.experience-section { background: #fff; }
.experience-heading > p { max-width: 690px; }
.experience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.experience-card { padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg,#FFFFFF,#F8FBFC); box-shadow: 0 8px 22px rgba(14,58,86,.04); }
.experience-type { display: inline-flex; margin-bottom: 13px; color: var(--primary-700); font-size: .73rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.experience-card h3 { margin: 0 0 18px; font-size: 1.08rem; }
.experience-card dl, .experience-card dd { margin: 0; }
.experience-card dl { display: grid; gap: 14px; }
.experience-card dl > div { padding-top: 13px; border-top: 1px solid #E6EEF2; }
.experience-card dt { margin-bottom: 4px; color: var(--primary-900); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.experience-card dd { color: var(--muted); font-size: .9rem; line-height: 1.56; }
.experience-card .experience-result { padding: 14px; border: 0; border-radius: 10px; background: #F0F8F8; }
.experience-card .experience-result dd { color: #174E55; font-weight: 700; }
.experience-disclaimer { margin: 18px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.cta-button-row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.button-light-outline { border: 1px solid rgba(255,255,255,.55); background: transparent; color: #fff; }
.button-light-outline:hover { background: rgba(255,255,255,.08); color: #fff; }

@media (max-width: 980px) {
  .problem-grid, .experience-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-strip { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  .problem-grid, .experience-grid, .audience-strip-items { grid-template-columns: 1fr; }
  .problem-grid article { min-height: 0; }
  .cta-button-row { width: 100%; justify-content: flex-start; }
  .cta-button-row .button { width: 100%; }
}


/* v2.5.3 quick contact */
.hero-quick-contact{
  margin:.55rem 0 0;
  font-size:.92rem;
  color:var(--text-secondary);
}
.hero-quick-contact .text-link{font-weight:700;}

.quick-contact-page{
  min-height:calc(100vh - 160px);
  background:linear-gradient(180deg,var(--background) 0%,var(--surface-alt) 100%);
}
.quick-contact-grid{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);
  gap:clamp(2rem,5vw,5rem);
  align-items:start;
}
.quick-contact-copy{padding-top:1rem;}
.quick-contact-assurance{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:.75rem;
  margin:1.5rem 0;
}
.quick-contact-assurance div{
  padding:1rem;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--surface);
  box-shadow:0 10px 30px rgba(14,58,86,.05);
}
.quick-contact-assurance strong{
  display:block;
  color:var(--primary-900);
  font-size:1.05rem;
}
.quick-contact-assurance span{
  display:block;
  margin-top:.25rem;
  color:var(--text-secondary);
  font-size:.82rem;
}
.quick-contact-choice{
  margin-top:1.25rem;
  padding:1.25rem 1.35rem;
  border-left:3px solid var(--tech-500);
  background:var(--tech-light);
  border-radius:0 16px 16px 0;
}
.quick-contact-choice p{margin:.45rem 0 .7rem;}
.quick-contact-form{max-width:680px;margin-left:auto;width:100%;}
.quick-contact-form textarea{resize:vertical;min-height:150px;}
.optional-label{
  margin-left:.35rem;
  color:var(--text-secondary);
  font-size:.76rem;
  font-weight:500;
}
.form-honeypot{
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}
.quick-contact-consent{align-items:flex-start;}
.form-footnote{
  margin:.7rem 0 0;
  text-align:center;
  color:var(--text-secondary);
  font-size:.82rem;
}
.quick-contact-message{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  max-width:360px;
  line-height:1.45;
}
.admin-quick-contact-panel{
  border-top:3px solid var(--tech-500);
}

@media (max-width:900px){
  .quick-contact-grid{grid-template-columns:1fr;}
  .quick-contact-form{max-width:none;margin:0;}
}
@media (max-width:600px){
  .quick-contact-assurance{grid-template-columns:1fr;}
}


/* ==========================================================================
   Carlos Sanchez v2.5.3 · Mi espacio compacto + nueva solicitud independiente
   ========================================================================== */
.new-request-compact {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:32px;
  margin-top:22px;
  padding:24px 28px;
  border-left:4px solid var(--action-600);
  box-shadow:0 10px 28px rgba(14,58,86,.045);
}
.new-request-compact-copy { max-width:820px; }
.new-request-title-line { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:8px; }
.new-request-compact h2 { margin:0; font-size:clamp(1.45rem,2.4vw,1.9rem); }
.new-request-compact p { max-width:78ch; margin:8px 0 0; color:var(--text-secondary); line-height:1.65; }
.new-request-time { background:var(--surface-alt); color:var(--primary-700); letter-spacing:0; text-transform:none; }
.new-request-compact-actions { display:flex; flex-direction:column; align-items:stretch; gap:10px; min-width:190px; }
.new-request-compact-actions .text-link { text-align:center; font-size:.82rem; }
.request-create-page { background:var(--background); }
.request-create-container { max-width:1080px; }
.request-create-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:42px; align-items:end; margin-bottom:28px; }
.request-create-head h1 { max-width:760px; margin-bottom:12px; font-size:clamp(2.2rem,4.4vw,3.7rem); }
.request-create-head p { max-width:760px; margin:0; color:var(--text-secondary); font-size:1rem; line-height:1.7; }
.request-create-assurance { display:grid; gap:5px; min-width:270px; padding:18px 20px; border:1px solid var(--border); border-radius:14px; background:#fff; }
.request-create-assurance strong { color:var(--primary-900); }
.request-create-assurance span { color:var(--text-secondary); font-size:.82rem; }
.request-create-panel { padding:32px; }
.request-create-panel .panel-heading { margin-bottom:22px; }
.request-create-actions { justify-content:flex-end; align-items:center; }
.request-create-actions .button { min-width:150px; }
@media (max-width:760px) {
  .new-request-compact { grid-template-columns:1fr; align-items:start; gap:20px; padding:22px; }
  .new-request-compact-actions { min-width:0; width:100%; }
  .new-request-compact-actions .button { width:100%; }
  .request-create-head { grid-template-columns:1fr; align-items:start; gap:22px; }
  .request-create-assurance { min-width:0; width:100%; }
  .request-create-actions { flex-direction:column-reverse; }
  .request-create-actions .button { width:100%; }
}


/* ==========================================================================
   Carlos Sanchez v2.5.3 FIX1 · navegación persistente del área autenticada
   ========================================================================== */
/*
 * El header se renderiza dentro de #app-header. Si el elemento interno es el
 * único sticky, queda limitado por la altura de su wrapper. El sticky debe
 * pertenecer al wrapper para permanecer visible durante todo el documento.
 */
#app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 68px;
}
#app-header .header {
  position: relative;
  top: auto;
  z-index: auto;
}
.main-menu .nav-current {
  color: var(--action) !important;
  font-weight: 760;
}
.main-menu .nav-current::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 999px;
  background: currentColor;
}
@media (max-width: 760px) {
  .main-menu .nav-current::after { display: none; }
}

/* ==========================================================================
   Carlos Sanchez v2.5.3 FIX2 · shell autenticado resiliente y Mi espacio compacto
   ========================================================================== */
/* Evita el doble espacio vertical que producía .section + .dashboard-head. */
.dashboard-content {
  padding-top: 34px;
}
.dashboard-content .dashboard-head {
  padding: 24px 0 30px;
}
.dashboard-content .dashboard-head h1 {
  margin-top: 10px;
  margin-bottom: 10px;
}
#app-header:empty {
  min-height: 68px;
  background: #fff;
}
#app-header:not(:empty) {
  min-height: 68px;
}
@media (max-width: 760px) {
  .dashboard-content { padding-top: 22px; }
  .dashboard-content .dashboard-head { padding: 18px 0 24px; }
}

/* ============================================================
   v2.5.3 FIX3 - Visibilidad controlada de contrasena
   ============================================================ */
.password-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.password-input-wrap > input {
  width: 100%;
  padding-right: 50px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary, #64748B);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.password-toggle:hover {
  background: var(--surface-alt, #F1F5F9);
  color: var(--primary-900, #0E3A56);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--action-600, #2563EB);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

/* ========================================================================== 
   Carlos Sanchez v2.5.5 · Home responsive compacta y jerarquia movil
   ========================================================================== */
.home-compact .hero-grid-single {
  grid-template-columns: minmax(0, 900px);
  justify-content: start;
}
.home-compact .hero-grid-single .hero-copy { max-width: 900px; }

/* Problemas: tarjetas en desktop, acordeon compacto en movil */
.problem-item {
  min-height: 184px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(145deg, #FFFFFF, #FBFDFE);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.problem-item:hover {
  transform: translateY(-2px);
  border-color: #BFD9E2;
  box-shadow: 0 12px 28px rgba(14,58,86,.07);
}
.problem-summary {
  display: block;
  list-style: none;
  cursor: default;
}
.problem-summary::-webkit-details-marker { display: none; }
.problem-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tech-light);
  color: #0F5960;
  font-size: .72rem;
  font-weight: 900;
}
.problem-title {
  display: block;
  margin: 22px 0 10px;
  color: var(--primary-900);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.3;
}
.problem-toggle-indicator { display: none; }
.problem-description {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.58;
}

/* Servicios: descripcion movil separada; desktop conserva las tarjetas */
.service-mobile-summary { display: none; }
.services-all-link { margin-top: 24px; }

/* Experiencia: details actua como tarjeta abierta en desktop */
details.experience-card { display: block; }
.experience-summary {
  display: block;
  list-style: none;
  cursor: default;
}
.experience-summary::-webkit-details-marker { display: none; }
.experience-mobile-result,
.experience-toggle-indicator { display: none; }

/* Metodo: desktop conserva las 4 tarjetas */
.method-mobile-flow { display: none; }

/* Portal resumido a tres momentos */
.portal-feature-list-compact { gap: 12px; }
.portal-feature-list-compact article { padding: 18px 20px; }
.portal-feature-list-compact p { margin: 5px 0 0; color: var(--muted); }
.portal-public-link { display: inline-flex; margin-top: 20px; }

/* Tecnologia resumida en la home */
.technology-section-compact .container { max-width: 980px; }
.technology-section-compact .technology-intro { margin-bottom: 0; }
.technology-home-tags,
.solution-home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 18px;
}
.technology-home-tags span,
.solution-home-tags span {
  display: inline-flex;
  padding: 7px 10px;
  border: 1px solid #D7E3E9;
  border-radius: 999px;
  background: #F8FBFC;
  color: #3F5260;
  font-size: .78rem;
  font-weight: 750;
}
.technology-home-link { display: inline-flex; }

/* SOUT PDF como franja de producto */
.solution-home-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #FFFFFF, #F8FBFC);
}
.solution-home-copy { max-width: 760px; }
.solution-home-copy h3 { margin: 8px 0 8px; color: var(--primary-900); font-size: clamp(1.55rem,2.4vw,2.1rem); }
.solution-home-copy p { margin: 0; color: var(--muted); }

/* CTA movil persistente: aparece cuando el hero deja de estar visible */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 760px) {
  .home-compact { padding-bottom: 74px; }
  .home-compact .section { padding: 48px 0; }
  .home-compact .section-heading { margin-bottom: 22px; }
  .home-compact .section-heading h2 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .home-compact .section-heading > p,
  .home-compact .portfolio-heading > p { font-size: .9rem; }

  /* Hero mas directo */
  .home-compact .hero { padding-bottom: 50px; }
  .home-compact .hero-grid-single { display: block; }
  .home-compact .hero h1 { font-size: clamp(2.15rem, 11vw, 3.25rem); }
  .home-compact .hero-note { font-size: 1rem; }
  .home-compact .hero .actions { display: block; }
  .home-compact .hero .actions .button { width: 100%; }
  .home-compact .hero-secondary-cta { display: none !important; }
  .home-compact .hero-proofline { display: none; }
  .home-compact .hero-quick-contact { margin-top: 14px; }

  /* Problemas: filas acordeon */
  .home-compact .problem-section .portfolio-heading > p { display: none; }
  .problem-grid { display: block; border-top: 1px solid var(--line); }
  .problem-item,
  .problem-item:hover {
    min-height: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  .problem-summary {
    display: grid;
    grid-template-columns: 38px 1fr 22px;
    gap: 10px;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
  }
  .problem-number { width: 30px; height: 30px; font-size: .68rem; }
  .problem-title { margin: 0; font-size: .98rem; }
  .problem-toggle-indicator {
    display: block;
    color: var(--tech);
    font-size: 1.35rem;
    text-align: right;
  }
  .problem-item[open] .problem-toggle-indicator { transform: rotate(45deg); }
  .problem-description { padding: 0 0 16px 48px; font-size: .88rem; }
  .problem-section .section-inline-cta { margin-top: 18px; }

  /* Servicios: lista compacta y tarjeta completa clicable */
  #servicesGrid.service-grid { display: block; }
  .home-service-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr 18px;
    grid-template-areas:
      "number title arrow"
      "number summary arrow";
    gap: 3px 10px;
    min-height: 0;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .home-service-card .service-card-head { grid-area: number; display: block; }
  .home-service-card .card-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 50%;
    background: var(--tech-light);
    color: #0F5960;
  }
  .home-service-card .service-business-label { display: none; }
  .home-service-card h3 { grid-area: title; margin: 0; padding-right: 4px; font-size: 1rem; line-height: 1.3; }
  .home-service-card .service-home-description { display: none; }
  .home-service-card .service-mobile-summary { grid-area: summary; display: block; margin: 2px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.35; }
  .home-service-card .service-card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    margin: 0;
    font-size: 0;
  }
  .home-service-card::after {
    content: "→";
    grid-area: arrow;
    align-self: center;
    color: var(--tech);
    font-size: 1.05rem;
    font-weight: 900;
  }
  .services-all-link { margin-top: 18px; }

  /* Experiencia: resultado visible primero, detalles bajo demanda */
  .experience-grid { display: block; }
  details.experience-card {
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .experience-summary { position: relative; padding: 18px 34px 18px 0; cursor: pointer; }
  .experience-summary .experience-type { margin-bottom: 7px; }
  .experience-summary h3 { margin: 0 0 9px; font-size: 1rem; }
  .experience-mobile-result {
    display: block;
    color: #174E55;
    font-size: .92rem;
    line-height: 1.45;
  }
  .experience-toggle-indicator {
    display: block;
    margin-top: 10px;
    color: var(--action-600);
    font-size: .78rem;
    font-weight: 850;
  }
  details.experience-card[open] .experience-toggle-indicator::after { content: " menos"; }
  details.experience-card > dl { padding: 0 0 18px; }
  details.experience-card > dl .experience-result { display: none; }
  .experience-disclaimer { font-size: .72rem; }

  /* Audiencia como chips */
  .audience-strip-section { padding: 30px 0; }
  .audience-strip { display: block; }
  .audience-strip-heading h2 { display: none; }
  .audience-strip-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .audience-strip-items .audience-chip {
    display: inline-flex;
    width: auto;
    padding: 8px 11px;
    border: 1px solid #D7E3E9;
    border-radius: 999px;
    background: #F8FBFC;
    color: var(--primary-900);
    font-size: .8rem;
    line-height: 1;
  }
  .audience-strip-items .audience-chip strong { margin: 0; }
  .audience-strip-items .audience-chip { font-size: 0; }
  .audience-strip-items .audience-chip strong { font-size: .8rem; }

  /* Metodo en una sola secuencia */
  .work-method-section .portfolio-heading h2 { display: none; }
  .work-method-section .portfolio-heading > p { margin-top: 8px; }
  .work-method-grid { display: none; }
  .method-mobile-flow { display: grid; justify-items: start; gap: 4px; margin-top: 20px; }
  .method-mobile-step { display: flex; gap: 12px; align-items: baseline; }
  .method-mobile-step span { color: var(--tech); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
  .method-mobile-step strong { color: var(--primary-900); font-size: 1.02rem; text-transform: uppercase; }
  .method-mobile-arrow { margin-left: 10px; color: #89A9B7; }

  /* Portal: tres momentos */
  .portal-grid { grid-template-columns: 1fr; gap: 24px; }
  .portal-trust-note { display: none; }
  .portal-lead { font-size: .92rem; }
  .portal-feature-list-compact article { padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
  .portal-feature-list-compact article strong { min-width: 30px; }
  .portal-feature-list-compact p { font-size: .84rem; line-height: 1.45; }

  /* Tecnologia: una sola franja */
  .technology-section-compact { padding-top: 44px; padding-bottom: 44px; }
  .technology-section-compact .technology-intro h2 { font-size: 1.65rem; }
  .technology-section-compact .technology-intro > p { font-size: .9rem; }
  .technology-home-tags { margin: 16px 0 14px; }
  .technology-home-tags span { padding: 6px 8px; font-size: .72rem; }

  /* Solucion propia compacta */
  .solutions-section .section-heading { margin-bottom: 16px; }
  .solutions-section .section-heading > p { display: none; }
  .solution-home-strip { padding: 20px; }
  .solution-home-copy h3 { font-size: 1.6rem; }
  .solution-home-tags { margin: 14px 0 12px; }

  /* FAQ aun mas compacto */
  .faq-layout { gap: 14px; }
  .faq-layout .section-heading p { display: none; }
  .faq-list summary { padding: 16px 36px 16px 0; font-size: .92rem; }
  .faq-list summary::after { top: 12px; }
  .faq-list details p { margin: -1px 32px 16px 0; font-size: .86rem; }

  /* CTA final y barra fija */
  .cta-section { padding-bottom: 34px; }
  .mobile-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    display: grid;
    grid-template-columns: .75fr 1.35fr;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(14,58,86,.12);
    background: rgba(255,255,255,.96);
    box-shadow: 0 -8px 28px rgba(14,58,86,.12);
    backdrop-filter: blur(12px);
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .mobile-sticky-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-sticky-cta .button { min-height: 46px; padding: 11px 12px; font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-sticky-cta { transition: none; }
}


/* ========================================================================== 
   Carlos Sanchez v2.5.5 · Navegación por servicio + compactación visual
   ========================================================================== */
.home-service-summary { list-style: none; cursor: default; }
.home-service-summary::-webkit-details-marker { display: none; }
.home-service-title-group { min-width: 0; }
.home-service-toggle-indicator { display: none; }
.home-service-expanded { display: flex; flex: 1; flex-direction: column; }
.home-service-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 14px; }
.button-small { min-height: 40px; padding: 9px 14px; font-size: .82rem; }

/* Home desktop: menos altura y mejor uso del ancho */
@media (min-width: 761px) {
  .home-compact .section { padding: 64px 0; }
  .home-compact .section-heading { margin-bottom: 30px; }
  .home-compact #servicesGrid.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .home-compact .home-service-card { padding: 20px; }
  .home-compact .home-service-card h3 { margin: 14px 0 0; font-size: 1.04rem; line-height: 1.3; }
  .home-compact .home-service-card .service-home-description { margin: 12px 0 0; font-size: .86rem; line-height: 1.5; }
  .home-compact .home-service-card .service-detail-link { margin-top: 0; }
  .home-compact .experience-card { padding: 22px; }
  .home-compact .work-method-grid article { padding: 21px; }
  .home-compact .portal-trust-section { padding: 58px 0; }
  .home-compact .portal-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
  .home-compact .portal-trust-section h2 { font-size: clamp(2rem, 3vw, 2.75rem); line-height: 1.08; }
  .home-compact .portal-trust-note { margin-top: 18px; padding: 16px 18px; }
  .home-compact .portal-feature-list-compact article { padding: 14px 16px; }
  .home-compact .portal-public-link { margin-top: 14px; }
  .home-compact .technology-section-compact { padding: 54px 0; }
  .home-compact .solutions-section { padding: 56px 0; }
  .home-compact .solutions-section .portfolio-heading { align-items: center; }
  .home-compact .solutions-section .section-heading { margin-bottom: 24px; }
  .home-compact .solutions-section h2 { font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1.08; }
  .home-compact .solution-home-strip { padding: 22px 26px; }
  .home-compact .faq-section { padding-top: 56px; padding-bottom: 56px; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  .home-compact #servicesGrid.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Móvil: cada servicio es un acordeón compacto. */
@media (max-width: 760px) {
  .home-compact .section { padding: 40px 0; }
  #servicesGrid.service-grid { border-top: 1px solid var(--line); }
  details.home-service-card,
  details.home-service-card:hover {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }
  .home-service-summary {
    display: grid;
    grid-template-columns: 40px minmax(0,1fr) 22px;
    grid-template-areas: "number text toggle";
    gap: 10px;
    align-items: center;
    padding: 14px 0;
    cursor: pointer;
  }
  .home-service-card .service-card-head { grid-area: number; display: block; }
  .home-service-card .card-kicker { width: 32px; height: 32px; }
  .home-service-title-group { grid-area: text; }
  .home-service-card h3 { margin: 0; font-size: .98rem; line-height: 1.28; }
  .home-service-card .service-mobile-summary { display: block; margin: 3px 0 0; color: var(--muted); font-size: .79rem; line-height: 1.35; }
  .home-service-toggle-indicator {
    grid-area: toggle;
    display: block;
    color: var(--tech);
    font-size: 1.22rem;
    font-weight: 900;
    text-align: right;
  }
  details.home-service-card[open] .home-service-toggle-indicator { transform: rotate(45deg); }
  .home-service-card::after { content: none; display: none; }
  .home-service-expanded { padding: 0 0 16px 42px; }
  .home-service-card .service-home-description { display: block; margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
  .home-service-actions { gap: 10px; padding-top: 12px; }
  .home-service-actions .button { width: auto; }
  .home-service-actions .text-link { font-size: .82rem; }
  .services-all-link { margin-top: 14px; }
  .portal-grid { gap: 18px; }
  .technology-section-compact { padding-top: 36px; padding-bottom: 36px; }
  .solutions-section { padding-top: 36px; padding-bottom: 36px; }
}

/* Página Servicios: deep-link como vista de detalle real. */
.service-focus-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 12px 0;
}
.service-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 12px; }
.service-detail-summary .service-detail-actions .button { margin-top: 0; }
.service-card-back { display: none; font-size: .84rem; }
#servicesCatalog.service-focus-active .service-detail-card.is-focused-service .service-card-back { display: inline-flex; }
#servicesCatalog.service-focus-active .service-detail-card { display: none; }
#servicesCatalog.service-focus-active .service-detail-card.is-focused-service { display: grid; }
.service-detail-focus-page .service-catalog-hero { display: none; }
.service-detail-focus-page .services-catalog-page > .section.section-soft { padding-top: 36px; }
.service-detail-card.is-focused-service { border-color: #B9D8E2; box-shadow: 0 16px 38px rgba(14,58,86,.08); }

@media (max-width: 760px) {
  .service-focus-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .service-focus-toolbar .button { width: 100%; }
  .service-detail-card { gap: 22px; padding: 22px; }
  .service-detail-summary h2 { margin: 14px 0 10px; font-size: 1.7rem; }
  .service-detail-body { gap: 20px; }
  .service-detail-body section { padding-bottom: 18px; }
  .service-detail-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .service-detail-actions .button { width: 100%; }
}

/* ========================================================================== 
   Carlos Sanchez v2.5.5 FIX1 · firma visual del hero
   El búho se integra como marca de agua decorativa únicamente en desktop.
   ========================================================================== */
@media (min-width: 1101px) {
  .home-compact .hero-grid-single .hero-copy {
    max-width: min(760px, 58vw);
  }

  .home-compact .hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    right: clamp(24px, 3vw, 72px);
    width: clamp(410px, 34vw, 620px);
    aspect-ratio: 566 / 626;
    transform: translateY(-49%);
    background: url("../img/procentra-owl-watermark.png") center / contain no-repeat;
    opacity: .16;
    pointer-events: none;
    filter: drop-shadow(0 24px 54px rgba(2, 22, 34, .10));
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.72) 18%, #000 42%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.72) 18%, #000 42%, #000 100%);
  }

  .home-compact .hero .hero-grid {
    position: relative;
    z-index: 1;
  }
}

/* En tablet y móvil se prioriza lectura y compactación. */
@media (max-width: 1100px) {
  .home-compact .hero::before {
    display: none;
  }
}


/* ========================================================================== 
   Carlos Sanchez v2.5.5 FIX2 · Densidad visual final + navegación móvil
   ========================================================================== */
.audience-inline {
  margin: -10px 0 20px;
  color: var(--muted);
  font-size: .88rem;
}
.audience-inline strong { color: var(--primary-900); }

/* Servicios: catálogo-resumen en la home. El detalle se despliega solo bajo demanda. */
.home-compact #servicesGrid.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}
details.home-service-card,
details.home-service-card:hover {
  display: block;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  transform: none;
  overflow: hidden;
}
.home-service-summary {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 22px;
  gap: 11px;
  align-items: center;
  min-height: 66px;
  padding: 12px 14px;
  cursor: pointer;
}
.home-service-card .service-card-head { display: block; }
.home-service-card .service-business-label { display: none; }
.home-service-card .card-kicker { width: 30px; height: 30px; font-size: .68rem; }
.home-service-card h3 { margin: 0; font-size: .98rem; line-height: 1.24; }
.home-service-card .service-mobile-summary { display: block; margin: 3px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.home-service-toggle-indicator {
  display: block;
  color: var(--tech);
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
  transition: transform .16s ease;
}
details.home-service-card[open] .home-service-toggle-indicator { transform: rotate(45deg); }
.home-service-expanded {
  display: block;
  padding: 0 14px 14px 63px;
  border-top: 1px solid rgba(203,213,225,.55);
}
.home-service-card .service-home-description { display: block; margin: 12px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.home-service-actions { margin-top: 0; padding-top: 10px; gap: 10px; }
.home-service-actions .button { width: auto; min-height: 36px; padding: 8px 12px; }
.home-service-actions .text-link { font-size: .8rem; }
.services-all-link { margin-top: 14px; }

/* Metodología: una sola pieza visual, sin cuatro tarjetas adicionales. */
.work-method-grid { display: none !important; }
.method-compact-layout {
  display: grid;
  grid-template-columns: minmax(250px,.72fr) minmax(0,1.28fr);
  gap: 34px;
  align-items: center;
}
.method-compact-copy h2 { margin: 8px 0 8px; font-size: clamp(1.65rem,2.5vw,2.2rem); }
.method-compact-copy p { margin: 0; color: var(--muted); max-width: 540px; }
.method-flow-compact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0;
}
.method-flow-compact .method-mobile-step {
  display: grid;
  gap: 2px;
  min-width: 108px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.method-flow-compact .method-mobile-step span { color: var(--tech); font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.method-flow-compact .method-mobile-step strong { color: var(--primary-900); font-size: .86rem; text-transform: uppercase; }
.method-flow-compact .method-mobile-arrow { margin: 0; color: #89A9B7; }

/* Portal: solo una aparición, tres momentos y sin tarjeta redundante de confianza. */
.portal-grid-final { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 30px; align-items: center; }
.portal-compact-copy h2 { margin: 8px 0 10px; font-size: clamp(1.8rem,2.8vw,2.45rem); line-height: 1.08; }
.portal-compact-copy .portal-lead { margin: 0; font-size: .94rem; line-height: 1.55; }
.portal-feature-list-compact { gap: 8px; }
.portal-feature-list-compact article { padding: 12px 14px; }
.portal-feature-list-compact p { font-size: .82rem; line-height: 1.35; }
.portal-public-link { margin-top: 12px; }

/* Tecnología, solución propia y FAQ se comportan como franjas, no como páginas internas. */
.home-compact .technology-section-compact { padding: 40px 0; }
.home-compact .technology-section-compact .technology-intro { max-width: 940px; }
.home-compact .technology-section-compact .technology-intro h2 { margin: 7px 0 8px; font-size: clamp(1.6rem,2.4vw,2.05rem); }
.home-compact .technology-home-tags { margin: 12px 0 10px; }
.home-compact .solutions-section { padding: 34px 0; }
.home-compact .solution-home-strip { padding: 18px 22px; }
.home-compact .solution-home-copy h3 { margin: 5px 0 5px; font-size: 1.7rem; }
.home-compact .solution-home-tags { margin: 10px 0 8px; }
.home-compact .faq-section { padding: 42px 0; }
.home-compact .faq-layout { grid-template-columns: .6fr 1.4fr; gap: 34px; }
.home-compact .faq-list summary { padding-top: 14px; padding-bottom: 14px; }

/* Menos separación vertical en el conjunto sin adelgazar Hero ni Experiencia. */
@media (min-width: 761px) {
  .home-compact .problem-section,
  .home-compact #servicios,
  .home-compact .work-method-section,
  .home-compact .portal-trust-section { padding-top: 50px; padding-bottom: 50px; }
  .home-compact .section-heading { margin-bottom: 22px; }
  .home-compact .experience-section { padding-top: 58px; padding-bottom: 58px; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .method-compact-layout { grid-template-columns: 1fr; gap: 20px; }
  .method-flow-compact { justify-content: flex-start; flex-wrap: wrap; }
  .portal-grid-final { grid-template-columns: 1fr; gap: 20px; }
  .home-compact .faq-layout { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 760px) {
  .home-compact .section { padding: 30px 0; }
  .home-compact .experience-section { padding-top: 36px; padding-bottom: 36px; }
  .home-compact .section-heading { margin-bottom: 14px; }
  .audience-inline { margin: -5px 0 12px; font-size: .78rem; line-height: 1.4; }
  .home-compact #servicesGrid.service-grid { display: block; border-top: 1px solid var(--line); }
  details.home-service-card,
  details.home-service-card:hover { border-width: 0 0 1px; border-radius: 0; }
  .home-service-summary { min-height: 0; padding: 11px 0; grid-template-columns: 34px minmax(0,1fr) 18px; gap: 8px; }
  .home-service-card .card-kicker { width: 28px; height: 28px; }
  .home-service-card h3 { font-size: .93rem; line-height: 1.22; }
  .home-service-card .service-mobile-summary { margin-top: 2px; font-size: .74rem; }
  .home-service-expanded { padding: 0 0 12px 42px; border-top: 0; }
  .home-service-card .service-home-description { margin-top: 2px; font-size: .8rem; }
  .home-service-actions { padding-top: 9px; }

  .method-compact-layout { display: block; }
  .method-compact-copy h2 { margin-bottom: 6px; font-size: 1.45rem; }
  .method-compact-copy p { font-size: .86rem; }
  .method-flow-compact {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 2px;
    margin-top: 14px;
  }
  .method-flow-compact .method-mobile-step {
    display: flex;
    align-items: baseline;
    min-width: 0;
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    gap: 10px;
  }
  .method-flow-compact .method-mobile-step strong { font-size: .92rem; }
  .method-flow-compact .method-mobile-arrow { margin-left: 8px; transform: rotate(90deg); transform-origin: left center; line-height: .8; }

  .portal-grid-final { display: block; }
  .portal-compact-copy h2 { font-size: 1.55rem; }
  .portal-compact-copy .portal-lead { font-size: .84rem; line-height: 1.45; }
  .portal-feature-list-compact { margin-top: 12px; }
  .portal-feature-list-compact article { padding: 10px 0; }
  .portal-feature-list-compact p { font-size: .78rem; }

  .home-compact .technology-section-compact,
  .home-compact .solutions-section,
  .home-compact .faq-section { padding-top: 28px; padding-bottom: 28px; }
  .home-compact .technology-section-compact .technology-intro h2 { font-size: 1.4rem; }
  .home-compact .technology-section-compact .technology-intro > p { font-size: .82rem; line-height: 1.45; }
  .home-compact .technology-home-tags { margin: 10px 0 8px; gap: 6px; }
  .home-compact .technology-home-tags span { padding: 5px 7px; font-size: .68rem; }
  .home-compact .solution-home-strip { padding: 16px 18px; }
  .home-compact .solution-home-copy h3 { font-size: 1.45rem; }
  .home-compact .solution-home-copy p { font-size: .82rem; }
  .home-compact .faq-layout { display: block; }
  .home-compact .faq-layout .section-heading { margin-bottom: 8px; }
  .home-compact .faq-list summary { padding: 13px 32px 13px 0; font-size: .88rem; }
  .home-compact .faq-list details p { font-size: .82rem; line-height: 1.45; }
}

/* ========================================================================== 
   Carlos Sanchez v2.5.7 · legibilidad + selector de idioma
   ========================================================================== */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 3px 6px;
  border: 1px solid #D7E1E8;
  border-radius: 999px;
  background: #F8FAFC;
  color: #738196;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.language-option {
  min-width: 28px;
  padding: 3px 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.language-option:hover,
.language-option:focus-visible { color: var(--action-hover); background: #EFF6FF; }
.language-option.is-active { background: var(--brand-primary); color: #fff; }

/* La compactación no debe sacrificar legibilidad. */
.home-compact .microcopy,
.home-compact .hero-quick-contact,
.home-compact .hero-proofline { font-size: .92rem; }
.home-compact .audience-inline { font-size: .94rem; }
.home-compact .home-service-card h3 { font-size: 1.06rem; }
.home-compact .home-service-card .service-mobile-summary { font-size: .86rem; line-height: 1.42; }
.home-compact .home-service-card .service-home-description { font-size: .91rem; line-height: 1.55; }
.home-compact .home-service-actions .text-link,
.home-compact .button-small { font-size: .88rem; }
.home-compact .method-flow-compact .method-mobile-step span { font-size: .75rem; }
.home-compact .method-flow-compact .method-mobile-step strong { font-size: .95rem; }
.home-compact .portal-compact-copy .portal-lead { font-size: 1rem; }
.home-compact .portal-feature-list-compact p { font-size: .9rem; line-height: 1.5; }
.home-compact .technology-section-compact .technology-intro > p { font-size: .96rem; }
.home-compact .technology-home-tags span { font-size: .8rem; }
.home-compact .solution-home-copy p { font-size: .94rem; }
.home-compact .faq-list summary { font-size: 1rem; line-height: 1.45; }
.home-compact .faq-list details p { font-size: .92rem; line-height: 1.55; }
.home-compact .mobile-sticky-cta .button { font-size: .88rem; }

/* Formularios del cliente: ayudas y etiquetas pequeñas un poco más legibles. */
body:not(.admin-section) .subtle { font-size: max(.88rem, 14px); }
body:not(.admin-section) .form-card label,
body:not(.admin-section) .profile-form label,
body:not(.admin-section) .field-label { font-size: .93rem; }
body:not(.admin-section) .form-section-heading p,
body:not(.admin-section) .form-help,
body:not(.admin-section) .privacy-note p { font-size: .92rem; }
body:not(.admin-section) .choice-chip { font-size: .84rem !important; }

@media (max-width: 760px) {
  .main-menu .language-switch {
    width: fit-content;
    margin: 4px 0 2px;
  }
  .home-compact .microcopy,
  .home-compact .hero-quick-contact,
  .home-compact .hero-proofline { font-size: .88rem; line-height: 1.48; }
  .home-compact .audience-inline { font-size: .86rem; }
  .home-compact .home-service-card h3 { font-size: 1rem; line-height: 1.3; }
  .home-compact .home-service-card .service-mobile-summary { font-size: .82rem; line-height: 1.42; }
  .home-compact .home-service-card .service-home-description { font-size: .87rem; line-height: 1.52; }
  .home-compact .home-service-actions .text-link { font-size: .86rem; }
  .home-compact .method-compact-copy p { font-size: .91rem; }
  .home-compact .method-flow-compact .method-mobile-step span { font-size: .74rem; }
  .home-compact .method-flow-compact .method-mobile-step strong { font-size: .98rem; }
  .home-compact .portal-compact-copy .portal-lead { font-size: .9rem; }
  .home-compact .portal-feature-list-compact p { font-size: .86rem; }
  .home-compact .technology-section-compact .technology-intro > p { font-size: .9rem; }
  .home-compact .technology-home-tags span { font-size: .76rem; }
  .home-compact .solution-home-copy p { font-size: .9rem; }
  .home-compact .faq-list summary { font-size: .96rem; }
  .home-compact .faq-list details p { font-size: .89rem; }
}


/* ==========================================================================
   Carlos Sanchez v2.5.7 · Mi espacio resiliente
   ========================================================================== */
.dashboard-section { padding: 30px 0 38px; }
.dashboard-section .request-summary,
.dashboard-section .dashboard-request-card { position: static; top: auto; }
.dashboard-section .section-heading { margin-bottom: 18px; }
.archived-panel { border: 0; border-top: 1px solid var(--line); }
.dashboard-loading { color: var(--text-secondary); }
.dashboard-load-error { border: 1px solid #f0caca; background: #fff7f7; color: var(--danger); }
.dashboard-load-error p { margin: 7px 0 12px; color: #7a4d4d; }
#requestsList:empty::before, #archivedRequests:empty::before {
  content: "Cargando solicitudes..."; display: block; padding: 18px; border: 1px dashed var(--line); border-radius: 12px; color: var(--text-secondary);
}

/* ==========================================================================
   Carlos Sanchez v2.5.8 · Mi espacio compacto y tabulado
   ========================================================================== */
.dashboard-section {
  padding: 24px 0 30px;
}
.dashboard-table-heading {
  align-items: end;
  gap: 14px;
  margin-bottom: 14px;
}
.dashboard-table-heading h2 {
  margin-bottom: 6px;
}
.dashboard-table-heading p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}
.table-hint {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dashboard-table-shell {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(14, 42, 74, 0.05);
}
.dashboard-table-head {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(120px, .9fr) minmax(120px, .95fr) minmax(150px, 1fr) minmax(135px, .95fr) minmax(165px, 1.1fr) minmax(145px, .9fr);
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f7fb 100%);
  color: #607186;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dashboard-scroll-list {
  max-height: 520px;
  overflow-y: auto;
  background: #fff;
}
.dashboard-scroll-list-archived {
  max-height: 300px;
}
.request-table-row {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) minmax(120px, .9fr) minmax(120px, .95fr) minmax(150px, 1fr) minmax(135px, .95fr) minmax(165px, 1.1fr) minmax(145px, .9fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #edf2f7;
}
.request-table-row:last-child {
  border-bottom: 0;
}
.request-table-row:hover {
  background: #fbfdff;
}
.request-table-cell {
  min-width: 0;
}
.request-table-cell .cell-label {
  display: none;
}
.request-table-main {
  display: grid;
  gap: 5px;
}
.request-row-ref {
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.request-row-title {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.25;
}
.request-row-description {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
  line-height: 1.46;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.request-table-date strong,
.request-table-price strong {
  display: block;
  color: var(--ink);
  font-size: .95rem;
}
.request-table-date small,
.request-table-status small,
.request-table-payment small,
.request-table-price small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}
.request-table-status,
.request-table-payment,
.request-table-price,
.request-table-date,
.request-table-attention {
  display: grid;
  gap: 5px;
}
.request-table-attention {
  align-content: start;
}
.request-alert-stack {
  display: grid;
  gap: 6px;
}
.attention-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.2;
}
.attention-pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: .95;
}
.attention-pill-message {
  background: #e9f1ff;
  color: #255dcf;
}
.attention-pill-meeting {
  background: #eefaf3;
  color: #22724c;
}
.attention-empty {
  color: #7b8a9a;
  font-size: .8rem;
}
.request-table-actions {
  justify-self: end;
}
.request-action-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.request-open-btn {
  min-width: 138px;
  justify-content: center;
}
.payment-mini {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 10px;
  font-size: .7rem;
}
.payment-mini small {
  margin: 0;
  color: inherit;
  font-size: .7rem;
  opacity: .92;
}
.payment-mini-paid { background: #e7f4ec; color: #216a43; }
.payment-mini-due { background: #fff3dd; color: #9b6308; }
.payment-mini-issue { background: #fdeaea; color: #a64e4e; }
.payment-mini-na { background: #edf2f5; color: #617284; }
.request-table-price.muted strong { color: #708093; }
.archived-table-shell .request-open-btn { min-width: 124px; }

@media (max-width: 1180px) {
  .dashboard-table-head,
  .request-table-row {
    grid-template-columns: minmax(220px, 2fr) minmax(110px, .9fr) minmax(120px, .95fr) minmax(135px, 1fr) minmax(125px, .95fr) minmax(155px, 1.05fr) minmax(130px, .85fr);
  }
}

@media (max-width: 980px) {
  .dashboard-table-head { display: none; }
  .dashboard-scroll-list,
  .dashboard-scroll-list-archived {
    max-height: none;
    overflow: visible;
  }
  .request-table-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .request-table-cell .cell-label {
    display: block;
    margin-bottom: 5px;
    color: #607186;
    font-size: .72rem;
    font-weight: 780;
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .request-table-main {
    padding-bottom: 6px;
    border-bottom: 1px solid #edf2f7;
  }
  .request-table-date,
  .request-table-status,
  .request-table-payment,
  .request-table-price,
  .request-table-attention,
  .request-table-actions {
    grid-template-columns: 1fr;
  }
  .request-action-stack {
    align-items: stretch;
  }
  .request-open-btn,
  .request-action-stack .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .dashboard-section { padding: 20px 0 24px; }
  .dashboard-table-heading p { font-size: .9rem; }
  .table-hint { display: none; }
  .request-row-title { font-size: 1rem; }
  .request-row-description { font-size: .9rem; }
}


/* Solicitud compacta · mensajes y videollamada por iconos v2.5.8-fix3 */
.request-compact-actions {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.compact-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.compact-toggle-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfd;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.compact-toggle-card:hover { border-color: #b5c6d2; box-shadow: 0 10px 24px rgba(23,32,51,.05); transform: translateY(-1px); }
.compact-toggle-card.active { border-color: #8fb0c5; background: var(--accent-pale); box-shadow: inset 0 0 0 1px rgba(49,93,120,.08); }
.compact-toggle-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(49,93,120,.1);
  font-size: 1.25rem;
}
.compact-toggle-copy { display: grid; gap: 4px; min-width: 0; }
.compact-toggle-copy strong { color: var(--ink); }
.compact-toggle-copy small { color: var(--muted); }
.compact-toggle-badge {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #255dcf;
  color: white;
  font-size: .75rem;
  font-weight: 800;
}
.request-quick-panels { display: grid; gap: 16px; }
.quick-interaction-panel { border-color: #d8e2ea; }
.quick-panel-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.compact-thread { margin-top: 0; }
.compact-message-form textarea { min-height: 94px; }
.meeting-proposal-box { margin-top: 18px; padding: 14px 16px; border: 1px dashed #bcc9d4; border-radius: 14px; background: #fbfcfd; }
.meeting-proposal-box summary { cursor: pointer; font-weight: 760; color: var(--ink); }
.meeting-proposal-form { margin-top: 16px; display: grid; gap: 14px; }
.meeting-compact-card { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd; }
.meeting-compact-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.meeting-compact-head p { margin: 4px 0 0; color: var(--muted); }
.meeting-pill { display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px; background: #edf2f5; color: #506071; font-size: .78rem; font-weight: 780; white-space: nowrap; }
.compact-meeting-details { grid-template-columns: repeat(2, minmax(0,1fr)); }
.compact-meeting-actions { margin-top: 2px; }
.meeting-customer_proposed .meeting-pill { background: #eef2fb; color: #4c5c9f; }
.meeting-proposed .meeting-pill,
.meeting-scheduled .meeting-pill { background: #f8f0dc; color: var(--warning); }
.meeting-confirmed .meeting-pill { background: #e5f2e9; color: var(--success); }

@media (max-width: 900px) {
  .compact-action-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .compact-toggle-card { grid-template-columns: auto 1fr; }
  .compact-toggle-badge { justify-self: start; }
  .compact-meeting-details { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Carlos Sanchez v2.5.8 FIX5 · Solicitud estratégica y compacta
   ========================================================================== */
.request-page-compact.section {
  padding: 38px 0 54px;
}
.request-page-compact .back-link {
  margin-bottom: 12px;
}
.request-page-head {
  align-items: center;
  margin-bottom: 18px;
}
.request-page-head h1 {
  max-width: 980px;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.04;
}

.request-summary-strip {
  display: grid;
  grid-template-columns: 1fr 1.55fr 1.15fr .75fr;
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}
.request-summary-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
}
.request-summary-item > span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.request-summary-item > strong {
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.request-summary-next > strong {
  color: var(--accent-dark);
}

.request-quickbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.request-page-compact .compact-toggle-card {
  padding: 13px 15px;
  border-radius: 14px;
}
.request-page-compact .compact-toggle-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.request-page-compact .request-quick-panels {
  margin-bottom: 12px;
}
.request-page-compact .quick-interaction-panel {
  padding: 20px;
}
.icon-close-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.icon-close-btn:hover {
  border-color: #aebdc9;
  color: var(--ink);
}

.request-flow-card {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.request-flow-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.request-flow-head h2 {
  margin: 3px 0 0;
  font-size: 1.1rem;
}
.request-flow-label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}
.request-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.request-flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f6f8fa;
  color: #718092;
  font-size: .82rem;
}
.request-flow li > span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.request-flow li.done {
  background: #eef7f2;
  color: #2b6a48;
}
.request-flow li.current {
  background: var(--accent-pale);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(49,93,120,.16);
}

.request-modules {
  display: grid;
  gap: 10px;
}
.request-module {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.request-module > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.request-module > summary::-webkit-details-marker {
  display: none;
}
.request-module > summary:hover {
  background: #fbfcfd;
}
.request-module > summary > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.request-module > summary strong {
  color: var(--ink);
  font-size: 1rem;
}
.request-module > summary small {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.35;
}
.request-module-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 800;
}
.request-module-chevron {
  color: var(--muted);
  font-size: 1.2rem;
  transition: transform .16s ease;
}
.request-module[open] .request-module-chevron {
  transform: rotate(180deg);
}
.request-module[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
.request-module-body {
  padding: 18px;
}
.request-description-box {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: #f7fafc;
}
.request-description-box p {
  margin: 7px 0 0;
}
.compact-data-grid {
  gap: 10px;
}
.compact-data-grid > div {
  padding: 12px;
}

.document-workspace-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr 1.1fr;
  gap: 12px;
}
.compact-subpanel {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfd;
}
.compact-upload-form {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.compact-document-list {
  max-height: 280px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 3px;
}
.compact-quotes-list {
  max-height: 330px;
  overflow-y: auto;
  padding-right: 3px;
}

.request-payment-table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.request-payment-scroll {
  max-height: 390px;
  overflow: auto;
}
.request-payment-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}
.request-payment-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f3f7fb;
}
.request-payment-table th,
.request-payment-table td {
  padding: 12px 13px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: middle;
}
.request-payment-table th {
  color: #607186;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.request-payment-table td {
  color: var(--ink-2);
  font-size: .86rem;
}
.request-payment-table tbody tr:hover {
  background: #fbfdff;
}
.request-payment-table td:first-child {
  display: grid;
  gap: 4px;
}
.request-payment-table td small {
  display: block;
  color: var(--muted);
  font-size: .72rem;
}
.payment-period-seq {
  color: var(--accent-dark);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.payment-table-action {
  min-width: 132px;
}
.payment-table-action .button {
  width: auto;
  min-width: 112px;
}
.table-action-muted {
  color: #7a8998;
  font-size: .78rem;
}
.request-table-empty {
  margin: 4px;
}

@media (max-width: 1050px) {
  .request-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .document-workspace-grid {
    grid-template-columns: 1fr 1fr;
  }
  .document-workspace-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .request-page-compact.section {
    padding: 24px 0 38px;
  }
  .request-page-head {
    display: grid;
    gap: 12px;
  }
  .request-page-head h1 {
    font-size: clamp(1.65rem, 8.5vw, 2.35rem);
  }
  .request-summary-strip {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10px;
  }
  .request-summary-item {
    padding: 11px 12px;
  }
  .request-summary-item > strong {
    font-size: .86rem;
  }
  .request-quickbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .request-page-compact .compact-toggle-card {
    padding: 11px 12px;
  }
  .request-page-compact .compact-toggle-icon {
    width: 38px;
    height: 38px;
  }
  .request-flow-card {
    padding: 12px;
  }
  .request-flow-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .request-flow {
    grid-template-columns: repeat(5, minmax(72px, 1fr));
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .request-flow li {
    justify-content: center;
    padding: 8px;
  }
  .request-flow li strong {
    font-size: .78rem;
  }
  .request-module > summary {
    gap: 10px;
    padding: 13px 12px;
  }
  .request-module > summary small {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .request-module-body {
    padding: 13px;
  }
  .document-workspace-grid {
    grid-template-columns: 1fr;
  }
  .document-workspace-grid > :first-child {
    grid-column: auto;
  }
  .compact-document-list,
  .compact-quotes-list {
    max-height: 260px;
  }
  .request-payment-scroll {
    max-height: 330px;
  }
  .quick-interaction-panel {
    max-height: 72vh;
    overflow-y: auto;
  }
  .compact-thread {
    max-height: 300px;
    overflow-y: auto;
  }
}

.request-page-compact #requestTitle {
  max-width: 980px;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
}
.compact-quotes-list .quote-decision-card {
  padding: 14px 16px;
}
.compact-quotes-list .quote-decision-card p {
  margin: 4px 0;
}
@media (max-width: 760px) {
  .request-page-compact #requestTitle {
    font-size: clamp(1.65rem, 8.5vw, 2.35rem);
  }
}


/* Mi espacio · FIX7
   El desplazamiento horizontal pertenece SOLO a Solicitudes activas.
   La página completa conserva el layout responsive normal. */
.dashboard-table-shell-active {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 980px) {
  /* Neutraliza el apilado móvil únicamente dentro de la tabla activa. */
  .dashboard-table-shell-active {
    max-height: 430px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-gutter: stable;
  }

  .dashboard-table-shell-active .dashboard-table-head {
    position: sticky;
    top: 0;
    z-index: 4;
    display: grid;
    width: 980px;
    min-width: 980px;
    grid-template-columns: 225px 112px 118px 140px 125px 145px 115px;
    gap: 10px;
    padding: 12px 14px;
  }

  .dashboard-table-shell-active .dashboard-scroll-list {
    width: 980px;
    min-width: 980px;
    max-height: none;
    overflow: visible;
  }

  .dashboard-table-shell-active .request-table-row {
    display: grid;
    width: 980px;
    min-width: 980px;
    grid-template-columns: 225px 112px 118px 140px 125px 145px 115px;
    gap: 10px;
    align-items: center;
    padding: 13px 14px;
  }

  .dashboard-table-shell-active .request-table-cell .cell-label {
    display: none;
  }

  .dashboard-table-shell-active .request-table-main {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .dashboard-table-shell-active .request-row-description {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .84rem;
  }

  .dashboard-table-shell-active .request-row-title {
    font-size: .96rem;
  }

  .dashboard-table-shell-active .request-table-date,
  .dashboard-table-shell-active .request-table-status,
  .dashboard-table-shell-active .request-table-payment,
  .dashboard-table-shell-active .request-table-price,
  .dashboard-table-shell-active .request-table-attention,
  .dashboard-table-shell-active .request-table-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dashboard-table-shell-active .request-table-actions {
    justify-self: end;
  }

  .dashboard-table-shell-active .request-action-stack {
    align-items: flex-end;
  }

  .dashboard-table-shell-active .request-open-btn,
  .dashboard-table-shell-active .request-action-stack .button {
    width: auto;
    min-width: 108px;
  }
}

@media (max-width: 760px) {
  /* El resto de Mi espacio queda totalmente contenido en el viewport. */
  .dashboard-content,
  .dashboard-content .container,
  .dashboard-section,
  .new-request-compact,
  .dashboard-section-heading {
    max-width: 100%;
    min-width: 0;
  }

  .dashboard-content {
    overflow-x: clip;
  }

  .new-request-compact {
    grid-template-columns: 1fr;
  }

  .new-request-compact-actions,
  .new-request-compact-actions .button,
  .dashboard-section-heading .button {
    width: 100%;
    max-width: 100%;
  }

  .dashboard-table-heading {
    align-items: flex-start;
  }

  .table-hint {
    display: block;
    margin-top: 5px;
    font-size: .7rem;
  }

  .dashboard-table-shell-active {
    max-height: 390px;
    border-radius: 13px;
  }

  .dashboard-table-shell-active .dashboard-table-head,
  .dashboard-table-shell-active .dashboard-scroll-list,
  .dashboard-table-shell-active .request-table-row {
    width: 920px;
    min-width: 920px;
  }

  .dashboard-table-shell-active .dashboard-table-head,
  .dashboard-table-shell-active .request-table-row {
    grid-template-columns: 210px 104px 108px 128px 112px 138px 100px;
    gap: 8px;
  }

  .dashboard-table-shell-active .request-row-ref {
    font-size: .65rem;
  }

  .dashboard-table-shell-active .request-row-title {
    font-size: .9rem;
  }

  .dashboard-table-shell-active .request-row-description {
    font-size: .78rem;
    line-height: 1.3;
  }

  .dashboard-table-shell-active .request-table-date strong,
  .dashboard-table-shell-active .request-table-price strong {
    font-size: .84rem;
  }
}


/* ========================================================================== 
   Carlos Sanchez v2.5.8 FIX9 · navegación estratégica + hero más compacto
   Conserva identidad visual corporativa previa.
   ========================================================================== */

/* Hero: misma identidad, menos vacío y jerarquía ligeramente más contenida. */
@media (min-width: 761px) {
  .home-compact .hero {
    padding-top: 72px;
    padding-bottom: 66px;
  }
  .home-compact .hero h1 {
    max-width: 800px;
    font-size: clamp(2.75rem, 4.35vw, 3.75rem);
    line-height: 1.08;
  }
  .home-compact .hero-grid-single .hero-copy { margin-top: 4px; }
  .home-compact .hero-note { max-width: 760px; font-size: 1.03rem; line-height: 1.62; }
}

/* Navegación pública por intención: qué resolver, servicio y evidencia. */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #425466;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}
.nav-dropdown-trigger:hover,
.nav-dropdown-trigger:focus-visible,
.nav-dropdown-trigger.nav-current { color: var(--action); }
.nav-chevron {
  display: inline-block;
  color: #7B8A9A;
  font-size: .9rem;
  transform-origin: 50% 52%;
  transition: transform .16s ease;
}
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 15px);
  left: -20px;
  width: min(560px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid #DCE5EC;
  border-radius: 16px;
  background: rgba(255,255,255,.99);
  box-shadow: 0 22px 55px rgba(14,58,86,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.nav-dropdown-panel::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 32px;
  width: 14px;
  height: 14px;
  border-top: 1px solid #DCE5EC;
  border-left: 1px solid #DCE5EC;
  background: #fff;
  transform: rotate(45deg);
}
.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-panel-wide { width: min(720px, calc(100vw - 40px)); }
.nav-dropdown-panel-right { left: auto; right: -24px; }
.nav-dropdown-panel-right::before { left: auto; right: 55px; }
.nav-dropdown-heading {
  display: grid;
  gap: 3px;
  padding: 2px 4px 13px;
  border-bottom: 1px solid #EDF2F6;
}
.nav-dropdown-heading > span {
  color: var(--brand-primary);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav-dropdown-heading small { color: var(--muted); font-size: .78rem; font-weight: 520; }
.nav-dropdown-list {
  display: grid;
  gap: 4px;
  padding: 10px 0 8px;
}
.nav-dropdown-list-services { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 8px; }
.nav-dropdown-list a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #425466;
  line-height: 1.28;
}
.nav-dropdown-list a > span {
  color: var(--tech);
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .06em;
}
.nav-dropdown-list a strong { font-size: .84rem; font-weight: 720; }
.nav-dropdown-list a:hover,
.nav-dropdown-list a:focus-visible { background: #F1F7FA; color: var(--brand-primary); }
.nav-dropdown-footer {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px !important;
  border-radius: 10px;
  background: #F3F8FC;
  color: var(--action) !important;
  font-size: .82rem;
  font-weight: 780;
}
.nav-diagnostic-cta { white-space: nowrap; }

/* La barra cambia a menú antes de quedar comprimida. */
@media (max-width: 1180px) {
  .header-inner { min-height: 64px; }
  .menu-button { display: inline-flex; }
  .main-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: none;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(14,58,86,.14);
  }
  .main-menu.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .main-menu > a,
  .main-menu > .nav-link-button,
  .nav-dropdown-trigger {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 9px;
    text-align: left;
  }
  .nav-dropdown-trigger { justify-content: space-between; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-panel,
  .nav-dropdown-panel-wide,
  .nav-dropdown-panel-right {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height .22s ease, padding .22s ease;
  }
  .nav-dropdown-panel::before { display: none; }
  .nav-dropdown.open .nav-dropdown-panel {
    max-height: 720px;
    padding: 4px 10px 12px;
  }
  .nav-dropdown-heading { display: none; }
  .nav-dropdown-list,
  .nav-dropdown-list-services { grid-template-columns: 1fr; gap: 1px; padding: 4px 0; }
  .nav-dropdown-list a { min-height: 40px; padding: 8px 10px; }
  .nav-dropdown-footer { margin-top: 4px; }
  .language-switch { align-self: flex-start; margin: 6px 8px; }
  .main-menu .nav-diagnostic-cta { width: 100%; margin-top: 6px; }
}

@media (max-width: 760px) {
  .home-compact .hero { padding-top: 44px; padding-bottom: 44px; }
  .home-compact .hero h1 { font-size: clamp(2rem, 10.2vw, 2.75rem); line-height: 1.06; }
  .home-compact .hero-note { font-size: .96rem; }
  .main-menu { left: 10px; right: 10px; }
}


/* ==========================================================================
   Carlos Sanchez v2.5.8 FIX10 · listados ordenados reutilizables
   Solo interfaz: Servicios, cuenta cliente y administración.
   ========================================================================== */
.interface-index {
  width: 100%;
  margin: 0 0 24px;
  padding: 16px;
  border: 1px solid #dce5ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(14,58,86,.045);
  scroll-margin-top: 92px;
}
.interface-index-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid #edf2f6;
}
.interface-index-head > div { display: grid; gap: 2px; }
.interface-index-head .card-kicker { margin: 0; }
.interface-index-head strong { color: var(--ink); font-size: 1.05rem; }
.interface-index-head small { max-width: 420px; color: var(--muted); text-align: right; }
.interface-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 4px 10px;
  padding-top: 10px;
}
.interface-index-grid > a {
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  grid-template-areas: "number title arrow" "number meta arrow";
  align-items: center;
  gap: 2px 10px;
  min-width: 0;
  min-height: 52px;
  padding: 9px 10px;
  border-radius: 11px;
  color: #425466;
}
.interface-index-grid > a:hover,
.interface-index-grid > a:focus-visible { background: #f1f7fa; color: var(--brand-primary); }
.interface-index-grid > a > span {
  grid-area: number;
  align-self: start;
  padding-top: 2px;
  color: var(--tech);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .07em;
}
.interface-index-grid > a > strong {
  grid-area: title;
  min-width: 0;
  font-size: .9rem;
  line-height: 1.3;
}
.interface-index-grid > a > small {
  grid-area: meta;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.3;
}
.interface-index-grid > a > i {
  grid-area: arrow;
  color: var(--action);
  font-style: normal;
  font-size: 1rem;
  transition: transform .15s ease;
}
.interface-index-grid > a:hover > i { transform: translateX(3px); }
.interface-index-services { margin-bottom: 22px; }
.interface-index-grid-services > a { min-height: 50px; }
.interface-index-grid-profile,
.interface-index-grid-admin { grid-template-columns: repeat(4,minmax(0,1fr)); }
.interface-index-grid-profile > a,
.interface-index-grid-admin > a { grid-template-columns: 30px minmax(0,1fr) auto; min-height: 62px; }
.interface-index-grid-profile > a > strong,
.interface-index-grid-admin > a > strong { font-size: .86rem; }
.interface-index-grid-profile > a > small,
.interface-index-grid-admin > a > small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#cuenta-identidad,
#cuenta-contacto,
#cuenta-contexto,
#cuenta-seguridad,
#admin-contactos,
#admin-solicitudes,
#admin-soluciones { scroll-margin-top: 92px; }

/* En cuentas autenticadas el mismo patrón de listado vive dentro del menú. */
.nav-dropdown-list-workspace { grid-template-columns: 1fr; }

@media (max-width: 1180px) {
  .interface-index-grid-profile,
  .interface-index-grid-admin { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .interface-index { margin-bottom: 16px; padding: 10px; border-radius: 13px; box-shadow: none; }
  .interface-index-head { align-items: flex-start; flex-direction: column; gap: 4px; padding: 4px 5px 10px; }
  .interface-index-head small { text-align: left; font-size: .78rem; }
  .interface-index-grid,
  .interface-index-grid-profile,
  .interface-index-grid-admin { grid-template-columns: 1fr; gap: 1px; padding-top: 5px; }
  .interface-index-grid > a,
  .interface-index-grid-profile > a,
  .interface-index-grid-admin > a {
    min-height: 48px;
    padding: 8px 7px;
    border-radius: 9px;
    border-bottom: 1px solid #edf2f6;
  }
  .interface-index-grid > a:last-child { border-bottom: 0; }
  .interface-index-grid > a > strong { font-size: .86rem; }
  .interface-index-grid > a > small { font-size: .73rem; }
  .interface-index-grid-services > a { min-height: 46px; }
}


/* ==========================================================================
   Carlos Sanchez v1.0 · Marca personal
   El búho sustituye el monograma P sin alterar la arquitectura visual previa.
   ========================================================================== */
.brand-mark-owl {
  overflow: hidden;
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-secondary));
}
.brand-mark-owl img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  display: block;
}
.brand > span:last-child {
  white-space: nowrap;
}
@media (max-width: 520px) {
  .brand { gap: 8px; }
  .brand > span:last-child { font-size: .9rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark-owl img { width: 24px; height: 24px; }
}


/* Carlos Sanchez v1.0.1 · Marca personal y sección Sobre mí */
.about-home-section{background:#fff;}
.about-home-grid{display:grid;grid-template-columns:minmax(240px,.72fr) minmax(0,1.28fr);gap:clamp(32px,6vw,84px);align-items:center;}
.about-home-visual{display:flex;justify-content:center;}
.about-home-portrait,.about-page-portrait{position:relative;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#f8fbfd 0%,#eaf3f8 100%);border:1px solid #d8e4eb;box-shadow:0 24px 58px rgba(14,58,86,.10);}
.about-home-portrait{width:min(100%,340px);aspect-ratio:4/5;border-radius:28px;}
.about-home-portrait img,.about-page-portrait img{width:72%;height:72%;object-fit:contain;opacity:.92;filter:saturate(.92);}
.about-home-copy h2{margin:.25rem 0 .5rem;}
.about-role,.about-page-lead{font-size:clamp(1.15rem,1.8vw,1.45rem);line-height:1.45;color:var(--ink);font-weight:680;}
.about-home-copy>p:not(.about-role){max-width:760px;color:var(--muted);}
.about-home-tags,.about-tools-tags{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0;}
.about-home-tags span,.about-tools-tags span{display:inline-flex;padding:8px 12px;border:1px solid #d6e2e9;border-radius:999px;background:#f8fbfd;color:#24435a;font-size:.82rem;font-weight:700;}
.about-home-actions{align-items:center;}
.portal-personal-value{margin:0 0 8px;color:var(--primary-900,#0E3A56);font-size:1rem;}
.solution-origin{margin-top:6px;color:#64748b;font-size:.9rem;line-height:1.45;}

.about-page{background:#fff;}
.about-page-hero{padding-top:clamp(54px,7vw,96px);}
.about-page-hero-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:clamp(36px,7vw,90px);align-items:center;}
.about-page-copy h1{margin:.25rem 0 .5rem;}
.about-page-copy>p{max-width:790px;}
.about-page-portrait-wrap{display:flex;justify-content:center;}
.about-page-portrait{width:min(100%,390px);aspect-ratio:4/5;border-radius:32px;}
.about-profile-grid{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.2fr);gap:clamp(28px,5vw,72px);align-items:start;}
.about-profile-copy{display:grid;gap:12px;color:var(--muted);}
.about-profile-copy p{margin:0;}
.about-experience-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.about-experience-grid article,.about-path-grid article{padding:24px;border:1px solid #dbe5eb;border-radius:18px;background:#fff;}
.about-experience-grid article>span{display:inline-flex;margin-bottom:18px;color:#0b6b75;font-size:.78rem;font-weight:800;letter-spacing:.12em;}
.about-experience-grid h3,.about-path-grid h2{margin:0 0 8px;}
.about-experience-grid p,.about-path-grid p{margin:0;color:var(--muted);}
.about-path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;}
.about-tools-section{padding-bottom:clamp(50px,7vw,88px);}

/* Honeypot: invisible to real users while remaining available to anti-spam logic. */
.form-honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important;}

@media(max-width:900px){
  .about-home-grid,.about-page-hero-grid,.about-profile-grid{grid-template-columns:1fr;}
  .about-home-visual,.about-page-portrait-wrap{order:2;}
  .about-home-portrait{width:min(72vw,300px);aspect-ratio:1/1;border-radius:24px;}
  .about-page-portrait{width:min(72vw,320px);aspect-ratio:1/1;}
  .about-experience-grid,.about-path-grid{grid-template-columns:1fr;}
}
@media(max-width:760px){
  .about-home-section{padding-top:36px;padding-bottom:40px;}
  .about-home-grid{gap:28px;}
  .about-home-portrait,.about-page-portrait{width:min(64vw,250px);}
  .about-home-tags,.about-tools-tags{gap:7px;}
  .about-home-tags span,.about-tools-tags span{padding:7px 10px;font-size:.78rem;}
  .about-experience-grid article,.about-path-grid article{padding:19px;}
}

/* v1.1.0 · pagos alternativos y facturación */
.payment-options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.payment-options-grid .payment-provider-box {
  margin: 0;
  min-height: 100%;
  align-items: flex-start;
}
.payment-provider-content { min-width: 0; width: 100%; }
.manual-payment-instructions {
  white-space: normal;
  overflow-wrap: anywhere;
}
.manual-payment-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line, #dce4e8);
}
.manual-payment-form label { display: grid; gap: 6px; }
.manual-payment-form small { color: var(--muted, #64727d); line-height: 1.45; }
.manual-payment-status {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line, #dce4e8);
  border-radius: 12px;
  background: rgba(247, 250, 252, .9);
}
.manual-payment-status span,
.manual-payment-status small { color: var(--muted, #64727d); overflow-wrap: anywhere; }

.invoice-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line, #dce4e8);
  border-radius: 16px;
  background: #fff;
}
.invoice-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.invoice-card-main h3 { margin: 4px 0 0; }
.invoice-card-main p { margin: 5px 0 0; color: var(--muted, #64727d); }
.invoice-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.invoice-meta-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: #f7fafb;
}
.invoice-meta-grid span { font-size: .76rem; color: var(--muted, #64727d); text-transform: uppercase; letter-spacing: .04em; }
.invoice-meta-grid strong { min-width: 0; overflow-wrap: anywhere; }
.invoice-cufe { font-size: .78rem; font-weight: 650; }
.invoice-status-issued { background: #e7f4ec; color: #216a43; }
.invoice-status-draft,
.invoice-status-pending_configuration { background: #edf2f5; color: #617284; }
.invoice-status-sending { background: #eef3ff; color: #395a9b; }
.invoice-status-rejected,
.invoice-status-error { background: #fdeaea; color: #a64e4e; }
.invoice-legal-note { margin-top: 18px; }

@media (max-width: 860px) {
  .payment-options-grid { grid-template-columns: 1fr; }
  .invoice-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .invoice-card-main { flex-direction: column; }
  .invoice-meta-grid { grid-template-columns: 1fr; }
  .payment-provider-box { padding: 16px; }
}

/* ==========================================================================
   HOTFIX HOME v1.1.1 · hero más compacto + CTAs al costado + búho más pequeño
   ========================================================================== */

/* Desktop grande */
@media (min-width: 1101px) {
  .home-compact .hero {
    padding-top: 52px;
    padding-bottom: 42px;
  }

  .home-compact .hero-grid-single {
    grid-template-columns: minmax(0, 920px);
    justify-content: start;
  }

  .home-compact .hero-grid-single .hero-copy {
    max-width: 920px;
    margin-top: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    grid-template-areas:
      "eyebrow actions"
      "title actions"
      "note actions"
      "proof proof"
      "micro quick";
    column-gap: 24px;
    row-gap: 10px;
    align-items: start;
  }

  .home-compact .hero-copy > .eyebrow {
    grid-area: eyebrow;
    margin: 0;
  }

  .home-compact .hero-copy > h1 {
    grid-area: title;
    max-width: 700px;
    margin: 0;
    font-size: clamp(2.45rem, 3.8vw, 3.25rem);
    line-height: 1.04;
  }

  .home-compact .hero-copy > .hero-note {
    grid-area: note;
    max-width: 680px;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.56;
  }

  .home-compact .hero-copy > .actions {
    grid-area: actions;
    margin: 4px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 240px;
    justify-self: end;
    align-self: center;
  }

  .home-compact .hero-copy > .actions .button {
    width: 100%;
    justify-content: center;
    min-height: 46px;
    padding: 12px 16px;
  }

  .home-compact .hero-copy > .hero-proofline {
    grid-area: proof;
    margin-top: 6px;
    font-size: 0.88rem;
  }

  .home-compact .hero-copy > .microcopy {
    grid-area: micro;
    margin-top: 0;
    font-size: 0.82rem;
  }

  .home-compact .hero-copy > .hero-quick-contact {
    grid-area: quick;
    margin-top: 0;
    font-size: 0.84rem;
    text-align: right;
    justify-self: end;
    align-self: end;
  }

  /* Búho / marca de agua más pequeño */
  .home-compact .hero::before {
    right: clamp(8px, 1.6vw, 24px);
    width: clamp(250px, 20vw, 340px);
    opacity: 0.11;
    transform: translateY(-50%);
  }

  /* Menos altura general del home */
  .home-compact .problem-section,
  .home-compact #servicios,
  .home-compact .experience-section,
  .home-compact .work-method-section,
  .home-compact .portal-trust-section,
  .home-compact .technology-section-compact,
  .home-compact .solutions-section,
  .home-compact .faq-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .home-compact .section-heading {
    margin-bottom: 18px;
  }

  .home-compact .cta-section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Tablet */
@media (min-width: 761px) and (max-width: 1100px) {
  .home-compact .hero {
    padding-top: 52px;
    padding-bottom: 42px;
  }

  .home-compact .hero h1 {
    font-size: clamp(2.35rem, 5vw, 3rem);
    line-height: 1.05;
  }

  .home-compact .hero-note {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .home-compact .hero .actions {
    margin-top: 18px;
    gap: 10px;
  }

  .home-compact .problem-section,
  .home-compact #servicios,
  .home-compact .experience-section,
  .home-compact .work-method-section,
  .home-compact .portal-trust-section,
  .home-compact .technology-section-compact,
  .home-compact .solutions-section,
  .home-compact .faq-section {
    padding-top: 38px;
    padding-bottom: 38px;
  }
}

/* Móvil: solo compactar un poco más */
@media (max-width: 760px) {
  .home-compact .hero {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .home-compact .hero h1 {
    font-size: clamp(1.9rem, 9.4vw, 2.55rem);
    line-height: 1.04;
  }

  .home-compact .hero-note {
    font-size: 0.92rem;
    line-height: 1.48;
  }

  .home-compact .hero .actions {
    margin-top: 16px;
  }

  .home-compact .section {
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .home-compact .cta-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }
}

/* ==========================================================================
   HOME v1.1.1 · Hero / portada más compacta
   Solo modifica la portada. No altera las demás secciones del Home.
   ========================================================================== */

@media (min-width: 1101px) {

  /* Menos altura en la portada */
  .home-compact .hero {
    padding-top: 42px;
    padding-bottom: 38px;
  }

  /* Contenido principal más contenido */
  .home-compact .hero-grid-single .hero-copy {
    max-width: 820px;
    margin-top: 0;
  }

  /* Título ligeramente más compacto */
  .home-compact .hero h1 {
    max-width: 720px;
    margin-top: 10px;
    margin-bottom: 14px;
    font-size: clamp(2.5rem, 3.8vw, 3.3rem);
    line-height: 1.04;
  }

  /* Texto descriptivo ocupa menos altura */
  .home-compact .hero-note {
    max-width: 690px;
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  /* Botones más próximos al contenido */
  .home-compact .hero .actions {
    margin-top: 20px;
    gap: 10px;
  }

  .home-compact .hero .actions .button {
    padding: 11px 17px;
    min-height: 44px;
  }

  /* Menos separación en textos inferiores */
  .home-compact .hero-proofline {
    margin-top: 16px;
  }

  .home-compact .hero .microcopy {
    margin-top: 6px;
  }

  .home-compact .hero-quick-contact {
    margin-top: 8px;
  }

  /* Búho más pequeño y discreto */
  .home-compact .hero::before {
    width: clamp(270px, 23vw, 380px);
    right: clamp(25px, 4vw, 70px);
    opacity: 0.12;
    transform: translateY(-50%);
  }
}


/* Tablet */
@media (min-width: 761px) and (max-width: 1100px) {

  .home-compact .hero {
    padding-top: 42px;
    padding-bottom: 38px;
  }

  .home-compact .hero h1 {
    font-size: clamp(2.3rem, 5vw, 3rem);
    line-height: 1.05;
  }

  .home-compact .hero-note {
    font-size: 0.97rem;
    line-height: 1.5;
  }

  .home-compact .hero .actions {
    margin-top: 18px;
  }
}


/* Móvil */
@media (max-width: 760px) {

  .home-compact .hero {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .home-compact .hero h1 {
    font-size: clamp(1.9rem, 9.5vw, 2.55rem);
    line-height: 1.04;
  }

  .home-compact .hero-note {
    font-size: 0.92rem;
    line-height: 1.47;
  }

  .home-compact .hero .actions {
    margin-top: 15px;
  }
}