/* ============================================================
   Catamount International – Home Stylesheet (home.css)
   Tipografía: Century Gothic (brand font)
   Paleta: Navy #162040 | Orange #FF8F00 | Cream #F5F0EA
   ============================================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #162040;
  --navy2:  #1e2d54;
  --orange: #FF8F00;
  --orange2: rgba(255,143,0,0);
  --cream:  #F5F0EA;
  --cream2: #EEE9E2;
  --dark:   #1a1a1a;
  --gray:   #6b7280;
  --white:  #ffffff;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
  --font: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0 40px;
}

.site-header.scrolled,
.site-header.site-header--solid {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
}

.logo-img {
  height: 44px;
  width: auto;
}

.logo-dark {
  display: block;
}

.logo-light {
  display: none;
}

/* Header states: when NOT scrolled and NOT solid (transparent header overlaying dark hero) */
.site-header:not(.scrolled):not(.site-header--solid) .logo-dark {
  display: none;
}

.site-header:not(.scrolled):not(.site-header--solid) .logo-light {
  display: block;
}

/* Nav list */
.site-nav {}
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list li > a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

/* When hero is visible, invert nav text to white */
.site-header:not(.scrolled):not(.site-header--solid) .nav-list li > a {
  color: var(--white);
}

.site-header:not(.scrolled):not(.site-header--solid) .nav-list li > a:hover {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.site-header.scrolled .nav-list li > a:hover,
.site-header.site-header--solid .nav-list li > a:hover {
  color: var(--orange);
}

/* Chevron */
.chevron {
  font-size: 0.9rem;
  vertical-align: middle;
  transition: transform 0.2s ease;
  display: inline-block;
}

/* ============================================================
   DROPDOWN MENU
   ============================================================ */
.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 270px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
  list-style: none;
  border: 1px solid rgba(22,32,64,0.08);
}

/* small triangle pointer */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--white);
  border-top: none;
  filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.06));
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.has-dropdown:hover > a .chevron {
  transform: rotate(180deg);
}

.dropdown-menu li a {
  display: block;
  padding: 11px 22px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--navy) !important;
  background: none !important;
  border-radius: 0;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: var(--cream) !important;
  color: var(--orange) !important;
  padding-left: 28px;
}

/* Language pill */
.nav-lang-item { margin-left: 8px; }

.lang-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 3px 4px;
  gap: 2px;
  backdrop-filter: blur(4px);
}

.site-header.scrolled .lang-pill,
.site-header.site-header--solid .lang-pill {
  background: #f0f0f0;
}

.lang-pill__opt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 16px;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.site-header.scrolled .lang-pill__opt,
.site-header.site-header--solid .lang-pill__opt {
  color: #888;
}

.lang-pill__opt--active,
.lang-pill__opt:hover {
  background: var(--white);
  color: var(--navy) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.site-header:not(.scrolled):not(.site-header--solid) .nav-toggle span {
  background: var(--white);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1.2;
}

.btn--primary {
  background: #F37021;
  color: var(--white);
  border-color: #F37021;
}

.btn--primary:hover {
  background: #d8560e;
  border-color: #d8560e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(243,112,33,0.35);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid #374151;
}

.btn--outline:hover {
  background: #f3f4f6;
  color: var(--navy);
  transform: translateY(-2px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroZoom 14s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22,32,64,0.35) 0%,
    rgba(22,32,64,0.55) 60%,
    rgba(22,32,64,0.80) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 140px 28px 60px;
}

.hero-title {
  font-family: var(--font);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  line-height: 1.4;
  margin-bottom: 24px;
}

.hero-divider {
  width: 56px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto 28px;
  border-radius: 2px;
}

.hero-lead {
  font-size: clamp(0.95rem, 1.5vw, 1.07rem);
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn--outline {
  color: var(--white);
  border-color: var(--white);
}

.hero-actions .btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}

/* ============================================================
   FEATURE BAR
   ============================================================ */
.feature-bar {
  background: var(--navy);
  padding: 28px 28px;
}

.feature-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 24px;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.feature-item:last-child { border-right: none; }

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: var(--orange);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feature-text strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.feature-text span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.45;
}

/* ============================================================
   SHARED SECTION ELEMENTS
   ============================================================ */
.section-icon-wrap {
  width: 64px;
  height: 64px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  color: var(--orange);
}

.section-icon-wrap svg {
  width: 28px;
  height: 28px;
}

.section-title {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-title--serif {
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  margin: 0 auto 28px;
  border-radius: 2px;
}

.section-divider--orange { background: var(--orange); }

.section-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
}

.section-text p + p { margin-top: 16px; }

/* ============================================================
   BLOCK SECTIONS (Nuestro Enfoque / Cómo lo hacemos posible)
   ============================================================ */
.block-section {
  position: relative;
  padding: 100px 28px 80px;
  text-align: center;
  background: var(--white);
  overflow: hidden;
}

.block-section--light {
  background: var(--cream);
}

.block-section-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

/* Dot patterns decorative */
.block-dots {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 220px;
  background-image: radial-gradient(circle, var(--orange) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.18;
  z-index: 1;
}

.block-dots--left  { left: -20px; }
.block-dots--right { right: -20px; }

/* ============================================================
   PILLAR ROW (5 items under "Cómo lo hacemos posible")
   ============================================================ */
.pillars-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 56px auto 0;
}

.pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid #ddd;
  gap: 10px;
}

.pillar:last-child { border-right: none; }

.pillar-icon {
  width: 56px;
  height: 56px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
  margin-bottom: 6px;
}

.pillar-icon svg {
  width: 24px;
  height: 24px;
}

.pillar strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.pillar span {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.5;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-section {
  padding: 110px 0;
  background: #F7F7F7;
}

.services-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.services-head .section-title--serif {
  margin-bottom: 18px;
}

.services-lead {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.svc-card2 {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 14px;
  padding: 44px 34px 36px;
  color: var(--dark);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  height: 100%;
}

.svc-card2:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(0,0,0,0.10);
  border-color: var(--orange);
}

.svc-card2__icon {
  width: 56px;
  height: 56px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 22px;
  flex-shrink: 0;
}

.svc-card2__icon svg {
  width: 24px;
  height: 24px;
}

.svc-card2__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.svc-card2__hook {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 14px;
}

.svc-card2__text {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 24px;
}

.svc-card2__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 8px;
  padding: 11px 18px;
  text-align: center;
  transition: background var(--transition), color var(--transition);
}

.svc-card2:hover .svc-card2__cta {
  background: var(--orange);
  color: var(--white);
}

/* ============================================================
   PUBLISHERS
   ============================================================ */
.publishers-section {
  padding: 100px 28px;
  background: var(--cream2);
  text-align: center;
}

.publishers-section .section-title--serif {
  margin-bottom: 18px;
}

.publishers-lead {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
}

/* ============================================================
   CTA SECTION (dark)
   ============================================================ */
.cta-section {
  position: relative;
  padding: 120px 28px 140px;
  background: #0d1730;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255,143,0,0.10), transparent 60%),
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(30,45,84,0.85), transparent 60%),
    linear-gradient(180deg, #0d1730 0%, #0a1228 100%);
  pointer-events: none;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.6;
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.cta-section .section-divider {
  margin-bottom: 28px;
}

.cta-lead {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
}

.cta-btn {
  padding: 16px 32px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.cta-btn:hover {
  box-shadow: 0 10px 30px rgba(255,143,0,0.45);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #111;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 28px;
}

.footer-logo {
  height: 40px;
  width: auto;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.social-link svg {
  width: 17px;
  height: 17px;
}

.social-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(232,99,26,0.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 18px 28px;
}

.footer-bottom span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .feature-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .feature-item:nth-child(odd) {
    border-right: 1px solid rgba(255,255,255,0.12);
  }

  .feature-item:last-child,
  .feature-item:nth-last-child(2) {
    border-bottom: none;
  }

  .pillars-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .pillar:nth-child(3) { border-right: none; }
  .pillar:nth-child(1),
  .pillar:nth-child(2),
  .pillar:nth-child(3) {
    border-bottom: 1px solid #ddd;
  }

  .svc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .site-header { padding: 0 20px; }

  .site-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--navy);
    padding: 90px 28px 40px;
    transition: right 0.35s ease;
    box-shadow: -8px 0 30px rgba(0,0,0,0.3);
  }

  .site-nav.is-open { right: 0; }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .nav-list li > a {
    color: var(--white) !important;
    font-size: 1rem;
    padding: 10px 0;
  }

  .nav-lang-item { margin-left: 0; margin-top: 16px; }

  .lang-pill {
    background: rgba(255,255,255,0.12) !important;
  }

  .lang-pill__opt {
    color: rgba(255,255,255,0.7) !important;
  }

  .nav-toggle { display: flex; }

  .feature-bar-inner {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .feature-item:last-child { border-bottom: none; }

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

  .pillar:nth-child(2n) { border-right: none; }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  /* Mobile dropdown */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.10);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 4px 0 8px 12px;
    margin-top: 4px;
    min-width: auto;
    width: 100%;
  }

  .dropdown-menu::before { display: none; }

  .has-dropdown.is-open > .dropdown-menu { display: block; }

  .has-dropdown.is-open > a .chevron { transform: rotate(180deg); }

  .dropdown-menu li a {
    color: rgba(255,255,255,0.85) !important;
    padding: 9px 12px;
    font-size: 0.9rem;
  }

  .dropdown-menu li a:hover {
    background: rgba(255,255,255,0.12) !important;
    color: var(--white) !important;
    padding-left: 18px;
  }
}

/* ===== NAV ACTIVE ===== */
.site-header.scrolled .nav-active,
.site-header.site-header--solid .nav-active {
  color: var(--orange) !important;
}
