/* ============================================================
   home2.css — Estilos del rediseño (hero, fbar2, pubsec)
   Fuente: Century Gothic (brand font)
   Naranja: #FF8F00
   Complementa home.css sin modificarlo
   ============================================================ */

/* ============================================================
   HERO 2 — Split layout: texto izquierda / foto derecha
   ============================================================ */
.hero2 {
  position: relative;
  height: 82vh;
  min-height: 520px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Full-bleed background photo */
.hero2-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

/* Gradient: strong dark on the left, fades to transparent on right */
.hero2-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14, 24, 50, 0.88) 0%,
    rgba(14, 24, 50, 0.78) 30%,
    rgba(14, 24, 50, 0.45) 58%,
    rgba(14, 24, 50, 0.10) 100%
  );
}

/* Content block on the left */
.hero2-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  padding-top: 72px; /* header height */
}

.hero2-title {
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 540px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.hero2-divider {
  width: 52px;
  height: 3px;
  background: #FF8F00;
  border-radius: 2px;
  margin-bottom: 22px;
}

.hero2-lead {
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: clamp(0.88rem, 1.4vw, 1.02rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  max-width: 440px;
}

/* ============================================================
   FEATURE BAR 2 — White background, orange circle icons
   ============================================================ */
.fbar2 {
  background: #ffffff;
  border-bottom: 1px solid #ece8e2;
  padding: 0;
}

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

.fbar2-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 32px 28px;
  border-right: 1px solid #ece8e2;
}

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

/* Orange circle icon */
.fbar2-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 143, 0, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF8F00;
}

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

.fbar2-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fbar2-text strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: #162040;
  line-height: 1.3;
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
}

.fbar2-text span {
  font-size: 0.80rem;
  color: #6b7280;
  line-height: 1.55;
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
}

/* ============================================================
   PUBLISHERS SECTION — Carousel with logos
   ============================================================ */
.pubsec {
  background: #f9f7f4;
  padding: 64px 0 48px;
}

.pubsec-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.pubsec-title {
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #162040;
  text-align: center;
  margin-bottom: 14px;
}

.pubsec-divider {
  width: 48px;
  height: 3px;
  background: #FF8F00;
  border-radius: 2px;
  margin: 0 auto 40px;
}

/* Carousel wrapper: clips the sliding track */
.pub-carousel-wrap {
  overflow: hidden;
  position: relative;
}

.pub-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pub-slide {
  min-width: 100%;
}

/* 7-column logo grid (6 logos + 1 CTA card) */
.pub-logo-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border: 1px solid #e4e0db;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* Individual logo card */
.pub-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  min-height: 100px;
  border-right: 1px solid #e4e0db;
  gap: 6px;
  position: relative;
  transition: background 0.2s;
}

.pub-logo-card:last-child {
  border-right: none;
}

.pub-logo-card:not(.pub-logo-card--cta):hover {
  background: #fdf5ef;
}

.pub-logo-card img {
  max-height: 36px;
  max-width: 110px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}

.pub-logo-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Fallback text name */
.pub-name {
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: #444;
  text-align: center;
  line-height: 1.25;
  letter-spacing: 0.3px;
}

.pub-name--fallback {
  display: none; /* hidden by default; JS or onerror shows it */
}

.pub-name small {
  font-weight: 400;
  font-size: 0.65rem;
  display: block;
}

/* CTA card (last column) */
.pub-logo-card--cta {
  background: #f5f0ea;
  cursor: pointer;
  transition: background 0.2s;
}

.pub-logo-card--cta:hover {
  background: #ebe4da;
}

.pub-cta-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #162040;
  text-align: center;
  line-height: 1.35;
  text-decoration: none;
  padding: 12px 8px;
}

.pub-cta-link:hover {
  color: #FF8F00;
}

.pub-cta-arrow {
  font-size: 1.2rem;
  color: #FF8F00;
}

/* Carousel dots */
.pub-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pub-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #c9c4bc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.pub-dot--active {
  background: #FF8F00;
  transform: scale(1.2);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pub-logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .pub-logo-card:nth-child(4) { border-right: none; }
  .pub-logo-card:nth-child(5),
  .pub-logo-card:nth-child(6),
  .pub-logo-card--cta {
    border-top: 1px solid #e4e0db;
  }
}

@media (max-width: 900px) {
  .fbar2-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .fbar2-item:nth-child(2) { border-right: none; }
  .fbar2-item:nth-child(3),
  .fbar2-item:nth-child(4) {
    border-top: 1px solid #ece8e2;
  }

  .hero2-title { font-size: 2.2rem; }
}

@media (max-width: 640px) {
  .hero2 {
    height: 75vh;
    min-height: 460px;
  }

  .hero2-overlay {
    background: rgba(14, 24, 50, 0.75);
  }

  .hero2-content {
    padding: 0 24px;
    padding-top: 72px;
  }

  .hero2-title {
    font-size: 2rem;
    max-width: 100%;
  }

  .hero2-lead { max-width: 100%; }

  .fbar2-inner {
    grid-template-columns: 1fr;
  }
  .fbar2-item {
    border-right: none;
    border-bottom: 1px solid #ece8e2;
    padding: 20px 24px;
  }
  .fbar2-item:last-child { border-bottom: none; }

  .pub-logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pub-logo-card { border-right: 1px solid #e4e0db; }
  .pub-logo-card:nth-child(even) { border-right: none; }
  .pub-logo-card:nth-child(n+3) { border-top: 1px solid #e4e0db; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 16px 0;
  }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; padding: 0 20px; gap: 4px; }
  .nav-list li > a { color: var(--navy) !important; display: block; width: 100%; }
}

/* ============================================================
   QUIÉNES SOMOS — Bloque centrado con puntos decorativos
   ============================================================ */
.about-home {
  position: relative;
  background: #ffffff;
  padding: 96px 28px 88px;
  text-align: center;
  overflow: hidden;
}

.about-home-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.about-home-title {
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 700;
  color: #162040;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.about-home-divider {
  width: 48px;
  height: 3px;
  background: #FF8F00;
  border-radius: 2px;
  margin: 0 auto 24px;
}

.about-home-text {
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: 1.0625rem; /* 17px */
  color: #444;
  line-height: 1.85;
}

.about-home-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 32px;
  padding: 14px 28px;
  background: #F37021;
  color: #ffffff !important;
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 8px;
  border: 1px solid #F37021;
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.about-home-cta:hover {
  background: #d8560e;
  border-color: #d8560e;
  transform: translateY(-1px);
}

/* Decorative dot patterns on both sides — same vibe as "Nuestro Enfoque" */
.about-home-dots {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 220px;
  background-image: radial-gradient(circle, #FF8F00 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.18;
  z-index: 1;
  pointer-events: none;
}

.about-home-dots--left  { left: -20px; }
.about-home-dots--right { right: -20px; }

/* Tablet */
@media (max-width: 900px) {
  .about-home-dots { width: 120px; height: 160px; opacity: 0.14; }
}

/* Mobile */
@media (max-width: 600px) {
  .about-home {
    padding: 64px 22px;
  }
  .about-home-title {
    font-size: clamp(1.75rem, 6.5vw, 2.1rem);
  }
  .about-home-text {
    font-size: 1rem; /* 16px */
    line-height: 1.8;
  }
  .about-home-cta {
    width: 100%;
    justify-content: center;
    margin-top: 28px;
  }
  .about-home-dots { display: none; }
}

/* ============================================================
   NUESTRO ENFOQUE — Bloque centrado, fondo crema, puntos laterales
   ============================================================ */
.approach-home {
  position: relative;
  background: #F5F0EA; /* cream — sutil cambio respecto al bloque Quiénes Somos */
  padding: 100px 28px 80px;
  text-align: center;
  overflow: hidden;
}

.approach-home-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.approach-home-title {
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: clamp(2.2rem, 3.8vw, 2.75rem); /* 35–44px */
  font-weight: 700;
  color: #1B2A41;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.approach-home-divider {
  width: 48px;
  height: 3px;
  background: #FF8F00;
  border-radius: 2px;
  margin: 0 auto 24px;
}

.approach-home-text {
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: 1.0625rem; /* 17px */
  color: #3a3f4a; /* gris oscuro */
  line-height: 1.85;
}

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

/* Decorative dot patterns — naranja muy claro, baja opacidad */
.approach-home-dots {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 220px;
  background-image: radial-gradient(circle, #FF8F00 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: 0.14;
  z-index: 1;
  pointer-events: none;
}

.approach-home-dots--left  { left: -20px; }
.approach-home-dots--right { right: -20px; }

/* Tablet */
@media (max-width: 900px) {
  .approach-home-dots { width: 120px; height: 160px; opacity: 0.12; }
}

/* Mobile */
@media (max-width: 600px) {
  .approach-home {
    padding: 64px 22px;
  }
  .approach-home-title {
    font-size: clamp(1.85rem, 6.8vw, 2.2rem);
  }
  .approach-home-text {
    font-size: 1rem; /* 16px */
    line-height: 1.8;
  }
  .approach-home-dots { display: none; }
}

/* ============================================================
   CÓMO LO HACEMOS POSIBLE — Mismo contenedor centrado + 5 pilares
   ============================================================ */
.howto-home {
  position: relative;
  background: #ffffff;
  padding: 100px 28px 96px;
  text-align: center;
  overflow: hidden;
}

.howto-home-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

/* Top icon — orange line inside circle, mismo estilo que la marca */
.howto-home-topicon {
  width: 64px;
  height: 64px;
  border: 2px solid #FF8F00;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FF8F00;
  margin-bottom: 22px;
}

.howto-home-topicon svg {
  width: 30px;
  height: 30px;
}

.howto-home-title {
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.4rem); /* 32–38px — ligera reducción frente a Nuestro Enfoque */
  font-weight: 700;
  color: #1B2A41;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.howto-home-divider {
  width: 48px;
  height: 3px;
  background: #FF8F00;
  border-radius: 2px;
  margin: 0 auto 24px;
}

.howto-home-lead {
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: 1.0625rem; /* 17px */
  color: #3a3f4a;
  line-height: 1.85;
  max-width: 760px;
  margin: 0 auto;
}

/* 5-column pillar row */
.howto-home-pillars {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 32px;
  max-width: 1140px;
  margin: 64px auto 0;
}

.howto-pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 14px;
  gap: 10px;
}

/* Subtle vertical separator between columns */
.howto-pillar + .howto-pillar::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: #e4e0db;
}

.howto-pillar-icon {
  width: 60px;
  height: 60px;
  border: 2px solid #FF8F00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FF8F00;
  margin-bottom: 10px;
  flex-shrink: 0;
}

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

.howto-pillar strong {
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1B2A41;
  line-height: 1.35;
  margin-bottom: 4px;
}

.howto-pillar span {
  font-family: 'Century Gothic', 'CenturyGothic', 'AppleGothic', 'Trebuchet MS', sans-serif;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.55;
}

/* Tablet: 3 + 2 columns */
@media (max-width: 980px) {
  .howto-home-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 28px;
  }
  .howto-pillar + .howto-pillar::before { display: none; }
}

/* Mobile */
@media (max-width: 600px) {
  .howto-home {
    padding: 64px 22px;
  }
  .howto-home-title {
    font-size: clamp(1.75rem, 6.4vw, 2rem);
  }
  .howto-home-lead {
    font-size: 1rem;
    line-height: 1.8;
  }
  .howto-home-pillars {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 44px;
  }
  .howto-pillar {
    padding: 4px 6px;
  }
}
