/* ==========================================================================
   VDN Brands — pages/servicios.css
   Estilos exclusivos de servicios.html.
   ========================================================================== */

/* ---------- Encabezado de la página ---------- */
.serv-hero__title {
  font-size: clamp(44px, 6.4vw, 108px);
}

.serv-hero__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 32px;
  align-items: end;
}

.serv-hero__row .lead {
  max-width: 560px;
}

.anchor-list {
  justify-content: flex-end;
  gap: 10px;
}

/* ---------- Pilares: Diseño, Desarrollo, Marketing ---------- */
.pillar {
  --split-min: 420px;
  padding-block: clamp(64px, 7vw, 110px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.pillar__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.pillar__num {
  font-size: clamp(96px, 12vw, 190px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.pillar__text {
  max-width: 440px;
}

.pillar__list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.pillar-item {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

/* Fondo que aparece al pasar el mouse (sin mover el diseño) */
.pillar-item::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  z-index: -1;
  border-radius: var(--radius-sm);
  background: var(--ink-2);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pillar-item:hover::before {
  opacity: 1;
}

.pillar-item__title {
  transition: transform 0.45s var(--ease-out);
}

.pillar-item:hover .pillar-item__title {
  transform: translateX(12px);
}

.pillar-item__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.pillar-item__title {
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pillar-item__code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.pillar-item__text {
  max-width: 580px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- ¿Por qué un solo equipo? ---------- */
.why__text {
  max-width: 420px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted-on-light);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  list-style: none;
}

.why-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 300px;
  padding: 36px 32px;
  border: 1px solid var(--line-on-light);
  border-radius: 28px;
  background: var(--white);
}

.why-card.lift:hover {
  border-color: var(--ink);
}

.why-card__num {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
}

.why-card__title {
  margin-top: auto;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.why-card__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-on-light);
}

/* ---------- Preguntas frecuentes ---------- */
.faq {
  --split-min: 420px;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-item__q::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 243, 238, 0.25);
  border-radius: 50%;
  transition: transform 0.35s var(--ease-snap), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.faq-item__q:hover .faq-item__icon {
  border-color: var(--paper);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.faq-item__a {
  padding: 0 64px 28px 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  animation: fade-up 0.5s var(--ease-out) both;
}
