/* FINOP Soluciones S.A.S. - Prototipo web institucional V04 */
/* Estado: Versión para revisión */

:root {
  --blue: #01255B;
  --blue-2: #082452;
  --teal: #1091A0;
  --teal-2: #098F9C;
  --green: #5AB047;
  --white: #FFFFFF;
  --bg: #F6F8FA;
  --bg-2: #EEF7F8;
  --text: #263238;
  --muted: #5F6B7A;
  --line: #E5EAF0;
  --shadow: 0 18px 45px rgba(1, 37, 91, 0.08);
  --shadow-2: 0 22px 65px rgba(1, 37, 91, 0.14);
  --radius: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  background: var(--blue);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1000;
}

.skip-link:focus { left: 12px; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.section { padding: 92px 0; }

.section-heading {
  max-width: 840px;
  margin-bottom: 42px;
}

.section-heading.centered {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin: 0 0 12px;
}

h1, h2, h3, h4 {
  color: var(--blue);
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.55rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.58rem);
  letter-spacing: -0.035em;
}

h3 { font-size: 1.22rem; }
h4 { font-size: 1rem; margin-top: 22px; }

p { margin: 14px 0 0; }

.section-heading p,
.hero-text,
.about p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-text-strong {
  color: var(--blue);
  font-weight: 700;
  max-width: 680px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  min-height: 48px;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover { background: var(--teal); }

.btn-secondary {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

.btn-secondary:hover { background: var(--bg); }

.btn-whatsapp {
  background: var(--green);
  color: var(--white);
}

.btn-small {
  padding: 11px 18px;
  min-height: 42px;
  font-size: 0.9rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-logo {
  width: 156px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--blue);
  font-size: 0.94rem;
  font-weight: 650;
}

.site-nav a:not(.btn):hover { color: var(--teal); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--blue);
  margin: 5px 0;
  border-radius: 2px;
}

/* Hero */
.hero {
  padding-top: 72px;
  background:
    radial-gradient(circle at 88% 10%, rgba(16, 145, 160, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: 52px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.proof-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 10px 25px rgba(1, 37, 91, 0.04);
  font-weight: 700;
  font-size: 0.92rem;
}

.proof-strip span::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.hero-visual {
  position: relative;
  padding: 20px;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(16, 145, 160, 0.12), rgba(90, 176, 71, 0.08));
  transform: rotate(-3deg);
  z-index: -1;
}

.decision-board {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-2);
}

.board-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.board-label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 4px;
}

.board-top strong {
  color: var(--blue);
  font-size: 1.3rem;
}

.status-pill {
  color: #2f7a25;
  background: #e9f6e7;
  border-radius: 999px;
  font-weight: 800;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.board-chart {
  height: 210px;
  background: linear-gradient(180deg, #f2f6f9, #edf4f7);
  border: 1px solid #edf1f5;
  border-radius: 24px;
  padding: 30px 22px 22px;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: end;
}

.board-chart span {
  display: block;
  border-radius: 14px 14px 5px 5px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
  min-height: 56px;
}

.decision-flow {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr;
  gap: 10px;
  align-items: center;
}

.decision-flow div {
  min-height: 86px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 18px;
  padding: 16px;
}

.decision-flow b {
  display: block;
  color: var(--blue);
}

.decision-flow small {
  color: var(--muted);
  font-weight: 600;
}

.decision-flow > span {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.mini-kpis div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(1, 37, 91, 0.06);
}

.mini-kpis strong {
  color: var(--teal);
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.mini-kpis span {
  color: var(--blue);
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 8px;
}

/* General cards */
.cards-grid {
  display: grid;
  gap: 22px;
}

.cards-grid.four { grid-template-columns: repeat(4, 1fr); }
.cards-grid.three { grid-template-columns: repeat(3, 1fr); }

.card,
.sector-card,
.value-card,
.solution-card,
.deliverable-map article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 28px rgba(1, 37, 91, 0.04);
}

.card h3,
.sector-card h3,
.value-card h3,
.solution-card h3,
.deliverable-map h3 {
  margin-top: 14px;
}

.card p,
.sector-card p,
.value-card p,
.solution-card p,
.deliverable-map p {
  color: var(--muted);
  font-size: 0.96rem;
}

.icon,
.service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--teal);
  background: #eaf7f8;
}

/* Problem infographic */
.problem { background: var(--white); }

.infographic-card {
  background: linear-gradient(135deg, var(--blue), #06366e);
  border-radius: 28px;
  padding: 28px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 56px 1fr 56px 1fr;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 28px;
  box-shadow: var(--shadow-2);
}

.info-step {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 22px;
  padding: 22px;
}

.info-step h3 { color: var(--white); margin-top: 14px; }
.info-step p { color: rgba(255,255,255,0.78); }

.info-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--blue);
  background: var(--white);
  font-weight: 800;
}

.info-icon.green { background: #e9f6e7; color: #2f7a25; }

.info-arrow {
  display: grid;
  place-items: center;
  color: var(--green);
  font-size: 2rem;
  font-weight: 800;
}

/* Solutions */
.services { background: var(--bg); }

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 24px;
}

.solution-card {
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.solution-card.featured {
  background: linear-gradient(180deg, #ffffff, #f8fcfd);
}

.solution-tag {
  color: var(--teal);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.76rem;
  margin: 18px 0 4px;
}

.solution-card ul {
  padding-left: 20px;
  color: var(--muted);
}

.result-box {
  margin-top: 18px;
  background: var(--bg);
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  padding: 14px;
  color: var(--text);
}

.link-arrow {
  display: inline-flex;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 800;
}

.link-arrow::after { content: " →"; color: var(--teal); }

/* Deliverables */
.deliverables {
  background:
    radial-gradient(circle at 20% 0%, rgba(90,176,71,0.09), transparent 28%),
    var(--white);
}

.deliverable-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.map-center {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: var(--white);
  border-radius: 28px;
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-2);
}

.map-center strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.map-center span {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.82);
  font-weight: 600;
}

.deliverable-map article {
  min-height: 180px;
}

.deliverable-map article span {
  color: var(--green);
  font-weight: 900;
  font-size: 0.92rem;
}

/* Sectors */
.sectors { background: var(--bg); }

.highlight-box {
  margin-top: 28px;
  border-radius: 24px;
  padding: 24px 28px;
  background: var(--blue);
  color: var(--white);
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.highlight-box strong { font-size: 1.05rem; }
.highlight-box span { color: rgba(255,255,255,0.78); max-width: 760px; }

/* Method */
.approach { background: var(--white); }

.method-visual {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}

.method-visual::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--green));
  z-index: 0;
}

.method-visual article {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 10px;
}

.method-visual span {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 900;
  border: 6px solid var(--white);
  box-shadow: 0 8px 22px rgba(16,145,160,0.22);
}

.method-visual .last span { background: var(--green); }

.method-visual h3 {
  font-size: 1rem;
}

.method-visual p {
  color: var(--muted);
  font-size: 0.9rem;
}

.quote-box {
  max-width: 860px;
  margin: 46px auto 0;
  text-align: center;
  border-radius: 24px;
  padding: 28px;
  background: var(--bg);
  color: var(--blue);
  font-weight: 800;
  font-size: 1.2rem;
}

/* About */
.about { background: var(--bg); }

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: start;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.value-card {
  border-left: 4px solid var(--teal);
}

/* Contact */
.contact {
  background: linear-gradient(135deg, var(--blue), #083568);
  color: var(--white);
}

.contact h2,
.contact h3,
.contact .eyebrow { color: var(--white); }

.contact .eyebrow { opacity: 0.82; }
.contact-copy p { color: rgba(255,255,255,0.78); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  font-weight: 700;
}

.contact-list a { color: var(--white); }
.contact-list a:hover { color: #bdebf0; }

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.contact-form {
  background: var(--white);
  color: var(--text);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow-2);
}

.contact-form h3 { color: var(--blue); }

.contact-form p {
  color: var(--muted);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
  margin-top: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(16,145,160,0.13);
}

.privacy-note {
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-message {
  color: var(--blue);
  font-weight: 700;
  margin-top: 16px;
}

.form-message.success { color: #2f7a25; }

/* Footer */
.site-footer {
  background: #061f47;
  color: var(--white);
  padding: 58px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 34px;
}

.footer-logo {
  width: 150px;
  background: var(--white);
  border-radius: 12px;
  padding: 8px;
}

.site-footer p,
.site-footer a {
  color: rgba(255,255,255,0.76);
  display: block;
  margin-top: 10px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1rem;
}

.site-footer a:hover { color: #bdebf0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.14);
  margin-top: 36px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 1080px) {
  .site-nav { gap: 14px; font-size: 0.88rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; margin-inline: auto; width: 100%; }
  .cards-grid.four, .visual-grid { grid-template-columns: repeat(2, 1fr); }
  .method-visual { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .method-visual::before { display: none; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  .container { width: min(100% - 30px, var(--container)); }
  .section { padding: 66px 0; }

  .menu-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 15px;
    right: 15px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 12px;
  }

  .site-nav .btn {
    margin-top: 8px;
  }

  .header-inner { min-height: 66px; }
  .brand-logo { width: 138px; }

  .hero { padding-top: 52px; }
  .hero-grid { gap: 32px; }

  .hero-actions .btn,
  .contact-actions .btn {
    width: 100%;
  }

  .proof-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .decision-board {
    padding: 20px;
    border-radius: 24px;
  }

  .board-chart {
    height: 165px;
    gap: 10px;
    padding: 24px 14px 16px;
  }

  .decision-flow {
    grid-template-columns: 1fr;
  }

  .decision-flow > span {
    width: 4px;
    height: 24px;
    margin-inline: auto;
  }

  .mini-kpis {
    grid-template-columns: 1fr;
  }

  .infographic-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .info-arrow {
    transform: rotate(90deg);
    min-height: 24px;
  }

  .cards-grid.four,
  .cards-grid.three,
  .solution-grid,
  .deliverable-map,
  .about-grid,
  .values-grid,
  .visual-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .highlight-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .method-visual {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .method-visual article {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    text-align: left;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
  }

  .method-visual span {
    width: 46px;
    height: 46px;
    margin: 0;
    border: 4px solid var(--white);
  }

  .method-visual h3 { margin-top: 2px; }
  .method-visual p { grid-column: 2; margin-top: -8px; }

  .contact-form {
    padding: 22px;
    border-radius: 22px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 2.05rem; }
  .board-top {
    flex-direction: column;
  }
  .board-chart {
    height: 142px;
  }
  .card,
  .sector-card,
  .value-card,
  .solution-card,
  .deliverable-map article,
  .visual-grid article {
    padding: 20px;
  }
}


/* Ajuste V04: visual hero más estable en pantallas pequeñas */
@media (max-width: 860px) {
  .hero-visual {
    max-width: 440px;
    padding: 12px;
  }

  .hero-visual::before {
    inset: 4px;
    border-radius: 28px;
    transform: none;
  }

  .decision-board {
    padding: 18px 16px;
    border-radius: 24px;
  }

  .board-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px;
  }

  .board-label {
    font-size: 0.82rem;
  }

  .board-top strong {
    font-size: 1.12rem;
  }

  .status-pill {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 6px 10px;
    align-self: start;
  }

  .board-chart {
    height: 142px;
    margin-top: 20px;
    gap: 9px;
    padding: 22px 14px 16px;
    border-radius: 22px;
  }

  .board-chart span {
    border-radius: 12px 12px 5px 5px;
    min-height: 42px;
  }

  .decision-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .decision-flow > span {
    display: none;
  }

  .decision-flow div {
    min-height: auto;
    padding: 12px 8px;
    border-radius: 14px;
    text-align: center;
  }

  .decision-flow b {
    font-size: 0.92rem;
  }

  .decision-flow small {
    font-size: 0.78rem;
  }

  .mini-kpis {
    display: none;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .hero {
    padding-top: 38px;
  }

  .hero-visual {
    max-width: 100%;
    padding: 8px;
  }

  .decision-board {
    padding: 16px 14px;
  }

  .board-chart {
    height: 124px;
    gap: 7px;
    padding: 20px 12px 14px;
  }

  .decision-flow {
    gap: 6px;
  }

  .decision-flow div {
    padding: 10px 6px;
  }

  .decision-flow b {
    font-size: 0.86rem;
  }

  .decision-flow small {
    font-size: 0.72rem;
  }

  .board-top strong {
    font-size: 1.05rem;
  }

  .status-pill {
    font-size: 0.72rem;
    padding: 5px 8px;
  }
}
