/* ============================================================
   BAMBOO INTERIORISMO INTEGRAL — servicios.css
   Estilos exclusivos de la página de servicios.
   Requiere: base.css, components.css
============================================================ */

/* ── PAGE HEADER ── */
.page-header {
  background: linear-gradient(rgba(28,28,26,0.72), rgba(28,28,26,0.72)),
    url('../assets/img/servicios-hero-2.jpeg') center/cover no-repeat;
  padding: 11rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,148,90,0.3), transparent);
}
.page-header-texture {
  position: absolute; inset: 0; pointer-events: none;
  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");
}
.page-header-content { position: relative; z-index: 2; text-align: center; }

.page-eyebrow { justify-content: center; }
.page-eyebrow::before { display: none; }
.page-eyebrow span { color: var(--gold-light); letter-spacing: 0.4em; }

.page-header .section-title { color: var(--cream); margin-bottom: 1.5rem; }
.page-header .section-title em { color: var(--gold-light); }
.page-header-sub {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 300;
  color: var(--stone-light); letter-spacing: 0.04em; line-height: 1.9;
  max-width: 480px; margin: 0 auto;
}

/* ── SERVICIOS: LAYOUT ALTERNADO ── */
.servicios-features { background: var(--ivory); }

.sf-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  border-bottom: 1px solid rgba(184,148,90,0.12);
}
.sf-item:last-child { border-bottom: none; }

/* Contenido */
.sf-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 4.5rem; background: var(--ivory);
  position: relative; overflow: hidden;
}
.sf-item:nth-child(even) .sf-content { background: var(--cream); }

/* Visual */
.sf-visual {
  position: relative; overflow: hidden; min-height: 400px;
}
/* Filas pares: visual a la izquierda */
.sf-item:nth-child(even) .sf-content { order: 2; }
.sf-item:nth-child(even) .sf-visual  { order: 1; }

/* Gradiente de fondo por servicio */
.sf-bg {
  position: absolute; inset: 0;
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.sf-item:hover .sf-bg { transform: scale(1.04); }

.sf-bg.s-cocina  { background: url('../assets/img/cocina-ia.png')              center/cover no-repeat; }
.sf-bg.s-closet  { background: url('../assets/img/closet-ia.png')              center/cover no-repeat; }
.sf-bg.s-muestra { background: url('../assets/img/sala-ia.png')              center/cover no-repeat; }
.sf-bg.s-cancel  { background: url('../assets/img/cancel-ia.png') center/cover no-repeat; }

/* Textura sobre el gradiente */
.sf-texture {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  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.05'%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");
}

/* Número decorativo grande en el visual */
.sf-num-dec {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16rem; font-weight: 300; line-height: 1;
  color: rgba(184,148,90,0.07); pointer-events: none; user-select: none;
  letter-spacing: -0.05em;
}

/* Línea dorada izquierda que aparece al hover */
.sf-visual::after {
  content: ''; position: absolute;
  top: 2rem; bottom: 2rem; left: 0; width: 2px;
  background: var(--gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  z-index: 3;
}
.sf-item:nth-child(even) .sf-visual::after {
  left: auto; right: 0;
}
.sf-item:hover .sf-visual::after { transform: scaleY(1); }

/* Contenido del texto */
.sf-eyebrow {
  font-family: var(--sans); font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.sf-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--gold); }

.sf-title {
  font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.6rem);
  font-weight: 300; line-height: 1.15; color: var(--charcoal);
  margin-bottom: 1.25rem; letter-spacing: -0.01em;
}
.sf-title em { font-style: italic; }

.sf-desc {
  font-size: 0.82rem; line-height: 2; color: var(--stone);
  font-weight: 300; margin-bottom: 2rem; max-width: 440px;
}

.sf-list { list-style: none; margin-bottom: 2.5rem; }
.sf-list li {
  font-size: 0.75rem; line-height: 1; color: var(--charcoal-soft); font-weight: 400;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(184,148,90,0.12);
  display: flex; align-items: center; gap: 0.75rem;
}
.sf-list li:first-child { border-top: 1px solid rgba(184,148,90,0.12); }
.sf-list li::before {
  content: ''; width: 16px; height: 1px; background: var(--gold);
  flex-shrink: 0;
}

.sf-link {
  font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--charcoal);
  text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid var(--charcoal); padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.sf-link svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; transition: transform 0.25s; }
.sf-link:hover { color: var(--gold); border-color: var(--gold); }
.sf-link:hover svg { transform: translateX(3px); }

/* ── CLIENTES BANNER ── */
.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 20s 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%); } }

/* ── FAQ ACORDEÓN ── */
.faq-section { padding: 8rem 0; background: var(--ivory); }
.faq-header { margin-bottom: 4rem; }
.faq-list { width: 100%; }

.faq-item {
  border-bottom: 1px solid rgba(184,148,90,0.18);
}
.faq-item:first-child { border-top: 1px solid rgba(184,148,90,0.18); }

.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.75rem 0; text-align: left;
  transition: color 0.25s;
}
.faq-question:hover .faq-q-text { color: var(--charcoal); }

.faq-q-text {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400;
  color: var(--charcoal-soft); line-height: 1.3;
  transition: color 0.25s;
}
.faq-item.open .faq-q-text { color: var(--charcoal); }

.faq-icon {
  width: 32px; height: 32px; border: 1px solid rgba(184,148,90,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.3s, border-color 0.3s, transform 0.4s;
}
.faq-item.open .faq-icon { background: var(--gold); border-color: var(--gold); transform: rotate(45deg); }
.faq-icon svg {
  width: 12px; height: 12px; stroke: var(--gold); fill: none;
  stroke-width: 2; stroke-linecap: round; transition: stroke 0.3s;
}
.faq-item.open .faq-icon svg { stroke: var(--white); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.16,1,0.3,1), padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 3rem 2rem 0;
}
.faq-answer-inner p {
  font-size: 0.82rem; line-height: 2; color: var(--stone); font-weight: 300;
}

/* ── RESPONSIVE SERVICIOS ── */
@media (max-width: 1024px) and (min-width: 769px) {
  .sf-content { padding: 3.5rem 3rem; }
  .sf-num-dec { font-size: 10rem; }
}

@media (max-width: 768px) {
  .page-header { padding: 8rem 0 4rem; }
  .page-header .section-title { font-size: clamp(1.8rem,6vw,2.5rem); }

  .sf-item { grid-template-columns: 1fr; min-height: auto; }
  .sf-item:nth-child(even) .sf-content { order: 1; }
  .sf-item:nth-child(even) .sf-visual  { order: 2; }
  .sf-visual { min-height: 280px; }
  .sf-content { padding: 3rem 1.5rem; }
  .sf-num-dec { font-size: 7rem; }

  .faq-section { padding: 5rem 0; }
  .faq-q-text { font-size: 1.05rem; }
  .faq-answer-inner { padding: 0 0 1.5rem 0; }
}
