* { box-sizing: border-box; }
:root { --red: #df1727; --ink: #182537; --muted: #8390a0; --line: #e4e8ed; --paper: #fff; --soft: #fff1f2; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f4f6f8; color: var(--ink); font-family: 'DM Sans', sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.topbar { height: 80px; background: rgba(255,255,255,.96); border-bottom: 1px solid #dde2e7; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 6vw, 88px); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { height: 36px; width: auto; display: block; }
.year-pill { color: var(--red); border: 1px solid #f2c4c8; border-radius: 99px; background: #fff7f7; padding: 5px 11px; font-size: 12px; font-weight: 700; }
.admin-button { color: #68788c; background: #fff; border: 1px solid #e0e5ea; border-radius: 18px; padding: 8px 14px; font-size: 13px; box-shadow: 0 2px 6px #27384b0a; }
.lock-icon { font-size: 18px; line-height: 0; margin-right: 4px; }
.session-nav { display: flex; gap: 8px; align-items: center; }
.session-nav span, .session-nav a, .session-nav button { border-radius: 10px; padding: 9px 14px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.nav-active { background: #10233b; color: #fff; }
.nav-panel { background: #fff; border: 1px solid #e0e5ea; color: #53657b; }
.nav-panel:hover { border-color: #f2b9bf; color: var(--red); }
.nav-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: inline-block; margin-left: 2px; }
.nav-exit { background: #fff; border: 1px solid #e0e5ea; color: #61748d; padding: 9px 11px; cursor: pointer; }
.nav-exit:hover { color: var(--red); border-color: #f2b9bf; }
main { max-width: 1200px; margin: auto; padding: 33px clamp(20px, 5vw, 64px) 42px; }
.hero { border-radius: 26px; overflow: hidden; box-shadow: 0 8px 18px #7a111522; position: relative; }
.hero-banner { display: block; width: 100%; height: auto; }
.period-section { padding-top: 34px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
h1 { font-family: 'Barlow Condensed'; font-size: 24px; margin: 0 0 5px; letter-spacing: .2px; display: flex; align-items: center; gap: 8px; color: #1e293b; } .folder-icon-title { width: 22px; height: 22px; color: #dc2626; flex-shrink: 0; }
.section-heading p { color: #728093; margin: 0; font-size: 13px; max-width: 440px; line-height: 1.6; }
.active-badge { min-width: 158px; border: 1px solid #f0c6cb; background: #fff4f5; border-radius: 25px; padding: 7px 15px; color: #c91624; display: flex; gap: 10px; align-items: center; font-size: 12px; line-height: 1.05; }
.active-badge span { font-size: 22px; }
.month-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; }
.month-card { min-height: 192px; border: 1px solid var(--line); border-radius: 17px; background: #fff; padding: 20px 15px 16px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; transition: transform .2s, box-shadow .2s, border-color .2s; }
.month-card:hover { transform: translateY(-5px); box-shadow: 0 12px 23px #26384b16; border-color: #f1b5ba; }
.folder-icon { height: 55px; width: 55px; border-radius: 50%; background: var(--soft); color: var(--red); display: grid; place-items: center; } .folder-icon svg { width: 26px; height: 26px; }
.month-card h3 { font-family: 'Barlow Condensed'; font-size: 22px; margin: 7px 0 0; } .quarter { color: #8a96a4; font-size: 12px; }
.card-action { border: 0; background: none; color: var(--red); font-weight: 700; font-size: 12px; padding: 7px 10px; }
.card-action span { font-size: 17px; vertical-align: -1px; margin-left: 4px; }
.certification-view {
  max-width: 860px;
  margin: 22px auto 0;
  background: rgba(255,255,255,0.92);
  border: 1px solid #f0dfe1;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(25, 34, 44, 0.08);
  padding: 18px 26px 20px;
}
.cert-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7d8d9a;
  font-size: 12px;
  font-weight: 700;
  padding-bottom: 12px;
}
.back-link {
  border: 0;
  background: none;
  color: var(--red);
  font-weight: 700;
  padding: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cert-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 22px;
}
.cert-heading .modal-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: transparent;
  color: var(--red);
  font-size: 22px;
  line-height: 1;
}
.cert-heading h2 {
  font-family: 'Barlow Condensed';
  font-size: 30px;
  margin: 0 0 3px;
  color: #1f2d3d;
}
.cert-heading p {
  color: #7b8794;
  font-size: 13px;
  margin: 0;
}
.cert-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.cert-form label {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.cert-form input {
  border: 1px solid #c8d4e2;
  border-radius: 9px;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  color: var(--ink);
  background: #dfeaf4;
  outline: none;
  font-size: 15px;
  min-height: 48px;
}
.cert-form input::placeholder {
  color: #67809a;
  opacity: 1;
}
.cert-form input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(223, 23, 39, 0.12);
}
.cert-form input[type=file] {
  padding: 24px 22px 20px;
  border: 1px dashed #e2a3aa;
  background: linear-gradient(135deg, #fff8f8, #fff3f4);
  min-height: 142px;
  cursor: pointer;
  color: #45627d;
  font-size: 12px;
  font-weight: 700;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.cert-form input[type=file]:hover {
  border-color: var(--red);
  background: #fff7f7;
}
.cert-form input[type=file]::-webkit-file-upload-button {
  visibility: hidden;
}
.cert-form input[type=file]::file-selector-button {
  visibility: hidden;
  width: 0;
  margin: 0;
  padding: 0;
}
.cert-form input[type=file]::before {
  content: '↑';
  display: block;
  text-align: center;
  color: var(--red);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}
.cert-form .document-field {
  position: relative;
}
.cert-form .document-field::after {
  content: 'Selecciona o arrastra tu documento aquí';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #6d7684;
  pointer-events: none;
}
.cert-form .document-field.file-selected::after {
  content: 'Documento listo para enviar';
  color: #13805b;
  font-weight: 700;
}
.cert-form .document-field.file-selected input[type=file] {
  border-color: #65bd96;
  background: linear-gradient(135deg, #f3fcf7, #eafaf2);
  box-shadow: 0 0 0 3px rgba(19, 128, 91, 0.06);
}
.file-selection {
  display: block;
  min-height: 52px;
  margin-top: 12px;
  padding: 10px 90px 10px 40px;
  border: 1px solid #d7dee7;
  border-radius: 9px;
  background: #f8fafc;
  color: #6d7684;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file-selection::before {
  content: '!';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  border: 1px solid #9aa6b3;
  border-radius: 50%;
  color: #9aa6b3;
  font-size: 12px;
  line-height: 17px;
  text-align: center;
}
.file-selection::after {
  content: 'PENDIENTE';
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #7b8794;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}
.file-selected .file-selection {
  border-color: #8bd3b5;
  background: linear-gradient(135deg, #f0fcf6, #e6f9ef);
  box-shadow: 0 3px 10px rgba(19, 128, 91, 0.08);
  color: #13805b;
}
.file-selected .file-selection::before {
  content: '✓';
  border-color: #13805b;
  color: #13805b;
  font-weight: 800;
}
.file-selected .file-selection::after {
  content: 'LISTO';
  color: #13805b;
}
.cert-form .document-field small {
  display: block;
  margin-top: 10px;
  color: #6d7684;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.form-actions .primary-action {
  width: 100%;
  min-height: 56px;
  margin-top: 0;
  border-radius: 12px;
  font-size: 16px;
  letter-spacing: .08em;
  font-weight: 800;
  background: linear-gradient(180deg, #ef1a2f, #d9162a);
  box-shadow: 0 8px 18px rgba(217, 22, 42, 0.2);
}
.secondary-action {
  width: 100%;
  min-height: 54px;
  border: 1px solid #e2a6ad;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--red);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
}
.form-status {
  min-height: 18px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}
.form-status.error { color: var(--red); }
.form-status.success { color: #13805b; }
.bottom-banner {
  margin-top: 34px;
  border-radius: 19px;
  overflow: hidden;
  box-shadow: 0 8px 18px #26384b14;
}
.bottom-banner-img { display: block; width: 100%; height: auto; }
.footer { background: white; border-top: 1px solid #e0e5e9; padding: 17px clamp(20px, 6vw, 88px); display:flex; justify-content:space-between; gap:15px; color:#8090a1; font-size:11px; } .footer nav { display:flex; gap:10px; align-items:center; } .footer button { border:0; background:transparent; color:#66778b; padding:0; font-size:11px; } .footer em { color:#d2d8de; font-style:normal; }
.modal-backdrop { position:fixed; inset:0; background:#152333aa; display:grid; place-items:center; padding:20px; z-index:20; } .modal-backdrop[hidden] { display:none; } .modal { width:min(460px,100%); background:#fff; border-radius:26px; padding:56px 44px 30px; position:relative; box-shadow:0 20px 60px #111a; text-align:center; } .close { position:absolute; top:16px; right:18px; border:0; background:none; font-size:26px; color:#8b97a4; line-height:1; } .modal-logo { position:absolute; top:-24px; left:50%; transform:translateX(-50%); height:48px; width:auto; background:#fff; padding:6px 14px; border-radius:14px; box-shadow:0 4px 14px #1a2a3d14; } .modal-icon { display:grid; place-items:center; width:52px; height:52px; margin:0 auto; border-radius:50%; background:var(--soft); color:var(--red); } .modal h2 { font-family:'Barlow Condensed'; font-size:29px; margin:14px 0 6px; } .modal p { color:#7b8794; font-size:13px; margin:0 auto 22px; max-width:320px; } .modal label { color:#566575; font-size:11px; font-weight:700; display:block; margin-top:15px; text-transform:uppercase; letter-spacing:.6px; text-align:left; } .input-wrap { display:flex; align-items:center; margin-top:7px; border:1px solid #dce2e8; border-radius:10px; background:#fff; padding:0 12px; } .input-wrap:focus-within { border-color:var(--red); box-shadow:0 0 0 3px #df17271a; } .input-icon { color:#93a1b1; flex-shrink:0; } .modal input { border:0; flex:1; padding:12px 10px; color:var(--ink); background:transparent; outline:none; font-size:14px; } .toggle-password { border:0; background:none; color:#93a1b1; font-size:11px; font-weight:700; padding:4px 2px; } .toggle-password:hover { color:var(--red); } .primary-action { width:100%; margin-top:24px; border:0; border-radius:12px; background:var(--red); color:white; padding:13px; font-weight:700; font-size:13px; letter-spacing:.6px; text-transform:uppercase; display:flex; align-items:center; justify-content:center; gap:9px; } .primary-action:hover { background:#c1101f; } .modal .form-status { text-align:center; }
@media (max-width: 760px) { .topbar { height:69px; padding:0 18px; } .brand-logo { height:28px; } .admin-button { font-size:12px; } .session-nav span, .session-nav a { padding:8px 10px; font-size:10px; gap:5px; } .session-nav svg { width:11px; height:11px; } .nav-exit { padding:8px 9px; } main { padding:22px 16px 28px; } .hero { border-radius:19px; } .section-heading { align-items:flex-start; flex-direction:column; gap:14px; } .active-badge { align-self:flex-end; } .month-grid { grid-template-columns:repeat(2, 1fr); gap:12px; } .month-card { min-height:171px; } .footer { flex-direction:column; text-align:center; align-items:center; } }
@media (max-width: 760px) { .cert-form { grid-template-columns: 1fr; } .cert-form label:nth-child(3), .cert-form label:nth-child(4), .form-actions, .form-status { grid-column: auto; } .form-actions { flex-direction: column; align-items: stretch; } }
@media (max-width: 390px) { .year-pill { font-size:10px; padding:5px 8px; } }
