/* Comosaber.cl — portada y herramientas rápidas */
#comosaber-portada,
#comosaber-portada * { box-sizing: border-box; }

#comosaber-portada {
  --cs-red: #e52d33;
  --cs-red-dark: #b91f28;
  --cs-blue: #0d4e91;
  --cs-blue-dark: #092e5b;
  --cs-ink: #182230;
  --cs-muted: #647286;
  --cs-line: #e5eaf0;
  --cs-soft: #f5f8fb;
  --cs-white: #fff;
  width: 100%;
  margin: 0 auto 28px;
  color: var(--cs-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  font-size: 16px;
}

#comosaber-portada button,
#comosaber-portada input,
#comosaber-portada select { font: inherit; }

#comosaber-portada a { color: inherit; }

.cs-shell { width: min(100%, 1180px); margin: 0 auto; padding: 0 18px; }

.cs-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: clamp(26px, 4vw, 50px) clamp(22px, 5vw, 62px);
  border-radius: 0 0 20px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 15%, rgba(255,255,255,.18), transparent 23%),
    linear-gradient(120deg, #082a56 0%, #0e4f94 52%, #0a356b 100%);
  box-shadow: 0 16px 35px rgba(8, 47, 91, .14);
}

.cs-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 320px;
  height: 240px;
  border: 26px solid rgba(255,255,255,.07);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.cs-hero-content { position: relative; z-index: 1; max-width: 780px; }
.cs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #dcecff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cs-eyebrow::before { content: ''; width: 24px; height: 3px; border-radius: 99px; background: #f3c43b; }
.cs-hero h1 { max-width: 720px; margin: 0; color: #fff; font-size: clamp(30px, 4.4vw, 51px); line-height: 1.06; letter-spacing: -.035em; }
.cs-hero p { max-width: 680px; margin: 16px 0 0; color: #e7f1ff; font-size: clamp(16px, 1.8vw, 19px); }
.cs-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cs-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 17px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; text-decoration: none !important; cursor: pointer; transition: .18s ease; }
.cs-button:hover { transform: translateY(-1px); }
.cs-button-primary { color: #0c315d !important; background: #fff; }
.cs-button-primary:hover { background: #edf5ff; }
.cs-button-outline { color: #fff !important; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.cs-button-outline:hover { border-color: #fff; background: rgba(255,255,255,.16); }
.cs-button-red { color: #fff !important; background: var(--cs-red); }
.cs-button-red:hover { background: var(--cs-red-dark); }
.cs-button-small { min-height: 36px; padding: 8px 12px; font-size: 13px; }

.cs-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 24px; }
.cs-trust-item { display: flex; align-items: center; gap: 11px; min-height: 66px; padding: 13px 15px; border: 1px solid var(--cs-line); border-radius: 12px; background: #fff; }
.cs-trust-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--cs-blue); background: #eaf3ff; font-size: 18px; font-weight: 700; }
.cs-trust strong { display: block; font-size: 14px; }
.cs-trust span { display: block; margin-top: 2px; color: var(--cs-muted); font-size: 12px; }

.cs-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 26px 0 13px; }
.cs-section-head h2 { margin: 0; color: var(--cs-ink); font-size: clamp(22px, 3vw, 30px); line-height: 1.1; }
.cs-section-head p { max-width: 570px; margin: 5px 0 0; color: var(--cs-muted); font-size: 14px; }
.cs-section-label { margin: 0 0 7px; color: var(--cs-red); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.cs-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cs-tool { display: flex; flex-direction: column; min-width: 0; padding: 17px; border: 1px solid var(--cs-line); border-radius: 13px; background: #fff; box-shadow: 0 5px 16px rgba(20, 45, 74, .045); }
.cs-tool-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; }
.cs-tool-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--cs-blue); background: #eaf3ff; font-size: 18px; font-weight: 800; }
.cs-tool h3 { margin: 0; color: var(--cs-ink); font-size: 17px; line-height: 1.18; }
.cs-tool-description { min-height: 42px; margin: 0 0 12px; color: var(--cs-muted); font-size: 13px; }
.cs-field { display: flex; gap: 7px; }
.cs-field input,
.cs-field select { width: 100%; min-width: 0; height: 40px; padding: 8px 10px; border: 1px solid #ccd6e2; border-radius: 8px; color: var(--cs-ink); background: #fff; outline: none; }
.cs-field input:focus,
.cs-field select:focus { border-color: var(--cs-blue); box-shadow: 0 0 0 3px rgba(13,78,145,.12); }
.cs-result { min-height: 19px; margin-top: 9px; color: var(--cs-muted); font-size: 12px; }
.cs-result.is-success { color: #11724d; }
.cs-result.is-error { color: #b4232d; }
.cs-result strong { font-weight: 800; }
.cs-tool-note { margin: 8px 0 0; color: #7b8796; font-size: 11px; }
.cs-tool .cs-button { white-space: nowrap; }

.cs-explore { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; margin-top: 25px; }
.cs-explore-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 156px; padding: 22px; overflow: hidden; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #0b3973, #0e68ab); }
.cs-explore-card:nth-child(2) { background: linear-gradient(135deg, #a91f2b, #e52d33); }
.cs-explore-card:nth-child(3) { color: var(--cs-ink); background: linear-gradient(135deg, #eef5fc, #dceafa); }
.cs-explore-card::after { content: ''; position: absolute; right: -28px; bottom: -45px; width: 130px; height: 130px; border: 16px solid rgba(255,255,255,.11); border-radius: 50%; }
.cs-explore-card h3 { position: relative; z-index: 1; max-width: 230px; margin: 0; font-size: 19px; line-height: 1.12; }
.cs-explore-card p { position: relative; z-index: 1; max-width: 280px; margin: 8px 0 16px; color: inherit; opacity: .84; font-size: 13px; }
.cs-explore-card .cs-button { position: relative; z-index: 1; align-self: flex-start; }
.cs-explore-card:nth-child(3) .cs-button { color: #0c417e !important; border-color: #a9c5e3; background: #fff; }

.cs-footer-note { margin: 18px 0 0; padding: 12px 14px; border-left: 3px solid var(--cs-red); color: var(--cs-muted); background: var(--cs-soft); font-size: 12px; }
.cs-footer-note strong { color: var(--cs-ink); }

@media (max-width: 900px) {
  .cs-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-explore { grid-template-columns: 1fr 1fr; }
  .cs-explore-card:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .cs-shell { padding: 0 12px; }
  .cs-hero { margin-left: -12px; margin-right: -12px; border-radius: 0 0 15px 15px; padding: 30px 20px 28px; }
  .cs-trust { grid-template-columns: 1fr; gap: 7px; }
  .cs-trust-item { min-height: 56px; }
  .cs-section-head { display: block; }
  .cs-tools, .cs-explore { grid-template-columns: 1fr; }
  .cs-explore-card:first-child { grid-column: auto; }
  .cs-tool { padding: 15px; }
  .cs-field { flex-wrap: wrap; }
  .cs-field .cs-button { width: 100%; }
}
