:root {
  --teal: #19748A; --navy: #0A2E4A; --navy-dark: #051A2E;
  --mint: #A6F5C0; --cyan: #B8FAFF; --ice: #E7F2F7;
  --white: #fff; --red: #AD1F1F; --red-hot: #E53935;
  --yellow: #FFD166; --text: #1a1a1a; --muted: #44607a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
@media (max-width: 600px) { html { font-size: 17px; } }
body {
  font-family: Arial, Helvetica, sans-serif; font-weight: 400;
  color: var(--text); background: var(--ice); line-height: 1.6;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
h1,h2,h3,h4 { font-family: Arial, Helvetica, sans-serif; color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin-bottom: 0.9rem; font-size: 1.05rem; }
em, i { font-family: Arial, Helvetica, sans-serif; font-style: italic; }
a { color: var(--teal); text-decoration: none; }
.container { max-width: 900px; margin: 0 auto; padding: 1.5rem 1.25rem; }

/* ====== LOGIN ====== */
.login-wrap {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  padding: 1.5rem;
}
.login-card {
  background: var(--white); border-radius: 1.5rem; padding: 2.5rem 2rem; max-width: 460px; width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
}
.login-logo { display: block; max-width: 130px; margin: 0 auto 1.5rem; }
.login-card h1 { text-align: center; margin-bottom: 0.5rem; color: var(--navy); font-size: 1.85rem; }
.login-card .sub { text-align: center; color: var(--muted); margin-bottom: 2rem; font-size: 1.05rem; }
.input-group { margin-bottom: 1.25rem; }
.input-group label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; font-size: 1.05rem; }
.input-group input {
  width: 100%; padding: 1rem 1.1rem; border: 2px solid var(--ice); border-radius: 0.7rem;
  font-size: 1.1rem; font-family: Arial, Helvetica, sans-serif; transition: border 0.2s;
}
.input-group input:focus { outline: none; border-color: var(--teal); }
.btn-primary {
  width: 100%; padding: 1.15rem; background: linear-gradient(180deg, var(--red-hot), var(--red));
  color: var(--white); border: none; border-radius: 0.7rem; font-size: 1.15rem; font-weight: 900;
  letter-spacing: 0.04em; cursor: pointer; text-transform: uppercase;
  box-shadow: 0 6px 20px rgba(173,31,31,0.3); transition: all 0.2s;
  font-family: Arial, Helvetica, sans-serif;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(173,31,31,0.4); }
.btn-secondary {
  display: inline-block; padding: 0.8rem 1.3rem; background: var(--white); border: 2px solid var(--teal);
  color: var(--teal); border-radius: 0.55rem; font-weight: 700; cursor: pointer; font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
}
.error-msg { color: var(--red); font-size: 1rem; margin-top: 0.75rem; text-align: center; min-height: 1.4rem; }

/* ====== HEADER ====== */
header.app-header {
  background: var(--white); border-bottom: 2px solid var(--ice); padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: sticky; top: 0; z-index: 50;
}
.header-brand { display: flex; align-items: center; gap: 0.75rem; }
.header-brand img { height: 44px; width: auto; }
.header-brand .name { font-family: Arial; font-weight: 800; color: var(--navy); font-size: 1.05rem; line-height: 1.15; }
.header-brand .name small { display: block; font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.header-actions a, .header-actions button {
  background: transparent; border: 0; color: var(--teal); font-weight: 700; font-size: 1rem;
  cursor: pointer; padding: 0.55rem 1rem; border-radius: 0.4rem;
  font-family: Arial, Helvetica, sans-serif;
}
.header-actions button:hover { background: var(--ice); }

/* ====== DASHBOARD ====== */
.welcome { background: linear-gradient(135deg, var(--teal), var(--navy)); color: var(--white); padding: 2.25rem 1.6rem; border-radius: 1.2rem; margin-bottom: 1.5rem; }
.welcome h1 { color: var(--white); margin-bottom: 0.5rem; }
.welcome .sub { color: rgba(255,255,255,0.92); font-size: 1.1rem; }
.progress-wrap { background: rgba(255,255,255,0.2); border-radius: 999px; height: 14px; margin-top: 1.3rem; overflow: hidden; }
.progress-bar { background: var(--mint); height: 100%; border-radius: 999px; transition: width 0.4s; }
.progress-text { font-size: 1rem; margin-top: 0.6rem; color: rgba(255,255,255,0.95); font-weight: 600; }

.modules-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 600px) { .modules-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .modules-grid { grid-template-columns: repeat(3, 1fr); } }

.module-card {
  background: var(--white); border-radius: 1rem; padding: 1.6rem 1.35rem;
  box-shadow: 0 8px 24px rgba(10,46,74,0.08); border: 2px solid transparent;
  cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; gap: 0.55rem;
  text-decoration: none; color: inherit;
}
.module-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(10,46,74,0.15); border-color: var(--teal); }
.module-card.done { border-color: var(--mint); background: linear-gradient(180deg, #F0FFF8 0%, var(--white) 100%); }
.module-card .tag { display: inline-block; background: var(--teal); color: var(--white); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.12em; padding: 0.3rem 0.7rem; border-radius: 999px; text-transform: uppercase; align-self: flex-start; font-family: Arial; }
.module-card.bonus .tag { background: var(--red); }
.module-card .icon { font-size: 2.6rem; line-height: 1; margin-bottom: 0.4rem; }
.module-card h3 { color: var(--navy); margin: 0; font-size: 1.2rem; }
.module-card .desc { color: var(--muted); font-size: 1rem; flex: 1; line-height: 1.5; }
.module-card .footer { display: flex; justify-content: space-between; align-items: center; padding-top: 0.6rem; border-top: 1px solid var(--ice); margin-top: 0.5rem; font-size: 0.95rem; color: var(--teal); font-weight: 800; }
.module-card .check-badge { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1rem; }
.module-card:not(.done) .check-badge { display: none; }

/* ====== MÓDULO ====== */
.module-page { padding-bottom: 4rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--teal); font-weight: 700; margin-bottom: 1rem; padding: 0.5rem 0; font-size: 1.05rem; }
.module-hero { background: linear-gradient(135deg, var(--teal), var(--navy)); color: var(--white); padding: 2.25rem 1.6rem; border-radius: 1.2rem; margin-bottom: 1.5rem; }
.module-hero h1 { color: var(--white); }
.module-hero .sub { color: rgba(255,255,255,0.92); margin-top: 0.6rem; font-size: 1.1rem; line-height: 1.5; }
.section {
  background: var(--white); border-radius: 1rem; padding: 1.75rem 1.4rem; margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(10,46,74,0.08);
}
.section h2 { color: var(--teal); margin-bottom: 0.9rem; }
.section h3 { color: var(--navy); margin: 1rem 0 0.6rem; }
.section p { font-size: 1.08rem; line-height: 1.65; }
.section ol, .section ul { font-size: 1.08rem; line-height: 1.8; padding-left: 1.4rem; }
.section ol li, .section ul li { margin-bottom: 0.4rem; }
.tabs { display: flex; gap: 0.6rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.tab {
  flex: 1; min-width: 140px; padding: 1rem 1.1rem; background: var(--ice); border: 2px solid transparent;
  border-radius: 0.7rem; cursor: pointer; font-weight: 800; color: var(--navy); text-align: center;
  font-size: 1.05rem; font-family: Arial, Helvetica, sans-serif;
}
.tab.active { background: var(--teal); color: var(--white); border-color: var(--teal); }
.step {
  display: flex; gap: 1.1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--ice);
}
.step:last-child { border-bottom: 0; }
.step-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.15rem;
}
.step.done .step-num { background: var(--mint); color: var(--navy); }
.step-content { flex: 1; }
.step-content h4 { margin-bottom: 0.5rem; color: var(--navy); font-size: 1.2rem; }
.step-content p { color: var(--text); margin-bottom: 0.6rem; font-size: 1.05rem; line-height: 1.65; }
.step-check {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.2rem; background: var(--ice);
  border-radius: 0.55rem; font-weight: 700; cursor: pointer; user-select: none; font-size: 1rem; border: 2px solid transparent;
  font-family: Arial, Helvetica, sans-serif;
}
.step.done .step-check { background: var(--mint); border-color: var(--teal); }

.os-block {
  margin: 1rem 0 1.5rem; padding: 1.2rem 1.3rem; border-radius: 0.7rem; border-left: 6px solid var(--teal); background: #F4FAFB;
}
.os-block.android { border-left-color: #00C356; background: #F0FFF6; }
.os-block .os-title {
  font-weight: 900; color: var(--navy); margin-bottom: 0.6rem; font-size: 1.05rem;
  display: flex; align-items: center; gap: 0.55rem;
}
.os-block .os-title .ic { font-size: 1.35rem; }
.os-block p { font-size: 1.02rem; margin-bottom: 0.5rem; }

.btn-block { display: block; width: 100%; margin-top: 1rem; }
.btn-teal {
  background: var(--teal); color: var(--white); padding: 1rem 1.4rem; border-radius: 0.7rem;
  font-weight: 800; border: 0; cursor: pointer; font-size: 1.05rem; display: inline-block; text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
}
.btn-teal:hover { background: var(--navy); }
.alert {
  background: var(--ice); border-left: 4px solid var(--teal); padding: 1.1rem 1.3rem; border-radius: 0.5rem;
  margin: 1rem 0; color: var(--navy); font-size: 1.05rem; line-height: 1.6;
}
.alert.warn { background: #FFF8E1; border-left-color: var(--yellow); }
.alert.danger { background: #FFE5E5; border-left-color: var(--red); }
.list-numero {
  display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 1.1rem;
  background: var(--ice); border-radius: 0.55rem; margin-bottom: 0.45rem; font-family: monospace; font-size: 1.05rem;
  gap: 0.5rem;
}
.list-numero.checked { background: var(--mint); }
.list-numero button { background: var(--red); color: var(--white); border: 0; border-radius: 0.45rem; padding: 0.45rem 0.9rem; cursor: pointer; font-weight: 700; font-size: 0.9rem; font-family: Arial; }
.list-numero.checked button { background: var(--teal); }

.contact-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.6rem; align-items: center; margin-bottom: 0.6rem; }
.contact-row input { padding: 0.85rem 1rem; border: 2px solid var(--ice); border-radius: 0.55rem; font-family: Arial, Helvetica, sans-serif; font-size: 1.05rem; }
.contact-row button { background: var(--red); color: var(--white); border: 0; border-radius: 0.55rem; padding: 0.85rem 1.1rem; cursor: pointer; font-weight: 700; font-family: Arial; font-size: 1rem; }
@media (max-width: 500px) { .contact-row { grid-template-columns: 1fr; } }

.app-card { display: flex; gap: 1.1rem; padding: 1.15rem; background: var(--ice); border-radius: 0.8rem; margin-bottom: 0.8rem; align-items: center; }
.app-card .ic { width: 62px; height: 62px; border-radius: 14px; background: var(--teal); color: var(--white); font-weight: 900; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.app-card .body { flex: 1; }
.app-card h4 { margin-bottom: 0.3rem; font-size: 1.15rem; }
.app-card p { font-size: 1rem; color: var(--muted); margin: 0; }
.app-card a { display: inline-block; margin-top: 0.55rem; padding: 0.55rem 1rem; background: var(--teal); color: var(--white); border-radius: 0.45rem; font-size: 0.95rem; font-weight: 700; font-family: Arial; }

.certificate-preview {
  background: linear-gradient(135deg, #fff 0%, var(--ice) 100%); border: 8px double var(--yellow);
  padding: 3rem 1.5rem; text-align: center; border-radius: 0.5rem; margin: 1rem 0;
}
.certificate-preview h2 { font-family: Arial; font-style: italic; color: var(--teal); font-size: 1.6rem; margin-bottom: 0.5rem; }
.certificate-preview .cert-name { font-size: 1.85rem; font-weight: 900; color: var(--navy); margin: 1rem 0; }
.certificate-preview .cert-detail { color: var(--muted); font-size: 1.05rem; }

.footer { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: 1rem; }

/* Inputs grandes */
input[type="text"], input[type="email"], input[type="number"], input[type="password"], textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.05rem;
}
