/* ============================================================
   HOLOS — Global Stylesheet
   Fonts: Fraunces (headings) + DM Sans (body/UI)
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --navy:         #071b4a;
  --navy-dark:    #040e2e;
  --navy-mid:     #0c2258;
  --lime:         #c2f970;
  --lime-dark:    #a3e050;
  --coral:        #ce2d4f;
  --white:        #ffffff;
  --off-white:    #f5f4ef;
  --gray-100:     #f0f0ea;
  --gray-400:     #9ca3af;
  --gray-600:     #6b7280;

  /* Glass */
  --glass-light-bg:     rgba(255, 255, 255, 0.72);
  --glass-light-border: rgba(7, 27, 74, 0.12);
  --glass-dark-bg:      rgba(255, 255, 255, 0.055);
  --glass-dark-border:  rgba(255, 255, 255, 0.09);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Layout */
  --container:    1200px;
  --radius-sm:    12px;
  --radius-md:    20px;
  --radius-lg:    28px;

  /* Transitions */
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --dur:          0.38s;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--navy);
  overflow-x: clip;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ============================================================
   3. TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.display-italic {
  font-style: italic;
  font-weight: 300;
}

p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-600);
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.75;
}

/* Label / eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime-dark);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.eyebrow.light { color: var(--lime); }

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 92%;
  max-width: var(--container);
  margin-inline: auto;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.two-col.gap-lg { gap: 7rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-lime   { color: var(--lime); }
.text-coral  { color: var(--coral); }
.text-muted  { color: rgba(255,255,255,0.6); }

/* ============================================================
   5. SECTION PATTERNS
   ============================================================ */
.section {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
}

.section-light {
  background: var(--off-white);
}

.section-white {
  background: var(--white);
}

.section-navy {
  background: var(--navy);
}

/* Section header with eyebrow */
.section-header {
  margin-bottom: 4rem;
}

.section-header h2 { margin-bottom: 1rem; }

.section-header.centered {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-header.centered .eyebrow { justify-content: center; }
.section-header.centered .eyebrow::before { display: none; }

/* Navy top border decoration */
.section-navy { border-top: 3px solid var(--lime); }

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
}
.btn-primary:hover {
  background: var(--lime-dark);
  border-color: var(--lime-dark);
  box-shadow: 0 12px 28px rgba(194, 249, 112, 0.4);
}

.btn-outlined {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outlined:hover {
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: none;
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover {
  box-shadow: 0 12px 28px rgba(7, 27, 74, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--lime);
  border-color: var(--lime);
}
.btn-ghost:hover {
  background: var(--lime);
  color: var(--navy);
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  transition: gap var(--dur) var(--ease);
}
.arrow-link:hover { gap: 0.85rem; }
.arrow-link.dark { color: var(--navy); }

/* ============================================================
   7. GLASS CARD
   ============================================================ */
.glass {
  background: var(--glass-light-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-light-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(7, 27, 74, 0.07);
}

.glass-dark {
  background: var(--glass-dark-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.glass-hover {
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.glass-hover:hover {
  transform: translateY(-6px);
}

/* ============================================================
   8. NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  padding: 1.4rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--dur) var(--ease),
              padding var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.navbar.scrolled {
  background: rgba(7, 27, 74, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 4%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
}

/* Logo */
.nav-logo {
  overflow: visible;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 80px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  background: transparent !important;
}

/* Dual-logo swap: logo-light (sin_fondo_azul) shown by default on dark bg */
/* logo-dark (Logo_Final_HOLOS_copia) shown when scrolled */
.nav-logo .logo-dark  { display: none !important; }
.nav-logo .logo-light { display: block !important; }
.navbar.scrolled .nav-logo .logo-light { display: none !important; }
.navbar.scrolled .nav-logo .logo-dark  { display: block !important; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  transition: color var(--dur) var(--ease);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--white); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown > a svg {
  width: 12px;
  height: 12px;
  transition: transform var(--dur) var(--ease);
}

.nav-dropdown:hover > a svg,
.nav-dropdown:focus-within > a svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  transform: translateX(-50%) translateY(-8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

/* Invisible bridge above dropdown — mouse won't fall through the gap */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 12px;
  background: transparent;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* JS-controlled open class (with delay timer) */
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.4rem;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.75);
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
  background: rgba(194,249,112,0.08);
  color: var(--lime);
}
.dropdown-menu a::after { display: none; }

/* CTA button in nav */
.nav-cta {
  background: var(--lime);
  color: var(--navy) !important;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-weight: 700 !important;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(194,249,112,0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 850;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 6rem 2rem 2rem;
}
.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--dur) var(--ease);
}
.mobile-nav a:hover { color: var(--lime); }

/* Mobile dropdown links */
.mobile-nav .mobile-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-top: -0.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.8rem;
  width: 100%;
}
.mobile-nav .mobile-sub a {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
}
.mobile-nav .mobile-sub a:hover { color: var(--lime); }

/* ============================================================
   9. HERO (HOME — full viewport)
   ============================================================ */
.hero {
  position: relative;
  z-index: 1;
  height: 100svh;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-left {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 5% 5rem 6%;
  background: var(--navy);
}

/* Subtle grid texture on left */
.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(194,249,112,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Gradient fade from photo to navy */
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--navy) 0%,
    rgba(7,27,74,0.15) 30%,
    rgba(7,27,74,0) 100%
  );
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(194,249,112,0.1);
  border: 1px solid rgba(194,249,112,0.25);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.6rem;
  width: fit-content;
}

.hero-pill .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(3rem, 5.5vw, 5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-title em {
  font-style: italic;
  color: var(--lime);
  font-weight: 300;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.68);
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 2.5rem;
  left: 6%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.scroll-down span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  animation: scroll-anim 2.5s ease-in-out infinite;
}

@keyframes scroll-anim {
  0%,100% { transform: scaleY(1); transform-origin: top; }
  50%      { transform: scaleY(0.4); transform-origin: bottom; }
}

/* ============================================================
   10. INTERIOR PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 50%, rgba(194,249,112,0.04) 0%, transparent 60%),
                    radial-gradient(circle at 70% 30%, rgba(206,45,79,0.03) 0%, transparent 50%);
}

.page-hero h1 {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.page-hero .lead {
  color: rgba(255,255,255,0.65);
  max-width: 600px;
  margin: 1rem auto 0;
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb span { color: rgba(255,255,255,0.3); }

/* Service badge */
.service-badge {
  display: inline-block;
  background: rgba(194,249,112,0.12);
  border: 1px solid rgba(194,249,112,0.3);
  color: var(--lime);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

/* ============================================================
   11. VALUE PROPS (home section 2)
   ============================================================ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.value-card .card-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.value-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.8rem;
  color: var(--navy);
}

.value-card p { color: var(--gray-600); font-size: 0.95rem; }

/* ============================================================
   12. SERVICE CARDS (home section 3)
   ============================================================ */
/* Services grid: 4 cards, one row on desktop */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.service-card {
  background: var(--glass-dark-bg);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  cursor: pointer;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--lime-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.075);
  border-color: rgba(194,249,112,0.2);
}
.service-card:hover::after { transform: scaleX(1); }

.service-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 1.4rem;
  display: block;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 0.7rem;
}

.service-card .card-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ============================================================
   13. ABOUT / SPLIT LAYOUT (home section 4)
   ============================================================ */
.about-img-wrap {
  position: relative;
}

.about-img-main {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* Nosotros section: photo matches text column height */
#nosotros .two-col       { align-items: stretch; }
#nosotros .about-img-wrap { display: flex; flex-direction: column; }
#nosotros .about-img-main {
  aspect-ratio: unset;
  flex: 1;
  min-height: 400px;
  height: 100%;
}

.about-stats-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(7,27,74,0.1);
}

.stat-item {}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ============================================================
   14. METHODOLOGY 360 (home section 5)
   ============================================================ */
.method-header {
  text-align: center;
  margin-bottom: 4.5rem;
}

.method-big {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 900;
  font-style: italic;
  color: var(--lime);
  line-height: 0.85;
  display: block;
  margin-top: 0.2rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.method-card {
  background: linear-gradient(135deg, #c2f970, #8fb800);
  border: none;
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              filter 0.3s ease,
              opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.method-card:hover {
  transform: translateY(-14px) scale(1.05) rotate(-0.5deg) !important;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35), 0 0 0 3px #c2f970 !important;
  filter: brightness(1.08);
  z-index: 10;
  position: relative;
}
.method-card:hover .method-num {
  opacity: 0.35;
  transform: scale(1.15) translateX(5px);
  transition: all 0.3s ease;
}
.method-card:hover h3 {
  letter-spacing: 0.02em;
  transition: letter-spacing 0.3s ease;
}

/* Large decorative number — top-left */
.method-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(0,0,0,0.13);
  line-height: 1;
  position: absolute;
  top: -5px;
  left: 10px;
  pointer-events: none;
}

/* Small numbered badge — top-right */
.method-step-num {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0;
}

.method-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.6rem;
  margin-top: 2.5rem; /* space below the large number */
}

.method-card p {
  font-size: 0.82rem;
  color: var(--navy);
  opacity: 0.75;
  line-height: 1.65;
}

/* Method cards: bouncy reveal animation */
.method-card.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.method-card.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ============================================================
   15. MARQUEE / LOGO STRIP
   ============================================================ */
.marquee-section {
  padding: 4.5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.marquee-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 2.5rem;
}

.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track img {
  height: 110px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(1) opacity(0.5);
  transition: filter 0.4s;
}

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

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

/* ============================================================
   16. CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: 7rem 0 80px;
  background: var(--navy);
  position: relative;
  z-index: 1;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { color: var(--white); margin-bottom: 1rem; }
.contact-info .lead { color: rgba(255,255,255,0.62); margin-bottom: 2.5rem; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(194,249,112,0.08);
  border: 1px solid rgba(194,249,112,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item a,
.contact-item span {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--lime); }

/* Form box */
.form-box {
  background: var(--glass-dark-bg);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.25s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(194,249,112,0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.22);
}

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

/* Honeypot */
.form-honeypot { display: none !important; }

.btn-submit {
  width: 100%;
  background: var(--lime);
  color: var(--navy);
  border: none;
  padding: 1rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(194,249,112,0.4);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-msg {
  display: none;
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  margin-top: 0.8rem;
}
.form-msg.success { color: var(--lime); background: rgba(194,249,112,0.08); }
.form-msg.error   { color: var(--coral); background: rgba(206,45,79,0.08); }

/* ============================================================
   17. FOOTER
   ============================================================ */
footer {
  background: #ffffff;
  border-top: 3px solid var(--lime);
  padding: 4.5rem 0 2rem;
  position: relative;
  z-index: 1;
}

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

.footer-logo img {
  height: 120px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
  overflow: visible;
  background: transparent !important;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(7,27,74,0.6);
  line-height: 1.7;
  max-width: 240px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(7,27,74,0.6);
  transition: color 0.2s, text-decoration 0.2s;
}
.footer-links a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.85rem;
  color: rgba(7,27,74,0.6);
}

.footer-contact-item a { color: rgba(7,27,74,0.6); transition: color 0.2s; }
.footer-contact-item a:hover { color: var(--navy); text-decoration: underline; }

/* Social icons */
.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(7,27,74,0.07);
  border: 1px solid rgba(7,27,74,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.social-icon svg { width: 16px; height: 16px; }
.social-icon:hover {
  background: var(--lime);
  color: var(--navy);
  border-color: var(--lime);
  transform: translateY(-3px);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(7,27,74,0.08);
  padding-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: #666666;
}

/* ============================================================
   18. WHATSAPP BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(37,211,102,0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: wa-pulse 3s ease-in-out infinite;
}

.wa-float svg { width: 28px; height: 28px; fill: white; }

.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 30px rgba(37,211,102,0.55);
  animation: none;
}

@keyframes wa-pulse {
  0%,100% { box-shadow: 0 6px 22px rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 6px 22px rgba(37,211,102,0.45), 0 0 0 12px rgba(37,211,102,0.08); }
}

/* ============================================================
   19. SERVICE PAGE SECTIONS
   ============================================================ */

/* Intro two-col */
.service-intro { padding: 6rem 0; background: var(--off-white); }

.service-img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
  aspect-ratio: 4/5;
}

.service-icon-large {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto;
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.benefit-card {
  background: var(--glass-dark-bg);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.8rem;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.benefit-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.07);
}

.benefit-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.benefit-card h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.benefit-card p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.65;
}

/* Audience section — sticky image + scroll items */
.audience-section {
  background: var(--off-white);
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.audience-section > .container > .eyebrow,
.audience-section > .container > h2 {
  margin-bottom: 0.5rem;
}

.audience-sticky-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 4rem;
}

.audience-image-col {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.audience-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: 0 24px 60px rgba(7,27,74,0.2);
}

.audience-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.audience-img.active { opacity: 1; }

.audience-scroll-col { }

.audience-item {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  border-bottom: 1px solid rgba(7,27,74,0.1);
}
.audience-item:last-child { border-bottom: none; }

.audience-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--lime-dark);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.audience-item h3 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.15;
  font-family: var(--font-display);
}

.audience-item p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 20px;
}

.audience-item ul {
  list-style: none;
  padding: 0;
}
.audience-item ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
}
.audience-item ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--lime-dark);
  font-weight: 700;
}

/* Chip fallback (kept for backward compat but hidden in new layout) */
.audience-chips { display: none; }
.chip {
  background: var(--white);
  border: 1.5px solid rgba(7,27,74,0.1);
  border-radius: 50px;
  padding: 0.65rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

/* Process steps */
.process-section { padding: 6rem 0; background: var(--navy); }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}

.process-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.process-step:last-child { border-bottom: none; }

.step-num-large {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  font-style: italic;
  color: var(--lime);
  line-height: 1;
  text-align: center;
}

.process-step h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
  background: var(--lime);
  padding: 5rem 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 2rem;
}

/* ============================================================
   20. NOSOTROS PAGE SPECIFIC
   ============================================================ */
.what-we-do { padding: 6rem 0; background: var(--navy); }

.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.service-chip {
  background: rgba(194,249,112,0.1);
  border: 1px solid rgba(194,249,112,0.2);
  color: var(--lime);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.2s;
}
.service-chip:hover {
  background: rgba(194,249,112,0.18);
}

/* ============================================================
   21. REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s var(--ease),
              transform 0.75s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================================
   22. RESPONSIVE
   ============================================================ */

/* === 1024px breakpoint === */
@media (max-width: 1024px) {
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === 768px breakpoint === */
@media (max-width: 768px) {
  h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }

  .section { padding: 5rem 0; }

  /* Navbar */
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-logo img { height: 120px; max-width: 160px; }

  /* Hero — stack vertically */
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100svh;
  }
  .hero-left {
    padding: 7rem 6% 4rem;
    order: 1;
  }
  .hero-right {
    height: 40vh;
    order: 0;
  }
  .hero-right::before {
    background: linear-gradient(to bottom, rgba(7,27,74,0) 50%, var(--navy) 100%);
  }

  /* Two-col → single */
  .two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .two-col.reverse-mobile > *:first-child { order: 2; }
  .two-col.reverse-mobile > *:last-child  { order: 1; }

  /* Contact */
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .form-row { grid-template-columns: 1fr; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .value-grid    { grid-template-columns: 1fr; }

  /* Method */
  .method-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid > *:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Process */
  .process-step { grid-template-columns: 40px 1fr; }

  /* Benefits */
  .benefits-grid { grid-template-columns: 1fr; }

  /* About stats */
  .about-stats-row { flex-wrap: wrap; gap: 1.5rem; }

  /* CTA banner */
  .cta-banner { padding: 4rem 0; }

  /* Audience sticky layout */
  .audience-sticky-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .audience-image-col { display: none; }
  .audience-item { min-height: auto; padding: 40px 0; }
  .audience-number { font-size: 3rem; }
  .audience-item h3 { font-size: 1.5rem; }

  /* Scroll down */
  .scroll-down { display: none; }
}

/* === 480px breakpoint === */
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
  .form-box { padding: 2rem 1.4rem; }
  .wa-float { bottom: 1.2rem; right: 1.2rem; }
  .benefits-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME PAGE — sticky footer reveal (index.html only)
   ============================================================ */
body.home-page .main-wrapper {
  position: relative;
  z-index: 2;
  background: inherit;
}

body.home-page footer {
  position: sticky;
  bottom: 0;
  z-index: 1;
}

/* ============================================================
   METODOLOGÍA — animación dramática de entrada
   ============================================================ */
.method-card {
  /* Override: start hidden for animation — JS adds .animated */
}

/* Cards start hidden, JS observer adds .animated with stagger */
.method-card.animate-ready {
  opacity: 0;
  transform: translateY(60px) scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.method-card.animate-ready.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}
