@import url('https://api.fontshare.com/v2/css?f[]=satoshi@1,900,700,500,301,701,300,501,401,901,400,2&display=swap');

/* ========================================
   SERVICIOS.CSS — Edición Editorial
   Diseño completamente nuevo: carruseles
   por servicio, expansión on-click,
   animaciones cinematográficas.
   ======================================== */

/* === VARIABLES === */
:root {
  --brand:         #444B20;
  --brand-dark:    #2e3315;
  --brand-2:       #918042;
  --brand-2-light: #c4a95e;
  --white:         #ffffff;
  --off-white:     #f7f6f1;
  --ink:           #1a1a18;
  --ink-mid:       #4a4a42;
  --ink-light:     #8a8a7e;
  --rule:          rgba(68,75,32,.12);
  --rule-dark:     rgba(68,75,32,.22);

  --nav-h: 80px;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === RESET + BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: "Satoshi", system-ui, sans-serif;
  background: var(--off-white);
  color: var(--ink);
  overflow-x: hidden;
}

/* ==========================================
   HERO EDITORIAL — grande, tipográfico
   ========================================== */

.sp-hero {
  padding: calc(var(--nav-h) + 72px) 0 64px;
  background: var(--white);
  border-bottom: 1px solid var(--rule-dark);
  position: relative;
  overflow: hidden;
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 85% 50%, rgba(145,128,66,.07) 0%, transparent 70%);
  pointer-events: none;
}

.sp-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}

.sp-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--brand-2);
}

.sp-hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: .95;
  color: var(--ink);
  letter-spacing: -.03em;
}

.sp-hero-title span {
  color: var(--brand);
  display: block;
}

.sp-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-bottom: 8px;
}

.sp-hero-count {
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
  color: var(--brand);
  opacity: .12;
  letter-spacing: -.04em;
}

.sp-hero-sub {
  font-size: .95rem;
  color: var(--ink-light);
  text-align: right;
  max-width: 260px;
  line-height: 1.6;
}

/* ==========================================
   ÍNDICE LATERAL — navegación de servicios
   ========================================== */

.sp-nav {
  position: sticky;
  top: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--rule-dark);
  z-index: 100;
}

.sp-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 0;
}

.sp-nav-btn {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  padding: 18px 28px;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-light);
  cursor: pointer;
  transition: color .25s, border-color .25s;
  position: relative;
}

.sp-nav-btn:hover {
  color: var(--ink);
}

.sp-nav-btn.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ==========================================
   SERVICIO BLOQUE — layout editorial
   ========================================== */

.sp-service {
  padding: 0;
  border-bottom: 1px solid var(--rule-dark);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-expo), transform .7s var(--ease-expo);
  scroll-margin-top: -350px;
}

.sp-service.visible {
  opacity: 1;
  transform: none;
}

/* Cabecera del servicio */
.sp-service-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 32px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.sp-service-header-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sp-service-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-service-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  flex-shrink: 0;
}

.sp-service-num {
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--brand);
  opacity: .07;
  position: absolute;
  top: -20px;
  left: -8px;
  user-select: none;
  pointer-events: none;
}

.sp-service-title-wrap {
  position: relative;
}

.sp-service-name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--ink);
}

.sp-service-header-right {
  padding-top: 16px;
}

.sp-service-tagline {
  font-size: 1.1rem;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Acordeón de detalles */
.sp-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  appearance: none;
  background: none;
  border: none;
  border-top: 1px solid var(--rule-dark);
  padding: 20px 0;
  font-family: "Satoshi", system-ui, sans-serif;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: color .2s;
  text-align: left;
}

.sp-accordion-trigger:hover { color: var(--brand); }

.sp-accordion-trigger:first-of-type { margin-top: 8px; }

.sp-accordion-icon {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--rule-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, border-color .2s, transform .35s var(--ease-expo);
}

.sp-accordion-icon::before,
.sp-accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .35s var(--ease-expo), opacity .2s;
}

.sp-accordion-icon { position: relative; }

.sp-accordion-icon::before {
  width: 10px; height: 1.5px;
}

.sp-accordion-icon::after {
  width: 1.5px; height: 10px;
}

.sp-accordion-trigger.open .sp-accordion-icon {
  background: var(--brand);
  border-color: var(--brand);
}

.sp-accordion-trigger.open .sp-accordion-icon::before,
.sp-accordion-trigger.open .sp-accordion-icon::after {
  background: var(--white);
}

.sp-accordion-trigger.open .sp-accordion-icon::after {
  transform: scaleY(0);
  opacity: 0;
}

.sp-accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .45s var(--ease-expo);
}

.sp-accordion-panel.open {
  max-height: 600px;
}

.sp-accordion-content {
  padding: 0 0 20px;
  font-size: .95rem;
  color: var(--ink-mid);
  line-height: 1.75;
}

/* ==========================================
   BULLETS — versión limpia y alineada
   ========================================== */

.sp-bullet-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-bullet-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.7;
  color: var(--ink-mid);
}

.sp-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-2);
  opacity: 0.8;
}

/* Título dentro del bullet */
.sp-bullet-list li strong {
  display: inline;
  font-weight: 700;
  color: var(--ink);
  margin-right: 4px;
}

/* ==========================================
   CARRUSEL DE IMÁGENES
   ========================================== */

.sp-carousel-wrap {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  height: 520px;
}

.sp-carousel-track {
  display: flex;
  height: 100%;
  transition: transform .65s var(--ease-expo);
  will-change: transform;
}

.sp-carousel-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.sp-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Sin filtros — calidad máxima */
  transition: transform 8s linear;
}

.sp-carousel-slide.active img {
  transform: scale(1.04);
}

/* Gradiente inferior sutil solo para legibilidad del caption */
.sp-carousel-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.42) 0%, transparent 48%);
  pointer-events: none;
}

.sp-carousel-caption {
  position: absolute;
  bottom: 28px;
  left: 40px;
  right: 140px;
  z-index: 2;
  color: var(--white);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .04em;
  opacity: .85;
}

/* Controles del carrusel */
.sp-carousel-controls {
  position: absolute;
  bottom: 28px;
  right: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s var(--ease-back);
  font-size: 14px;
  line-height: 1;
}

.sp-carousel-btn:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.85);
  transform: scale(1.07);
}

.sp-carousel-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sp-carousel-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .25s, transform .25s var(--ease-back), width .3s var(--ease-expo);
  border: none;
  appearance: none;
}

.sp-carousel-dot.active {
  background: var(--white);
  width: 20px;
  border-radius: 3px;
}

/* Progreso automático */
.sp-carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--brand-2);
  width: 0%;
  z-index: 4;
  transition: width linear;
}

/* ==========================================
   ALTERNANCIA IMAGEN / TEXTO
   ========================================== */

.sp-service:nth-child(odd) .sp-service-header {
  /* label izquierda, texto derecha */
}

.sp-service:nth-child(even) .sp-service-header {
  direction: rtl;
}

.sp-service:nth-child(even) .sp-service-header > * {
  direction: ltr;
}

/* ==========================================
   CTA FINAL — sin botones ruidosos
   ========================================== */

.sp-cta {
  padding: 120px 32px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.sp-cta-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
}

.sp-cta-title em {
  font-style: normal;
  color: var(--brand);
}

.sp-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

/* Un solo CTA elegante — texto + flecha */
.sp-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--brand);
  padding: 16px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: "Satoshi", system-ui, sans-serif;
  transition: background .25s, transform .25s var(--ease-back), box-shadow .25s;
}

.sp-cta-link:hover {
  background: var(--brand-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(68,75,32,.28);
  color: var(--white);
  text-decoration: none;
}

.sp-cta-link svg {
  transition: transform .25s var(--ease-back);
}

.sp-cta-link:hover svg {
  transform: translateX(4px);
}

.sp-cta-hint {
  font-size: .8rem;
  color: var(--ink-light);
}

/* ==========================================
   MODAL DE CONTACTO
   ========================================== */

.cs-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: .18s ease;
  z-index: 1098;
}

.cs-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.98);
  width: fit-content;
  max-width: min(1000px, calc(100vw - 28px));
  min-width: 320px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  opacity: 0;
  visibility: hidden;
  transition: .18s ease;
  z-index: 1099;
  overflow: hidden;
}

.cs-modal.open { opacity: 1; visibility: visible; transform: translate(-50%,-50%) scale(1); }
.cs-mask.open   { opacity: 1; visibility: visible; }

.cs-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  letter-spacing: .2px;
  font-family: "Satoshi", system-ui, sans-serif;
}

.cs-close {
  appearance: none;
  border: none;
  background: transparent;
  color: #fff;
  width: 36px;
  height: 36px;
  font-size: 22px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-close:hover { background: rgba(255,255,255,.12); }

.cs-body { background: #f7f7f7; padding: 16px; }

.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  width: 100%;
}

.cs-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  text-decoration: none;
  color: #222;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}

.cs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0,0,0,.12);
  text-decoration: none;
  color: #222;
}

.cs-card i {
  font-size: 24px;
  min-width: 24px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  line-height: 1;
}

.cs-card .bi {
  font-family: "bootstrap-icons" !important;
  speak: none;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
}

.cs-card .label {
  font-weight: 700;
  font-size: 15px;
  font-family: "Satoshi", system-ui, sans-serif;
  flex: 1;
}

.cs-card.whatsapp { border-color: rgba(37,211,102,.35); }
.cs-card.whatsapp:hover { border-color: rgba(37,211,102,.5); background: rgba(37,211,102,.02); }
.cs-card.whatsapp i { color: #25d366; }
.cs-card:not(.whatsapp) i { color: var(--brand); }
#cs-call { display: none !important; }

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background: var(--white);
  border-top: 1px solid var(--rule-dark);
  padding: 28px 32px;
  text-align: center;
  font-size: .85rem;
  color: var(--ink-light);
}

/* ==========================================
   ICON FIX
   ========================================== */

.bi {
  font-family: "bootstrap-icons" !important;
  font-weight: normal !important;
}

.fa, .fas, .far, .fab,
.fa-solid, .fa-regular, .fa-brands,
[class^="fa-"], [class*=" fa-"] {
  font-family: "Font Awesome 6 Free" !important;
}

.fa-solid, .fas { font-weight: 900 !important; }
.fa-regular, .far { font-weight: 400 !important; }
.fa-brands, .fab { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 992px) {
  .sp-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sp-hero-meta {
    flex-direction: row;
    align-items: center;
  }
  .sp-hero-count { font-size: 48px; }
  .sp-hero-sub { text-align: left; max-width: 100%; }

  .sp-service-header {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 24px 40px;
  }

  .sp-service:nth-child(even) .sp-service-header {
    direction: ltr;
  }

  .sp-carousel-wrap { height: 380px; }

  .sp-cta {
    grid-template-columns: 1fr;
    padding: 80px 24px;
    gap: 32px;
  }
  .sp-cta-actions { align-items: flex-start; }
}

@media (max-width: 640px) {
  .sp-hero { padding: calc(var(--nav-h) + 48px) 0 40px; }
  .sp-hero-inner { padding: 0 20px; }
  .sp-nav-btn { padding: 14px 16px; font-size: .78rem; }

  .sp-service-header { padding: 40px 20px 28px; }
  .sp-carousel-wrap { height: 280px; }
  .sp-carousel-caption { left: 20px; right: 100px; }
  .sp-carousel-controls { right: 16px; bottom: 16px; }

  .sp-cta { padding: 60px 20px; }
  .sp-cta-title { font-size: 2rem; }

  #cs-call { display: flex !important; }
  .cs-grid { grid-template-columns: 1fr; }
}

/* Bullet list dentro de acordeones */
.sp-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sp-bullet-list li {
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.sp-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.5;
}

.sp-bullet-list li strong {
  display: inline;
  font-weight: 600;
  margin-right: 0.3em;
}