@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --purple: #5b2bbf;
  --purple-2: #6e3bd4;
  --ink: #111a32;
  --muted: #6f7480;
  --cream: #f7f3ed;
  --card: #fffdf9;
  --line: rgba(18, 26, 50, .08);
  --shadow: 0 12px 34px rgba(28, 24, 45, .08);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

main {
  width: 100%;
  overflow: hidden;
}

.hero-whatsapp-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* HERO */
.hero {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
  padding: 58px 22px 52px;
  color: #fff;

  background:
    linear-gradient(180deg, rgba(16, 13, 20, .32), rgba(16, 13, 20, .56)),
    url("./assets/hero-morada.jpg") center 52% / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(22, 15, 24, .20), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  text-align: center;
}

/* El logo real va aquí */
.hero-logo {
  display: block;
  width: min(320px, 72vw);
  max-height: 255px;
  object-fit: contain;
  margin: 0 auto 22px;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.18));
}

.hero-copy {
  width: min(500px, 100%);
  margin: 0 auto 28px;
  font-size: clamp(21px, 4.8vw, 28px);
  line-height: 1.28;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0,0,0,.32);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  min-width: 166px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn .brand-icon {
  fill: currentColor;
  stroke: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #5925ba, #7541dc);
  box-shadow: 0 12px 26px rgba(74, 31, 151, .25);
}

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255,255,255,.68);
  background: rgba(37, 29, 34, .24);
  backdrop-filter: blur(9px);
}

/* SERVICIOS */
.services-section {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 58px 20px 30px;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;

  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 7vw, 56px);
  line-height: 1;

  color: var(--ink);

  letter-spacing: -0.025em;
}

.section-line {
  width: 58px;
  height: 3px;

  margin-top: 15px;

  border-radius: 100px;

  background: var(--purple-2);
}


/* =========================
   GRID
========================= */

.services-grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 14px;
}


/* =========================
   TARJETAS
========================= */

.service-card {
  min-height: 180px;

  padding: 22px 14px 20px;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  text-align: center;

  background: #fff;

  border: 1px solid rgba(18, 26, 50, 0.05);

  border-radius: 22px;

  box-shadow:
    0 10px 28px rgba(30, 24, 48, 0.07);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.service-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 16px 35px rgba(30, 24, 48, 0.10);
}


/* =========================
   CÍRCULO DE ÍCONO
========================= */

.icon-wrap {
  width: 72px;
  height: 72px;

  margin-bottom: 16px;

  border-radius: 50%;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #f1eee9;
}


/* =========================
   ÍCONOS SVG
========================= */

.service-icon {
  width: 42px;
  height: 42px;

  display: block;

  object-fit: contain;
}


/* =========================
   TEXTO DE SERVICIOS
========================= */

.service-card h3 {
  margin: 0;

  max-width: 220px;

  font-family:
    "Playfair Display",
    Georgia,
    serif;

  font-size: 19px;

  line-height: 1.15;

  font-weight: 600;

  color: #111a32;
}


/* =========================
   CONTACTO
========================= */

.contact-wrap {
  width: min(980px, 100%);

  margin: 0 auto;

  padding:
    24px
    20px
    36px;
}


.contact-card {
  width: 100%;

  min-height: 104px;

  padding:
    22px
    26px;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border-radius: 26px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #4f20ae 0%,
      #652fc5 55%,
      #7848d8 100%
    );

  box-shadow:
    0 17px 40px rgba(86, 42, 160, 0.18);
}


/* =========================
   NÚMERO
========================= */

.contact-number {
  display: flex;

  align-items: center;

  gap: 14px;

  font-size:
    clamp(
      24px,
      5vw,
      34px
    );

  font-weight: 700;

  white-space: nowrap;
}


/* =========================
   LOGO WHATSAPP
========================= */

.whatsapp-logo {
  width: 38px;
  height: 38px;

  flex:
    0
    0
    38px;

  display: block;

  object-fit: contain;
}


/* =========================
   BOTÓN COTIZACIÓN
========================= */

.quote-btn {
  min-height: 56px;

  padding:
    0
    26px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 14px;

  border-radius: 999px;

  color: var(--purple);

  background: white;

  font-size: 16px;

  font-weight: 700;

  white-space: nowrap;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.quote-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.12);
}


/* =========================
   MÓVIL
========================= */

@media (max-width: 760px) {

  .services-section {
    padding-top: 48px;
  }


  .services-grid {
    gap: 10px;
  }


  .service-card {
    min-height: 158px;

    padding:
      18px
      8px
      16px;

    border-radius: 18px;
  }


  .icon-wrap {
    width: 60px;
    height: 60px;

    margin-bottom: 12px;
  }


  .service-icon {
    width: 34px;
    height: 34px;
  }


  .service-card h3 {
    font-size:
      clamp(
        14px,
        4vw,
        17px
      );
  }


  .contact-card {
    flex-direction: column;

    text-align: center;

    padding:
      24px
      20px;
  }


  .contact-number {
    justify-content: center;
  }


  .quote-btn {
    width: 100%;
  }

}


/* =========================
   CELULARES MUY PEQUEÑOS
========================= */

@media (max-width: 370px) {

  .service-icon {
    width: 32px;
    height: 32px;
  }


  .service-card h3 {
    font-size: 13px;
  }

}

/* =========================
   FOOTER
========================= */

.footer {
  width: 100%;
  padding: 20px 20px 38px;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}


.footer-brand {
  font-size: 15px;
  font-weight: 700;

  letter-spacing: 0.35em;

  color: #111a32;
}


.footer-subtitle {
  margin-top: 5px;

  font-size: 14px;

  color: #6f7480;
}


/* =========================
   BOTÓN INSTALAR APP
========================= */

.install-btn {
  min-height: 54px;

  margin: 24px auto 18px;

  padding: 0 28px;

  border: none;

  border-radius: 999px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  color: white;

  background:
    linear-gradient(
      135deg,
      #5724b8,
      #7441d9
    );

  box-shadow:
    0 12px 28px
    rgba(91, 43, 191, 0.22);

  font-family:
    "DM Sans",
    sans-serif;

  font-size: 16px;

  font-weight: 700;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}


.install-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 16px 32px
    rgba(91, 43, 191, 0.28);
}


/* ÍCONO DE DESCARGA */

.install-btn svg {
  width: 22px;
  height: 22px;

  fill: none;

  stroke: currentColor;

  stroke-width: 1.9;

  stroke-linecap: round;

  stroke-linejoin: round;
}


/* REDPIXEL */

.footer p {
  margin: 0;

  font-size: 13px;

  color: #7a7e89;
}

