/* web/styles.css — sitio principal controlcreditnicaragua.com (esqueleto). Misma marca que landing/src/index.html. */
:root {
  --cc-blue: #1B3A6B; --cc-blue-light: #2B5EA7; --cc-blue-bg: #EDF1F7; --cc-red: #E30613; --cc-green: #16A34A; --cc-wa: #15803D;
  --cc-text: #1F2937; --cc-muted: #6B7280; --cc-bg: #F6F8FB; --cc-border: #E5E7EB; --cc-radius: 18px;
}
html { scroll-behavior: smooth; }
body { font-family: Inter, system-ui, sans-serif; background: var(--cc-bg); color: var(--cc-text); -webkit-font-smoothing: antialiased; margin: 0; }
.serif { font-family: 'Playfair Display', Georgia, serif; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Barra superior */
.topbar { background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--cc-border); position: sticky; top: 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.topbar .brand img { height: 38px; display: block; }
.topbar nav { display: flex; gap: 4px; flex-wrap: wrap; }
.topbar nav a { color: var(--cc-text); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 10px; font-size: .95rem; }
.topbar nav a:hover, .topbar nav a.active { background: var(--cc-blue-bg); color: var(--cc-blue); }

/* Botones */
.btn-cc { background: var(--cc-red); border-color: var(--cc-red); color: #fff; font-weight: 600; }
.btn-cc:hover, .btn-cc:focus { background: #c10510; border-color: #c10510; color: #fff; }
.btn-lg { border-radius: 14px; padding: 14px 26px; font-size: 1.08rem; }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.55); font-weight: 600; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

@media (max-width: 720px) {
  .topbar nav a { padding: 8px 9px; font-size: .88rem; }
  .topbar nav a .long { display: none; }
}
@media (min-width: 721px) { .topbar nav a .short { display: none; } }

/* 1. BIENVENIDA (portada): logo + lema, como la bienvenida de asesoria.* pero a pantalla grande */
body.is-welcome .topbar { display: none; }
.welcome { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 40px 24px 48px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 85% at 50% 0%, #2B5EA7 0%, #1B3A6B 52%, #0B1C38 100%);
  transition: transform .9s cubic-bezier(.76,0,.24,1), opacity .9s ease; }
.welcome.leaving { transform: translateY(-100%); opacity: .6; }
.welcome .orb { position: absolute; border-radius: 50%; pointer-events: none; }
.welcome .orb.o1 { width: 720px; height: 720px; top: -340px; right: -280px; background: radial-gradient(circle, rgba(255,255,255,.12), rgba(255,255,255,0) 68%); animation: drift 14s ease-in-out infinite alternate; }
.welcome .orb.o2 { width: 620px; height: 620px; bottom: -320px; left: -260px; background: radial-gradient(circle, rgba(227,6,19,.24), rgba(227,6,19,0) 68%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.welcome .rings { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-radial-gradient(circle at 50% 46%, rgba(255,255,255,.045) 0 1px, transparent 1px 64px); }
@keyframes drift { from { transform: translate(0,0); } to { transform: translate(-40px, 30px); } }
.welcome > *:not(.orb):not(.rings) { position: relative; z-index: 1; }
.welcome-logo { background: #fff; border-radius: 34px; padding: 26px 34px; box-shadow: 0 30px 80px rgba(2,10,26,.55), 0 0 0 10px rgba(255,255,255,.06), 0 0 0 22px rgba(255,255,255,.03); }
.welcome-logo img { width: clamp(200px, 26vw, 300px); height: auto; display: block; }
.welcome-slogan { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: clamp(1.9rem, 4.2vw, 3.3rem); line-height: 1.15; margin: 44px auto 0; max-width: 780px; letter-spacing: -.01em; }
.welcome-slogan em { font-style: italic; color: #FFD9DB; }
.welcome-rule { width: 64px; height: 2px; background: var(--cc-red); border-radius: 2px; margin: 22px auto 0; }
.welcome-badge { margin-top: 22px; display: block; max-width: 520px; line-height: 1.7; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.welcome-go { margin-top: 52px; width: 72px; height: 72px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: rgba(255,255,255,.06); color: #fff; font-size: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .2s, transform .2s; }
.welcome-go:hover, .welcome-go:focus-visible { background: rgba(255,255,255,.16); color: #fff; transform: scale(1.06); }
.welcome-go-label { margin-top: 12px; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.72); }
@keyframes w-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes w-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.welcome .w-a1 { animation: w-rise .9s ease-out both; }
.welcome .w-a2 { animation: w-rise .9s ease-out .35s both; }
.welcome .w-a3 { animation: w-rise .9s ease-out .7s both; }
.welcome .w-a4 { animation: w-rise .9s ease-out 1s both; }
.welcome-go .bi { animation: w-float 2.2s ease-in-out 1.8s infinite; }

/* 2. LAS TRES OPCIONES: segunda pantalla, igual de impactante */
.hub { min-height: calc(100vh - 64px); min-height: calc(100svh - 64px); display: flex; align-items: center; position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(90% 70% at 15% 0%, rgba(43,94,167,.55), transparent 60%), radial-gradient(70% 60% at 100% 100%, rgba(227,6,19,.16), transparent 60%), #0B1C38;
  scroll-margin-top: 64px; }
.hub .wrap { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 64px; width: 100%; }
.hub-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.hub-kicker { font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.hub-head h2 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); margin: 12px 0 10px; }
.hub-head h2 em { font-style: italic; color: #FFD9DB; }
.hub-head p { color: rgba(255,255,255,.75); font-size: 1.08rem; margin: 0; }
.hub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .hub-cards { grid-template-columns: 1fr; } }
.hub-card { --accent: var(--cc-red); position: relative; display: flex; flex-direction: column; min-height: 380px; padding: 34px 30px 30px; border-radius: 24px; text-decoration: none; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 50px rgba(0,0,0,.25); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease; }
.hub-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
.hub-card::after { content: ""; position: absolute; width: 320px; height: 320px; right: -140px; bottom: -160px; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 70%); transition: transform .4s ease; }
.hub-card:hover, .hub-card:focus-visible { transform: translateY(-8px); border-color: rgba(255,255,255,.35); color: #fff; box-shadow: 0 30px 70px rgba(0,0,0,.4); background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05)); }
.hub-card:hover::after { transform: scale(1.25); }
.hub-card.c-fin { --accent: var(--cc-red); --glow: rgba(227,6,19,.35); }
.hub-card.c-ase { --accent: #5B8FE0; --glow: rgba(91,143,224,.38); }
.hub-card.c-nos { --accent: #FFFFFF; --glow: rgba(255,255,255,.22); }
.hub-card .num { font-family: 'Playfair Display', Georgia, serif; font-size: .95rem; color: rgba(255,255,255,.5); letter-spacing: .12em; }
.hub-card .ico { width: 68px; height: 68px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 18px 0 22px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.18); }
.hub-card h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; font-size: 1.9rem; line-height: 1.15; margin: 0 0 12px; }
.hub-card p { color: rgba(255,255,255,.78); margin: 0 0 22px; flex: 1; position: relative; z-index: 1; }
.hub-card .go { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: .02em; }
.hub-card .go .bi { transition: transform .2s; }
.hub-card:hover .go .bi { transform: translateX(5px); }
.hub-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; position: relative; z-index: 1; }
.hub-card .tags span { font-size: .8rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 3px 10px; color: rgba(255,255,255,.85); }
.hub-badge { text-align: center; margin-top: 36px; color: rgba(255,255,255,.6); font-size: .85rem; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) {
  .welcome .w-a1, .welcome .w-a2, .welcome .w-a3, .welcome .w-a4, .welcome-go .bi, .welcome .orb { animation: none; }
  .welcome { transition: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Secciones */
section.block { padding: 72px 0; scroll-margin-top: 64px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; color: var(--cc-blue); }
.section-head p { color: var(--cc-muted); font-size: 1.08rem; }

/* Encabezado de páginas internas */
.page-hero { background: linear-gradient(155deg, var(--cc-blue) 0%, var(--cc-blue-light) 100%); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 700; margin: 8px 0 10px; }
.page-hero p { color: rgba(255,255,255,.88); max-width: 640px; font-size: 1.1rem; margin: 0; }
.page-hero .crumb a { color: rgba(255,255,255,.8); text-decoration: none; font-size: .9rem; }

/* Aviso «disponible pronto» (lo llena site.js) */
.btn-wa { background: var(--cc-wa); border-color: var(--cc-wa); color: #fff; font-weight: 600; }
.btn-wa:hover, .btn-wa:focus { background: #116932; border-color: #116932; color: #fff; }
.soon { background: #fff; border: 1px solid var(--cc-border); border-radius: 24px; padding: 48px 32px; text-align: center; max-width: 820px; margin: 0 auto;
  box-shadow: 0 18px 50px rgba(27,58,107,.08); position: relative; overflow: hidden; }
.soon::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--cc-blue), var(--cc-blue-light) 60%, var(--cc-red)); }
.soon-icon { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; background: var(--cc-blue-bg); color: var(--cc-blue); }
.soon-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cc-red); }
.soon h2 { font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--cc-blue); margin: 10px 0 12px; }
.soon p { color: var(--cc-muted); font-size: 1.08rem; max-width: 600px; margin: 0 auto; }
.soon-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.soon-actions .btn-link { color: var(--cc-blue); text-decoration: none; font-weight: 600; font-size: 1rem; }
.soon-office { margin-top: 18px; color: var(--cc-muted); font-size: .92rem; }
@media (max-width: 520px) { .soon { padding: 36px 18px; } .soon-actions .btn { width: 100%; } .soon-actions .btn-link { word-break: break-all; } }

/* Pie de página */
footer.site { background: #0F2547; color: rgba(255,255,255,.78); padding: 48px 0 28px; font-size: .93rem; }
footer.site h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
footer.site a { color: rgba(255,255,255,.78); text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { padding: 3px 0; }
footer.site .legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 32px; padding-top: 18px; font-size: .82rem; color: rgba(255,255,255,.6); }
footer.site .logo-box { background: #fff; display: inline-block; border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
footer.site .logo-box img { height: 34px; display: block; }
