/* ==========================================================================
   ALP Finanzas Saludables — styles.css
   ========================================================================== */

:root {
  --blue: #1513FE;
  --blue-08: rgba(21, 19, 254, 0.08);
  --blue-12: rgba(21, 19, 254, 0.12);
  --blue-25: rgba(21, 19, 254, 0.25);
  --blue-60: rgba(21, 19, 254, 0.6);
  --white: #FFFFFF;
  --white-70: rgba(255, 255, 255, 0.7);
  --white-15: rgba(255, 255, 255, 0.15);

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-w: 1160px;
  --radius: 20px;
  --radius-sm: 12px;

  --nav-h: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--blue);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  margin: 0 0 16px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p { line-height: 1.6; margin: 0 0 16px; }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  opacity: 0.6;
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--white); opacity: 0.75; }

.tag {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  background: var(--blue-08);
  border: 1px solid var(--blue-25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 20px;
}
.section__title--light { color: var(--white); }

.section__paragraph {
  max-width: 700px;
  font-size: 1.05rem;
  color: var(--blue-60);
}
.section__paragraph--light { color: var(--white-70); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 24px var(--blue-25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px var(--blue-25); }

.btn--white {
  background: var(--white);
  color: var(--blue);
}
.btn--white:hover { transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue); color: var(--white); }

.btn--lg { padding: 18px 40px; font-size: 1.05rem; }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--blue-12);
  transition: box-shadow 0.3s ease;
}
.nav.is-scrolled { box-shadow: 0 4px 20px rgba(21, 19, 254, 0.08); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img { height: 38px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav__links a { opacity: 0.85; transition: opacity 0.2s ease; }
.nav__links a:hover { opacity: 1; }

.nav__cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 100px;
  opacity: 1 !important;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Floating CTA
   ========================================================================== */

.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(21, 19, 254, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 34px rgba(21, 19, 254, 0.5); }
.floating-cta__icon { display: flex; }

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

.hero {
  padding: 100px 0 80px;
  text-align: center;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  max-width: 900px;
}
.hero__subtitle {
  max-width: 720px;
  font-size: 1.1rem;
  color: var(--blue-60);
  margin-bottom: 32px;
}

/* ==========================================================================
   Section base
   ========================================================================== */

.section { padding: 90px 0; }
.section--blue {
  background: var(--blue);
  color: var(--white);
}

/* ==========================================================================
   Quiénes somos
   ========================================================================== */

.feature-card {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: center;
  background: var(--blue-08);
  border: 1px solid var(--blue-12);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 30px 60px -20px rgba(21, 19, 254, 0.25);
}
.feature-card__img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: 0 20px 40px -10px rgba(21, 19, 254, 0.35);
}
.feature-card__img img { width: 100%; height: 100%; object-fit: cover; }
.feature-card__quote {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.section__paragraph { margin: 0 auto 48px; text-align: center; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--blue-12);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -16px rgba(21,19,254,0.25); }
.team-card__avatar {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--blue-12);
}
.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--avatar-scale, 1.55));
  transform-origin: 50% var(--avatar-origin-y, 30%);
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.team-card__role {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-60);
  margin-bottom: 12px;
}
.team-card__bio { font-size: 0.92rem; color: var(--blue-60); margin-bottom: 0; }

/* ==========================================================================
   Por qué elegirnos
   ========================================================================== */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0;
  position: relative;
}
.pillar {
  background: var(--white-15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.pillar__num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.6;
  margin-bottom: 10px;
}
.pillar h3 { margin: 0; font-size: 1.3rem; color: var(--white); }

.cta-block {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.cta-block h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 24px; }

/* ==========================================================================
   Qué hacemos
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--blue-12);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -16px rgba(21,19,254,0.2); }
.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--blue-60); margin-bottom: 0; font-size: 0.95rem; }

.units {
  background: var(--blue-08);
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 60px;
}
.units h3 { font-size: 1.2rem; margin-bottom: 20px; text-align: center; }
.units__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.units__list li {
  background: var(--white);
  border: 1px solid var(--blue-25);
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 100px;
}

.dashboards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dash-card {
  background: var(--white);
  border: 1px solid var(--blue-12);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
}
.dash-card__label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-60);
  margin-bottom: 16px;
}
.dash-card__chart { width: 100%; height: auto; display: block; margin-bottom: 12px; }
.dash-card__donut { width: 140px; height: 140px; margin: 0 auto 12px; display: block; }
.dash-card__value {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--blue);
  margin: 0;
}
.dash-card__value span {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--blue-60);
  margin-top: 2px;
}

/* ==========================================================================
   Casos de éxito
   ========================================================================== */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.client-logo {
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.client-logo:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -14px rgba(21,19,254,0.3); }
.client-logo img { width: 100%; height: 100%; object-fit: cover; }
.client-logo.logo-fallback img { display: none; }
.client-logo__label {
  display: none;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  color: var(--blue);
  line-height: 1.2;
}
.client-logo.logo-fallback .client-logo__label { display: block; }

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial {
  margin: 0;
  background: var(--blue-08);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 28px;
}
.testimonial p {
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 14px;
}
.testimonial cite { font-style: normal; font-weight: 700; font-size: 0.9rem; }
.highlight { color: var(--blue); font-weight: 800; }

/* ==========================================================================
   Ubicación
   ========================================================================== */

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  margin-top: 32px;
}
.map-wrapper iframe { display: block; }

/* ==========================================================================
   Contacto
   ========================================================================== */

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto 48px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row--full { grid-column: 1 / -1; }
.form-row label { font-weight: 700; font-size: 0.9rem; }
.form-row input,
.form-row textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--blue-25);
  background: var(--white);
  color: var(--blue);
  resize: vertical;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--blue-60); }

.form-message {
  min-height: 24px;
  font-weight: 700;
  text-align: center;
}
.form-message.is-success { color: var(--blue); }
.form-message.is-error { color: #d32f2f; }

.contact-direct {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.contact-direct__item {
  background: var(--blue-08);
  border: 1px solid var(--blue-12);
  border-radius: 100px;
  padding: 12px 22px;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}
a.contact-direct__item:hover { background: var(--blue-12); }
.contact-direct__item strong { margin-right: 6px; }

/* ==========================================================================
   Trabajá con nosotros
   ========================================================================== */

.section--work {
  background: var(--blue-08);
  text-align: center;
}
.work__inner { max-width: 620px; margin: 0 auto; }
.work__inner h2 { font-size: 1.8rem; }
.work__inner p { color: var(--blue-60); margin-bottom: 28px; }

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

.footer { background: var(--blue); color: var(--white); padding: 64px 0 24px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.footer__brand img {
  height: 40px;
  margin-bottom: 14px;
  background: var(--white);
  border-radius: 10px;
  padding: 6px 10px;
}
.footer__brand p { color: var(--white-70); font-size: 0.9rem; margin: 0; }
.footer__links, .footer__social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
}
.footer__links a, .footer__social a { color: var(--white-70); transition: color 0.2s ease; }
.footer__links a:hover, .footer__social a:hover { color: var(--white); }
.footer__copy {
  text-align: center;
  color: var(--white-70);
  font-size: 0.82rem;
  margin: 24px 0 0;
}

/* ==========================================================================
   Image fallback (broken image graceful state)
   ========================================================================== */

img.img-fallback {
  background: var(--blue-08);
  min-height: 80px;
}

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

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .dashboards-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .pillars { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --nav-h: 68px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--white);
    border-bottom: 1px solid var(--blue-12);
    padding: 12px 24px 24px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--blue-08); }
  .nav__cta { border-bottom: none !important; margin-top: 8px; text-align: center; }

  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }

  .feature-card { padding: 28px 20px; }
  .feature-card__quote { font-size: 1.1rem; }

  .team-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .testimonials { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__brand img { margin-left: auto; margin-right: auto; }

  .floating-cta__text { display: none; }
  .floating-cta { padding: 16px; }
  .floating-cta__icon { margin: 0; }
}

@media (max-width: 480px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
