/* =============================================
   OFICINA DE EMPLEO
============================================= */

#oficinaEmpleo {
  background: white !important;
  padding-top: 40px;
  padding-bottom: var(--space-10);
}

#oficinaEmpleoTitle {
  overflow: hidden;
  margin-bottom: 0;
}

.oe-title-drop {
  display: inline-block;
  animation: oeDropBounce 1.3s cubic-bezier(0.28, 0.84, 0.42, 1) both;
}

.oe-title-drop--delay {
  animation-delay: 0.15s;
}

@keyframes oeDropBounce {
  0%   { transform: translateY(-160%); opacity: 0; }
  45%  { transform: translateY(0);     opacity: 1; }
  60%  { transform: translateY(-16px); }
  75%  { transform: translateY(0); }
  87%  { transform: translateY(-7px); }
  100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .oe-title-drop {
    animation: none;
  }
}

/* Introducción */
.oe-lead {
  max-width: 900px;
  margin: var(--space-6) auto 0;
  padding: var(--space-6) var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: linear-gradient(135deg, rgba(5,87,194,0.07), rgba(3,62,140,0.03));
  border: 1px solid rgba(5,87,194,0.18);
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(3,62,140,0.1);
}

.oe-lead p {
  margin: 0;
  font-size: var(--text-base);
  color: var(--color-gray-500);
  line-height: 1.7;
}

/* Pills de navegación */
.oe-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  max-width: 1100px;
  margin-inline: auto;
  margin-top: var(--space-6);
}

.oe-pill {
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 8px 18px;
  background: linear-gradient(135deg, #ffb347 0%, var(--color-orange) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.oe-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Texto introductorio de sección */
.oe-section-intro {
  max-width: 1100px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: 1.75;
}

/* Subtítulo dentro de sección */
.oe-subtitle {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
  max-width: 1100px;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

/* Banner de contacto */
.oe-contact-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  background: linear-gradient(135deg, #0557c2 0%, var(--color-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  margin-top: var(--space-6);
  margin-bottom: var(--space-8);
  max-width: 1100px;
  margin-inline: auto;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .oe-contact-banner {
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: center;
  }
}

.oe-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.oe-contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.oe-contact-icon svg {
  width: 100%;
  height: 100%;
}

.oe-contact-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oe-contact-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
}

.oe-contact-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
}

.oe-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  grid-column: 1 / -1;
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
  .oe-contact-actions {
    grid-column: auto;
    flex-direction: column;
    padding-top: 0;
    border-top: none;
  }
}

.oe-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 10px 18px;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.oe-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.oe-btn:hover {
  transform: translateY(-2px);
}

.oe-btn--primary {
  background: #fff;
  color: var(--color-primary-dark);
}

.oe-btn--primary:hover {
  opacity: 0.92;
}

.oe-btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.oe-btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Bloques con fondo diferenciado (full-bleed) */
.oe-block {
  width: 100%;
  padding: var(--space-10) 0;
}

.oe-block--blue {
  background: #f3f3f3;
  border-top: 1px solid rgba(5,87,194,0.14);
  border-bottom: 1px solid rgba(5,87,194,0.14);
}

.oe-block--green {
  background: linear-gradient(180deg, rgba(73,173,51,0.08) 0%, rgba(73,173,51,0.02) 100%);
  border-top: 1px solid rgba(73,173,51,0.16);
  border-bottom: 1px solid rgba(73,173,51,0.16);
}

.oe-block .oe-services-title,
.oe-block .oe-section-intro,
.oe-block .oe-subtitle,
.oe-block .oe-contact-banner,
.oe-block .oe-grid,
.oe-block .oe-prod-grid {
  margin-top: 0;
}

/* Título de servicios */
.oe-services-title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  max-width: 1100px;
  margin-inline: auto;
  margin-top: var(--space-9);
  margin-bottom: var(--space-5);
}

.oe-services-title--spaced {
  margin-top: var(--space-10);
}

.oe-services-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  padding: 8px;
  box-sizing: content-box;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0db6dd, #033e8c);
  box-shadow: 0 6px 14px -6px rgba(3,62,140,0.5);
}

.oe-services-icon svg {
  width: 100%;
  height: 100%;
}

/* Grilla de servicios */
.oe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: 1100px;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .oe-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .oe-grid {
    grid-template-columns: repeat(5, 1fr);
    max-width: none;
  }
}

.oe-card {
  background: linear-gradient(160deg, #f0faff 0%, #fff 45%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.oe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.oe-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #fff;
  margin-bottom: var(--space-4);
  box-shadow: 0 6px 14px -6px rgba(3,62,140,0.5);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.oe-card:hover .oe-card-icon {
  transform: rotate(-6deg) scale(1.08);
}

.oe-card-icon svg {
  width: 100%;
  height: 100%;
}

.oe-card--blue .oe-card-icon {
  background: linear-gradient(135deg, #0557c2 0%, var(--color-primary) 100%);
}

.oe-card--orange .oe-card-icon {
  background: linear-gradient(135deg, #ffb347 0%, var(--color-orange) 100%);
}

.oe-card--green .oe-card-icon {
  background: linear-gradient(135deg, #7ed957 0%, var(--color-green) 100%);
}

.oe-card--purple .oe-card-icon {
  background: linear-gradient(135deg, #c15cf2 0%, var(--color-purple) 100%);
}

.oe-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-2);
}

.oe-card-text {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: 1.5;
}

/* Grilla de Producción Local */
.oe-prod-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: 1100px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .oe-prod-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.oe-prod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 320px;
  background: var(--color-gray-50);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6) 0;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, height 0.35s ease;
}

.oe-prod-card--expanded {
  height: auto;
}

.oe-prod-body {
  flex: 1 1 auto;
  overflow: hidden;
  min-height: 0;
}

.oe-prod-card--expanded .oe-prod-body {
  overflow: visible;
}

.oe-prod-fade {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 47px;
  height: 48px;
  background: linear-gradient(180deg, rgba(248,250,252,0) 0%, var(--color-gray-50) 85%);
  pointer-events: none;
}

.oe-prod-card--expanded .oe-prod-fade {
  display: none;
}

.oe-prod-toggle {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-shrink: 0;
  width: 100%;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-gray-50);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-gray-200);
  transition: color 0.2s ease;
}

.oe-prod-toggle:hover {
  color: var(--color-primary-dark);
}

.oe-prod-toggle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.oe-prod-card--expanded .oe-prod-toggle svg {
  transform: rotate(180deg);
}

.oe-prod-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0db6dd, #033e8c);
}

.oe-prod-grid .oe-prod-card:nth-child(1)::before { background: linear-gradient(90deg, #4fc3f7, #0288d1); }
.oe-prod-grid .oe-prod-card:nth-child(2)::before { background: linear-gradient(90deg, #81c784, #2e7d32); }
.oe-prod-grid .oe-prod-card:nth-child(3)::before { background: linear-gradient(90deg, #ffb347, #ee7b00); }

.oe-prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(3,62,140,0.16);
}

.oe-prod-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #fff;
  margin-bottom: var(--space-4);
  box-shadow: 0 6px 14px -6px rgba(3,62,140,0.5);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.oe-prod-card:hover .oe-prod-icon {
  transform: rotate(-6deg) scale(1.08);
}

.oe-prod-icon svg {
  width: 100%;
  height: 100%;
}

.oe-prod-grid .oe-prod-card:nth-child(1) .oe-prod-icon { background: linear-gradient(135deg, #4fc3f7, #0288d1); }
.oe-prod-grid .oe-prod-card:nth-child(2) .oe-prod-icon { background: linear-gradient(135deg, #81c784, #2e7d32); }
.oe-prod-grid .oe-prod-card:nth-child(3) .oe-prod-icon { background: linear-gradient(135deg, #ffb347, #ee7b00); }

.oe-prod-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--space-3);
}

.oe-prod-text {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
  line-height: 1.6;
  margin-bottom: var(--space-3);
}

.oe-prod-note {
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-gray-400);
  margin-bottom: var(--space-4);
}

.oe-prod-subheading {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-primary);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-gray-200);
  margin-bottom: var(--space-3);
}

.oe-prod-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.oe-prod-info li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

.oe-prod-info svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-primary);
}

.oe-prod-info a {
  color: var(--color-gray-500);
  transition: color 0.15s;
}

.oe-prod-info a:hover {
  color: var(--color-primary);
}
