.module-shell { min-height: 100vh; background: #f2f5f8; }
.module-bar { color: #fff; background: var(--navy-deep); }
.module-bar-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.module-brand { display: flex; align-items: center; gap: 13px; }
.module-brand img { width: 54px; height: 54px; padding: 4px; border-radius: 13px; object-fit: contain; background: #fff; }
.module-brand strong, .module-brand small { display: block; }
.module-brand strong { font-size: 13px; letter-spacing: .04em; }
.module-brand small { margin-top: 3px; color: rgba(255,255,255,.58); font-size: 8px; }
.module-nav { display: flex; align-items: center; gap: 7px; }
.module-nav button, .module-nav a { min-height: 38px; padding: 0 14px; border: 0; border-radius: 11px; color: rgba(255,255,255,.75); background: transparent; font-size: 10px; font-weight: 800; cursor: pointer; }
.module-nav button:hover, .module-nav button.active, .module-nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.module-login-button { border: 1px solid rgba(255,255,255,.28)!important; }
.module-view { display: none; }
.module-view.active { display: block; }
.module-hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.module-hero::after { content: ""; position: absolute; width: 550px; height: 550px; right: -170px; top: -230px; border-radius: 50%; background: rgba(255,255,255,.07); }
.module-hero-grid { position: relative; z-index: 2; min-height: 520px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; padding-block: 70px; }
.module-hero h1 { margin: 14px 0 20px; font-size: clamp(50px, 6vw, 76px); line-height: 1; }
.module-hero p { max-width: 660px; margin: 0; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.8; }
.module-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.module-hero-image { position: relative; min-height: 390px; border-radius: 28px; overflow: hidden; box-shadow: 0 28px 70px rgba(0,0,0,.32); }
.module-hero-image img { width: 100%; height: 390px; object-fit: cover; }
.module-hero-image-label { position: absolute; left: 20px; right: 20px; bottom: 18px; padding: 13px 15px; border-radius: 13px; color: #fff; background: rgba(6,22,50,.85); font-size: 10px; font-weight: 700; }
.module-section { padding: 80px 0; }
.module-section.white { background: #fff; }
.module-heading { max-width: 760px; margin-bottom: 40px; }
.module-heading.center { margin-inline: auto; text-align: center; }
.module-heading h2 { margin: 11px 0 0; color: var(--navy); font-size: clamp(37px,4.5vw,55px); line-height: 1.08; }
.module-heading p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.module-action-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.module-action-card { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; cursor: pointer; }
.module-action-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.module-action-card span { color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.module-action-card h3 { margin: 40px 0 9px; color: var(--navy); font-family: "Source Serif 4", Georgia, serif; font-size: 25px; line-height: 1.15; }
.module-action-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.module-action-card b { margin-top: 20px; color: var(--navy); font-size: 10px; }
.property-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.property-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { min-height: 37px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; color: var(--navy); background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.filter-button.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.property-count { color: var(--muted); font-size: 10px; }
.property-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.property-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.property-card.hidden { display: none; }
.property-media { position: relative; height: 210px; overflow: hidden; background: #dfe8e6; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.property-card:hover .property-media img { transform: scale(1.035); }
.property-tag { position: absolute; top: 12px; left: 12px; padding: 6px 8px; border-radius: 8px; color: #fff; background: #0e7568; font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.property-body { padding: 19px; }
.property-body h3 { margin: 0; color: var(--ink); font-size: 14px; }
.property-location { margin: 5px 0 13px; color: var(--muted); font-size: 9px; }
.property-price { color: var(--navy); font-size: 20px; font-weight: 900; }
.property-features { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.property-features span { padding: 5px 7px; border-radius: 7px; color: #526174; background: var(--cloud); font-size: 8px; font-weight: 700; }
.module-panel { max-width: 780px; margin-inline: auto; padding: 32px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.module-panel h2 { margin: 0 0 7px; color: var(--navy); font-size: 38px; }
.module-panel > p { margin: 0 0 25px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--ink); font-size: 9px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #ccd5e0; border-radius: 11px; color: var(--ink); background: #fbfcfd; font-size: 11px; outline: none; }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(22,58,112,.1); }
.consent { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.consent input { margin-top: 2px; }
.form-message { min-height: 20px; margin-top: 12px; color: var(--red); font-size: 10px; font-weight: 700; }
.form-message.success { color: #0e7568; }
.login-panel { max-width: 470px; }
.login-lock { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; color: #fff; background: var(--navy); font-size: 13px; font-weight: 900; }
.login-lock img { width: 44px; height: 44px; object-fit: contain; }
.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.workspace-head h2 { margin: 0; }
.logout-button { border: 0; color: var(--red); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.workspace-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.workspace-stat { padding: 20px; border-radius: 17px; background: var(--cloud); }
.workspace-stat small, .workspace-stat strong { display: block; }
.workspace-stat small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.workspace-stat strong { margin-top: 8px; color: var(--navy); font-size: 20px; }
.workspace-list { margin-top: 25px; }
.workspace-item { padding: 18px 0; border-top: 1px solid var(--line); }
.workspace-item h3 { margin: 0 0 5px; color: var(--navy); font-size: 13px; }
.workspace-item p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.simulator-box { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.simulator-band { padding: 13px 18px; color: #fff; background: var(--navy); text-align: center; font-size: 12px; font-weight: 900; }
.simulator-input { padding: 22px; }
.simulator-input label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; font-weight: 800; }
.simulator-input input { width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 11px; text-align: right; color: var(--navy); font-size: 24px; font-weight: 900; }
.sim-row { display: flex; justify-content: space-between; gap: 18px; padding: 13px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.sim-row strong { color: var(--navy); }
.sim-row.total { color: #fff; background: var(--navy); }
.sim-row.total strong { color: #fff; }
.sim-row.net { color: #fff; background: #3152ad; font-weight: 900; }
.sim-row.net strong { color: #fff; }

/* Academy */
.academy-shell { background: #f5f7fa; }
.academy-bar { background: var(--navy); }
.academy-hero { color: #fff; background: linear-gradient(135deg,#071b3b,#174c82); }
.academy-hero .module-hero-image { display: grid; place-items: center; padding: 45px; background: rgba(255,255,255,.08); }
.academy-seal { width: 250px; filter: drop-shadow(0 22px 30px rgba(0,0,0,.25)); }
.academy-courses { display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.course-card { padding: 27px; border: 1px solid #e3dfea; border-radius: 21px; background: #fff; }
.course-card .course-category { color: #8a681f; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.course-card h3 { margin: 42px 0 12px; color: var(--navy); font-family: "Source Serif 4", Georgia, serif; font-size: 27px; line-height: 1.15; }
.course-card p { color: var(--muted); font-size: 10px; line-height: 1.7; }
.course-meta { display: flex; gap: 8px; margin-top: 20px; }
.course-meta span { padding: 6px 8px; border-radius: 8px; color: #5d4a75; background: #f2edf8; font-size: 8px; font-weight: 700; }
.progress-track { height: 8px; margin: 12px 0 5px; border-radius: 8px; overflow: hidden; background: #e8e3ee; }
.progress-track i { display: block; height: 100%; background: #6d4b98; }
.academy-enrollment details { margin-top: 14px; color: var(--muted); font-size: 9px; }
.academy-enrollment summary { color: #54366f; font-weight: 800; cursor: pointer; }
.academy-enrollment ul { padding-left: 18px; line-height: 1.8; }
.academy-enrollment a { color: #54366f; font-weight: 800; }
.academy-footer { padding: 25px 0; color: rgba(255,255,255,.72); background: #241d40; text-align: center; }
.academy-footer strong, .academy-footer span { display: block; }
.academy-footer strong { color: #fff; font-size: 9px; letter-spacing: .08em; }
.academy-footer span { margin-top: 6px; font-size: 8px; }

@media(max-width:960px) {
  .module-action-grid, .property-grid { grid-template-columns: repeat(2,1fr); }
  .module-hero-grid { gap: 38px; }
  .academy-courses { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:780px) {
  .module-bar-inner { min-height: auto; padding-block: 13px; align-items: flex-start; }
  .module-nav { max-width: 58%; flex-wrap: wrap; justify-content: flex-end; }
  .module-hero-grid { grid-template-columns: 1fr; padding-block: 65px; }
  .module-hero-image { min-height: 320px; }
  .module-hero-image img { height: 320px; }
  .workspace-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:560px) {
  .module-brand small { display: none; }
  .module-nav { max-width: 62%; }
  .module-nav button, .module-nav a { min-height: 34px; padding-inline: 9px; font-size: 8px; }
  .module-hero h1 { font-size: 45px; }
  .module-section { padding: 62px 0; }
  .module-action-grid, .property-grid, .academy-courses, .form-grid, .workspace-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .property-toolbar { align-items: flex-start; flex-direction: column; }
  .module-panel { padding: 22px 18px; }
}

/* Módulos luminosos y de lectura amplia */
.module-shell {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #f7f9fc;
}
.module-bar, .academy-bar {
  color: var(--navy);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(11,35,74,.06);
}
.module-bar-inner { min-height: 100px; }
.module-brand img { width: 68px; height: 68px; border-radius: 50%; object-fit: contain; background: #fff; }
.module-brand strong { color: var(--navy); font-size: 18px; }
.module-brand small { color: var(--muted); font-size: 10px; }
.module-nav button, .module-nav a {
  min-height: 42px; color: #40516a; background: #f5f7fa; font-size: 11px;
}
.module-nav button.active, .module-nav button:hover, .module-nav a:hover {
  color: #fff; background: var(--navy);
}
.module-hero, .academy-hero {
  color: var(--navy) !important;
  background: linear-gradient(135deg,#fff 0%,#f4f7fb 100%) !important;
  border-bottom: 1px solid var(--line);
}
.module-hero::after { background: rgba(185,150,70,.08); }
.module-hero-grid { min-height: 590px; }
.module-hero h1 {
  color: var(--navy); font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-size: clamp(52px,6vw,78px); font-weight: 850; letter-spacing: -.05em;
}
.module-hero p { color: var(--muted); font-size: 18px; line-height: 1.75; }
.module-hero .kicker.light { color: var(--red); }
.module-hero .button-white { color: #fff; background: var(--navy); }
.module-hero .button-glass { color: var(--navy); border-color: #b9c5d5; background: #fff; }
.module-hero-image {
  min-height: 420px; border: 1px solid var(--line);
  background: #fff !important; box-shadow: 0 24px 60px rgba(11,35,74,.14);
}
.module-hero-image img { height: 420px; }
.academy-hero .module-hero-image { padding: 34px; }
.academy-seal { width: 325px; height: 325px !important; border-radius: 50%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(11,35,74,.16)); }
.module-section { padding: 95px 0; }
.module-heading h2, .module-panel h2 {
  color: var(--navy); font-family: "Inter", "Segoe UI", Arial, sans-serif;
  font-weight: 850; letter-spacing: -.045em;
}
.module-heading h2 { font-size: clamp(42px,5vw,62px); }
.module-heading p, .module-panel > p { font-size: 16px; line-height: 1.75; }
.module-action-card h3, .course-card h3 {
  font-family: "Inter", "Segoe UI", Arial, sans-serif; font-size: 27px; font-weight: 800;
}
.module-action-card p, .course-card p { font-size: 14px; line-height: 1.7; }
.module-action-card b { font-size: 12px; }
.academy-shell { background: #f7f9fc; }
.academy-footer { background: var(--navy); }

@media(max-width:780px) {
  .module-bar-inner { min-height: auto; }
  .module-brand img { width: 54px; height: 54px; }
  .module-hero-grid { min-height: auto; }
}

@media(max-width:560px) {
  .module-hero h1 { font-size: 43px; }
  .module-hero p { font-size: 16px; }
  .academy-seal { width: 230px; height: 230px !important; }
}
