/* imetrabecuador.com — hoja de estilos original (azul vivo, amarillo y verde) */

:root {
  --b1: #0a2487;
  --b2: #0f3bc4;
  --b3: #1d58ee;
  --b4: #3f7bff;
  --sky: #cfe0ff;
  --sky-2: #eaf1ff;
  --sky-3: #f5f8ff;
  --ink: #0f1f4d;
  --ink-soft: #3b4c80;
  --yellow: #ffd426;
  --yellow-2: #ffe572;
  --green: #17b565;
  --green-2: #55df94;
  --line: #d6e2ff;
  --wrap: 1160px;
  --font: "Work Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.7;
  background:
    radial-gradient(640px 640px at 8% 6%, rgba(255,255,255,.18), rgba(255,255,255,0) 70%),
    radial-gradient(700px 700px at 98% 34%, rgba(95,150,255,.40), rgba(95,150,255,0) 70%),
    radial-gradient(640px 640px at 0% 74%, rgba(255,212,38,.10), rgba(255,212,38,0) 70%),
    linear-gradient(180deg, #1f5cf2 0, #1747d2 36%, #0f35b4 70%, #0b2a9e 100%);
  background-color: var(--b2);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 980px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--yellow); color: #231a00; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ============ HEADER ============ */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--b1); border-bottom: 3px solid var(--yellow); box-shadow: 0 8px 26px rgba(4,14,60,.45); }
.bar { position: relative; z-index: 62; display: flex; align-items: center; gap: 22px; min-height: 70px; }
.brand { flex: none; display: inline-flex; align-items: center; color: #fff; }
.mark { font-size: 1.75rem; font-weight: 700; font-style: italic; letter-spacing: -.045em; line-height: 1; }
.mark i { font-style: inherit; color: var(--yellow); }
.menu { flex: 1; }
.menu ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: inline-block; padding: 9px 16px; border-radius: 999px; color: #d6e3ff; font-weight: 500; font-size: .95rem; transition: background .15s ease, color .15s ease; }
.menu a:hover { background: rgba(255,255,255,.12); color: #fff; }
.menu a[aria-current="true"] { background: var(--yellow); color: #231a00; font-weight: 600; }
.bar-cta { margin-left: auto; }

.hamburger { display: none; margin-left: auto; width: 46px; height: 46px; flex-direction: column; justify-content: center; gap: 5px; border-radius: 12px; border: 2px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); cursor: pointer; padding: 0; }
.hamburger span { display: block; width: 18px; height: 2px; margin: 0 auto; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.drawer { display: none; position: fixed; inset: 0; z-index: 61; background: var(--b1); overflow-y: auto; padding: 100px 20px 40px; }
.drawer.is-open { display: block; }
.drawer ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.drawer ul a { display: block; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; font-weight: 500; font-size: 1.08rem; }
.drawer ul a[aria-current="true"] { background: var(--yellow); color: #231a00; }
.drawer .d-cta { display: grid; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  padding: 13px 26px; border-radius: 14px; font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  transition: transform .15s ease, filter .15s ease, background .15s ease; text-align: center;
}
.btn:focus-visible, a:focus-visible, summary:focus-visible, .hamburger:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn-yellow { background: linear-gradient(135deg, var(--yellow), var(--yellow-2)); color: #231a00; box-shadow: 0 8px 22px rgba(255,212,38,.35); }
.btn-yellow:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-green { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #032a17; box-shadow: 0 8px 22px rgba(23,181,101,.4); }
.btn-green:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }
.btn-sm { padding: 10px 20px; font-size: .94rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ============ HERO ============ */
.hero { padding: 30px 0 22px; scroll-margin-top: 70px; }
.hero-head { display: grid; grid-template-columns: .95fr 1.05fr; gap: 44px; align-items: start; margin-top: 62px; }
.hero-head h1 { margin: 0; color: #fff; font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; font-weight: 700; letter-spacing: -.03em; }
.hero-head h1::after { content: ""; display: block; width: 84px; height: 7px; margin-top: 22px; border-radius: 4px; background: linear-gradient(90deg, var(--yellow), var(--green-2)); }
.hero-text p { color: #e6eeff; font-size: 1.07rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.stage { position: relative; margin: 0; }
.stage::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 34px; background: linear-gradient(135deg, var(--yellow), var(--green)); }
.stage img { position: relative; width: 100%; height: auto; aspect-ratio: 1380 / 752; border-radius: 30px; border: 6px solid #fff; box-shadow: 0 26px 60px rgba(4,14,60,.5); background: #bcd6f0; }
.chips { position: absolute; left: 28px; right: 28px; bottom: -22px; display: flex; flex-wrap: wrap; gap: 10px; z-index: 2; }
.chip { padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: .93rem; line-height: 1.2; box-shadow: 0 10px 22px rgba(4,14,60,.4); }
.chip.c1 { background: linear-gradient(135deg, var(--yellow), var(--yellow-2)); color: #231a00; }
.chip.c2 { background: linear-gradient(135deg, var(--green), var(--green-2)); color: #032a17; }
.chip.c3 { background: #fff; color: var(--b2); }

/* ============ SECTIONS ============ */
.sec { padding: 26px 0 8px; scroll-margin-top: 82px; }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.no { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); color: #231a00; font-weight: 700; font-size: 1.1rem; box-shadow: 0 0 0 5px rgba(255,212,38,.28); }
.sec-head h2 { margin: 0; color: #fff; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; }
.sheet { background: #fff; border-radius: 28px; padding: 34px 38px 30px; box-shadow: 0 22px 50px rgba(4,14,60,.35); border: 1px solid rgba(255,255,255,.7); }
.sheet > :last-child { margin-bottom: 0; }
.sheet p { font-size: 1.04rem; line-height: 1.78; color: var(--ink); }
.sheet h3 { margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 3px solid var(--yellow); display: inline-block; color: var(--b2); font-size: 1.22rem; line-height: 1.3; font-weight: 700; }
.sheet h3:first-child { margin-top: 0; }
.sheet strong { color: var(--b1); font-weight: 700; }

.sheet ul { list-style: none; margin: 16px 0 22px; padding: 0; display: grid; gap: 10px; }
.sheet ul li { position: relative; padding: 13px 16px 13px 52px; border-radius: 14px; background: var(--sky-3); border: 1px solid var(--line); font-size: 1rem; line-height: 1.6; }
.sheet ul li::before { content: ""; position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M5.5 11.4l3.4 3.4 7-7.6' fill='none' stroke='%23032a17' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.sheet ul.cards { grid-template-columns: 1fr 1fr; }

.sheet ol { list-style: none; counter-reset: s; margin: 16px 0 22px; padding: 0; display: grid; gap: 10px; }
.sheet ol li { position: relative; counter-increment: s; padding: 13px 16px 13px 62px; border-radius: 14px; background: var(--sky-2); border: 1px solid var(--line); font-size: 1rem; line-height: 1.6; }
.sheet ol li::before { content: counter(s); position: absolute; left: 14px; top: 10px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--yellow), var(--yellow-2)); color: #231a00; font-weight: 700; font-size: .98rem; line-height: 1; }

.table-wrap { margin: 22px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; border: 2px solid var(--b2); background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.table-wrap.wide table { min-width: 580px; }
.table-wrap th { text-align: left; padding: 14px 18px; background: var(--b2); color: var(--yellow-2); font-weight: 700; font-size: .88rem; letter-spacing: .04em; }
.table-wrap td { padding: 12px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap tbody tr:first-child td { border-top: 0; }
.table-wrap tbody tr:nth-child(even) td { background: var(--sky-3); }
.table-wrap td:first-child { color: var(--b1); font-weight: 700; }

.cta { margin: 28px 0 6px; padding: 26px 20px; border-radius: 20px; display: flex; justify-content: center; background: linear-gradient(120deg, var(--b2), var(--b3)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.15); }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--sky-3); border: 2px solid var(--line); overflow: hidden; }
.faq details[open] { background: #fff; border-color: var(--b3); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 18px 62px 18px 22px; color: var(--b1); font-weight: 700; font-size: 1.04rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--b2); color: #fff; font-size: 1.4rem; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "−"; background: var(--yellow); color: #231a00; }
.faq .ans { padding: 0 22px 20px; }
.faq .ans p { margin: 0; }

/* ============ FOOTER ============ */
.site-footer { margin-top: 56px; padding: 46px 0 26px; background: var(--b1); border-top: 4px solid var(--yellow); color: #c6d6ff; }
.f-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 28px; }
.f-brand p { margin: 14px 0 0; color: #a9bff5; font-size: .96rem; max-width: 340px; }
.f-col h3 { margin: 0 0 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col a { display: inline-block; padding: 5px 0; font-size: .97rem; color: #e8f0ff; }
.f-col a:hover { color: #fff; text-decoration: underline; }
.f-bottom { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); }
.f-bottom p { margin: 0; font-size: .88rem; color: #a9bff5; }

/* ============ PÁGINA 404 ============ */
.nf { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.nf-card { max-width: 520px; width: 100%; padding: 44px 32px; text-align: center; border-radius: 26px; background: #fff; box-shadow: 0 30px 70px rgba(4,14,60,.5); }
.nf-code { margin: 0 0 6px; color: var(--b3); font-size: 4rem; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.nf-card h1 { margin: 0 0 12px; color: var(--b1); font-size: 1.7rem; line-height: 1.2; }
.nf-card p { color: var(--ink-soft); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1060px) {
  .menu, .bar-cta { display: none; }
  .hamburger { display: flex; }
  .hero-head { grid-template-columns: 1fr; gap: 22px; margin-top: 62px; }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .hero { padding-top: 30px; }
  .hero-actions .btn { width: 100%; }
  .stage::before { inset: 10px -8px -10px 10px; border-radius: 24px; }
  .stage img { border-radius: 22px; border-width: 4px; }
  .chips { left: 12px; right: 12px; bottom: -34px; gap: 8px; }
  .chip { font-size: .8rem; padding: 8px 14px; }
  .hero-head { margin-top: 62px; }
  .no { width: 44px; height: 44px; }
  .sheet { padding: 26px 18px 22px; border-radius: 22px; }
  .sheet ul.cards { grid-template-columns: 1fr; }
  .sheet h3 { font-size: 1.1rem; }
  .btn { white-space: normal; }
  .cta .btn { width: 100%; }
  .f-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
