/* =========================================================
   UNIUS CONSULTING — Website
   Paleta extraída del lienzo de diseño original
   ========================================================= */

:root {
  --navy-deepest: #081527;   /* fondo hero / contacto */
  --navy-dark:    #0B1B33;   /* fondo secciones oscuras */
  --navy-card:    #132A4D;   /* tarjetas servicios */
  --navy-card-2:  #17263F;
  --navy-line:    #22406B;   /* líneas / bordes sobre oscuro */
  --navy-card-alt:#3A4E70;   /* borde tarjetas servicios */
  --cream:        #F7F4EE;   /* fondo secciones claras */
  --cream-border: #D8D2C4;   /* líneas sobre claro */
  --gold:         #B8875A;   /* acento dorado principal */
  --gold-light:   #CB914B;   /* hover / detalle */
  --gold-pale:    #D9B382;   /* detalle claro dorado */
  --ink:          #161B22;   /* texto oscuro sobre claro */
  --gray-on-light:#6B7280;   /* texto secundario sobre claro */
  --gray-on-dark: #93A0B5;   /* texto secundario sobre oscuro */
  --white:        #FFFFFF;
  --e7:           #E7E9EE;

  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: Calibri, "Segoe UI", Candara, Optima, Verdana, Arial, sans-serif;

  --header-height: 84px;
  --header-height-mobile: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--navy-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }

.brand-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-btn {
  display: inline-block;
  padding: 11px 24px;
  background: var(--gold);
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  border-radius: 6px;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.nav-btn.active {
  background: var(--gold-light);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------- Shared section styles ---------------- */

.section {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
}

.section-light { background: var(--cream); color: var(--ink); }
.section-dark  { background: var(--navy-dark); color: var(--white); }
.section-darkest { background: var(--navy-deepest); color: var(--white); padding: 110px 0 40px; }

.watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
  max-width: 70vw;
  height: auto;
  opacity: 0.65;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  margin: 0 0 22px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 50px;
  max-width: 820px;
}

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

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  background: var(--navy-deepest);
  padding: 90px 0 130px;
  overflow: hidden;
  text-align: center;
}

.hero-texture {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 340px;
  background-image: url("../assets/textura-hero.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  mix-blend-mode: screen;
  opacity: 0.55;
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  height: 92px;
  width: auto;
  margin: 20px 0 40px;
}

.hero-tagline {
  color: var(--gray-on-dark);
  font-size: 17px;
  margin: 0 0 34px;
}

.hero-tags {
  color: var(--gold-pale);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin: 0 0 56px;
  max-width: 780px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.35;
  color: var(--white);
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.hero-headline em {
  color: var(--gold-pale);
  font-style: italic;
}

/* ---------------- Quiénes somos ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 70px;
}

.about-text .section-title { margin-bottom: 26px; }

.body-text {
  color: var(--gray-on-light);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 20px;
  max-width: 520px;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 20px 45px rgba(11, 27, 51, 0.18);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 46px;
  border-top: 1px solid var(--cream-border);
}

.stat-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 34px;
  color: var(--navy-dark);
  margin: 0 0 10px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-on-light);
  margin: 0;
}

/* ---------------- Servicios ---------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--navy-card);
  border: 1px solid var(--navy-card-alt);
  border-radius: 6px;
  padding: 32px 28px 34px;
}

.service-number {
  font-family: var(--font-serif);
  color: var(--gold);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 18px;
}

.service-card h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 19px;
  color: var(--white);
  margin: 0 0 16px;
}

.service-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray-on-dark);
  margin: 0;
}

/* ---------------- Metodología (timeline) ---------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 18px;
  position: relative;
}

.timeline-step {
  position: relative;
  padding-top: 46px;
}

.timeline-step::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--gold);
}

.timeline-step:last-child::before {
  width: 0;
}

.timeline-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.timeline-marker span {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
}

.timeline-step h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16.5px;
  color: var(--ink);
  margin: 0 0 12px;
}

.timeline-step p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-on-light);
  margin: 0;
  padding-right: 6px;
}

/* ---------------- Sectores (pills) ---------------- */

.pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}

.pill {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--navy-line);
  border-radius: 30px;
  color: var(--white);
  font-size: 15.5px;
  background: rgba(255,255,255,0.02);
}

/* ---------------- Por qué UNIUS ---------------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

.why-item {
  border-top: 1px solid var(--cream-border);
  padding-top: 22px;
}

.why-item h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.35;
}

.why-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-on-light);
  margin: 0;
}

/* ---------------- Contacto / Footer ---------------- */

.contact-inner {
  text-align: center;
  max-width: 760px;
}

.contact-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.4;
  color: var(--white);
  margin: 0 0 30px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--gold-light);
  margin: 0 0 26px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--gold-pale);
  border-color: var(--gold-pale);
}

.contact-address {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-on-dark);
  margin: 0 0 50px;
}

.contact-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.14);
  margin: 0 0 40px;
}

.footer-logo {
  height: 46px;
  width: auto;
  margin: 0 auto 22px;
}

.copyright {
  font-size: 12.5px;
  color: var(--gray-on-dark);
  margin: 0 0 30px;
}

/* =========================================================
   RESPONSIVE — Tablet
   ========================================================= */

@media (max-width: 1024px) {
  .header-inner { padding: 0 28px; }
  .section-inner { padding: 0 28px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
  .timeline-step:nth-child(4)::before { width: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: -1; }

  .hero-headline { font-size: 36px; text-align: center; }
  .hero-inner { text-align: center; }
}

/* =========================================================
   RESPONSIVE — Mobile
   ========================================================= */

@media (max-width: 720px) {
  :root {
    --header-height: var(--header-height-mobile);
  }

  .section { padding: 70px 0; }
  .section-darkest { padding: 70px 0 34px; }

  .section-title { font-size: 27px; margin-bottom: 34px; }
  .eyebrow { font-size: 12px; letter-spacing: 2px; margin-bottom: 16px; }

  .header-inner { padding: 0 20px; }
  .section-inner { padding: 0 20px; }

  .brand-logo { height: 30px; }

  /* Collapse nav into a slide-down mobile menu */
  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    background: var(--navy-dark);
    padding: 18px 20px 26px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-btn { text-align: center; padding: 13px 22px; }

  /* Hero */
  .hero { padding: 60px 0 80px; }
  .hero-logo { height: 66px; margin: 10px 0 28px; }
  .hero-tagline { font-size: 15px; margin-bottom: 22px; }
  .hero-tags { font-size: 11.5px; letter-spacing: 1px; margin-bottom: 36px; line-height: 1.9; }
  .hero-headline { font-size: 26px; line-height: 1.4; }

  /* Quiénes somos */
  .about-grid { margin-bottom: 44px; }
  .body-text { max-width: 100%; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; padding-top: 34px; }
  .stat-number { font-size: 28px; }

  /* Servicios */
  .services-grid { grid-template-columns: 1fr; gap: 18px; }

  /* Metodología */
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline-step { padding-left: 46px; padding-top: 0; padding-bottom: 30px; }
  .timeline-step::before {
    top: 0;
    left: 14px;
    width: 1px;
    height: 100%;
    background: var(--gold);
  }
  .timeline-step:last-child::before { height: 0; }
  .timeline-marker { top: 0; left: 0; }

  /* Sectores */
  .pill { padding: 11px 20px; font-size: 14px; }

  /* Por qué UNIUS */
  .why-grid { grid-template-columns: 1fr 1fr; gap: 26px 20px; }

  /* Contacto */
  .contact-title { font-size: 26px; }
  .contact-email { font-size: 19px; }
  .contact-address { font-size: 13.5px; margin-bottom: 36px; }

  .watermark { width: 340px; opacity: 0.5; }
}

@media (max-width: 420px) {
  .why-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 23px; }
}
