/* ===== Variables (paleta CMYK Artimpres) ===== */
:root {
  --magenta: #EC008C;
  --magenta-dark: #C20074;
  --cyan: #00AEEF;
  --yellow: #FFED00;
  --ink: #1A1A1A;
  --gray: #6b6b72;
  --light: #f6f7f9;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --container: 1140px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: 90%; max-width: var(--container); margin: 0 auto; }

/* color helpers */
.c-magenta { color: var(--magenta); }
.c-cyan { color: var(--cyan); }

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--magenta);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(236, 0, 140, .3);
}
.btn--primary:hover { background: var(--magenta-dark); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
  z-index: 1000;
  transition: padding .3s ease;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.header__logo { height: 52px; width: auto; }
.nav { display: flex; gap: 32px; }
.nav__link {
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color .2s;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--magenta);
  transition: width .25s ease;
}
.nav__link:hover { color: var(--magenta); }
.nav__link:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 26px; height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: .3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 0 60px;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(0, 174, 239, .14), transparent 42%),
    radial-gradient(circle at 82% 25%, rgba(255, 237, 0, .18), transparent 42%),
    radial-gradient(circle at 70% 80%, rgba(236, 0, 140, .12), transparent 45%);
  z-index: -1;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__logo {
  width: 180px;
  margin-bottom: 18px;
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero__title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--gray);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ===== Secciones genéricas ===== */
section { padding: 90px 0; }
.section__tag {
  display: inline-block;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: 10px;
}
.section__tag--light { color: var(--yellow); }
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.section__title--light { color: var(--white); }
.section__lead { color: var(--gray); font-size: 1.1rem; margin-bottom: 50px; max-width: 600px; }
.section__lead--light { color: rgba(255, 255, 255, .8); }

/* ===== Servicios ===== */
.services { background: var(--light); text-align: center; }
.services .section__lead { margin-left: auto; margin-right: auto; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 26px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 38px 26px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: center;
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 0, 0, .12); }
.card__icon {
  width: 70px; height: 70px;
  margin: 0 auto 20px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.card__icon--magenta { background: rgba(236, 0, 140, .12); }
.card__icon--cyan { background: rgba(0, 174, 239, .12); }
.card__icon--yellow { background: rgba(255, 237, 0, .22); }
.card__icon--dark { background: rgba(26, 26, 26, .08); }
.card__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.card__text { color: var(--gray); font-size: .97rem; }

/* ===== Nosotros ===== */
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about__text p { color: var(--gray); margin-bottom: 18px; }
.about__text .btn { margin-top: 10px; }
.about__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ===== Contacto ===== */
.contact {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a0a1f 100%);
  text-align: center;
  position: relative;
}
.contact .section__lead { margin-left: auto; margin-right: auto; }
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 10px;
}
.contact__item {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--white);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.contact__item:not(.contact__item--static):hover {
  transform: translateY(-5px);
  background: rgba(236, 0, 140, .15);
  border-color: var(--magenta);
}
.contact__icon { font-size: 2rem; }
.contact__label { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--yellow); }
.contact__value { font-weight: 600; word-break: break-word; }

/* ===== Footer ===== */
.footer { background: var(--ink); padding: 40px 0; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer__logo { height: 56px; background: var(--white); padding: 8px 14px; border-radius: 12px; }
.footer__text { color: rgba(255, 255, 255, .6); font-size: .9rem; }

/* ===== Botón flotante WhatsApp ===== */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  z-index: 1100;
  transition: transform .2s ease;
  animation: pulse 2.5s infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .5); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Animación de aparición ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nav {
    position: fixed;
    top: 72px; right: -100%;
    flex-direction: column;
    background: var(--white);
    width: 70%; max-width: 300px;
    height: calc(100vh - 72px);
    padding: 40px 30px;
    gap: 26px;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .1);
    transition: right .3s ease;
  }
  .nav.open { right: 0; }
  .nav__toggle { display: flex; }
  .nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav__toggle.open span:nth-child(2) { opacity: 0; }
  .nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__media { order: -1; }
  section { padding: 64px 0; }
}
