/* ── Cursos Operativos – Page Styles ────────────────────── */

/* ── Hero with background image ────────────────────────── */
.operativos-hero {
  position: relative;
  background: url('../assets/images/business-team-row-scaled.jpg') center center / cover no-repeat;
  padding: 160px 24px 56px;
  text-align: center;
  color: #fff;
}
.operativos-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6,120,145,.82) 0%, rgba(4,78,95,.88) 100%);
}
.operativos-hero__inner {
  position: relative;
  z-index: 1;
}
.operativos-hero h1 {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}
.operativos-hero p {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.15rem;
  opacity: .92;
  margin: 0 auto;
  max-width: 720px;
  color: #fff;
}

/* ── Sections ──────────────────────────────────────────── */
.operativos-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

/* Section header with image banner */
.operativos-section__header {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 40px;
  height: 260px;
}
.operativos-section__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.operativos-section__header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.15) 100%);
}
.operativos-section__header h2 {
  position: absolute;
  bottom: 24px;
  left: 32px;
  z-index: 1;
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

/* ── Card grid ─────────────────────────────────────────── */
.operativos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Card – catalog style ──────────────────────────────── */
.operativos-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.operativos-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(6,120,145,.18);
}

/* Card image */
.operativos-card__img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
}
.operativos-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.operativos-card:hover .operativos-card__img {
  transform: scale(1.06);
}

/* Card content */
.operativos-card__content {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.operativos-card__title {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #067891;
  margin: 0 0 12px;
  line-height: 1.35;
}
.operativos-card__desc {
  font-family: 'Lato', Arial, sans-serif;
  font-size: .92rem;
  line-height: 1.6;
  color: #555;
  margin: 0 0 20px;
  flex-grow: 1;
}

/* ── CTA Button – blue ─────────────────────────────────── */
.operativos-cta {
  display: block;
  align-self: stretch;
  text-align: center;
  padding: 10px 16px;
  background-color: #067891;
  color: #fff !important;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 600;
  font-size: .83rem;
  text-decoration: none !important;
  border-radius: 8px;
  border: 2px solid #067891;
  transition: background-color .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.operativos-cta:hover {
  background-color: #fff;
  color: #067891 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6,120,145,.3);
}
.operativos-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(6,120,145,.2);
}

/* ── Panels (fade) ──────────────────────────────────────── */
.op-panel {
  opacity: 1;
  transition: opacity .3s ease;
}
.op-panel--hidden {
  display: none;
  opacity: 0;
}

/* ── Line Tabs ──────────────────────────────────────────── */
.operativos-tabs {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0;
}
.operativos-tab {
  padding-bottom: 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease;
  margin-bottom: -1px; /* solapa con el border-bottom del contenedor */
}
.operativos-tab:hover {
  color: #005C69;
}
.operativos-tab--active {
  color: #005C69;
  border-bottom-color: #005C69;
}
@media (max-width: 600px) {
  .operativos-tabs {
    gap: 24px;
    padding: 28px 20px 0;
  }
  .operativos-tab {
    font-size: .85rem;
  }
}

/* ── Entrance animations ───────────────────────────────── */
.operativos-card {
  opacity: 0;
  transform: translateY(24px);
  animation: opCardIn .55s ease forwards;
}
.operativos-card:nth-child(1) { animation-delay: .05s; }
.operativos-card:nth-child(2) { animation-delay: .12s; }
.operativos-card:nth-child(3) { animation-delay: .19s; }
.operativos-card:nth-child(4) { animation-delay: .26s; }
.operativos-card:nth-child(5) { animation-delay: .33s; }
.operativos-card:nth-child(6) { animation-delay: .40s; }

@keyframes opCardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .operativos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .operativos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .operativos-section__header {
    height: 180px;
  }
  .operativos-section__header h2 {
    font-size: 1.6rem;
    left: 20px;
    bottom: 16px;
  }
  .operativos-card__img-wrap {
    height: 150px;
  }
  .operativos-hero {
    padding: 130px 20px 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .operativos-card {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .operativos-card__img {
    transition: none;
  }
}
