/* ============================================================
   PEPAL CONSULTING – styles.css
   Colores: Azul #06173f | Naranja #ff3800
   Fuente: Nunito
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --blue:      #002855;
  --blue-dark: #06173f;
  --orange:    #ff3800;
  --white:     #ffffff;
  --offwhite:  #f4f4f0;
  --text-dark: #1a1a2e;
  --text-mid:  #444455;
  --text-light: rgba(255,255,255,0.75);
  --radius:    0;
  --shadow:    0 4px 24px rgba(0,40,85,0.10);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Scroll offset (navbar fija) ---------- */
section[id], div[id] {
  scroll-margin-top: 80px;
}

/* ---------- Shared section elements ---------- */
.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 48px;
}

.section-title.dark  { color: var(--blue-dark); }
.section-title.light { color: var(--white); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0,40,85,0.08);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 115px;
}

.navbar__logo img {
  height: 100px;
  width: auto;
}

.navbar__nav {
  display: flex;
  gap: 36px;
}

.navbar__nav a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  transition: color var(--transition);
}

.navbar__nav a:hover {
  color: var(--orange);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background-color: var(--blue-dark);
  background-image:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(227,82,5,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(255,255,255,0.03) 0%, transparent 60%);
  padding: 110px 0 100px;
  text-align: center;
}

.hero__content {
  max-width: 780px;
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 28px;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
}

.btn--primary:hover {
  background: #c44804;
  border-color: #c44804;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--orange);
  padding: 36px 0;
  transition: transform var(--transition);
}

.stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
}

.stats-bar__number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.stats-bar__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
}

.stats-bar__divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--offwhite);
  padding: 96px 0;
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text .section-title {
  margin-bottom: 24px;
}

.about__body {
  color: var(--text-mid);
  font-size: 1rem;
  margin-bottom: 16px;
  text-align: justify;
}

.about__body strong {
  color: var(--blue-dark);
  font-weight: 700;
}

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

.about__quote blockquote {
  border-left: 4px solid var(--orange);
  padding: 20px 28px;
  background: var(--white);
  border-radius: 0;
  box-shadow: var(--shadow);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.4;
  font-style: italic;
  border-left: none;
  border-right: 2px solid var(--orange);  /* borde derecho completo */
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.about__quote blockquote:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,40,85,0.14);
}

.about__quote blockquote::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90%;       /* dos tercios desde la derecha */
  height: 2px;
  background: var(--orange);
}

.about__quote blockquote::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 90%;       /* dos tercios desde la derecha */
  height: 2px;
  background: var(--orange);
}

/*
.about__quote blockquote {
  border-left: 4px solid var(--orange);
  padding: 20px 28px;
  background: var(--white);
  border-radius: 0;
  box-shadow: var(--shadow);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.4;
  font-style: italic;
}
*/

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  background: var(--white);
  padding: 96px 0;
  text-align: center;
}

.services .section-title {
  margin-bottom: 56px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: left;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(0,40,85,0.12);
  border-top: 4px solid var(--blue-dark);
  border-radius: 0;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,40,85,0.14);
}

.service-card--featured {
  border-top-color: var(--orange);
}

.service-card__number {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(0,40,85,0.10);
  line-height: 1;
  margin-bottom: 16px;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: justify;
}

.service-card__list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.88rem;
  color: var(--text-mid);
  margin-bottom: 8px;
  line-height: 1.5;
  text-align: justify;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   VALUE PROPOSITION
   ============================================================ */
.value {
  background-color: var(--blue-dark);
  background-image:
    radial-gradient(ellipse 70% 60% at 20% 30%, rgba(227,82,5,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 80%, rgba(255,255,255,0.03) 0%, transparent 55%);
  padding: 96px 0;
  text-align: center;
}

.value .section-title {
  margin-bottom: 56px;
}

.value__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.value-card {
  background: rgba(255,255,255,0.06);
  border: 2px solid var(--orange);
  border-left: none;
  border-radius: 0;
  padding: 32px 24px;
  transition: background var(--transition), transform var(--transition);
}

.value-card:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-4px);
}

.value-card__accent {
  width: 28px;
  height: 3px;
  background: var(--orange);
  border-radius: 0;
  margin-bottom: 20px;
}

.value-card__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.value-card__desc {
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.6;
  text-align: justify;
}

/* ============================================================
   SECTION SEPARATOR
   ============================================================ */
.section-separator {
  height: 4px;
  background: var(--orange);
  width: 100%;
}

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta {
  background: var(--blue-dark);
  padding: 96px 0;
  text-align: center;
}

.cta__inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta__logo {
  height: 100px;
  width: auto;
  margin: 0 auto 36px;
  display: block;
}

.cta__lines {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 16px;
  /* flex-wrap: wrap; */
  margin-bottom: 40px;
}

.cta__line1 {
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0;
  white-space: nowrap;
}

.cta__line2 {
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 0;
  white-space: nowrap;
}

/*
.cta__line1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0;
}

.cta__line2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 0;
}
*/

.cta__sub {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-bottom: 12px;
}

.cta__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 4px;
  transition: color var(--transition), border-color var(--transition);
}

.cta__email:hover {
  color: var(--orange);
}

.cta__icon {
  height: 22px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.cta__linkedin a {
  display: inline-block;
  transition: opacity var(--transition), transform var(--transition);
}

.cta__linkedin a:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.cta__linkedin-icon {
  height: 36px;
  width: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--blue-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
}

.footer__inner p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.40);
}

.footer__sep {
  margin: 0 10px;
  color: rgba(255,255,255,0.20);
}

.footer__link {
  color: rgba(255,255,255,0.40);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--orange);
}

/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 0;
  transition: background var(--transition);
}

.navbar__toggle:hover {
  background: rgba(0,40,85,0.06);
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--blue-dark);
  border-radius: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animated X when open */
.navbar__toggle.is-open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.navbar__toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.navbar__toggle.is-open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile dropdown nav */
.navbar__nav.is-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid rgba(0,40,85,0.08);
  border-bottom: 3px solid var(--orange);
  padding: 20px 24px 28px;
  gap: 4px;
  box-shadow: 0 12px 32px rgba(0,40,85,0.12);
  z-index: 99;
  animation: slideDown 0.2s ease;
}

.navbar__nav.is-open a {
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 0;
  transition: background var(--transition), color var(--transition);
}

.navbar__nav.is-open a:hover {
  background: rgba(0,40,85,0.05);
  color: var(--orange);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 860px) {
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__quote blockquote {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  /* Hamburger visible, nav hidden by default */
  .navbar__toggle {
    display: flex;
  }

  .navbar__nav {
    display: none;
  }

  /* Navbar más compacto */
  .navbar {
    position: sticky;
    top: 0;
  }

  .navbar__inner {
    height: 72px;
    position: relative;
  }

  .navbar__logo img {
    height: 52px;
  }

  /* Padding lateral reducido en móvil */
  .container {
    padding: 0 18px;
  }

  /* Secciones con menos padding vertical */
  .hero {
    padding: 64px 0 56px;
  }

  .about,
  .services,
  .value,
  .cta {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .cta__lines {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
}

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

  .stats-bar__inner {
    flex-direction: column;
    gap: 28px;
  }

  .stats-bar__divider {
    width: 60px;
    height: 1px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero__subtitle {
    font-size: 0.97rem;
  }

  .about,
  .services,
  .value,
  .cta {
    padding: 52px 0;
  }

  /* Botones apilados en hero */
  .hero__cta {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}
