:root {
  --primary: #0a0a0a;
  --accent: #1976d2;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #4b4b4b;
  --radius: 10px;
}

/* GLOBAL */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  line-height: 1.7;
  scroll-behavior: smooth;
}
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 1.9rem;
  color: var(--primary);
  margin-bottom: 2rem;
  font-weight: 600;
}
a { text-decoration: none; color: inherit; }

/* NAV */
.top-nav {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eaeaea;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}
.logo {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}
.login-link {
  color: var(--primary);
  font-weight: 600;
  background: #f5f7fb;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid #d0d7e2;
  transition: 0.3s;
}
.login-link:hover {
  background: #e9eef6;
  border-color: #c1c9d6;
}

/* HERO */
.hero {
  background: url('../img/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 10rem 1rem 8rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #f0f0f0;
}
.btn {
  background: var(--accent);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-block;
  transition: 0.3s;
}
.btn:hover {
  background: #125ca0;
}

/* SOBRE CARLOS */
.sobre-carlos {
  background: #fff;
  padding: 6rem 1rem;
  color: var(--text);
}
.sobre-carlos .perfil {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.foto-carlos {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
}
.sobre-carlos .bio {
  max-width: 600px;
  text-align: center;
}
.sobre-carlos h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.sobre-carlos p {
  color: var(--muted);
  line-height: 1.6;
}

/* PROGRAMAS */
.productos {
  background: #fafbfc;
  text-align: center;
  padding: 6rem 1rem;
}
.productos .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid #e5e9f0;
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #c7d6ee;
}
.card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}
.card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
.card.destacado {
  border: 2px solid var(--accent);
}

/* TESTIMONIOS */
.testimonios {
  background: #fff;
  text-align: center;
  padding: 6rem 1rem;
}
.testimonios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}
.testimonio {
  background: #f9fafc;
  border: 1px solid #e5e9f0;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 340px;
}
.testimonio p {
  color: var(--muted);
  font-size: 1rem;
}
.testimonio span {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* CTA */
.cta {
  background: url('../img/cta-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  position: relative;
  padding: 7rem 1rem;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}
.cta .container {
  position: relative;
  z-index: 2;
}

/* FOOTER */
footer {
  background: #f5f7fb;
  color: #555;
  /*text-align: center;*/
  padding: 2rem;
  font-size: 0.9rem;
  border-top: 1px solid #e5e9f0;
}


/* DESKTOP */
@media (min-width: 768px) {
  .hero h1 { font-size: 2.8rem; }
  .productos .grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .testimonios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sobre-carlos .perfil {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }
  .sobre-carlos .bio {
    text-align: left;
  }
  .foto-carlos {
    width: 240px;
    height: 240px;
  }
}

/* Mantiene la alineación centrada con 5 tarjetas */
@media (min-width: 768px) {
  .productos .grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    justify-items: center;
  }
}

/* =======================
   MEJORA VISUAL: HERO + CTA MÁS LIMPIOS
======================= */

/* HERO más claro */
.hero::before {
  background: rgba(0, 0, 0, 0.25); /* menos oscuro */
}
.hero h1, 
.hero p {
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.2); /* mantiene legibilidad sin opacar */
}

/* CTA más luminosa */
.cta {
  background: linear-gradient(135deg, #f5faff 0%, #e9f3ff 100%);
  color: #1a1a1a;
}
.cta::before {
  display: none; /* eliminamos overlay gris */
}
.cta h2 {
  color: #0a0a0a;
}
.cta p {
  color: #333;
}
.cta .btn {
  background: #1976d2;
  color: #fff;
}
.cta .btn:hover {
  background: #125ca0;
}


/* =======================
   HERO RENOVADO: LIMPIO Y ASPIRACIONAL
======================= */

.hero {
  background: linear-gradient(135deg, #f9fbff 0%, #f0f7ff 100%); /* blanco-azulado limpio */
  color: var(--text);
  text-align: center;
  padding: 10rem 1rem 8rem;
  position: relative;
}
.hero::before {
  display: none; /* quitamos overlay oscuro */
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--primary);
}
.hero h1 span {
  color: var(--accent);
}
.hero p {
  font-size: 1.25rem;
  max-width: 640px;
  margin: 1.5rem auto 2rem;
  color: var(--muted);
  line-height: 1.8;
}
.hero .btn {
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem;
  padding: 1rem 2.2rem;
  border-radius: var(--radius);
  transition: 0.3s;
}
.hero .btn:hover {
  background: #125ca0;
}

/* Resultados / autoridad */
.hero-resultados {
  margin-top: 4rem;
}
.hero-resultados h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.hero-resultados p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

/* Tipografía general más grande */
body {
  font-size: 1.05rem;
}
.section-title {
  font-size: 2rem;
}

/* Responsivo */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.2rem;
  }
  .hero p {
    font-size: 1.3rem;
  }
  .hero-resultados h3 {
    font-size: 1.8rem;
  }
}


/* =======================
   ESCALA TIPOGRÁFICA GLOBAL — CLEAN EDITION
======================= */

/* Base */
html {
  font-size: 17px; /* Subimos base para toda la escala */
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem; /* 18-19px aprox */
  line-height: 1.8;
  color: var(--text);
}

/* Secciones */
section {
  padding: 6rem 1rem;
}

/* Títulos principales */
.section-title {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: var(--primary);
  line-height: 1.3;
}

/* Subtítulos y encabezados secundarios */
h2 {
  font-size: 1.9rem;
  line-height: 1.3;
  color: var(--primary);
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

/* Párrafos */
p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.4rem;
  max-width: 680px;
}

/* Botones */
.btn {
  font-size: 1.1rem;
  padding: 1rem 2.4rem;
  border-radius: var(--radius);
  letter-spacing: 0.3px;
}

/* Cartas (Programas) */
.card p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Testimonios */
.testimonio p {
  font-size: 1.05rem;
  line-height: 1.8;
}
.testimonio span {
  font-size: 1rem;
}

/* Sobre Carlos */
.sobre-carlos h2 {
  font-size: 2rem;
}
.sobre-carlos p {
  font-size: 1.1rem;
}

/* CTA */
.cta h2 {
  font-size: 2.2rem;
  line-height: 1.3;
}
.cta p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 1.5rem auto 2rem;
}

/* Resultados en Hero */
.hero-resultados h3 {
  font-size: 1.8rem;
}
.hero-resultados p {
  font-size: 1.15rem;
}

/* Responsivo */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .section-title,
  h2 {
    font-size: 1.8rem;
  }
  p {
    font-size: 1.05rem;
  }
}

/* ===========================
   BRANDING V1 - CÁLLATE Y TOMA MI DINERO
=========================== */

/* HERO */
.hero {
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  padding: 6rem 1rem 4rem;
}
.hero-sub {
  color: #007bff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #111;
}
.hero-content p {
  font-size: 1.1rem;
  color: #444;
  margin-top: 1rem;
}
.btn-hero {
  background: #007bff;
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  display: inline-block;
  transition: 0.3s ease;
}
.btn-hero:hover {
  background: #0056cc;
  transform: translateY(-2px);
}

/* SOBRE CARLOS */
.sobre-carlos {
  background: #fff;
  padding: 4rem 0;
}
.perfil {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.foto-carlos {
  max-width: 220px;
  border-radius: 50%;
  margin-right: 2rem;
}
.bio h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}
.bio p {
  color: #444;
  line-height: 1.6;
}

/* FRANJA AUTORIDAD */
.autoridad {
  background: #f4f9ff;
  text-align: center;
  padding: 1.5rem 0;
  font-weight: 600;
  color: #007bff;
}

/* PROGRAMAS */
.productos {
  padding: 4rem 0;
  background: #fff;
}
.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: #111;
  margin-bottom: 2rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.destacado {
  border-color: #007bff;
}

/* TESTIMONIOS */
.testimonios {
  background: #f9fafc;
  padding: 4rem 0;
  text-align: center;
}
.testimonios .subtitulo {
  color: #666;
  margin-bottom: 2rem;
}
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.testimonio {
  background: #fff;
  border-radius: 8px;
  padding: 1.8rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}
.testimonio img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}


/* CTA FINAL */
.cta-final {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
}
.cta-final h2 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.cta-final p {
  color: #555;
  margin-bottom: 1.5rem;
}
.btn-cta {
  background: #007bff;
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}
.btn-cta:hover {
  background: #0056cc;
  transform: translateY(-2px);
}

/* ===========================
   BRANDING v2 - CÁLLATE Y TOMA MI DINERO
=========================== */

.hero, .autoridad , .testimonios, .cta-final, footer {
  text-align: center;
}

/* Animaciones fallback */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* FRANJA AUTORIDAD */
.autoridad {
  background: #f4f9ff;
  padding: 1.5rem 0;
  color: #007bff;
  font-weight: 600;
}

/* TESTIMONIOS */
.testimonios .subtitulo {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

/* CTA FINAL */
.cta-final {
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  padding: 4rem 1rem;
}
.cta-final p {
  color: #555;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* FOOTER */
footer p {
  text-align: center;
  color: #777;
  padding: 1rem 0;
}

/* REDES SOCIALES */
.redes-sociales {
  text-align: center;
  padding: 2.5rem 0;
  background: #fff;
}
.redes-sociales h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #222;
}
.social-links a {
  margin: 0 10px;
  font-size: 1.6rem;
  color: #555;
  transition: all 0.3s ease;
}
.social-links a:hover {
  color: #007bff;
  transform: translateY(-3px);
}


/* ===== CENTRADO SEGURO PARA FRANJAS ===== */
.autoridad .container, footer {
  display: flex;
  justify-content: center;
  align-items: center;
}

.autoridad .container p {
  text-align: center;
  width: 100%;
}

/* === Centrado del texto en la sección CTA FINAL === */
.cta-final .container p, .testimonios .container p {
  text-align: center;
  margin: 1.5em auto;
  display: block;
  width: 100%;
}


/* Íconos SVG de redes */
.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.social-links svg {
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.social-links a:hover svg {
  transform: translateY(-3px);
  opacity: 1;
}
