/* ============================================================
   BAMBOO INTERIORISMO INTEGRAL — home.css
   Estilos exclusivos de la homepage (index.html).
   Requiere: base.css, components.css
============================================================ */

/* ── HERO ── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: clip; background: var(--charcoal);
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-texture {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23B8945A' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto;
  padding: 0 4rem; padding-top: 6rem;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.hero-eyebrow { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.hero-eyebrow span {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.2rem,4vw,3.5rem);
  font-weight: 300; line-height: 1.15; color: var(--cream);
  max-width: 700px; margin-bottom: 2rem; letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero-subtitle {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 300;
  letter-spacing: 0.05em; line-height: 1.9; color: var(--stone-light);
  max-width: 480px; margin-bottom: 3rem;
}
.hero-buttons { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 5rem; }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  z-index: 2; pointer-events: none;
}
.scroll-dot {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ── ESENCIA ── */
.esencia { padding: 8rem 0; background: var(--ivory); }
.esencia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.esencia-text p { font-size: 0.85rem; line-height: 2; color: var(--stone); margin-top: 1.5rem; font-weight: 300; }
.esencia-text p + p { margin-top: 1rem; }
.esencia-right { display: flex; flex-direction: column; gap: 0; }
.stat-item {
  display: flex; align-items: center; gap: 2rem;
  padding: 2.5rem 0; border-bottom: 1px solid rgba(184,148,90,0.2);
}
.stat-item:first-child { border-top: 1px solid rgba(184,148,90,0.2); }
.stat-number { font-family: var(--serif); font-size: 3.5rem; font-weight: 300; color: var(--gold); line-height: 1; min-width: 120px; }
.stat-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--charcoal-soft); }
.stat-sub { font-size: 0.75rem; color: var(--stone-light); margin-top: 0.3rem; font-weight: 300; }

/* ── PORTAFOLIO (preview home) ── */
.portafolio { padding: 8rem 0; background: var(--charcoal); }
.portafolio .section-title { color: var(--cream); }
.portafolio .section-eyebrow span { color: var(--gold-light); }
.portafolio .section-eyebrow::before { background: var(--gold-light); }
.portafolio-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; }
.portafolio-link {
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold);
  padding-bottom: 2px; transition: color 0.3s;
}
.portafolio-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 1.5px; }
.proyecto-card { position: relative; overflow: hidden; cursor: pointer; background: var(--charcoal-soft); }
.proyecto-card:first-child { grid-row: span 2; }
.proyecto-img {
  width: 100%; height: 100%; min-height: 280px; object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
  filter: brightness(0.75) sepia(0.15);
}
.proyecto-card:first-child .proyecto-img { min-height: 580px; }
.proyecto-card:hover .proyecto-img { transform: scale(1.06); filter: brightness(0.9) sepia(0.1); }
.proyecto-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,28,26,0.85) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem;
  transition: background 0.4s;
}
.proyecto-tag { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.proyecto-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--cream); line-height: 1.2; }
.proyecto-card:first-child .proyecto-name { font-size: 2rem; }
.img-1 { background: url('../assets/img/1.png') center/cover no-repeat; }
.img-2 { background: url('../assets/img/14.png') center/cover no-repeat; }
.img-3 { background: url('../assets/img/9.png') center/cover no-repeat; }
.img-4 { background: url('../assets/img/5.png') center/cover no-repeat; }
.img-5 { background: url('../assets/img/4.png') center/cover no-repeat; }

/* ── SERVICIOS ── */
.servicios { padding: 8rem 0; background: var(--cream); }
.servicios-header { margin-bottom: 4rem; }
.servicios-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; background: var(--cream); }
.servicio-card {
  background: var(--cream); padding: 3rem 2.5rem;
  transition: background 0.4s; position: relative; overflow: hidden;
  border: 1px solid rgba(184,148,90,0.15);
  margin: -1px 0 0 -1px;
}
.servicio-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 2px; height: 0; background: var(--gold); transition: height 0.4s ease;
}
.servicio-card:hover::before { height: 100%; }
.servicio-card:hover { background: var(--ivory); }
.servicio-icon { width: 32px; height: 32px; margin-bottom: 1.25rem; color: var(--gold); }
.servicio-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--charcoal); margin-bottom: 1rem; line-height: 1.2; }
.servicio-desc { font-size: 0.78rem; line-height: 1.85; color: var(--stone); font-weight: 300; }

/* ── PROCESO ── */
.proceso { padding: 8rem 0; background: var(--ivory); }
.proceso-header { margin-bottom: 5rem; }
.proceso-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; position: relative; }
.proceso-steps::before {
  content: ''; position: absolute; top: 1.5rem; left: 10%; right: 10%;
  height: 1px; background: linear-gradient(to right, transparent, var(--gold-pale), var(--gold-pale), transparent);
}
.paso { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1rem; }
.paso-num {
  width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1rem; font-weight: 400; color: var(--gold);
  background: var(--ivory); position: relative; z-index: 2;
  margin-bottom: 1.75rem; transition: background 0.3s, color 0.3s;
}
.paso:hover .paso-num { background: var(--gold); color: var(--white); }
.paso-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: var(--charcoal); margin-bottom: 0.75rem; line-height: 1.3; }
.paso-desc { font-size: 0.73rem; line-height: 1.8; color: var(--stone); font-weight: 300; }

/* ── TESTIMONIOS ── */
.testimonios { padding: 8rem 0; background: var(--charcoal); overflow: clip; }
.testimonios .section-title { color: var(--cream); }
.testimonios .section-eyebrow span { color: var(--gold-light); }
.testimonios .section-eyebrow::before { background: var(--gold-light); }
.testimonios-header { margin-bottom: 4rem; }
.testimonios-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.testimonio-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(184,148,90,0.15); padding: 2.5rem; }
.testimonio-quote { font-family: var(--serif); font-size: 3rem; color: var(--gold); line-height: 1; margin-bottom: 1rem; opacity: 0.6; }
.testimonio-text { font-family: var(--serif); font-size: 1rem; font-style: italic; line-height: 1.8; color: var(--cream-dark); margin-bottom: 2rem; font-weight: 300; }
.testimonio-author { display: flex; align-items: center; gap: 1rem; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1rem; color: var(--white); font-weight: 500; flex-shrink: 0;
}
.author-name { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); }
.author-title { font-size: 0.7rem; color: var(--stone-light); margin-top: 0.2rem; font-weight: 300; }
.stars { display: flex; gap: 3px; margin-bottom: 1.25rem; }
.star { width: 10px; height: 10px; background: var(--gold); clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }

/* ── CLIENTES ── */
.clientes { padding: 5rem 0; background: var(--cream-dark); overflow: clip; }
.clientes-label { text-align: center; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone-light); margin-bottom: 3rem; }
.logos-track { display: flex; gap: 0; align-items: center; animation: marquee 25s linear infinite; width: max-content; }
.logo-item { display: flex; align-items: center; flex-shrink: 0; margin-right: 5rem; }
.logo-item img { height: 28px; width: auto; display: block; filter: brightness(0) opacity(0.28); transition: filter 0.35s; }
.logo-item:hover img { filter: brightness(0) opacity(0.55); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-33.333%); } }

/* ── RESPONSIVE HOME ── */
@media (max-width: 768px) {
  .hero { align-items: center; justify-content: center; }
  .hero-content { padding: 0 1.5rem; padding-top: 4.5rem; width: 100%; text-align: center; align-items: center; }
  .hero-eyebrow { justify-content: center; }
  .hero h1 { font-size: clamp(2rem,7vw,2.8rem); text-align: center; }
  .hero-subtitle { text-align: center; max-width: 100%; }
  .hero-buttons { flex-direction: column; align-items: center; width: 100%; max-width: 320px; }
  .hero-buttons a { width: 100%; text-align: center; }

  .esencia { padding: 5rem 0; }
  .esencia-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .portafolio { padding: 5rem 0; }
  .portafolio-grid { grid-template-columns: 1fr; gap: 1px; }
  .proyecto-card:first-child { grid-row: span 1; }
  .proyecto-img { min-height: 260px !important; }
  .portafolio-header { flex-direction: column; gap: 1rem; align-items: flex-start; }

  .servicios { padding: 5rem 0; }
  .servicios-grid { grid-template-columns: 1fr; gap: 1px; }
  .servicio-card { padding: 2rem 1.5rem; }

  .proceso { padding: 5rem 0; }
  .proceso-steps { grid-template-columns: 1fr; gap: 0; }
  .proceso-steps::before { display: none; }
  .paso { flex-direction: row; text-align: left; align-items: flex-start; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(184,148,90,0.12); }
  .paso:last-child { border-bottom: none; }
  .paso-num { width: 2.5rem; height: 2.5rem; flex-shrink: 0; margin-bottom: 0; font-size: 0.85rem; }
  .paso-content { flex: 1; }
  .paso-title { font-size: 1rem; margin-bottom: 0.4rem; }

  .testimonios { padding: 5rem 0; }
  .testimonios-grid { grid-template-columns: 1fr; }
}
