/* ==========================================================================
   MP Educación Financiera — hoja de estilos general
   ========================================================================== */

:root {
  --navy: #17324a;
  --navy-dark: #0e2334;
  --teal: #1a8f8f;
  --teal-dark: #0e6e6e;
  --green: #3fae66;
  --text: #2b3a42;
  --text-light: #5a6b73;
  --bg: #ffffff;
  --bg-soft: #f4f9f9;
  --bg-navy-soft: #eef4f6;
  --border: #e1ebec;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(23, 50, 74, 0.08);
  --shadow-soft: 0 4px 14px rgba(23, 50, 74, 0.06);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Poppins", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--text-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--bg-navy-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.text-center { text-align: center; }

.section {
  padding: 72px 0;
}

.section-soft { background: var(--bg-soft); }

.section-navy {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
}

.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: #cfe0e3; }

.section-head {
  max-width: 720px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head.align-left { margin-left: 0; text-align: left; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

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

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 8px 20px rgba(26, 143, 143, 0.3);
}
.btn-primary:hover { background: var(--teal-dark); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

.btn-block { width: 100%; justify-content: center; }

.btn-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Header / navegación
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 96px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
  border-color: var(--teal);
}

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--teal-dark) 100%);
  color: #fff;
  padding: 90px 0 70px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero h1 { color: #fff; }

.hero .lead {
  font-size: 1.15rem;
  color: #d7e6e8;
  max-width: 540px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 10px;
}

.hero-badge {
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 14px;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .bike-wrap {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

.hero-visual svg { width: 100%; height: auto; }

.hero-visual img { width: 100%; height: auto; border-radius: 8px; }

.hero-quote {
  margin-top: 18px;
  font-size: 0.95rem;
  font-style: italic;
  color: #cfe0e3;
  border-left: 3px solid var(--green);
  padding-left: 14px;
}

.wave {
  display: block;
  width: 100%;
  line-height: 0;
}

/* ==========================================================================
   Tarjetas / grillas
   ========================================================================== */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bg-navy-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--teal);
}

.card .icon svg { width: 28px; height: 28px; }

.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.pillar {
  text-align: center;
  padding: 18px 10px;
}

.pillar .icon {
  margin: 0 auto 14px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-navy-soft);
  color: var(--teal);
}

.pillar h4 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 4px;
}

.pillar span {
  font-size: 0.85rem;
  color: var(--text-light);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}

.chip .icon-sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-navy-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chip .icon-sm svg { width: 16px; height: 16px; }

/* Bike parts grid (metodología) */
.bike-diagram {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 10px;
}

.bike-parts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.bike-part {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.bike-part .num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-navy-soft);
  color: var(--teal-dark);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bike-part h4 { margin: 0 0 4px; font-size: 1rem; color: var(--navy); }
.bike-part p { margin: 0; font-size: 0.9rem; }

/* Quote banda */
.quote-banner {
  background: var(--navy-dark);
  color: #fff;
  padding: 44px 0;
  text-align: center;
}

.quote-banner p {
  color: #e6f1f2;
  font-size: 1.15rem;
  max-width: 780px;
  margin: 0 auto;
  font-weight: 600;
}

.quote-banner .mark { color: var(--green); font-size: 1.4rem; }

/* Timeline / formatos */
.step-list {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 30px 24px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

/* Perfil / nosotros */
.profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-soft);
}

.profile-avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(150deg, var(--teal), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3.4rem;
  font-weight: 800;
}

.profile-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.profile-credentials span {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg-navy-soft);
  color: var(--teal-dark);
  padding: 6px 12px;
  border-radius: 999px;
}

/* Formulario de contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.contact-info-card {
  background: var(--bg-navy-soft);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.contact-info-item .icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
.contact-info-item .icon svg { width: 22px; height: 22px; }

.contact-info-item h4 { margin: 0 0 3px; font-size: 0.98rem; }
.contact-info-item p { margin: 0; font-size: 0.9rem; }

.form-note {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: -6px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--navy-dark);
  color: #cfe0e3;
  padding: 54px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-grid ul li { margin-bottom: 10px; }
.footer-grid a { color: #cfe0e3; font-size: 0.92rem; transition: color 0.15s ease; }
.footer-grid a:hover { color: var(--green); }

.footer-brand img {
  height: 52px;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.footer-brand p { color: #9fb7bc; font-size: 0.88rem; max-width: 320px; }

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #7f9ba1;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   Page hero (páginas internas)
   ========================================================================== */

.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}

.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #cfe0e3; max-width: 620px; margin: 0 auto; }

.breadcrumb {
  font-size: 0.85rem;
  color: #9fb7bc;
  margin-bottom: 14px;
}
.breadcrumb a { color: #cfe0e3; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .step-list { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile-avatar { max-width: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .bike-parts { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { display: none; }

  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0 50px; }
}
