/* ============================================================
   VARIABLES DE MARCA — EDITAR AQUÍ PARA CAMBIAR COLORES/TIPOGRAFÍA
   Cambiar solo los valores, no los nombres de las variables.
   ============================================================ */
:root {
  /* Paleta principal (azul profesional + acento verde digital) */
  --color-primary: #1e3a5f;
  --color-primary-dark: #12253c;
  --color-primary-light: #e8eef5;
  --color-accent: #14b8a6;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1da851;

  /* Texto y fondos */
  --color-text: #1a2230;
  --color-text-light: #5c6b7a;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fa;
  --color-border: #e4e9ee;
  --color-white: #ffffff;

  /* Tipografía */
  --font-heading: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(15, 25, 40, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 25, 40, 0.1);
  --header-height: 72px;
  --max-width: 1180px;
}

/* ============================================================
   BASE
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

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

.section {
  padding: 72px 0;
}

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

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-light);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-lg {
  padding: 17px 34px;
  font-size: 1.05rem;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary-light);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-primary-dark);
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  gap: 32px;
}

.nav-desktop a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  transition: color 0.15s ease;
}

.nav-desktop a:hover {
  color: var(--color-primary);
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle svg {
  width: 26px;
  height: 26px;
}

.nav-mobile {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 20px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 999;
}

.nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.nav-mobile a {
  display: block;
  padding: 12px 8px;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.nav-mobile a:hover {
  background: var(--color-bg-alt);
}

.nav-mobile .btn-whatsapp {
  width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: calc(var(--header-height) + 48px) 0 56px;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

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

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  margin: 10px 0 16px;
}

.hero-content p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

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

/* Visual del hero: bloques de color + iconos, sin fotos de stock */
.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  padding: 1px;
}

.hero-visual-tile {
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-white);
  text-align: center;
  padding: 12px;
}

.hero-visual-tile svg {
  width: 30px;
  height: 30px;
  color: var(--color-accent);
}

.hero-visual-tile span {
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0.9;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.92rem;
}

/* ============================================================
   PLANES / PRECIOS
   ============================================================ */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-card.is-recommended {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.15;
}

.plan-price small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.plan-price-extra {
  font-size: 0.88rem;
  color: var(--color-text-light);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text);
}

.plan-features svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   POR QUÉ PUNTODIGITAL
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.why-item {
  text-align: center;
  padding: 28px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.why-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

.why-item h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-box {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 28px;
  text-align: center;
  color: var(--color-white);
}

.contact-box .eyebrow {
  color: var(--color-accent);
}

.contact-box h2 {
  color: var(--color-white);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 10px;
}

.contact-box p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin: 0 auto 28px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 2px;
}

.contact-email svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 24px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-white);
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 6px;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.footer-socials a:hover {
  background: var(--color-accent);
}

.footer-socials svg {
  width: 18px;
  height: 18px;
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   RESPONSIVE — tablet / desktop
   ============================================================ */
@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 860px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .nav-desktop {
    display: block;
  }

  .header-cta {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero .container {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .hero-content {
    flex: 1;
    text-align: left;
  }

  .hero-content p {
    margin-left: 0;
  }

  .hero-actions {
    align-items: flex-start;
  }

  .hero-visual {
    flex: 1;
  }

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