/**
 * CTO On-Demand — Landing Page Styles
 *
 * Scoped under `.cto-landing` to avoid conflicts with Astra / Elementor.
 *
 * @package Astra Child
 * @since   1.0.0
 */

/* ===== SCOPED RESET ===== */
.cto-landing *, .cto-landing *::before, .cto-landing *::after { margin: 0; padding: 0; box-sizing: border-box; }
.cto-landing { font-family: 'Lato', sans-serif; color: #0E2B67; line-height: 1.6; width: 100%; overflow-x: hidden; }
.cto-landing img { max-width: 100%; height: auto; }
.cto-landing a { text-decoration: none; color: inherit; }

/* ===== DESIGN TOKENS ===== */
.cto-landing {
  --navy: #0E2B67;
  --navy-dark: #002C6B;
  --blue: #0067FF;
  --blue-a11y: #005CE6;
  --mint: #72F5C4;
  --light-bg: #E7F6FF;
  --gray-50: #F8FAFC;
  --gray-100: #EEF2F5;
  --gray-600: #5A6B7D;
  --gray-700: #3D4A5C;
  --light-gray: #B0C4DE;
  --hero-dark: #060D1F;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(14, 43, 103, 0.08);
  --shadow-md: 0 4px 16px rgba(14, 43, 103, 0.12);
  --shadow-lg: 0 8px 24px rgba(14, 43, 103, 0.16);
  --radius: 12px;
  --radius-lg: 16px;
}

/* ===== TYPOGRAPHY ===== */
.cto-landing h1, .cto-landing h2, .cto-landing h3, .cto-landing h4 {
  font-family: 'Montserrat', sans-serif;
}
.cto-landing h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}
.cto-landing h2 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 16px;
}
.cto-landing h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}
.cto-landing p { font-size: 16px; line-height: 1.8; color: var(--navy); }

/* DS Personality 3 (Servicio Estratégico): primary accent is navy/white, not mint */
.cto-landing .section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}
.cto-landing .section-label.dark { color: var(--navy); }

.cto-landing .section-header { text-align: center; margin-bottom: 60px; }
.cto-landing .section-header h2 { margin-bottom: 16px; }
.cto-landing .section-header p { font-size: 18px; color: var(--gray-600); max-width: 600px; margin: 0 auto; }

/* ===== BUTTONS ===== */
.cto-landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.cto-landing .btn-primary { background-color: var(--blue); color: var(--white); }
.cto-landing .btn-primary:hover { background-color: #0052cc; box-shadow: 0 8px 24px rgba(0, 103, 255, 0.3); }
.cto-landing .btn-lg { padding: 16px 40px; font-size: 18px; }

/* ===== CARDS & BADGES ===== */
.cto-landing .card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease;
}
.cto-landing .card:hover { box-shadow: var(--shadow-md); }
.cto-landing .pain-card { border-left: 4px solid var(--mint); }
.cto-landing .badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: var(--mint);
  color: var(--navy);
  margin-bottom: 12px;
}

/* ===== HERO ===== */
.cto-landing .cto-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--hero-dark) 0%, var(--navy) 100%);
  overflow: hidden;
  padding: 120px 40px 40px;
}
.cto-landing .cto-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="g1" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" style="stop-color:rgba(114,245,196,0.1);stop-opacity:1"/><stop offset="100%25" style="stop-color:rgba(0,103,255,0.1);stop-opacity:1"/></linearGradient></defs><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="url(%23g1)"/></svg>') no-repeat center;
  background-size: cover;
  opacity: 0.6;
  animation: cto-drift 20s ease-in-out infinite;
  z-index: 1;
}
.cto-landing .hero-content { position: relative; z-index: 2; max-width: 900px; }
.cto-landing .hero-label {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--mint);
  color: var(--navy);
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.cto-landing .cto-hero h1 { margin-bottom: 24px; }
.cto-landing .subtitle {
  font-size: 20px;
  color: var(--light-gray);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cto-landing .hero-cta-group { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cto-landing .hero-small-text { font-size: 14px; color: var(--light-gray); margin-top: 12px; }
.cto-landing .scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: cto-bounce 2s infinite;
}
.cto-landing .scroll-indicator svg {
  width: 24px; height: 24px;
  stroke: var(--white); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== TRUST MARQUEE (DS P3: light bg post-hero for "accesible" feel) ===== */
.cto-landing .cto-trust-marquee {
  background-color: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 24px 0;
  overflow: hidden;
}
.cto-landing .marquee-content {
  display: flex;
  gap: 40px;
  animation: cto-scroll-marquee 30s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.cto-landing .marquee-item {
  display: flex;
  align-items: center;
  gap: 40px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  flex-shrink: 0;
}
.cto-landing .marquee-item::before {
  content: '\00B7';
  font-size: 24px;
  color: var(--mint);
  flex-shrink: 0;
}
.cto-landing .marquee-item:first-child::before { display: none; }

/* ===== TWO PATHS ===== */
.cto-landing .cto-two-paths { background-color: var(--white); padding: 80px 40px; }
.cto-landing .cto-two-paths .cto-two-paths-container { max-width: 1200px; margin: 0 auto; }
.cto-landing .paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.cto-landing .path-column { padding: 40px; border-radius: var(--radius-lg); position: relative; }
.cto-landing .path-column.path-a { background-color: rgba(114, 245, 196, 0.08); }
.cto-landing .path-column.path-b { background-color: rgba(0, 103, 255, 0.06); }
.cto-landing .path-column h3 { margin-bottom: 16px; }
.cto-landing .path-column > p { font-size: 15px; color: var(--gray-700); margin-bottom: 32px; line-height: 1.7; }
.cto-landing .pain-points { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.cto-landing .pain-card { padding: 16px; font-size: 15px; color: var(--navy); background-color: var(--white); border-radius: 8px; }
.cto-landing .path-role {
  font-weight: 700;
  color: var(--navy);
  padding-top: 16px;
  border-top: 1px solid rgba(14, 43, 103, 0.1);
  font-size: 15px;
}
.cto-landing .closing-text {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}
.cto-landing .paths-cta { text-align: center; }

/* ===== HOW IT WORKS (TIMELINE) ===== */
.cto-landing .cto-how-it-works { background-color: var(--light-bg); padding: 80px 40px; }
.cto-landing .cto-how-it-works .cto-hiw-container { max-width: 1000px; margin: 0 auto; }
.cto-landing .timeline { position: relative; display: grid; gap: 40px; }
.cto-landing .timeline::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--mint));
}
.cto-landing .timeline-step { position: relative; padding-left: 120px; }
.cto-landing .timeline-step::before {
  content: '';
  position: absolute;
  left: 20px; top: 0;
  width: 40px; height: 40px;
  background-color: var(--light-bg);
  border: 3px solid var(--blue);
  border-radius: 50%;
  z-index: 2;
}
.cto-landing .timeline-step:nth-child(n+2)::before { border-color: var(--mint); }
.cto-landing .step-content {
  background-color: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cto-landing .step-badge { display: inline-block; margin-bottom: 12px; }
.cto-landing .step-content h3 { margin-bottom: 8px; }
.cto-landing .step-content > p:first-of-type { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 16px; }
.cto-landing .step-details { list-style: none; margin-bottom: 16px; font-size: 15px; color: var(--gray-700); line-height: 1.8; }
.cto-landing .step-details li { margin-bottom: 8px; padding-left: 24px; position: relative; }
.cto-landing .step-details li::before { content: '\2192'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.cto-landing .step-note {
  font-size: 13px;
  color: var(--gray-600);
  font-style: italic;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  margin-top: 16px;
}

/* ===== CONCEPTO ===== */
.cto-landing .cto-concept { background-color: var(--gray-50); padding: 80px 40px; }
.cto-landing .cto-concept .cto-concept-container { max-width: 900px; margin: 0 auto; }
.cto-landing .concept-content { display: grid; gap: 32px; border-left: 3px solid var(--mint); padding-left: 32px; }
.cto-landing .concept-content p { font-size: 16px; line-height: 1.8; color: var(--navy); }

/* ===== BENEFITS ===== */
/* ===== EXPERT PROFILE (DS Personality 3: "Quién está detrás" key section) ===== */
.cto-landing .cto-expert-profile { background-color: var(--white); padding: 80px 40px; }
.cto-landing .cto-expert-profile .cto-expert-container { max-width: 1140px; margin: 0 auto; }
.cto-landing .expert-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}
.cto-landing .expert-credentials { display: flex; flex-direction: column; gap: 32px; }
.cto-landing .credential-item {
  padding: 24px 28px;
  background: var(--gray-50);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius);
}
.cto-landing .credential-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.cto-landing .credential-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-600);
  margin: 8px 0 12px;
}
.cto-landing .credential-item p { font-size: 15px; color: var(--gray-700); line-height: 1.7; }
.cto-landing .expert-approach {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  position: sticky;
  top: 100px;
}
.cto-landing .expert-approach h3 { color: var(--white); margin-bottom: 20px; }
.cto-landing .expert-bullets { list-style: none; padding: 0; margin: 0; }
.cto-landing .expert-bullets li {
  position: relative;
  padding: 14px 0 14px 28px;
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cto-landing .expert-bullets li:last-child { border-bottom: none; }
.cto-landing .expert-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 12px;
  height: 12px;
  background: var(--mint);
  border-radius: 50%;
}
.cto-landing .expert-bullets strong { color: var(--white); font-weight: 700; }

.cto-landing .cto-benefits { background-color: var(--gray-50); padding: 80px 40px; }
.cto-landing .cto-benefits .cto-benefits-container { max-width: 1200px; margin: 0 auto; }
.cto-landing .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.cto-landing .benefit-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
}
.cto-landing .benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.cto-landing .benefit-icon {
  width: 48px; height: 48px;
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.cto-landing .benefit-icon svg {
  width: 100%; height: 100%;
  stroke: var(--mint); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.cto-landing .benefit-card h3 { margin-bottom: 12px; }
.cto-landing .benefit-card p { font-size: 15px; color: var(--gray-600); line-height: 1.7; }

/* ===== SOCIAL PROOF ===== */
.cto-landing .cto-social-proof {
  padding: 80px 40px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
}
.cto-landing .cto-social-proof .cto-sp-container { max-width: 900px; margin: 0 auto; }
.cto-landing .testimonial-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px;
  margin: 40px auto;
  max-width: 700px;
  text-align: center;
}
.cto-landing .testimonial-quote { font-size: 20px; font-style: italic; line-height: 1.7; color: rgba(255,255,255,0.9); margin-bottom: 24px; }
.cto-landing .testimonial-author { font-family: 'Montserrat', sans-serif; color: var(--mint); font-weight: 700; font-size: 14px; }
.cto-landing .testimonial-role { color: rgba(255,255,255,0.7); font-size: 13px; margin-top: 4px; }
/* .client-logos / .client-logo-img — moved to ds-components.css (Level 2) */

/* ===== FAQ ===== */
.cto-landing .cto-faq { background-color: var(--gray-50); padding: 80px 40px; }
.cto-landing .cto-faq .cto-faq-container { max-width: 800px; margin: 0 auto; }
.cto-landing .accordion { display: grid; gap: 16px; }
.cto-landing .accordion-item {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cto-landing .accordion-header {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}
.cto-landing .accordion-header:hover { background-color: var(--light-bg); }
.cto-landing .accordion-header .chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease;
}
.cto-landing .accordion-header .chevron svg {
  width: 100%; height: 100%;
  stroke: var(--navy); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cto-landing .accordion-item.open .accordion-header .chevron { transform: rotate(180deg); }
.cto-landing .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.cto-landing .accordion-item.open .accordion-content { max-height: 500px; }
.cto-landing .accordion-content p {
  padding: 16px 24px 24px;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  background-color: var(--light-bg);
}

/* ===== CTA FINAL ===== */
.cto-landing .cto-cta-final {
  padding: 80px 40px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}
.cto-landing .cto-cta-final .cto-cta-container { max-width: 700px; margin: 0 auto; }
.cto-landing .cto-cta-final h2 { color: var(--white); margin-bottom: 16px; }
.cto-landing .cto-cta-final > .cto-cta-container > p { font-size: 18px; color: var(--light-gray); margin-bottom: 40px; }
.cto-landing .final-cta-button { margin-bottom: 16px; }
.cto-landing .final-cta-note { font-size: 14px; color: var(--light-gray); }

/* ===== KEYFRAMES ===== */
@keyframes cto-drift {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-30px); }
}
@keyframes cto-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}
@keyframes cto-scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .cto-landing .cto-hero { padding: 100px 24px 40px; min-height: auto; }
  .cto-landing .section-label { font-size: 12px; letter-spacing: 1.5px; }
  .cto-landing h2 { font-size: 32px; }
  .cto-landing .cto-two-paths,
  .cto-landing .cto-how-it-works,
  .cto-landing .cto-concept,
  .cto-landing .cto-expert-profile,
  .cto-landing .cto-benefits,
  .cto-landing .cto-faq,
  .cto-landing .cto-cta-final { padding: 60px 24px; }
  .cto-landing .expert-content { grid-template-columns: 1fr; gap: 32px; }
  .cto-landing .expert-approach { position: static; padding: 32px 24px; }
  .cto-landing .credential-number { font-size: 36px; }
  .cto-landing .paths-grid { grid-template-columns: 1fr; }
  .cto-landing .path-column { padding: 32px 24px; }
  .cto-landing .pain-points { gap: 12px; }
  .cto-landing .pain-card { padding: 14px; font-size: 14px; }
  .cto-landing .timeline::before { left: 20px; }
  .cto-landing .timeline-step { padding-left: 80px; }
  .cto-landing .step-content { padding: 24px; }
  .cto-landing .benefit-card { padding: 32px 24px; }
  .cto-landing .cto-social-proof { padding: 60px 24px; }
  .cto-landing .testimonial-card { padding: 28px 20px; }
  .cto-landing .testimonial-quote { font-size: 17px; }
  /* .client-logos mobile override — in ds-components.css */
  .cto-landing .accordion-header { padding: 18px 20px; font-size: 15px; }
  .cto-landing .accordion-content p { padding: 14px 20px 20px; font-size: 14px; }
  .cto-landing .cto-cta-final p { font-size: 16px; }
  .cto-landing .final-cta-button .btn { padding: 14px 32px; font-size: 16px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .cto-landing .marquee-content { animation: none; }
  .cto-landing .cto-hero::before { animation: none; }
  .cto-landing .scroll-indicator { animation: none; }
  .cto-landing .benefit-card { transition: none; }
  .cto-landing .accordion-content { transition: none; }
}
