/* ============================================================
   SIGNARE · HOME / INDEX
   Estilos exclusivos para index.php
   El hero principal usa Flexbox. Las páginas internas conservan
   sus layouts y estilos propios.
============================================================ */

/* ---------- Hero principal ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100svh;
  padding: 132px clamp(28px, 6vw, 96px) 72px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(44px, 6vw, 92px);
  overflow: hidden;
  background: linear-gradient(120deg, #edf0f1 0%, #d9dcde 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(rgba(38, 42, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38, 42, 45, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.78) 58%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.78) 58%, transparent 100%);
  pointer-events: none;
}

.home-hero .hero-nodes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: .42;
  pointer-events: none;
}

.home-hero .hero-logo-bg {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(560px, 38vw);
  transform: translateY(-50%);
  opacity: .025;
  z-index: 1;
  pointer-events: none;
}

.home-hero .hero-logo-bg img {
  width: 100%;
  height: auto;
}

/* TEXTO: siempre a la izquierda en escritorio */
.home-hero .hero-copy {
  position: relative;
  z-index: 3;
  order: 1;
  flex: 1 1 58%;
  min-width: 0;
  max-width: 790px;
  margin: 0;
}

.home-hero .hero-location {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  padding: 8px 12px;
  border: 1px solid rgba(38,42,45,.12);
  border-radius: 999px;
  background: rgba(247,247,245,.62);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  font: 500 10px var(--title);
  letter-spacing: .12em;
  color: #596167;
}

.home-hero .hero-location::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(233,80,48,.10);
}

.home-hero .eyebrow {
  display: block;
  width: fit-content;
  margin: 0 0 20px;
  font-size: 10px;
  letter-spacing: .16em;
}

.home-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(44px, 5vw, 78px);
  line-height: 1.03;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.home-hero h1 em {
  color: var(--orange);
  font-style: normal;
  position: relative;
}

.home-hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 54%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: .8;
}

.home-hero p {
  max-width: 650px;
  margin: 30px 0 32px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.75;
}

.home-hero .hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.home-hero .hero-actions .btn {
  min-height: 48px;
}

/* ARTE: siempre a la derecha en escritorio */
.home-hero .hero-art {
  position: relative;
  z-index: 3;
  order: 2;
  flex: 1 1 42%;
  min-width: 0;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.home-hero .hero-art .tech-grid {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(610px, 100%);
  height: 72%;
  transform: translate(-50%, -50%) perspective(900px) rotateY(-5deg);
  border: 1px solid rgba(38,42,45,.10);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(38,42,45,.10) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(38,42,45,.10) 50%, transparent 50.2%);
  pointer-events: none;
}

.home-hero .hero-art > img {
  position: relative;
  z-index: 2;
  width: clamp(310px, 33vw, 520px);
  max-width: 90%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(38,42,45,.13));
}

/* ---------- Inicio: servicios ---------- */
.home-page #servicios .section-head {
  max-width: 940px;
}

.home-page #servicios .section-head h2 {
  max-width: 15ch;
}

.home-intro-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.home-intro-list li {
  padding: 9px 13px;
  border: 1px solid rgba(38,42,45,.11);
  border-radius: 999px;
  background: rgba(255,255,255,.44);
  color: #596167;
  font-size: 12px;
}

/* Cuatro servicios: 2 x 2 en escritorio para que no quede una tarjeta huérfana. */
.home-page .home-service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.home-page .home-service-card:last-child {
  grid-column: auto;
  max-width: none;
  width: auto;
  justify-self: stretch;
}

.home-page .service-privacy {
  --card-accent: #7058c9;
  --card-rgb: 112,88,201;
}

/* ---------- Banda / proyectos / proceso / contacto ---------- */
.home-page .brand-band {
  width: min(calc(100% - 44px), var(--max));
}

.home-page .process-grid {
  align-items: stretch;
}

.home-page .process {
  min-width: 0;
}

.home-page .contact-section {
  min-width: 0;
}

.home-page .contact-copy,
.home-page .contact-form {
  min-width: 0;
}

/* ---------- Laptop / tablet horizontal ---------- */
@media (max-width: 1120px) {
  .home-hero {
    min-height: 760px;
    padding: 122px 44px 64px;
    gap: 34px;
  }

  .home-hero .hero-copy {
    flex-basis: 56%;
  }

  .home-hero .hero-art {
    flex-basis: 44%;
    min-height: 430px;
  }

  .home-hero h1 {
    font-size: clamp(40px, 5vw, 62px);
  }

  .home-hero .hero-art > img {
    width: clamp(280px, 35vw, 420px);
  }
}

/* ---------- Tablet / móvil: una sola columna ---------- */
@media (max-width: 820px) {
  .home-hero {
    min-height: auto;
    padding: 116px 24px 54px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
  }

  .home-hero .hero-copy {
    order: 1;
    flex: none;
    width: 100%;
    max-width: 720px;
  }

  .home-hero .hero-art {
    order: 2;
    flex: none;
    width: 100%;
    min-height: 330px;
  }

  .home-hero h1 {
    max-width: 650px;
    font-size: clamp(38px, 8vw, 58px);
  }

  .home-hero p {
    max-width: 620px;
  }

  .home-hero .hero-art .tech-grid {
    width: min(520px, 90%);
    height: 80%;
  }

  .home-hero .hero-art > img {
    width: min(380px, 76vw);
  }

  .home-hero .hero-logo-bg {
    right: -20%;
    width: 68%;
  }

  .home-page .home-service-grid,
  .home-page .home-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .home-project-card:nth-child(1),
  .home-page .home-project-card:nth-child(6) {
    grid-column: span 1;
  }

  .home-page .brand-band {
    grid-template-columns: 170px 1fr;
    gap: 34px;
  }

  .home-page .brand-band img {
    width: 160px;
  }

  .home-page .contact-section {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 76px 32px;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding: 106px 20px 42px;
    gap: 12px;
  }

  .home-hero .hero-location {
    margin-bottom: 12px;
  }

  .home-hero .eyebrow {
    margin-bottom: 16px;
  }

  .home-hero h1 {
    font-size: clamp(34px, 10.5vw, 49px);
    line-height: 1.04;
  }

  .home-hero p {
    margin: 23px 0 26px;
    font-size: 15px;
    line-height: 1.7;
  }

  .home-hero .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero .hero-actions .btn {
    width: 100%;
  }

  .home-hero .hero-art {
    min-height: 270px;
  }

  .home-hero .hero-art > img {
    width: min(290px, 76vw);
  }

  .home-page .home-service-grid,
  .home-page .home-projects-grid {
    grid-template-columns: 1fr;
  }

  .home-page .home-service-card:last-child {
    grid-column: auto;
  }

  .home-page .brand-band {
    width: min(calc(100% - 32px), var(--max));
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 44px 26px;
  }

  .home-page .brand-band img {
    width: 150px;
  }

  .home-page .process-grid {
    grid-template-columns: 1fr;
  }

  .home-page .process {
    border-right: 0;
  }

  .home-page .contact-section {
    padding: 64px 20px;
  }
}
