/* ==========================================================================
   GLB — Growth Partners of Life and Business
   Hoja de estilos principal (design tokens en :root)
   ========================================================================== */

:root {
  /* Colores de marca — no modificar, ver Manual de Identidad de Marca */
  --glb-navy: #14213D;
  --glb-royal: #2563EB;
  --glb-sky: #38BDF8;
  --glb-gray-light: #F5F7FA;
  --glb-gray-medium: #6B7280;
  --glb-ink: #1A1E2A;
  --glb-white: #FFFFFF;

  /* Tipografía */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Noto Sans", sans-serif;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;

  /* Bordes y sombras */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 8px 30px rgba(20, 33, 61, 0.08);
  --shadow-card-hover: 0 14px 40px rgba(20, 33, 61, 0.14);

  --max-width: 1180px;
}

/* ---- Reset básico ---- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--glb-ink);
  background-color: var(--glb-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--glb-navy);
  line-height: 1.2;
  margin: 0 0 var(--space-sm);
}

h1 {
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
}

h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

h3 {
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.375rem);
}

p {
  margin: 0 0 var(--space-sm);
  color: var(--glb-ink);
}

.eyebrow {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glb-royal);
  display: inline-block;
  margin-bottom: var(--space-xs);
}

.section-lead {
  color: var(--glb-gray-medium);
  font-size: 1.05rem;
  max-width: 680px;
}

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

.section {
  padding: var(--space-xl) 0;
}

.section--tight {
  padding: var(--space-lg) 0;
}

.section--light {
  background: var(--glb-gray-light);
}

.section--navy {
  background: var(--glb-navy);
  color: var(--glb-white);
}

.section--navy h2,
.section--navy h3,
.section--navy p {
  color: var(--glb-white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-lg);
}

.section-header .section-lead {
  margin: 0 auto;
}

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--glb-royal);
  color: var(--glb-white);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: #1d4fd1;
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

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

.btn-outline-navy:hover {
  background: var(--glb-navy);
  color: var(--glb-white);
}

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

.btn-whatsapp:hover {
  background: var(--glb-gray-light);
}

.btn-block {
  width: 100%;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(20, 33, 61, 0.08);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.site-logo img {
  height: 40px;
  width: auto;
}

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--glb-navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.main-nav__links {
  display: flex;
  gap: var(--space-md);
}

.main-nav__links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--glb-navy);
  padding: 0.4rem 0;
  position: relative;
}

.main-nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--glb-royal);
  transition: width 0.2s ease;
}

.main-nav__links a:hover::after,
.main-nav__links a[aria-current="page"]::after {
  width: 100%;
}

.main-nav__links a[aria-current="page"] {
  color: var(--glb-royal);
}

.main-nav__cta {
  display: flex;
  gap: 0.75rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: linear-gradient(155deg, var(--glb-navy) 0%, #0e1830 100%);
  color: var(--glb-white);
  overflow: hidden;
  padding: var(--space-xl) 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(107, 114, 128, 0.18) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(37, 99, 235, 0.08) 45%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero .eyebrow {
  color: var(--glb-sky);
}

.hero h1 {
  color: var(--glb-white);
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: var(--space-md);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---- Barras / isotipo decorativo ---- */
.bars-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 28px;
}

.bars-icon span {
  display: block;
  width: 7px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--glb-royal), var(--glb-sky));
}

.bars-icon span:nth-child(1) { height: 45%; }
.bars-icon span:nth-child(2) { height: 70%; }
.bars-icon span:nth-child(3) { height: 100%; }

/* ---- Franja de gradiente (cierre de sección) ---- */
.gradient-bar {
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, var(--glb-navy), var(--glb-royal), var(--glb-sky));
}

/* ---- Tarjetas ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.card {
  background: var(--glb-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(20, 33, 61, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--glb-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

.card__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--glb-royal);
  margin-bottom: 0.25rem;
}

.card__number small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--glb-gray-medium);
}

.card p:last-child {
  margin-bottom: 0;
}

/* ---- Pasos numerados ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--space-md) var(--space-sm) var(--space-sm);
  border-left: 3px solid var(--glb-royal);
  background: var(--glb-gray-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.step__index {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--glb-royal);
  margin-bottom: 0.4rem;
  display: block;
}

/* ---- Estadísticas ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
}

.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.stat__value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--glb-sky);
  margin-bottom: 0.4rem;
}

.stat__label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

.stat__source {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  display: block;
}

.source-note {
  font-size: 0.8rem;
  color: var(--glb-gray-medium);
  margin-top: var(--space-sm);
}

.section--navy .source-note {
  color: rgba(255, 255, 255, 0.55);
}

/* ---- CTA final ---- */
.cta-band {
  background: var(--glb-navy);
  color: var(--glb-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.25), transparent 60%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.cta-band .btn-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

/* ---- Precios ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

.pricing-card {
  background: var(--glb-white);
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.pricing-card--featured {
  border: 2px solid var(--glb-royal);
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--glb-royal);
  color: var(--glb-white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.pricing-card__price {
  margin: var(--space-sm) 0;
}

.pricing-card__price .amount {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  color: var(--glb-navy);
}

.pricing-card__price .label {
  display: block;
  font-size: 0.85rem;
  color: var(--glb-gray-medium);
}

.pricing-card__monthly {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--glb-royal);
  margin-bottom: var(--space-sm);
}

.pricing-card ul {
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.pricing-card li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--glb-ink);
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--glb-royal), var(--glb-sky));
}

.pricing-note {
  background: var(--glb-gray-light);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-top: var(--space-lg);
  text-align: center;
}

/* ---- Incluye / lista con check ---- */
.check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-sm) var(--space-md);
}

.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--glb-white);
  border: 1px solid rgba(20, 33, 61, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
}

.check-list .check-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--glb-royal);
  color: var(--glb-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---- Nosotros: valores ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.value-card {
  text-align: center;
  padding: var(--space-md);
}

.value-card h3 {
  color: var(--glb-navy);
}

/* ---- Perfil del fundador ---- */
.founder {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.founder__portrait {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--glb-navy), var(--glb-royal));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--glb-white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.2rem;
  margin: 0 auto;
}

/* ---- Nota TODO / bloque futuro ---- */
.todo-block {
  border: 2px dashed rgba(20, 33, 61, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  color: var(--glb-gray-medium);
  background: var(--glb-gray-light);
}

/* ---- Formulario de contacto ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-lg);
  align-items: start;
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--glb-navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(20, 33, 61, 0.16);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--glb-ink);
  background: var(--glb-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--glb-royal);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group .error-msg {
  display: none;
  color: #C0392B;
  font-size: 0.82rem;
  margin-top: 0.3rem;
}

.form-group.has-error input,
.form-group.has-error textarea {
  border-color: #C0392B;
}

.form-group.has-error .error-msg {
  display: block;
}

.form-status {
  display: none;
  margin-top: var(--space-sm);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.1);
  color: var(--glb-navy);
  font-size: 0.9rem;
}

.form-status.is-visible {
  display: block;
}

.contact-info-card {
  background: var(--glb-navy);
  color: var(--glb-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.contact-info-card h3 {
  color: var(--glb-white);
}

.contact-info-card .info-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.contact-info-card .info-row strong {
  display: block;
  color: var(--glb-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.coverage-map {
  margin-top: var(--space-md);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.coverage-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
  filter: grayscale(0.2);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--glb-navy);
  color: rgba(255, 255, 255, 0.75);
  padding-top: var(--space-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
}

.footer-brand img {
  height: 38px;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--glb-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-sm);
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--glb-sky);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: var(--space-sm) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Botón flotante de WhatsApp ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  z-index: 200;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ---- Animaciones de scroll ---- */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---- Utilidades ---- */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--space-lg);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--glb-royal);
  color: var(--glb-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 999;
}

.skip-link:focus {
  left: var(--space-sm);
  top: var(--space-sm);
}

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

@media (max-width: 900px) {
  .founder {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 0 30%;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: var(--glb-white);
    padding: var(--space-md);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -8px 0 24px rgba(20, 33, 61, 0.12);
    height: calc(100vh - 68px);
    overflow-y: auto;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav__links {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .main-nav__cta {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-band .btn-group {
    flex-direction: column;
  }

  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
}
