/* ==========================================================================
   MARTÍN TRONCOSO — NEGOCIOS EXITOSOS
   Brand Design System & Page Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. BRAND TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --noche: #060f20;
  --marino: #0a1830;
  --resalte: #1b3358;
  --dorado: #c9a24b;
  --dorado2: #d9b45c;
  --dorado-glow: rgba(201, 162, 75, 0.35);
  --dorado-translucent: rgba(201, 162, 75, 0.15);
  --dorado-subtle: rgba(201, 162, 75, 0.08);

  --marfil: #f2eee6;
  --gris: #8fa3bf;
  --niebla: #b8c4d6;
  --claro: #dde5ef;

  /* Crema editorial (secciones claras alternadas) */
  --crema: #fbf8f2;
  --crema-card: #fffdf8;
  --crema-borde: #e7ddc6;
  --carbon: #2e3030;
  --carbon-suave: #57534a;

  /* Typography */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Lato', system-ui, -apple-system, sans-serif;

  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. BASE & RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--noche);
  background-image: radial-gradient(circle at 50% 0%, var(--marino) 0%, var(--noche) 85%);
  background-attachment: fixed;
  color: var(--marfil);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--marfil);
  line-height: 1.25;
}

/* Gold Italic Accent in Titles */
.accent-gold-italic {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--dorado);
  font-weight: 400;
}

p {
  color: var(--niebla);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Anclas bajo la navbar fija */
section[id] {
  scroll-margin-top: 90px;
}

/* Foco visible accesible en links y botones */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--dorado2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. REUSABLE COMPONENTS & GRAPHIC ELEMENTS
   -------------------------------------------------------------------------- */

/* Eyebrow / Kicker */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3.5px;
  color: var(--dorado);
  margin-bottom: 0.75rem;
}

.eyebrow--niebla {
  color: var(--niebla);
}

/* Header Ornament (line - dot - line) */
.header-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1.25rem;
}

.header-ornament-line {
  height: 1px;
  width: 45px;
  background: linear-gradient(90deg, transparent, var(--dorado));
}

.header-ornament-line--right {
  background: linear-gradient(90deg, var(--dorado), transparent);
}

.header-ornament-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--dorado);
  box-shadow: 0 0 8px var(--dorado-glow);
}

/* Section Divider with Gold Gradient */
.gold-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--dorado-translucent) 20%, var(--dorado) 50%, var(--dorado-translucent) 80%, transparent 100%);
  margin-top: 0;
  margin-bottom: 0;
  border: none;
}

/* Buttons / CTAs */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--dorado2), var(--dorado));
  color: var(--noche);
  border-color: var(--dorado2);
  box-shadow: 0 4px 20px rgba(201, 162, 75, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e5bf68, var(--dorado2));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 162, 75, 0.4);
  color: var(--noche);
}

.btn-secondary {
  background: transparent;
  color: var(--dorado);
  border-color: var(--dorado);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: var(--dorado-translucent);
  color: var(--marfil);
  border-color: var(--dorado2);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 75, 0.2);
}

.btn-large {
  padding: 1.1rem 2.75rem;
  font-size: 0.95rem;
}

/* Brand Card */
.brand-card {
  background: linear-gradient(135deg, rgba(27, 51, 88, 0.7) 0%, rgba(10, 24, 48, 0.85) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

/* Spotlight dorado que sigue al cursor (custom properties seteadas por JS) */
.brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
      rgba(201, 162, 75, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.brand-card:hover::before {
  opacity: 1;
}

.brand-card:hover {
  border-color: rgba(201, 162, 75, 0.5);
  transform: perspective(900px) translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 12px 30px rgba(6, 15, 32, 0.6), 0 0 15px rgba(201, 162, 75, 0.15);
}

/* Decorative Double Gold Frame Accent */
.double-gold-frame {
  position: relative;
  border: 1px solid var(--dorado);
  border-radius: var(--radius-md);
}

.double-gold-frame::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 0.5px solid rgba(201, 162, 75, 0.4);
  border-radius: calc(var(--radius-md) - 3px);
  pointer-events: none;
}

/* Lucide Icon Style Helper */
.gold-icon {
  color: var(--dorado);
  stroke-width: 2.3px;
}

/* Section Spacing */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Section Title Group */
.section-header {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: 2.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.85rem;
  }
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--niebla);
}

/* --------------------------------------------------------------------------
   4. HEADER & NAVIGATION (STICKY)
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--transition-fast);
  background: rgba(6, 15, 32, 0.4);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.1);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(6, 15, 32, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(201, 162, 75, 0.25);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo / Wordmark */
.brand-wordmark {
  display: flex;
  flex-direction: column;
}

.brand-wordmark-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--marfil);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-wordmark-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--dorado);
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--claro);
  transition: var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--dorado);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--dorado);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--dorado-translucent);
  color: var(--dorado);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
}

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--noche);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--dorado-translucent);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-bg-glow {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(27, 51, 88, 0.6) 0%, rgba(6, 15, 32, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-section {
    padding-top: 8rem;
  }

  .header-ornament {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--marfil);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 620px;
}

@media (max-width: 992px) {
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 992px) {
  .hero-ctas {
    justify-content: center;
  }
}

.hero-credibility {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--gris);
  font-weight: 500;
}

@media (max-width: 992px) {
  .hero-credibility {
    justify-content: center;
  }
}

.hero-credibility-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--dorado);
}

.hero-image-wrapper {
  position: relative;
  perspective: 1200px;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--resalte), var(--marino));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  will-change: transform;
  transform-style: preserve-3d;
}

.hero-image-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: contrast(1.05) brightness(0.95);
  transition: var(--transition-smooth);
}

.hero-image-card:hover img {
  filter: contrast(1.1) brightness(1);
  transform: scale(1.02);
}

.hero-image-placeholder {
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--resalte) 0%, var(--marino) 100%);
  color: var(--niebla);
  text-align: center;
  padding: 2rem;
  border: 1px dashed var(--dorado-translucent);
}

/* --------------------------------------------------------------------------
   6. SOCIAL PROOF / TRUST INDICATORS
   -------------------------------------------------------------------------- */
.social-proof-section {
  background: rgba(10, 24, 48, 0.6);
  padding: 3rem 0;
  border-top: 1px solid rgba(201, 162, 75, 0.15);
  border-bottom: 1px solid rgba(201, 162, 75, 0.15);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.stat-item {
  position: relative;
  padding: 1rem;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--dorado-translucent), transparent);
}

@media (max-width: 992px) {
  .stat-item:not(:last-child)::after {
    display: none;
  }
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--dorado);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--niebla);
}

/* --------------------------------------------------------------------------
   7. ABOUT ME (SOBRE MÍ)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.about-photo-wrapper {
  position: relative;
}

.about-photo-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.about-photo-frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Alternate Section Background (Azul Resalte) for Visual Rhythm */
.section-resalte-bg {
  background: linear-gradient(135deg, rgba(27, 51, 88, 0.85) 0%, rgba(10, 24, 48, 0.95) 100%);
  border-top: 1px solid rgba(201, 162, 75, 0.2);
  border-bottom: 1px solid rgba(201, 162, 75, 0.2);
  position: relative;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text {
  font-size: 1.08rem;
  color: var(--niebla);
  line-height: 1.75;
}

.about-highlight-box {
  margin-top: 1rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(27, 51, 88, 0.8), rgba(10, 24, 48, 0.9));
  border-left: 3px solid var(--dorado);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.about-highlight-phrase {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--marfil);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   8. PAIN POINTS / PARA QUÉ ES (DOLORES)
   -------------------------------------------------------------------------- */
.pains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .pains-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.pain-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.pain-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--resalte);
  border: 1px solid var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.pain-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--marfil);
  margin-bottom: 0.5rem;
}

.pain-desc {
  font-size: 0.98rem;
  color: var(--niebla);
}

.pains-closing-banner {
  text-align: center;
  background: linear-gradient(135deg, rgba(27, 51, 88, 0.9), rgba(6, 15, 32, 0.95));
  padding: 3rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--dorado-translucent);
}

.pains-closing-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--marfil);
  margin-bottom: 1.75rem;
}

/* --------------------------------------------------------------------------
   9. WHAT I DO / CÓMO TE AYUDO
   -------------------------------------------------------------------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .value-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.value-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
}

.value-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.value-card-title {
  font-size: 1.6rem;
  color: var(--dorado);
  margin-bottom: 1rem;
}

.value-prop-box {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(10, 24, 48, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 162, 75, 0.15);
}

.value-prop-text {
  font-size: 1.18rem;
  color: var(--marfil);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   10. METHOD / POR QUÉ DISTINTO
   -------------------------------------------------------------------------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .method-grid {
    grid-template-columns: 1fr;
  }
}

.method-card {
  padding: 2.25rem;
}

.method-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(201, 162, 75, 0.12);
  border: 1px solid var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-title {
  font-size: 1.3rem;
  color: var(--marfil);
}

/* --------------------------------------------------------------------------
   11. ECOSYSTEM / PROJECTS (EN QUÉ ANDO)
   -------------------------------------------------------------------------- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
}

.ecosystem-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ecosystem-top {
  margin-bottom: 1.5rem;
}

.ecosystem-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dorado);
  margin-bottom: 0.75rem;
}

.ecosystem-title {
  font-size: 1.45rem;
  color: var(--marfil);
  margin-bottom: 0.75rem;
}

.ecosystem-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dorado);
  transition: var(--transition-fast);
}

.ecosystem-link:hover {
  color: var(--dorado2);
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   12. CASES / TESTIMONIALS (CASOS REALES)
   -------------------------------------------------------------------------- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.case-user {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.case-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--resalte);
  border: 1px solid var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dorado);
  flex-shrink: 0;
  overflow: hidden;
}

.case-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-meta {
  display: flex;
  flex-direction: column;
}

.case-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--marfil);
  line-height: 1.2;
}

.case-sub {
  font-size: 0.82rem;
  color: var(--gris);
}

.case-text {
  font-size: 0.98rem;
  color: var(--niebla);
  line-height: 1.65;
}

.cases-placeholder-box {
  padding: 2rem;
  text-align: center;
  background: rgba(10, 24, 48, 0.4);
  border: 1px dashed rgba(201, 162, 75, 0.25);
  border-radius: var(--radius-md);
  color: var(--gris);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   13. FULL-WIDTH QUOTE BANNER
   -------------------------------------------------------------------------- */
.quote-banner-section {
  background: linear-gradient(135deg, var(--resalte) 0%, var(--marino) 50%, var(--noche) 100%);
  padding: 5rem 0;
  border-top: 1px solid var(--dorado-translucent);
  border-bottom: 1px solid var(--dorado-translucent);
  text-align: center;
  position: relative;
}

.quote-banner-text {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-style: italic;
  color: var(--marfil);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .quote-banner-text {
    font-size: 1.85rem;
  }
}

.quote-banner-author {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--dorado);
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   14. FAQ (ACCORDION)
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: linear-gradient(135deg, rgba(27, 51, 88, 0.6), rgba(10, 24, 48, 0.8));
  border: 1px solid rgba(201, 162, 75, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(201, 162, 75, 0.4);
}

.faq-trigger {
  width: 100%;
  padding: 1.5rem 1.75rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  cursor: pointer;
  color: var(--marfil);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.faq-icon {
  color: var(--dorado);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 1.75rem;
}

.faq-item.active .faq-content {
  max-height: 500px;
  transition: max-height 0.35s ease-in-out;
  padding: 0 1.75rem 1.5rem 1.75rem;
}

.faq-answer {
  color: var(--niebla);
  font-size: 1.02rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   15. CONTACT SECTION (WHATSAPP + FORM)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: stretch;
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.contact-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-wa-box {
  text-align: center;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.wa-big-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--dorado-translucent);
  border: 1px solid var(--dorado);
  color: var(--dorado);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--dorado-glow);
}

/* Video Testimonial Card */
.case-video-card {
  max-width: 850px;
  margin: 2.5rem auto 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--resalte), var(--marino));
  padding: 1.5rem;
}

.case-video-player {
  width: 100%;
  max-height: 440px;
  border-radius: var(--radius-sm);
  background: #000;
  display: block;
}

.case-video-caption {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--marfil);
  text-align: center;
  margin-top: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--niebla);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(6, 15, 32, 0.6);
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: var(--radius-sm);
  color: var(--marfil);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--dorado);
  box-shadow: 0 0 12px rgba(201, 162, 75, 0.25);
  background: rgba(6, 15, 32, 0.85);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid #25D366;
  color: #25D366;
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* --------------------------------------------------------------------------
   16. FOOTER & SCROLL TO TOP
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--noche);
  border-top: 1px solid rgba(201, 162, 75, 0.2);
  padding: 4.5rem 0 2rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dorado);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--niebla);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--dorado);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(27, 51, 88, 0.6);
  border: 1px solid var(--dorado-translucent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dorado);
  font-size: 1.25rem;
  transition: var(--transition-fast);
}

.social-icon-btn i,
.social-icon-btn svg {
  color: inherit;
  fill: currentColor;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon-btn:hover {
  background: var(--dorado);
  color: var(--noche);
  border-color: var(--dorado);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(201, 162, 75, 0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--gris);
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dorado);
  color: var(--noche);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
  z-index: 99;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
  background: var(--dorado2);
}

/* --------------------------------------------------------------------------
   17. ADVANCED FULL-RESPONSIVE MEDIA QUERIES (MOBILE, TABLET, DESKTOP)
   -------------------------------------------------------------------------- */

/* Responsive Typography Fluid Clamping */
.hero-title {
  font-size: clamp(2.2rem, 6.5vw, 3.8rem);
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

/* Form input font size 16px to prevent iOS auto-zoom */
.form-input,
.form-textarea {
  font-size: 16px !important;
}

/* Mobile & Small Screens (< 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  /* Buttons fill width on small mobile if needed */
  .hero-ctas {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn-pill {
    width: 100%;
    padding: 0.95rem 1.5rem;
    text-align: center;
  }

  .hero-image-card img,
  .hero-image-placeholder {
    height: clamp(300px, 45vh, 420px);
  }

  .about-photo-frame img {
    height: clamp(320px, 48vh, 440px);
  }

  .brand-card {
    padding: 1.5rem;
  }

  .pain-card {
    flex-direction: row;
    gap: 1rem;
  }

  .pain-icon-box {
    width: 46px;
    height: 46px;
  }

  .pain-title {
    font-size: 1.15rem;
  }

  .pains-closing-banner {
    padding: 2rem 1.25rem;
  }

  .pains-closing-text {
    font-size: 1.2rem;
  }

  .value-card {
    padding: 1.75rem 1.25rem;
  }

  .quote-banner-section {
    padding: 3.5rem 1rem;
  }

  .quote-banner-text {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
  }

  .faq-trigger {
    padding: 1.25rem;
    font-size: 1.05rem;
  }

  .faq-content {
    padding: 0 1.25rem;
  }

  .faq-item.active .faq-content {
    padding: 0 1.25rem 1.25rem 1.25rem;
  }

  .contact-wa-box {
    padding: 2.25rem 1.25rem;
  }

  .scroll-top-btn {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
  }
}

/* Extra Small Devices (< 480px) */
@media (max-width: 480px) {
  .brand-wordmark-title {
    font-size: 1.2rem;
  }

  .brand-wordmark-sub {
    font-size: 0.58rem;
    letter-spacing: 2px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
  }

  .pain-card {
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------------------
   18. MOTION SYSTEM (SCROLL REVEAL, HERO ENTRANCE, MARQUEE, 3D)
   Todo gated detrás de html.js para no ocultar contenido si falla el JS.
   -------------------------------------------------------------------------- */

/* --- 18.1 Scroll Reveal genérico (IntersectionObserver en martin-troncoso.js) --- */
html.js .reveal,
html.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js .reveal--left {
  transform: translateX(-32px);
}

html.js .reveal--right {
  transform: translateX(32px);
}

html.js .reveal--scale {
  transform: scale(0.94);
}

html.js .reveal.reveal-visible,
html.js .reveal-stagger.reveal-visible > * {
  opacity: 1;
  transform: none;
}

html.js .reveal[data-delay="1"] {
  transition-delay: 0.12s;
}

html.js .reveal[data-delay="2"] {
  transition-delay: 0.2s;
}

/* --- 18.2 Hero: entrada coreografiada escalonada --- */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

html.js .hero-content > * {
  animation: hero-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.js .hero-content > *:nth-child(1) {
  animation-delay: 0.05s;
}

html.js .hero-content > *:nth-child(2) {
  animation-delay: 0.13s;
}

html.js .hero-content > *:nth-child(3) {
  animation-delay: 0.21s;
}

html.js .hero-content > *:nth-child(4) {
  animation-delay: 0.31s;
}

html.js .hero-content > *:nth-child(5) {
  animation-delay: 0.41s;
}

html.js .hero-image-wrapper {
  animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

/* --- 18.3 Subrayado SVG dorado que se dibuja bajo "líder" --- */
.word-underline {
  position: relative;
  display: inline-block;
}

.underline-draw {
  position: absolute;
  left: -4%;
  bottom: -0.22em;
  width: 108%;
  height: 0.35em;
  overflow: visible;
  pointer-events: none;
}

html.js .underline-draw path {
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: draw-underline 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes draw-underline {
  to {
    stroke-dashoffset: 0;
  }
}

/* --- 18.4 Marquee infinito de logos de clientes --- */
.clients-marquee-section {
  padding: 2.5rem 0 3rem;
}

.clients-marquee-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gris);
}

.clients-marquee {
  overflow: hidden;
  margin-top: 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 45s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  padding-right: 3.5rem;
  flex-shrink: 0;
}

.marquee-logo {
  height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: var(--transition-fast);
}

.marquee-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

.clients-marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .marquee-group {
    gap: 2.25rem;
    padding-right: 2.25rem;
  }

  .marquee-logo {
    height: 32px;
  }
}

/* --- 18.5 CTA posterior a Casos reales --- */
.cases-cta {
  text-align: center;
  margin-top: 3rem;
}

.cases-cta-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--marfil);
  margin-bottom: 1.25rem;
}

/* --- 18.6 Avatar de monograma (testimonios sin foto real) --- */
.case-avatar--monogram {
  background: linear-gradient(135deg, rgba(201, 162, 75, 0.2), rgba(201, 162, 75, 0.06));
  border: 1px solid var(--dorado);
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Reveals visibles sin animación */
  html.js .reveal,
  html.js .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Subrayado dibujado visible de inmediato */
  html.js .underline-draw path {
    stroke-dashoffset: 0 !important;
  }

  /* Marquee detenido */
  .marquee-track {
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   19. SECCIONES CREMA (RITMO OSCURO → CREMA) + MOTION AVANZADO v3.1
   -------------------------------------------------------------------------- */

/* --- 19.1 Sección con fondo crema editorial (.section--crema) --- */
.section--crema {
  background: var(--crema);
  border-top: 1px solid rgba(201, 162, 75, 0.3);
  border-bottom: 1px solid rgba(201, 162, 75, 0.3);
  color: var(--carbon);
}

/* Tipografía: Lora oscura, cuerpo carbón suave, dorado intacto para acentos */
.section--crema .section-title,
.section--crema .method-title,
.section--crema h2,
.section--crema h3 {
  color: var(--carbon);
}

.section--crema p,
.section--crema .pain-desc,
.section--crema .about-text {
  color: var(--carbon-suave);
}

/* Tarjetas en versión clara (spotlight dorado se mantiene, opacidad ajustada) */
.section--crema .brand-card {
  background: var(--crema-card);
  border: 1px solid var(--crema-borde);
  backdrop-filter: none;
  box-shadow: 0 10px 30px rgba(120, 100, 60, 0.08);
}

.section--crema .brand-card::before {
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
      rgba(201, 162, 75, 0.18), transparent 65%);
}

.section--crema .brand-card:hover {
  border-color: rgba(201, 162, 75, 0.6);
  box-shadow: 0 16px 38px rgba(120, 100, 60, 0.16), 0 0 18px rgba(201, 162, 75, 0.15);
}

/* Highlight box de Sobre mí en versión papel */
.section--crema .about-highlight-box {
  background: #fffdf7;
  border-left: 3px solid var(--dorado);
  box-shadow: 0 10px 30px rgba(120, 100, 60, 0.1);
}

.section--crema .about-highlight-phrase {
  color: var(--carbon);
}

/* Marco de la foto: sombra cálida en vez de sombra noche */
.section--crema .about-photo-frame {
  box-shadow: 0 20px 45px rgba(120, 100, 60, 0.18);
}

/* --- 19.2 Sobre mí: foto de grayscale a color + parallax (JS scrub) --- */
/* Default color (sin JS / reduced-motion). JS setea --gray por frame. */
.about-photo-frame img {
  filter: grayscale(var(--gray, 0));
  will-change: filter, transform;
}

/* --- 19.3 Quote banner: reveal palabra por palabra (spans .qword vía JS) --- */
.quote-banner-text .qword {
  display: inline-block;
  will-change: opacity, filter;
}

/* --- 19.4 Método: timeline vertical que se dibuja con el scroll --- */
.method-timeline {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
}

/* Riel de fondo (siempre visible, dorado tenue) */
.method-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(201, 162, 75, 0.18);
}

/* Línea dorada que se dibuja: scaleY(0→1) con --tl-progress (default 1 sin JS) */
.method-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: linear-gradient(180deg, var(--dorado2), var(--dorado));
  transform: scaleY(var(--tl-progress, 1));
  transform-origin: top;
}

.method-step {
  position: relative;
  width: calc(50% - 3rem);
  margin-bottom: 3rem;
}

.method-step--left {
  margin-right: auto;
}

.method-step--right {
  margin-left: auto;
}

.method-step:last-child {
  margin-bottom: 0;
}

/* Nodo dorado sobre la línea (iluminado por defecto = estado final sin JS) */
.method-node {
  position: absolute;
  top: 2.6rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--dorado);
  border: 2px solid var(--dorado);
  box-shadow: 0 0 16px var(--dorado-glow);
  z-index: 2;
  transition: background-color 0.4s, box-shadow 0.4s;
}

.method-step--left .method-node {
  right: -3rem;
  transform: translateX(50%);
}

.method-step--right .method-node {
  left: -3rem;
  transform: translateX(-50%);
}

/* Con JS activo (tl-active): nodos apagados hasta que la línea los alcanza */
.method-timeline.tl-active .method-node {
  background: var(--crema);
  box-shadow: none;
}

.method-timeline.tl-active .method-step.lit .method-node {
  background: var(--dorado);
  box-shadow: 0 0 18px var(--dorado-glow);
}

/* Timeline en mobile: línea a la izquierda, tarjetas a ancho completo */
@media (max-width: 768px) {
  .method-timeline::before,
  .method-line {
    left: 7px;
    margin-left: 0;
  }

  .method-step {
    width: 100%;
    margin-bottom: 2rem;
    padding-left: 2.5rem;
  }

  .method-step--left .method-node,
  .method-step--right .method-node {
    left: 0;
    right: auto;
    transform: none;
    top: 2.2rem;
  }
}

/* Timeline horizontal en desktop: 4 pasos en fila (menos scroll vertical),
   la línea dorada se dibuja de izquierda a derecha con el scroll */
@media (min-width: 993px) {
  .method-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
    max-width: none;
  }

  .method-timeline::before,
  .method-line {
    top: 7px;
    bottom: auto;
    left: 12.5%;
    right: 12.5%;
    width: auto;
    height: 2px;
    margin-left: 0;
  }

  .method-line {
    background: linear-gradient(90deg, var(--dorado2), var(--dorado));
    transform: scaleX(var(--tl-progress, 1));
    transform-origin: left;
  }

  .method-step {
    width: auto;
    margin: 0;
    padding-top: 2.25rem;
  }

  .method-step--left,
  .method-step--right {
    margin-left: 0;
    margin-right: 0;
  }

  .method-step--left .method-node,
  .method-step--right .method-node {
    left: 50%;
    right: auto;
    top: 0;
    transform: translateX(-50%);
  }
}

/* --- 19.5 Sello circular rotatorio ("De dueño a líder · Negocios Exitosos") --- */
.rotating-seal {
  position: absolute;
  right: 2.75rem;
  bottom: 2.75rem;
  width: 120px;
  height: 120px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
}

.rotating-seal-text {
  display: block;
  animation: seal-spin 26s linear infinite;
}

.rotating-seal-ring {
  fill: none;
  stroke: rgba(201, 162, 75, 0.35);
  stroke-width: 1;
}

.rotating-seal-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  fill: var(--dorado);
}

.rotating-seal-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--dorado);
}

/* Entrada coreografiada junto al hero */
html.js .rotating-seal {
  animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s both;
}

@keyframes seal-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Solo desktop amplio: evita colisiones con la grilla del hero */
@media (max-width: 1100px) {
  .rotating-seal {
    display: none;
  }
}

/* --- 19.6 Reduced motion: estados finales estáticos para el motion nuevo --- */
@media (prefers-reduced-motion: reduce) {
  .rotating-seal-text {
    animation: none !important;
  }

  /* Línea del timeline dibujada completa y nodos iluminados */
  .method-line {
    transform: none !important;
  }

  .method-timeline.tl-active .method-node {
    background: var(--dorado) !important;
    box-shadow: 0 0 16px var(--dorado-glow) !important;
  }
}

/* --------------------------------------------------------------------------
   20. RITMO VERTICAL COMPACTO + CASOS EN FILA
   Reduce el alto total de la página (~25%) sin tocar contenido:
   paddings de sección, headers, tarjetas, hero, footer.
   Las reglas acá van al final del archivo para ganar por orden de cascada.
   -------------------------------------------------------------------------- */
.section-padding {
  padding-top: 3.9rem;
  padding-bottom: 3.9rem;
}

.section-header {
  margin-bottom: 2.25rem;
}

.section-title {
  font-size: clamp(1.75rem, 4.5vw, 2.3rem);
}

.brand-card {
  padding: 1.8rem;
}

/* Hero: menos alto de viewport, foto más baja */
.hero-section {
  min-height: 80vh;
  padding-top: 8.5rem;
  padding-bottom: 4rem;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
}

.hero-ctas {
  margin-bottom: 0;
}

.hero-image-card img {
  height: 430px;
}

/* Marquee de clientes más compacto */
.clients-marquee-section {
  padding: 1.75rem 0 2.25rem;
}

.clients-marquee {
  margin-top: 1.25rem;
}

/* Barra de prueba social */
.social-proof-section {
  padding: 2.25rem 0;
}

.stat-number {
  font-size: 2.6rem;
}

/* Sobre mí: foto más baja */
.about-photo-frame img {
  height: 470px;
}

/* Dolores: grilla y banner de cierre más compactos */
.pains-grid {
  margin-bottom: 2rem;
}

.pains-closing-banner {
  padding: 2rem;
}

.pains-closing-text {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

/* Qué hago */
.value-grid {
  margin-bottom: 2rem;
}

.value-card {
  padding: 1.9rem 1.5rem;
}

.value-prop-box {
  padding: 1.5rem 2rem;
}

/* Ecosistema */
.ecosystem-top {
  margin-bottom: 1rem;
}

/* Casos: grilla sin margen extra; video + CTA pasan a una fila */
.cases-grid {
  margin-bottom: 0;
}

.cases-bottom {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}

.cases-bottom .case-video-card {
  max-width: none;
  margin: 0;
}

.cases-bottom .cases-cta {
  margin-top: 0;
}

/* Cita de cierre más baja */
.quote-banner-section {
  padding: 3.5rem 0;
}

.quote-banner-text {
  font-size: 2.4rem;
}

/* FAQ más compacto */
.faq-container {
  gap: 0.9rem;
}

.faq-trigger {
  padding: 1.1rem 1.5rem;
  font-size: 1.1rem;
}

/* Contacto */
.contact-wa-box {
  padding: 2rem 1.75rem;
  gap: 1.1rem;
}

.form-textarea {
  min-height: 96px;
}

/* Footer */
.site-footer {
  padding: 3.25rem 0 1.75rem 0;
}

.footer-grid {
  margin-bottom: 2.25rem;
}

@media (max-width: 992px) {
  .cases-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cases-bottom .case-video-card {
    margin: 0 auto;
    max-width: 850px;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .quote-banner-section {
    padding: 2.75rem 0;
  }

  .quote-banner-text {
    font-size: 1.85rem;
  }
}

/* --------------------------------------------------------------------------
   21. FUSIONES DE SECCIONES (DOLOR→SOLUCIÓN y CONTACTO+FAQ)
   Layouts a dos columnas para reducir el alto total de la página.
   -------------------------------------------------------------------------- */

/* Dolor → Solución: dos columnas en desktop */
.duo-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 2rem;
}

.section-header--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.75rem;
  max-width: none;
}

.pains-list,
.value-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pains-list .pain-card {
  padding: 1.4rem 1.6rem;
  gap: 1.1rem;
}

/* Tarjetas de valor en formato fila: ícono a la izquierda, título dorado */
.value-list .value-card {
  text-align: left;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.4rem 1.6rem;
}

.value-list .value-card-icon {
  margin: 0;
  width: 54px;
  height: 54px;
  background: var(--resalte);
  flex-shrink: 0;
}

.value-list .value-card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pains-closing-sub {
  max-width: 760px;
  margin: 0 auto 1.5rem auto;
  color: var(--niebla);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Video testimonial: altura acotada (es vertical) */
.case-video-player {
  max-height: 380px;
}

/* Franja WhatsApp horizontal dentro de Contacto */
.contact-wa-strip {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 1.4rem 2rem;
  margin-bottom: 2.5rem;
}

.contact-wa-strip .wa-big-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.wa-strip-text {
  flex: 1;
  text-align: left;
}

.wa-strip-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--marfil);
  margin-bottom: 0.25rem;
}

.contact-wa-strip .btn-pill {
  flex-shrink: 0;
}

/* FAQ como columna dentro de Contacto */
.faq-col .faq-container {
  max-width: none;
  margin: 0;
}

.faq-col > .eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
}

@media (max-width: 992px) {
  .duo-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 576px) {
  .contact-wa-strip {
    flex-direction: column;
    text-align: center;
    gap: 1.1rem;
  }

  .wa-strip-text {
    text-align: center;
  }

  .contact-wa-strip .btn-pill {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   22. NUEVO SISTEMA DE BOTONES (Fase 1 modernización)
   Simpleza estática, riqueza en movimiento:
   - Radius intermedio 12px (adiós pill completo)
   - Sentence case, sin tracking forzado
   - Dorado sólido (adiós degradé + sombra pesada)
   - Hover: text-swap (el texto rola) + shimmer + flecha viva
   - Secundario -> link con subrayado animado
   data-text lo setea JS desde el span; sin JS los botones se ven normales.
   -------------------------------------------------------------------------- */
:root {
  --btn-radius: 12px;
  --ease-swap: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Base: nueva anatomía */
.btn-pill {
  position: relative;
  overflow: hidden;
  border-radius: var(--btn-radius);
  padding: 0.95rem 1.9rem;
  font-size: 0.98rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.btn-large {
  padding: 1.05rem 2.1rem;
  font-size: 1rem;
}

/* Capa de texto que rola en hover (text-swap) */
.btn-pill>span {
  display: inline-block;
  transition: transform 0.45s var(--ease-swap);
}

.btn-pill::after {
  content: attr(data-text);
  position: absolute;
  left: 1.9rem;
  top: 50%;
  transform: translateY(160%);
  transition: transform 0.45s var(--ease-swap);
  font: inherit;
  white-space: nowrap;
  pointer-events: none;
}

.btn-large::after {
  left: 2.1rem;
}

.btn-pill:hover>span {
  transform: translateY(-160%);
}

.btn-pill:hover::after {
  transform: translateY(-50%);
}

/* Flecha viva: el ícono se desplaza en hover */
.btn-pill svg {
  transition: transform 0.18s ease-out;
}

.btn-pill:hover svg {
  transform: translateX(4px);
}

/* Primary: dorado sólido + barrido de luz (shimmer) */
.btn-primary {
  background: var(--dorado);
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(201, 162, 75, 0.18);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out-expo);
  pointer-events: none;
}

.btn-primary:hover {
  background: var(--dorado2);
  border-color: transparent;
  color: var(--noche);
  transform: none;
  box-shadow: 0 4px 16px rgba(201, 162, 75, 0.28);
}

.btn-primary:hover::before {
  left: 130%;
}

/* Secondary: deja de ser botón -> link con subrayado animado */
.btn-secondary {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0.35rem 0;
  color: var(--dorado);
}

.btn-secondary::after {
  content: '';
  left: 0;
  top: auto;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--dorado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo);
}

.btn-secondary:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--dorado2);
  transform: none;
}

.btn-secondary:hover>span {
  transform: none;
}

.btn-secondary:hover::after {
  transform: scaleX(1);
}

/* Focus visible accesible */
.btn-pill:focus-visible {
  outline: 2px solid var(--dorado2);
  outline-offset: 3px;
}

/* Reduced motion: estados estáticos, sin swap ni shimmer */
@media (prefers-reduced-motion: reduce) {
  .btn-pill::after {
    display: none;
  }

  .btn-pill:hover>span {
    transform: none;
  }

  .btn-primary::before {
    display: none;
  }

  .btn-secondary::after {
    display: block;
    transform: scaleX(1);
  }
}

/* --------------------------------------------------------------------------
   23. MATERIAL (Fase 3) + CTA STICKY MOBILE (Fase 4)
   - Escala de radios consistente: 8px inputs / 12px botones / 16px tarjetas
   - Textura noise sutil sobre toda la página (mata el "plástico liso")
   - Focus ring moderno en inputs (outline offset, adiós glow)
   - CTA sticky abajo en mobile (se oculta al llegar a Contacto)
   -------------------------------------------------------------------------- */
:root {
  --radius-md: 16px;
}

/* Noise texture: SVG inline con feTurbulence, ~4.5% de opacidad */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Focus ring moderno en formularios */
.form-input:focus,
.form-textarea:focus {
  box-shadow: none;
  outline: 2px solid var(--dorado);
  outline-offset: 2px;
}

/* CTA sticky mobile */
.sticky-mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: inline-flex;
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 997;
    justify-content: center;
    transform: translateY(calc(100% + 2.5rem));
    transition: transform 0.45s var(--ease-out-expo);
    box-shadow: 0 8px 24px rgba(6, 15, 32, 0.55);
  }

  .sticky-mobile-cta.visible {
    transform: translateY(0);
  }

  /* El botón de scroll-to-top sube para no chocar con el CTA */
  .scroll-top-btn {
    bottom: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-mobile-cta {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   24. PERFORMANCE (mobile): eliminar trabajo de composición por frame
   - body::after noise fijo: obliga a re-mezclar toda la pantalla cada frame
     → en mobile se desactiva (en desktop el costo es despreciable)
   - backdrop-filter blur en navbar y brand-cards: repinta el fondo difuminado
     en cada frame de scroll → en mobile se reemplaza por fondos sólidos
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body::after {
    display: none;
  }

  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(6, 15, 32, 0.88);
  }

  .brand-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(135deg, rgba(27, 51, 88, 0.94) 0%, rgba(10, 24, 48, 0.96) 100%);
  }
}
