/*
Archivo CSS para Agencia de Infoproductos
Define los estilos visuales del sitio web de infoproductos.
*/

:root {
  /* PALETA DE COLORES */
  --bg: #0b0f3c;
  /* Fondo principal - Azul muy oscuro */
  --card: rgb(247, 26, 26);
  /* Fondo de tarjetas - Azul oscuro */
  --txt: #ffffff;
  /* Texto principal - Blanco */
  --muted: #9ba3c7;
  /* Texto secundario - Gris azulado */

  /* COLORES DE ACENTO */
  --acc: hsl(237, 100%, 56%);
  /* Azul brillante principal */
  --acc-soft: #3f4cff;
  /* Azul brillante suave */
  --acc2: #5a3bff;
  /* Púrpura brillante */
  --acc2-soft: #8b7bff;
  /* Púrpura brillante suave */

  /* MEDIDAS Y EFECTOS */
  --radius: 18px;
  /* Radio de bordes redondeados */
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  /* Sombra oscura */
  --shadow2: 0 12px 32px rgba(30, 42, 255, 0.35);
  /* Sombra azul */
  --max: 1120px;
  /* Ancho máximo del contenido */
}

/* =========================
   BASE - Estilos fundamentales
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  background:
    radial-gradient(
      900px 500px at 20% -10%,
      rgba(30, 42, 255, 0.28),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 90% 10%,
      rgba(90, 59, 255, 0.25),
      transparent 60%
    ),
    var(--bg);
  color: var(--txt);
}

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  max-width: var(--max);
  margin: auto;
  padding: 0 18px;
}

.section {
  padding: 64px 0;
}

.section.sm {
  padding: 44px 0;
}

.grid {
  display: grid;
  gap: 14px;
}

/* =========================
   BOTONES
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  border: none;
  box-shadow: var(--shadow2);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--acc-soft), var(--acc2-soft));
  transform: translateY(-1px) scale(1.02);
}

/* =========================
   CARDS
========================= */
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgb(13, 55, 139);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
}

.card .pad {
  padding: 18px;
}

/* =========================
   HEADER
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 60, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(63, 76, 255, 0.35);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 20px;
}

.brand {
  font-size: 24px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  width: 80px;
  height: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.header-logo:hover {
  opacity: 1;
}

nav ul {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

nav > ul > li {
  position: relative;
}

nav a {
  padding: 8px 10px;
  border-radius: 12px;
  font-weight: 700;
  display: block;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 10px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  background: rgba(11, 15, 60, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(63, 76, 255, 0.35);
  border-radius: var(--radius);
  padding: 8px 0;
  min-width: 200px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  padding: 12px 18px;
  border-radius: 0;
  display: block;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(63, 76, 255, 0.2);
  padding-left: 22px;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 64px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.hero-card {
  border-radius: 24px;
}

.hero-inner {
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-text-content {
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 600px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 54px);
  margin: 12px 0;
  line-height: 1.3;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-content: center;
}

.hero .btn {
  min-width: 200px;
  padding: 14px 24px;
  font-size: 15px;
}

/* =========================
   TWO COLUMN LAYOUT
========================= */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}

/* =========================
    FOOTER  
========================= */
/* FOOTER - diseño tipo imagen */
footer.site-footer {
  background: linear-gradient(
    180deg,
    rgba(11, 15, 60, 0.95),
    rgba(8, 10, 40, 0.95)
  );
  color: var(--txt);
  padding: 48px 0 20px;
  border-top: 1px solid rgba(63, 76, 255, 0.04);
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr 280px 220px;
  gap: 28px;
  align-items: start;
}

.site-footer .footer-brand h3,
.site-footer .footer-title {
  color: var(--acc2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 900;
}

.site-footer .footer-about p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin: 0 0 14px 0;
}

.footer-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.footer-icons .icon-square {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(63, 76, 255, 0.06);
  color: var(--txt);
  font-size: 18px;
  margin-right: 12px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-icons a:nth-child(1) {
  border-color: rgba(255, 0, 0, 0.3);
}

.footer-icons a:nth-child(1):hover {
  background: #ff0000;
  border-color: #ff0000;
  transform: translateY(-2px);
}

.footer-icons a:nth-child(2) {
  border-color: rgba(224, 57, 151, 0.3);
}

.footer-icons a:nth-child(2):hover {
  background: #e1306c;
  border-color: #e1306c;
  transform: translateY(-2px);
}

.footer-nav ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a,
.footer-legal a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.footer-legal .footer-title,
.footer-nav .footer-title {
  margin-bottom: 12px;
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(63, 76, 255, 0.03);
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.footer-privacy {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.footer-privacy a {
  color: var(--acc-soft);
  font-weight: 700;
}

.footer-credit small.muted {
  color: rgba(255, 255, 255, 0.56);
}

/* =========================
   OTROS
========================= */
.kicker {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  display: inline-block;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(63, 76, 255, 0.1);
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 24px;
}

h3 {
  margin: 0 0 6px;
}

.ul {
  padding-left: 18px;
  color: var(--muted);
}

.ul li {
  margin: 6px 0;
}

/* =========================
   INFOPRO - Legibilidad específica
========================= */
.page-infopro p {
  color: rgba(255, 255, 255, 0.88);
}

.page-infopro .ul {
  color: rgba(255, 255, 255, 0.82);
}

.page-infopro .kicker {
  color: rgba(255, 255, 255, 0.72);
}

/* =========================
   WHATSAPP
========================= */
.wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.wa:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.logo {
  width: 150px;
  height: auto;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .hero-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 36px 24px;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(28px, 3vw, 42px);
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero .btn {
    width: 100%;
    min-width: auto;
  }

  nav ul {
    display: none;
  }

  .header-right {
    gap: 8px;
  }

  .header-logo {
    width: 60px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  footer aside {
    min-width: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Discount Badge Style */
.discount-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6b4a;
  color: white;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.hero-actions {
  position: relative;
}

/* ==================== ESTADÍSTICAS ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.stat-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid rgba(90, 59, 255, 0.4);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: slideIn 0.8s ease-out;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 100px rgba(30, 42, 255, 0.6);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--acc), var(--acc2));
}

.stat-card:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
  animation-delay: 0.3s;
}

.stat-card:nth-child(3) {
  animation-delay: 0.5s;
}

.stat-number {
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.stat-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.4;
}

.stat-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.9;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ==================== TESTIMONIOS ==================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(90, 59, 255, 0.35);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
  border: 3px solid rgba(90, 59, 255, 0.5);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}


.testimonial-info h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.testimonial-info .role {
  color: var(--acc2);
  font-size: 14px;
  font-weight: 700;
}

.testimonial-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.stars {
  color: #ffd700;
  font-size: 18px;
  margin-bottom: 16px;
}

.quote-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 48px;
  color: rgba(90, 59, 255, 0.2);
  line-height: 1;
}

.result-badge {
  display: inline-block;
  background: linear-gradient(
    135deg,
    rgba(30, 158, 70, 0.2),
    rgba(30, 158, 70, 0.1)
  );
  border: 1px solid rgba(30, 158, 70, 0.4);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #4ade80;
}

.subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 48px;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .stats-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 48px;
  }
}
