/* Voxpop Consulting */
:root {
  --blue: #2F6BFF;
  --navy: #0A4A8C;
  --ink: #0D1B2E;
  --ink-soft: #5B6B82;
  --alt: #F1F5FD;
  --white: #FFFFFF;
  --line: rgba(10, 74, 140, 0.14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.15; text-wrap: balance; }
p { margin: 0 0 1rem; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Reveal: el contenido es visible por defecto; sólo se oculta si JS está activo */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) { .nav { background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); } }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-text { text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--ink); position: relative; padding-block: .3rem; }
.nav-text::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-text:hover::after { transform: scaleX(1); }

/* BOTONES */
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: inherit; font-weight: 600; font-size: .95rem;
  padding: .95rem 1.8rem; border-radius: 999px; border: 2px solid transparent;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-small { padding: .6rem 1.3rem; font-size: .85rem; }

/* HERO */
.hero { position: relative; overflow: hidden; min-height: 86vh; min-height: 86svh; display: grid; align-items: center; background: var(--white); }
.hero-inner { position: relative; z-index: 2; width: min(1120px, 100% - 3rem); margin-inline: auto; padding: 5rem 0; text-align: center; }
.eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.2rem; }
.hero-title { font-size: clamp(2.3rem, 6vw, 4.6rem); font-weight: 300; max-width: 18ch; margin-inline: auto; }
.hero-title strong { font-weight: 700; color: var(--blue); }
.hero-text { max-width: 58ch; margin: 1.8rem auto 2.2rem; font-size: clamp(1rem, 1.5vw, 1.18rem); color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.js .hero-inner > * { animation: rise .9s var(--ease) both; }
.js .hero-inner > *:nth-child(2) { animation-delay: .1s; }
.js .hero-inner > *:nth-child(3) { animation-delay: .22s; }
.js .hero-inner > *:nth-child(4) { animation-delay: .34s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Franjas diagonales (detrás del contenido) */
.deco { position: absolute; z-index: 0; width: 380px; height: 380px; overflow: hidden; pointer-events: none; }
.deco-tl { top: 0; left: 0; }
.deco-br { bottom: 0; right: 0; }
.bar { position: absolute; display: block; width: 560px; height: 78px; border-radius: 999px; transform: rotate(-45deg); }
.bar-blue { background: var(--blue); }
.bar-navy { background: var(--navy); }
.deco-tl .bar:nth-child(1) { left: -270px; top: 60px; }
.deco-tl .bar:nth-child(2) { left: -180px; top: 150px; }
.deco-br .bar:nth-child(1) { right: -270px; bottom: 60px; }
.deco-br .bar:nth-child(2) { right: -180px; bottom: 150px; }

/* SECCIONES */
.section { padding: clamp(4rem, 9vw, 7rem) 0; scroll-margin-top: 72px; }
.section-alt { background: var(--alt); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }

/* TARJETAS */
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-top-width: 4px; border-radius: 20px;
  padding: 2.2rem 1.9rem 2rem;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(10, 74, 140, .45); }
.card-blue { border-top-color: var(--blue); }
.card-navy { border-top-color: var(--navy); }
.card-num { display: block; font-weight: 700; font-size: .85rem; letter-spacing: .1em; color: var(--blue); margin-bottom: .8rem; }
.card h3 { font-size: 1.55rem; font-weight: 600; margin-bottom: .8rem; }
.card h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: .7rem; }
.card p { color: var(--ink-soft); font-size: .96rem; }
.check { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .55rem; }
.check li { position: relative; padding-left: 1.7rem; font-weight: 500; font-size: .94rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .45em; width: .9rem; height: .9rem; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1.5px var(--blue); }

/* PESTAÑAS */
.tabs { display: inline-flex; gap: .3rem; padding: .35rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 2.5rem; }
.tab {
  font-family: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  padding: .7rem 1.5rem; border: 0; border-radius: 999px; background: transparent; color: var(--navy);
  transition: background .3s, color .3s;
}
.tab:hover { background: var(--alt); }
.tab.is-active { background: var(--blue); color: #fff; }
.panel { animation: panelIn .5s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel-title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; margin-bottom: .8rem; }
.panel-text { max-width: 62ch; color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 2rem; }
.panel-btn { margin-top: 2rem; }
.tag { display: inline-block; align-self: flex-start; background: var(--blue); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .06em; padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem; }
.course { display: flex; flex-direction: column; }
.course .course-foot { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--navy); }
.course p:not(.course-foot) { margin-bottom: 1.2rem; }

/* CONSULTORA: cómo trabajamos */
.process { margin-top: 2.8rem; }
.process h4 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.2rem; }
.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; counter-reset: paso; }
.process-steps li { counter-increment: paso; padding-top: 1rem; border-top: 2px solid var(--blue); }
.process-steps li::before { content: "0" counter(paso); display: block; font-weight: 700; font-size: .85rem; color: var(--blue); margin-bottom: .4rem; }
.process-steps strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: .3rem; }
.process-steps p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* MENTORÍAS */
.mentoring { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.mentoring .panel-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.mentoring .grid-2 { gap: 1.3rem; }
.modes { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.8rem 0 .9rem; padding: 0; }
.modes li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.2rem; font-weight: 600; font-size: .85rem; color: var(--navy); }
.mentoring-note { max-width: 62ch; font-size: .9rem; color: var(--ink-soft); }
.mentoring-btn { margin-top: 1rem; }

/* CONTACTO */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact-text { color: var(--ink-soft); font-size: 1.08rem; margin: 1.2rem 0 0; max-width: 48ch; }
.contact-data { list-style: none; margin: 0; padding: .3rem 0 .3rem 1.8rem; border-left: 3px solid var(--blue); display: grid; gap: 1.5rem; }
.contact-data span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .2rem; }
.contact-data a { font-weight: 600; font-size: 1.1rem; color: var(--navy); text-decoration: none; background-image: linear-gradient(var(--blue), var(--blue)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease); word-break: break-word; }
.contact-data a:hover { background-size: 100% 2px; }

/* FOOTER */
.footer { background: var(--alt); border-top: 1px solid var(--line); padding: 2.2rem 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer img { height: 64px; width: auto; }
.footer p { margin: 0; font-size: .85rem; color: var(--ink-soft); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-text { display: none; }
  .grid-2, .grid-3, .contact-grid, .process-steps { grid-template-columns: 1fr; }
  .deco-tl, .deco-br { width: 210px; height: 210px; }
  .deco .bar { width: 320px; height: 44px; }
  .deco-tl .bar:nth-child(1) { left: -150px; top: 30px; }
  .deco-tl .bar:nth-child(2) { left: -95px; top: 86px; }
  .deco-br .bar:nth-child(1) { right: -150px; bottom: 30px; }
  .deco-br .bar:nth-child(2) { right: -95px; bottom: 86px; }
  .hero-inner { padding-top: 6.5rem; padding-bottom: 5.5rem; }
}
@media (max-width: 520px) {
  .section { padding: 3rem 0; }
  .wrap { width: min(1120px, 100% - 2rem); }
  .deco-tl, .deco-br { width: 150px; height: 150px; }
  .deco .bar { width: 220px; height: 30px; }
  .deco-tl .bar:nth-child(1) { left: -105px; top: 22px; }
  .deco-tl .bar:nth-child(2) { left: -65px; top: 58px; }
  .deco-br .bar:nth-child(1) { right: -105px; bottom: 22px; }
  .deco-br .bar:nth-child(2) { right: -65px; bottom: 58px; }
  .hero-inner { padding: 7rem 0 4.5rem; }
  .card { padding: 1.75rem 1.4rem; }
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: .65rem .4rem; font-size: .82rem; }
  .nav-logo img { height: 44px; }
  .footer-in { flex-direction: column; align-items: flex-start; }
}
