/* ===========================
   FONTS
=========================== */
@font-face {
  font-family: 'CenturyGothic';
  src: url('assets/CenturyGothic.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CenturyGothic';
  src: url('assets/CenturyGothic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CenturyGothic';
  src: url('assets/CenturyGothic-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'CenturyGothic';
  src: url('assets/CenturyGothic-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ===========================
   VARIABLES
=========================== */
:root {
  /* Brand Colors — Manual de Marca 4G */
  --black:       #000000;
  --white:       #ffffff;
  --gray:        #9e9e9d;
  --gray-dark:   #474746;
  --red:         #ad0700;

  /* Derived */
  --bg:          #ffffff;
  --bg-light:    #f5f5f5;
  --border:      #e0e0e0;
  --text:        #000000;
  --text-light:  #474746;
  --text-muted:  #9e9e9d;

  /* Typography */
  --font-heading: 'CenturyGothic', 'Century Gothic', 'AppleGothic', sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;

  /* Spacing & Shape */
  --radius:      4px;
  --radius-md:   8px;
  --shadow:      0 1px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.14);
  --transition:  0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===========================
   CONTAINER
=========================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===========================
   SECTION LABEL  (subheading chip)
=========================== */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--black);
  margin-bottom: 1rem;
}

.section__subtitle {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 3rem;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn--primary {
  background: var(--black);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--gray-dark);
  transform: translateY(-1px);
}

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

.btn--red {
  background: var(--red);
  color: var(--white);
}
.btn--red:hover {
  background: #8a0500;
  transform: translateY(-1px);
}

.btn--full { width: 100%; text-align: center; }

/* ===========================
   DIVIDER LINE  (brand element)
=========================== */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ===========================
   HEADER
=========================== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  gap: 1rem;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav a:not(.btn) {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dark);
  transition: color var(--transition);
}
.header__nav a:not(.btn):hover { color: var(--red); }

.header__nav .btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.75rem;
}

/* ===========================
   HERO
=========================== */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Decorative vertical lines — architectural motif */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 18px,
    rgba(255,255,255,0.03) 18px,
    rgba(255,255,255,0.03) 19px
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero .section-label {
  color: var(--red);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero__title em {
  font-style: normal;
  color: var(--red);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===========================
   STATS BAR
=========================== */
.stats {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stats__item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.stats__item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===========================
   NOSOTROS / WHY 4G
=========================== */
.nosotros {
  padding: 6rem 0;
  background: var(--white);
}

.nosotros .section__subtitle {
  margin-bottom: 3.5rem;
}

.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border);
}

.nosotros__card {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.nosotros__card:last-child {
  border-bottom: none;
}

.nosotros__number {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 1rem;
}

.nosotros__card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--black);
}

.nosotros__card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===========================
   VACANTES
=========================== */
.vacantes {
  padding: 6rem 0;
  background: var(--bg-light);
}

/* Filtros */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.filtro-btn {
  padding: 0.5rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 2px;
}

.filtro-btn:hover,
.filtro-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* Cards */
.vacantes__lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.vacante-card {
  background: var(--white);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background var(--transition);
}
.vacante-card:hover {
  background: #fafafa;
}

.vacante-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.vacante-card__titulo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  flex: 1;
}

.vacante-card__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 2px;
  white-space: nowrap;
}

/* Tag colors — brand-aligned */
.vacante-card__tag--arq  { background: #f0f0f0; color: var(--gray-dark); }
.vacante-card__tag--ing  { background: #f0f0f0; color: var(--gray-dark); }
.vacante-card__tag--mgmt { background: #f0f0f0; color: var(--gray-dark); }
.vacante-card__tag--fin  { background: #f0f0f0; color: var(--gray-dark); }
.vacante-card__tag--com  { background: #f9ecec; color: var(--red); }
.vacante-card__tag--tec  { background: #f0f0f0; color: var(--gray-dark); }

.vacante-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
}

.vacante-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.vacante-card__meta span::before {
  margin-right: 0.25rem;
}

/* Requisitos list */
.vacante-card__req {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.55;
}

.vacante-card__req li {
  padding-left: 1.1rem;
  position: relative;
  overflow-wrap: break-word;
  word-break: break-word;
}

.vacante-card__req li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.7;
}

/* Empty / loading states */
.vacantes__loading,
.vacantes__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--white);
}

.vacante-card .btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ===========================
   POSTULACIÓN (Tally embed)
=========================== */
.postulacion {
  padding: 6rem 0;
  background: var(--white);
}

.postulacion__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.postulacion__info .section__subtitle {
  margin-bottom: 2rem;
}

.postulacion__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.postulacion__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.postulacion__features li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--red);
  margin-top: 0.5rem;
}

/* Tally embed wrapper */
.tally-wrapper {
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 1.5rem 1rem;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer__logo-img {
  height: 30px;
  width: auto;
  display: block;
  /* Logo color-shift to white for dark footer */
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__links a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.5rem;
}

/* ===========================
   RESPONSIVE — mobile
=========================== */
@media (max-width: 639px) {

  /* Header: hide nav text links, keep only the CTA button */
  .header__nav a:not(.btn) {
    display: none;
  }
  .header__nav {
    gap: 0;
  }

  /* Hero */
  .hero {
    padding: 3.5rem 0 3rem;
  }
  .hero__title {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }
  .hero__subtitle {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  .hero__actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Sections */
  .nosotros,
  .vacantes,
  .postulacion {
    padding: 4rem 0;
  }

  .section__subtitle {
    margin-bottom: 2rem;
    font-size: 0.9rem;
  }

  /* Stats */
  .stats {
    padding: 1.5rem 0;
  }

  /* Vacante cards */
  .vacante-card {
    padding: 1.25rem 1rem;
    gap: 1rem;
  }

  .vacante-card__titulo {
    font-size: 1rem;
  }

  /* "Postularme" button — full width on mobile */
  .vacante-card .btn {
    align-self: stretch;
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
  }

  /* Filters — horizontally scrollable, no wrapping */
  .filtros {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    scrollbar-width: none;
  }
  .filtros::-webkit-scrollbar { display: none; }
  .filtro-btn {
    flex-shrink: 0;
  }

  /* Nosotros cards */
  .nosotros__card {
    padding: 1.75rem 1.25rem;
  }

  /* Tally embed */
  .tally-wrapper {
    padding: 1rem 0;
    border-left: none;
    border-right: none;
    background: transparent;
  }

  /* Postulación section */
  .postulacion__features li {
    font-size: 0.85rem;
  }

  /* Section title */
  .section__title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
}

/* ===========================
   RESPONSIVE — tablet
=========================== */
@media (min-width: 640px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .nosotros__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .nosotros__card {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
  .nosotros__card:last-child {
    border-right: none;
  }

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

  .postulacion__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (min-width: 900px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
