/* ======================================
   RESET BÁSICO / VARIABLES / BASE
====================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Colores de marca Pixel a la Medida */
  --color-azul: #2c6efd;       /* Azul Digital */
  --color-coral: #ff7a5c;      /* Coral Suave */
  --color-hueso: #f9fafb;      /* Blanco Hueso */
  --color-grafito: #1a1a1a;    /* Gris Grafito */
  --color-amarillo: #ffc93c;   /* Amarillo Pixel */

  --color-bg: var(--color-hueso);
  --color-text: var(--color-grafito);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.12);

  --max-width: 1120px;

  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease-out;

  --nav-height: 70px;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Contenedor general */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

/* Tipografía general */
h1,
h2,
h3,
h4 {
  color: var(--color-grafito);
  line-height: 1.2;
}

p {
  font-size: 0.95rem;
  color: rgba(26, 26, 26, 0.9);
}

/* Enlaces */
a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
  white-space: nowrap;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-azul), #2150b8);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-azul);
  border-color: rgba(44, 110, 253, 0.3);
}

.btn--ghost:hover {
  background-color: rgba(44, 110, 253, 0.06);
  border-color: var(--color-azul);
}

/* Titulares de sección */
.section-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  font-size: 0.98rem;
  text-align: center;
  color: rgba(26, 26, 26, 0.7);
  max-width: 640px;
  margin: 0.25rem auto 2rem;
}

/* Espaciados entre secciones */
section {
  padding: 3.5rem 0;
}

/* Utilidades para animaciones futuras */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-med), transform var(--transition-med);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
   HEADER / NAVBAR
====================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(249, 250, 251, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 1rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__logo-text {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--color-grafito);
}

/* NAV LIST */

.header__nav {
  display: none; /* mobile: hidden por defecto, se controla por JS */
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__link {
  font-size: 0.9rem;
  color: rgba(26, 26, 26, 0.75);
  position: relative;
  padding-block: 0.25rem;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: linear-gradient(135deg, var(--color-azul), var(--color-coral));
  border-radius: 999px;
  transition: width var(--transition-fast);
}

.nav__link:hover {
  color: var(--color-grafito);
}

.nav__link:hover::after {
  width: 100%;
}

/* CTA HEADER */

.header__cta {
  display: none; /* se muestra en desktop */
}

/* TOGGLE MENÚ MÓVIL */

.header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
}

.header__toggle-line {
  width: 60%;
  height: 2px;
  margin-inline: auto;
  border-radius: 999px;
  background-color: var(--color-grafito);
}

/* ESTADO NAV ABIERTO (para JS: añadir clase .nav-open al header) */
.site-header.nav-open .header__nav {
  position: absolute;
  inset-inline: 0;
  top: var(--nav-height);
  display: block;
  background: rgba(249, 250, 251, 0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.site-header.nav-open .nav__list {
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 1.5rem 1.25rem;
}

/* ======================================
   HERO
====================================== */

.hero {
  padding-top: 3rem;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.hero__content {
  max-width: 620px;
}

.hero__title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero__subtitle {
  font-size: 1rem;
  color: rgba(26, 26, 26, 0.75);
  margin-bottom: 1.2rem;
}

.hero__bullets {
  list-style: none;
  margin-bottom: 1.5rem;
}

.hero__bullets li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.hero__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, var(--color-amarillo), var(--color-azul));
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Visual del hero */

.hero__visual {
  width: 100%;
  max-width: 420px;
}

.hero__image {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
}

/* Placeholder para cuando aún no hay imagen real */
.hero__image-placeholder {
  width: 100%;
  min-height: 260px;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at 10% 20%, rgba(44, 110, 253, 0.08), transparent 55%),
    #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(26, 26, 26, 0.6);
  font-size: 0.9rem;
  padding: 1.5rem;
}

/* ======================================
   BENEFICIOS
====================================== */

.benefits {
  background: linear-gradient(
    145deg,
    rgba(44, 110, 253, 0.03),
    rgba(255, 122, 92, 0.03)
  );
}

.benefits__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.benefit {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-soft);
}

.benefit__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.benefit__text {
  font-size: 0.9rem;
  color: rgba(26, 26, 26, 0.75);
}

/* ======================================
   SERVICIOS
====================================== */

.services__wrapper {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}

.services__block {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.services__subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.services__intro {
  font-size: 0.92rem;
  color: rgba(26, 26, 26, 0.75);
  margin-bottom: 0.85rem;
}

.services__list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.services__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -0.05rem;
  color: var(--color-azul);
}

/* ======================================
   PRICING / PLANES
====================================== */

.pricing {
  background-color: #ffffff;
}

.pricing__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch; /* asegura que todas las tarjetas se estiren igual */
}

.pricing-card {
  background-color: #fefefe;
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%; /* que todas tengan la misma altura dentro del grid */
}

.pricing-card__title {
  font-size: 1.1rem;
  font-weight: 600;
}

.pricing-card__price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-azul);
}

.pricing-card__features {
  font-size: 0.9rem;
  color: rgba(26, 26, 26, 0.8);
}

.pricing-card__features li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}

.pricing-card__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--color-azul), var(--color-coral));
}

/* Botón alineado al fondo de la tarjeta */
.pricing-card .btn {
  margin-top: auto;        /* empuja el botón hacia el borde inferior */
  align-self: flex-start;  /* alineado a la izquierda para mantener estilo */
}

/* Plan destacado */

.pricing-card--featured {
  position: relative;
  border: 1px solid rgba(44, 110, 253, 0.6);
  box-shadow: 0 18px 45px rgba(44, 110, 253, 0.22);
}

.pricing-card__badge {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 0.75rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(44, 110, 253, 0.08);
  color: var(--color-azul);
  font-weight: 500;
}

/* ======================================
   PORTAFOLIO
====================================== */

.portfolio__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.2rem;
}

.portfolio__item {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.portfolio__image {
  width: 100%;
  display: block;
}

.portfolio__placeholder {
  width: 100%;
  padding: 3rem 1rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(44, 110, 253, 0.06),
    rgba(255, 201, 60, 0.09)
  );
  color: rgba(26, 26, 26, 0.7);
  font-size: 0.9rem;
}

.portfolio__caption {
  font-size: 0.85rem;
  padding: 0.75rem 1rem 0.9rem;
  color: rgba(26, 26, 26, 0.85);
}

/* ======================================
   PROCESO
====================================== */

.process__grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
}

.process-step {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem 1.15rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.process-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  background: radial-gradient(circle at 30% 30%, var(--color-amarillo), var(--color-azul));
  color: #ffffff;
}

.process-step__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.process-step__text {
  font-size: 0.9rem;
  color: rgba(26, 26, 26, 0.78);
}

/* ======================================
   TESTIMONIOS
====================================== */

.testimonials {
  background: linear-gradient(
    145deg,
    rgba(44, 110, 253, 0.03),
    rgba(255, 201, 60, 0.04)
  );
}

.testimonials__grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.testimonial {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.testimonial__text {
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.testimonial__author {
  font-size: 0.85rem;
  color: rgba(26, 26, 26, 0.8);
  font-weight: 500;
}

/* ======================================
   FAQ
====================================== */

.faq__list {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.75rem;
}

.faq__item {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.faq__question {
  font-size: 0.95rem;
  font-weight: 500;
  list-style: none;
}

.faq__item[open] {
  box-shadow: var(--shadow-soft);
}

.faq__answer {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: rgba(26, 26, 26, 0.75);
}

/* ======================================
   CTA FINAL
====================================== */

.cta-final {
  background: radial-gradient(
      circle at 0% 0%,
      rgba(44, 110, 253, 0.16),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(255, 201, 60, 0.18),
      transparent 55%
    ),
    var(--color-azul);
  color: #ffffff;
}

.cta-final__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.cta-final__title {
  font-size: 1.5rem;
  font-weight: 600;
}

.cta-final__text {
  font-size: 0.95rem;
  max-width: 520px;
}

/* ======================================
   FOOTER
====================================== */

.site-footer {
  background-color: #0b1020;
  color: rgba(226, 232, 240, 0.9);
  padding-top: 2.5rem;
}

.footer__inner {
  display: grid;
  gap: 1.8rem;
  padding-bottom: 2rem;
}

.footer__logo-text {
  font-weight: 600;
  font-size: 1rem;
}

.footer__tagline {
  font-size: 0.86rem;
  color: rgba(148, 163, 184, 0.9);
  margin-top: 0.2rem;
}

.footer__contact p,
.footer__links p {
  font-size: 0.9rem;
}

.footer__contact a,
.footer__links a {
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.88rem;
}

.footer__links ul {
  margin-top: 0.4rem;
}

.footer__links li {
  margin-bottom: 0.25rem;
}

.footer__bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.footer__bottom-inner {
  padding-block: 0.9rem;
  text-align: center;
}

.footer__bottom-inner p {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.9);
}

/* ======================================
   RESPONSIVE
====================================== */

@media (min-width: 640px) {
  .hero__title {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .benefits__grid,
  .services__wrapper,
  .pricing__grid,
  .portfolio__grid,
  .process__grid,
  .testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .header__cta {
    display: block;
  }

  .header__toggle {
    display: none;
  }

  .header__nav {
    display: block;
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero__content {
    flex: 1.1;
  }

  .hero__visual {
    flex: 0.9;
  }

  .services__wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .portfolio__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: flex-start;
  }

  .cta-final__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 4rem;
  }

  .hero__title {
    font-size: 2.3rem;
  }
}


