/* ═══════════════════════════════════════════════════════
   pages/home.css — Estilos específicos de index.html
   ═══════════════════════════════════════════════════════ */

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  /*height: 80svh;*/
  min-height: 560px;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 90% at 50% 50%, #ffffffcf 30%, transparent 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-top: clamp(5vh, 10vh, 36vh);
  padding-bottom: clamp(80px, 12vw, 140px);
  min-height: 75vh;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-ml);
  max-width: 920px;
  margin: 0 auto;
  align-items: center;
}

.hero-content h1 {
  font-family: var(--fp);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 64px);
  line-height: 1.2;
  color: var(--cafe);
  text-align: center;
  letter-spacing: -4%;
}

/* Parallax discreto del texto del hero, sin JavaScript adicional.
   Se aplica solo en navegadores que admiten animaciones ligadas al scroll. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-content {
      animation: hero-text-parallax linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 600px;
    }

    @keyframes hero-text-parallax {
      from {
        transform: translate3d(0, 0, 0);
      }

      to {
        transform: translate3d(0, -5rem, 0);
      }
    }
  }
}

/* ── SERVICIOS ───────────────────────────────────────── */
.home-servicios-section {
  background: linear-gradient(180deg, #fff 0%, var(--caramelo-100) 100%);
  padding: var(--section-pad) 0;
}

.home-servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-ml);
  margin-top: var(--sp-xxl);
}

/* ── RESPONSIVE ──────────────────── */

@media (max-width: 1024px) {
  .home-servicios-grid {
    grid-template-columns: 1fr;
  }

  .home-servicios-grid irene-servicio-card:nth-child(2) {
    order: -1;
  }
}


/* ── GALERÍA PORTFOLIO ───────────────────────────────── */
.gallery-outer {
  overflow: hidden;
  padding: 0 clamp(20px, 4vw, 16px) 2rem;
  max-width: var(--container);
  margin: 0 auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-ml);
  align-items: start;
}

/* ── GALERÍA PORTFOLIO — RESPONSIVE ──────────────────── */
@media (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-col:nth-child(2) {
    margin-top: 0;
  }

  .gallery-col:nth-child(3) {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.gallery-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-ml);
}

.gallery-col:nth-child(2) {
  margin-top: var(--sp-xxl);
}

.gallery-col:nth-child(3) {
  margin-top: calc(var(--sp-xxl) / 2);
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
  background: var(--coconut);
  border-radius: var(--r-s);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .1);
  transition: transform .3s ease, box-shadow .3s ease;

}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .1);
}

.project-photo {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--almendra-300);
}

.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.project-card:hover .project-photo img {
  transform: scale(1.04);
}

.project-meta {
  padding: var(--sp-m) var(--sp-m) var(--sp-ml);
  display: flex;
  flex-direction: column;
  gap: var(--sp-s);
}

/* ── CONTACTO ────────────────────────────────────────── */
/* Formulario */




/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {}

@media (max-width: 640px) {
  .home-servicios-grid {
    grid-template-columns: 1fr;
  }
}

/* ── PORTFOLIO HEADER ────────────────────────────────── */
.portfolio-header-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-m);
  margin-bottom: var(--sp-ml);
}


/* ── PORTFOLIO LEADS ─────────────────────────────────── */
.portfolio-lead {
  text-align: center;
  max-width: 765px;
}

.portfolio-cta-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-xl);
}