/* ==== SISTEMA DE DISEÑO / VARIABLES ==== */
:root {
  --unfv-maroon: #7f1d1d;
  --unfv-maroon-dark: #5a1414;
  --unfv-maroon-light: #fef2f2;
  --text-main: #0f172a;
  --text-muted: #475569;
  --bg-global: #f8fafc;
  --white: #ffffff;
  
  --accent-green: #059669;
  --accent-green-hover: #047857;
  
  --font-family: 'Montserrat', sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==== RESETEO GENERAL ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-global);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 0px 20px;
}

/* ==== 1. STICKY NAVBAR ==== */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.main-header .branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.main-header .titulo h1 {
  font-size: 1.15rem;
  color: var(--unfv-maroon);
  font-weight: 700;
  line-height: 1.1;
}

.main-header .titulo h1 span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Menú de enlaces */
.main-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-btn {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-btn:hover {
  background-color: var(--unfv-maroon-light);
  color: var(--unfv-maroon);
}

.btn-highlight {
  background-color: var(--unfv-maroon);
  color: var(--white) !important;
}

.btn-highlight:hover {
  background-color: var(--unfv-maroon-dark);
}

/* ==== 2. HERO BANNER ==== */
.hero-banner {
  background: url('../img/unfv_1.avif') no-repeat center center/cover;
  height: 480px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-md);
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.85), rgba(15, 23, 42, 0.7));
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  color: var(--white);
}

.hero-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  font-weight: 400;
}

/* ==== 3. CAJA DE FILTROS OPTIMIZADA ==== */
.filter-box {
  background-color: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  border: 1px solid #edf2f7;
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--unfv-maroon);
  margin-bottom: 24px;
}

.filter-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.filter-header svg {
  width: 24px;
  height: 24px;
}

.filter-form {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.input-group {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.filter-form input,
.filter-form select {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
  background-color: #f8fafc;
  transition: var(--transition);
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: var(--unfv-maroon);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(127, 29, 29, 0.08);
}

.btn-search {
  padding: 14px 36px;
  background-color: var(--unfv-maroon);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(127, 29, 29, 0.2);
}

.btn-search:hover {
  background-color: var(--unfv-maroon-dark);
  transform: translateY(-1px);
}

/* ==== 4. MODERNIZACIÓN DE TARJETAS (JOB GRID) ==== */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.job-card {
  background-color: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: var(--transition);
}

.job-card:hover::before {
  background: var(--unfv-maroon);
}

.job-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pre { background-color: #e0f2fe; color: #0369a1; }
.badge-pos { background-color: #f3e8ff; color: #6b21a8; }

.post-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.job-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

.company-name {
  color: var(--unfv-maroon);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.job-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 18px;
}

.job-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.job-meta svg {
  width: 16px;
  height: 16px;
  color: #94a3b8;
}

.card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
}

.salary {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.btn-apply {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background-color: var(--accent-green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.15);
}

.btn-apply:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-1px);
}

.btn-apply svg {
  width: 16px;
  height: 16px;
  transition: var(--transition);
}

.btn-apply:hover svg {
  transform: translateX(4px);
}

/* ==== 5. SECCIÓN DE PUBLICACIÓN CORPORATIVA (100% WIDTH - CRISTAL GUINDA TRANSLÚCIDO) ==== */
.cta-section-full {
  width: 100vw; /* Rompe el contenedor y ocupa el 100% de la pantalla */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  
  /* Degradado guinda institucional con opacidad para lograr el efecto transparente */
  background: linear-gradient(135deg, rgba(95, 5, 5, 0.925) 25%, rgba(41, 1, 1, 0.85) 80%);
  
  /* El truco del banner: desenfoca lo que está detrás para dar el efecto de vidrio premium */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  padding: 65px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Contenedor interno para mantener el texto alineado al centro de la web */
.cta-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-section-full .cta-content {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  color: var(--white); /* Regresa a blanco para contrastar con el cristal rojo */
}

.cta-section-full .cta-content h2 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* Sutil sombra para dar relieve al texto */
}

.cta-section-full .cta-content p {
  font-size: 1rem;
  opacity: 0.95;
  color: var(--white);
  margin-bottom: 26px;
  line-height: 1.6;
}

/* El botón regresa a blanco puro e impecable, destacando sobre el cristal guinda */
.cta-section-full .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 38px;
  background-color: var(--white);
  color: var(--unfv-maroon);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  transition: var(--transition);
}

.cta-section-full .btn-cta:hover {
  background-color: var(--unfv-maroon-light);
  color: var(--unfv-maroon-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.2);
}

.cta-section-full .btn-cta svg {
  width: 18px;
  height: 18px;
}
/* ==== 6. SECCIÓN ESTADÍSTICAS TOTALMENTE EXPANDIDA (PERFECTAMENTE PEGADA) ==== */
.stats-section-full {
  width: 100vw; /* Ocupa el 100% de la pantalla */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 70px 0 80px 0; /* Ajuste de padding superior para fluidez visual */
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid #cbd5e1;
  margin-top: 0;    /* Elimina cualquier espacio con la sección de arriba */
  margin-bottom: 0; /* Totalmente pegado al footer */
}

.stats-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.stats-section-full .stats-header {
  text-align: center;
  margin-bottom: 40px;
}

.stats-section-full .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.stats-section-full .stats-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto;
}

.stats-section-full .stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.stats-section-full .stat-card {
  background-color: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-section-full .stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

.stats-section-full .stat-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stats-section-full .stat-icon-box svg {
  width: 24px;
  height: 24px;
}

.card-ofertas .stat-icon-box { background-color: #fef2f2; color: #ef4444; }
.card-activas .stat-icon-box { background-color: #ecfdf5; color: #10b981; }
.card-empresas .stat-icon-box { background-color: #eff6ff; color: #3b82f6; }
.card-alumnos .stat-icon-box { background-color: #fefce8; color: #eab308; }

.stats-section-full .stat-info {
  display: flex;
  flex-direction: column;
}

.stats-section-full .stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 2px;
}

.stats-section-full .stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
}

body {
  overflow-x: hidden; /* Evita cualquier desplazamiento horizontal por el truco del width de pantalla */
}
/* ==== 7. FOOTER CORPORATIVO PREMIUM ==== */
.main-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 60px 0 25px 0;
  border-top: 4px solid var(--unfv-maroon);
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 35px;
  height: 2px;
  background-color: var(--unfv-maroon);
}

.col-brand h3 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.col-brand .faculty-name {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.col-brand .footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.footer-col ul li a svg {
  width: 14px;
  height: 14px;
  color: var(--unfv-maroon);
}

.footer-col ul li a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.contact-info p svg {
  width: 16px;
  height: 16px;
  color: var(--unfv-maroon);
  flex-shrink: 0;
}

.contact-info p a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.contact-info p a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
}

/* ==== RESPONSIVE DESIGN FLUIDO ==== */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .main-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-banner {
    height: 200px;
  }
  
  .hero-content h2 {
    font-size: 1.6rem;
  }
  
  .filter-form {
    flex-direction: column;
  }
  
  .btn-search {
    width: 100%;
  }
  
  .cta-section {
    padding: 40px 24px;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}