/* ============================================================
   CompendioLab · Landing Servicios
   Tipografía + paleta del sitio: Silkamono, #2c2b2b, blanco.
   ============================================================ */

/* -----------------------------------------------------------
   Marquees animados continuos (full width, aparición inmediata)
   ----------------------------------------------------------- */
.section-marquee.cm-marquee,
.cm-marquee {
  overflow: hidden !important;
  position: relative;
  padding: 0 !important;
  display: block !important;
  min-height: 0 !important;
  height: auto !important;
}
.cm-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  padding: 2em 0;
  animation: cmScroll 38s linear infinite;
  will-change: transform;
}
.cm-marquee-track.cm-marquee-reverse {
  animation-direction: reverse;
  animation-duration: 42s;
}
.cm-marquee-track .super-text.one {
  display: inline-block;
  white-space: nowrap;
  padding-right: 0.6em;
  flex: 0 0 auto;
}
@keyframes cmScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .cm-marquee-track { animation: none; }
}

/* Marquees chicos inline (footer, etc.) */
.cm-inline-marquee {
  overflow: hidden;
  width: 100%;
}
.cm-inline-track {
  display: flex;
  width: max-content;
  animation: cmScroll 28s linear infinite;
  will-change: transform;
}
.cm-inline-track.cm-inline-reverse {
  animation-direction: reverse;
  animation-duration: 32s;
}
.cm-inline-track > span {
  display: inline-block;
  padding-right: 0.4em;
  flex: 0 0 auto;
  white-space: nowrap;
}

/* -----------------------------------------------------------
   Intro: eliminar espacio vacío de columnas absolutas
   ----------------------------------------------------------- */
.servicios-intro { margin-top: 0 !important; }
.servicios-intro .w-row { margin-top: 0 !important; }
.servicios-intro .columns-2 .column.exception,
.servicios-intro .columns-2 .column-2 {
  height: auto !important;
  min-height: 0 !important;
  padding: 36px 40px !important;
  margin-top: 0 !important;
  border-top: 0 !important;
}
.servicios-intro .columns-2 .column.exception {
  border-bottom: 1px solid #fff !important;
  border-left: 1px solid #fff !important;
}
.servicios-intro .columns-2 .column-2 {
  border-bottom: 1px solid #fff !important;
  border-right: 1px solid #fff !important;
}
.servicios-intro .columns-2 .column.exception .main-hero_heading {
  position: static !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
  font-size: 3.2em !important;
}
.servicios-intro .columns-2 .column-2 .grid-text-description {
  position: static !important;
  padding: 0 !important;
}
@media screen and (max-width: 767px) {
  .servicios-intro .columns-2 .column.exception,
  .servicios-intro .columns-2 .column-2 {
    padding: 28px 24px !important;
  }
  .servicios-intro .columns-2 .column.exception .main-hero_heading {
    font-size: 2.4em !important;
  }
}

/* Etiqueta "(opcional)" para campos del formulario */
.form-optional {
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255,255,255,0.45);
  margin-left: 6px;
  font-size: 11px;
}


.hero-servicios {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b1b1b;
  position: relative;
  border-bottom: 1px solid #fff;
}

.hero-servicios .content-servicios {
  width: 100%;
  padding: 120px 40px 80px;
  text-align: center;
}

.hero-heading-center {
  position: static !important;
  padding-left: 0 !important;
  margin-bottom: 24px !important;
  text-align: center;
  font-size: 7em;
  line-height: 0.95;
}

.hero-sub {
  color: #fff;
  font-family: "Silkamono webfont", sans-serif;
  font-weight: 300;
  font-size: 1.25em;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.85;
}

@media screen and (max-width: 767px) {
  .hero-heading-center { font-size: 3.6em; }
  .hero-sub { font-size: 1em; padding: 0 20px; }
}

/* ============================================================
   SERVICIOS GRID
   ============================================================ */
.services-wrap {
  padding: 80px 20px 40px;
  background: #2c2b2b;
  border-top: 1px solid #fff;
}

.services-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(255,255,255,0.15);
}

.service-card {
  padding: 40px 32px 36px;
  border-right: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  background: #1f1e1e;
  color: #fff;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, transform 0.3s ease;
}

.service-card:hover { background: #0a0a0a; }

.service-card-wide { grid-column: span 3; background: #0e0e0e; }

.service-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.service-gif {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 auto;
}

.service-tag {
  font-family: "Silkamono webfont", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.service-title {
  font-family: "Silkamono webfont", sans-serif;
  font-weight: 500;
  font-size: 2.1em;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 18px;
}

.service-card-wide .service-title {
  font-size: 3em;
  max-width: 880px;
}

.service-card-wide .service-title em {
  font-style: italic;
  font-weight: 100;
}

.service-desc {
  font-family: "Silkamono webfont", sans-serif;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 22px;
  flex: 1;
}
.service-desc-wide {
  max-width: 780px;
  font-size: 16px;
}

.service-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.3s ease;
  margin: 0;
}
.service-card.is-open .service-details {
  max-height: 800px;
  opacity: 1;
  margin: 0 0 24px;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Silkamono webfont", sans-serif;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  line-height: 1.55;
}
.service-list li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.service-list li:first-child { border-top: 0; }
.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 10px;
  color: #fff;
  opacity: 0.6;
}

.service-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 32px;
}
.service-list-grid li:nth-child(2) { border-top: 0; }

.service-actions {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.service-toggle {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.7);
  font-family: "Silkamono webfont", sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 0;
  cursor: pointer;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.service-toggle:hover { color: #fff; }
.service-toggle .toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}
.service-card.is-open .service-toggle .toggle-icon {
  transform: rotate(180deg);
}

.service-cta {
  color: #fff;
  text-decoration: none;
  font-family: "Silkamono webfont", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid #fff;
  transition: all 0.2s ease;
  margin-left: auto;
}
.service-cta:hover { background: #fff; color: #0a0a0a; }

@media screen and (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-wide { grid-column: span 2; }
}
@media screen and (max-width: 600px) {
  .services-wrap { padding: 60px 16px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-column: span 1; }
  .service-card { padding: 32px 22px; }
  .service-title { font-size: 1.8em; }
  .service-card-wide .service-title { font-size: 2.1em; }
  .service-list-grid { grid-template-columns: 1fr; }
  .service-list-grid li:nth-child(2) { border-top: 1px solid rgba(255,255,255,0.08); }
}

/* ============================================================
   FORMULARIO PASO A PASO
   ============================================================ */
.form-section {
  background: #0a0a0a;
  padding: 100px 20px 120px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

.form-shell {
  max-width: 880px;
  margin: 0 auto;
  color: #fff;
}

.form-header { margin-bottom: 48px; text-align: center; }

.form-kicker {
  display: inline-block;
  font-family: "Silkamono webfont", sans-serif;
  letter-spacing: 4px;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
}

.form-title {
  font-family: "Silkamono webfont", sans-serif;
  font-weight: 500;
  font-size: 3.6em;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.form-lead {
  font-family: "Silkamono webfont", sans-serif;
  font-weight: 300;
  font-size: 1.05em;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto;
}
.form-lead strong { color: #fff; font-weight: 500; }

.compendio-form {
  position: relative;
  border: 1px solid rgba(255,255,255,0.25);
  background: #141414;
  padding: 40px;
  min-height: 420px;
}

.form-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.form-progress-bar {
  position: relative;
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.15);
  overflow: hidden;
}
.form-progress-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--progress, 25%);
  background: #fff;
  transition: width 0.4s ease;
}
.form-progress-text {
  font-family: "Silkamono webfont", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
}

.form-step {
  display: none;
  animation: fadeUp 0.45s ease both;
}
.form-step.is-active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-step-title {
  font-family: "Silkamono webfont", sans-serif;
  font-weight: 500;
  font-size: 2em;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.form-step-hint {
  font-family: "Silkamono webfont", sans-serif;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  margin: 0 0 30px;
}

/* Opciones */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.choice-grid-3 { grid-template-columns: repeat(3, 1fr); }

.choice-card {
  text-align: left;
  background: #1d1d1d;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 24px 22px;
  cursor: pointer;
  font-family: "Silkamono webfont", sans-serif;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}
.choice-card:hover {
  background: #fff;
  color: #0a0a0a;
  transform: translateY(-2px);
}
.choice-card:hover .choice-index,
.choice-card:hover .choice-desc { color: rgba(10,10,10,0.7); }

.choice-card.is-selected {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}

.choice-index {
  font-size: 11px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
}
.choice-title {
  font-size: 1.2em;
  font-weight: 500;
  line-height: 1.2;
}
.choice-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255,255,255,0.7);
}

@media screen and (max-width: 767px) {
  .choice-grid, .choice-grid-3 { grid-template-columns: 1fr; }
}

/* Campos */
.form-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field-full { grid-column: span 2; }

.form-field span {
  font-family: "Silkamono webfont", sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

.form-field input,
.form-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: "Silkamono webfont", sans-serif;
  font-size: 16px;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: #fff;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.form-field.has-error input,
.form-field.has-error textarea {
  border-bottom-color: #ff6b6b;
}

@media screen and (max-width: 600px) {
  .form-fields { grid-template-columns: 1fr; }
  .form-field-full { grid-column: span 1; }
  .compendio-form { padding: 28px 20px; }
  .form-title { font-size: 2.4em; }
}

/* Navegación */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.form-back {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-family: "Silkamono webfont", sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 10px 0;
}
.form-back:hover { color: #fff; }

.form-submit {
  background: #fff;
  color: #0a0a0a;
  border: 1px solid #fff;
  font-family: "Silkamono webfont", sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.form-submit:hover { background: transparent; color: #fff; }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* Éxito */
.form-success { text-align: center; padding: 20px 0 10px; }
.form-success-gif {
  width: 110px; height: 110px;
  object-fit: cover; border-radius: 14px;
  margin: 0 auto 20px;
}
.form-success-title {
  font-family: "Silkamono webfont", sans-serif;
  font-weight: 500;
  font-size: 2.4em;
  line-height: 1.05;
  margin: 0 0 18px;
}
.form-success-text {
  font-family: "Silkamono webfont", sans-serif;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  font-size: 1em;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 14px;
}
.form-success-sub {
  font-family: "Silkamono webfont", sans-serif;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0 0 28px;
}
.form-success-link {
  display: inline-block;
  color: #fff;
  font-family: "Silkamono webfont", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid #fff;
  text-decoration: none;
  transition: all 0.2s ease;
}
.form-success-link:hover { background: #fff; color: #0a0a0a; }
