:root {
  --gradient: linear-gradient(90deg, #7766D6 0%, #18B69B 100%);
  --violet: #7666d6;
  --green: #18B69B;
  --text-dark: #222;
  --text-light: #555;
  --bg-light: #fafafa;
  --border: #e5e7eb;
  --radius: 14px;
  --transition: all 0.25s ease;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.8rem 2rem;
  z-index: 12000;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  transition: gap 0.2s ease, padding 0.2s ease, margin-left 0.3s ease;
}

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  transition: all 0.2s ease;
}

/* === ENLACES === */
nav a {
  text-decoration: none;
  color: var(--text-light);
  margin: 0 0.6rem;
  font-weight: 500;
  transition: var(--transition);
  font-size: 1rem;
}

nav a.active,
nav a:hover {
  color: var(--violet);
  text-shadow: 0 0 6px rgba(118, 102, 214, 0.3);
}

/* === ICONOS === */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.icon {
  font-size: 1.3rem;
  text-decoration: none;
  color: var(--violet);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.icon:hover {
  background: #e9e9e9;
  transform: scale(1.1);
}

/* === MENÚ HAMBURGUESA === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--violet);
  z-index: 13000;
  padding: 0.3rem 0.4rem;
}

.menu-toggle:focus {
  outline: 2px solid var(--violet);
}

/* === HERO === */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 0;           /* asegurado */
  padding-top: 0 !important;
}

/* === VIDEO DE FONDO === */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* === CAPA OPACA === */
.overlay {
  position: absolute;       /* ANCLA EL OVERLAY AL HERO */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 10;              /* Está encima del video pero debajo del header */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  box-sizing: border-box;
}


/* === TEXTO ANIMADO === */
.typing-text {
  font-size: 2.2rem;
  color: #f5f5f5;
  font-weight: 600;
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
  margin-top: 70px;
}

#typed::after {
  content: '|';
  color: #ffffff;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* === MARCA PRINCIPAL === */
.brand {
  font-size: 4rem;
  font-weight: 800;
  color: #f5f5f5;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* === ESLOGAN === */
.slogan {
  font-size: 1.6rem;
  font-weight: 400;
  color: #f5f5f5;
  margin-top: 0.8rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* === BOTÓN EXPLORAR === */
.explore-btn {
  margin-top: 2.2rem;
  background-color: var(--violet);
  border: 4px solid var(--violet);
  color: #f5f5f5;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.15s ease;
}

.explore-btn:hover {
  background-color: #f5f5f5;
  color: var(--violet);
  border: 4px solid var(--violet);
  transform: scale(1.05);
}

/* === MENÚ LINKS (desktop) === */
nav.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

/* === DESPLEGABLE MÓVIL === */
@media (max-width: 900px) {
  nav.nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: #f5f5f5;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: none;
    gap: 1.5rem;
    padding: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 11000;
  }

  nav.nav-links.active {
    display: flex;
    animation: fadeSlide 0.25s ease forwards;
  }

  @keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* === BUSCADOR DESPLEGABLE === */
.header-search-bar {
  position: fixed;
  top: 95px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--violet);
  border-radius: 50px;
  padding: 0.4rem 0.8rem;
  width: 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  z-index: 14000;
}

.header-search-bar.active {
  width: 380px;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.header-search-bar input {
  border: none;
  background: transparent;
  flex: 1;
  font-size: 0.9rem;
  outline: none;
  color: var(--text-dark);
  padding: 0.3rem 0.5rem;
}

.header-search-bar button {
  border: none;
  background-color: var(--violet);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.header-search-bar button:hover {
  background-color: #5e4fc7;
}

/* === ICONO LUPA === */
.search-icon {
  font-size: 1.3rem;
  color: #7666d6 !important; /* fijo violeta del header */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.search-icon:hover {
  transform: scale(1.2);
}

/* === INFO / FOOTER === */
.info {
  text-align: center;
  padding: 4rem 1rem 5rem;
  background: var(--bg-light);
}

.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--text-light);
  border-top: 1px solid #eee;
  background: white;
}

/* === HEADER RESPONSIVE === */
@media (max-width: 900px) {
  .nav-container {
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: .4rem;
  }
  .logo { order: 1; }
  .search-icon { order: 2; font-size: 1.3rem; color: #7666d6 !important; }
  .nav-actions { order: 3; display: flex; gap: .4rem; }
  .nav-actions .icon { font-size: 1.3rem; color: #7666d6; }
  .menu-toggle { order: 4; display: block; color: #7666d6; font-size: 1.6rem; }
  nav.nav-links { display: none; }
  .header-search-bar { top: 80px; }
  .header-search-bar.active { width: 85%; max-width: 400px; }
}

/* === AJUSTES EXTRA === */
@media (max-width: 700px) {
  .nav-container { gap: 0.4rem; }
  .logo-img { height: 34px; }
  .icon { font-size: 1.1rem; padding: 0.2rem; }
  .menu-toggle { font-size: 1.4rem; }
}

/* 🟣 LOGO SE ACERCA AL BORDE EN PANTALLAS MUY ESTRECHAS */
@media (max-width: 400px) {
  .navbar {
    padding: 0.6rem 1rem; /* reduce padding general */
  }

  .nav-container {
    justify-content: flex-start; /* logo más a la izquierda */
    margin-left: -5px;
    gap: 0.3rem;
  }

  .logo-img {
    height: 30px;
  }

  .icon {
    font-size: 1rem;
  }
}

/* === PÁGINA OPOSICIONES === */
.page-content {
  padding-top: 8.5rem; /* Espacio suficiente debajo del header fijo */
  min-height: 100vh;
  background: var(--bg-light);
  position: relative;
  z-index: 1;
}

.oposiciones-section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 1rem 5rem;
}

.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.oposiciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
}

.op-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  padding: 0.8rem; /* 🔹 margen interior alrededor de todo el contenido */
}

.op-card img {
  width: 100%;
  height: auto;
  max-height: 170px; /* 🔹 limita altura sin deformar */
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
  background: #f3f3f3;
  margin-bottom: 1rem;
  border: 2px solid rgba(118, 102, 214, 0.1);
  transition: transform 0.3s ease;
}

.op-card h3 {
  margin: 0 1rem 0.8rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
}

.op-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (max-width: 600px) {
  .op-card img {
    height: 150px;
  }
}
/* === SUBCATEGORÍAS DENTRO DE LAS TARJETAS === */
.subcategorias {
  list-style: none;
  padding: 0 1rem 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.subcategorias li {
  text-align: left;
}

.subcategorias a {
  display: block;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  border-left: 3px solid transparent;
  padding-left: 0.5rem;
  transition: all 0.2s ease;
}

.subcategorias a:hover {
  color: var(--violet);
  border-left-color: var(--violet);
  background: rgba(118, 102, 214, 0.05);
  padding-left: 0.8rem;
}

/* Ajustes en pantallas pequeñas */
@media (max-width: 600px) {
  .subcategorias {
    padding: 0 0.8rem 1rem;
    gap: 0.3rem;
  }

  .subcategorias a {
    font-size: 0.9rem;
  }
}
/* === DESPLEGABLES EN TARJETAS === */
/* === DESPLEGABLES EN TARJETAS (actualizado) === */
.dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dropdown-toggle {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  width: 100%;
  padding: 0.3rem 0.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.dropdown-toggle:hover {
  background: rgba(118, 102, 214, 0.05);
  color: var(--violet);
  transform: translateX(4px);
}

.dropdown-content {
  display: none;
  margin-left: 1rem;
  padding-left: 0.8rem;
  border-left: 2px solid #eee;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: fadeSlide 0.25s ease;
}

.dropdown-content.active {
  display: block;
  animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===========================
   🔍 ESTILOS BUSCADOR HEADER
   =========================== */

.header-search-bar {
  position: relative;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
  max-height: 400px;
  overflow-y: auto;
  display: none;
  margin-top: 6px;
  animation: fadeIn 0.2s ease-in-out;
}

.search-results.active {
  display: block;
}

.search-item {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}

.search-item:hover {
  background: #f7f7f7;
}

.search-item h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.search-item p {
  margin: 4px 0 0;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
}

.search-item mark {
  background: #ffeb3b;
  color: #000;
  padding: 0 2px;
  border-radius: 3px;
}

.no-results {
  text-align: center;
  padding: 20px;
  color: #666;
  font-size: 14px;
}

/* Animación sutil al desplegar */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.icono-activa {
  margin-left: 8px;
  font-size: 1.2em;
  color: #22c55e;
  animation: pulso 1.8s infinite ease-in-out;
}

@keyframes pulso {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}
/* ============================
   🟪 PÁGINA CATEGORÍA
   ============================ */

.categoria-header {
  text-align: center;
  padding: 4rem 1rem 1rem;
}

.categoria-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 0.4rem;
}

.categoria-header .page-subtitle {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 2rem;
}

.convocatorias-lista {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.5rem;
  padding: 2rem 1rem 5rem;
}

.convocatoria-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  position: relative;
  text-align: left;
  transition: var(--transition);
}

.convocatoria-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
}

.convocatoria-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.convocatoria-detalle {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.convocatoria-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.4rem;
}

.convocatoria-plazas {
  font-size: 0.9rem;
  color: var(--violet);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.btn.btn-primary {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn.btn-primary:hover {
  filter: brightness(1.05);
  transform: scale(1.04);
}

.estado-activa {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
}

.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Adaptación móvil === */
@media (max-width: 600px) {
  .categoria-header h1 {
    font-size: 1.7rem;
  }
  .convocatoria-card {
    padding: 1.2rem;
  }
  .convocatoria-card h3 {
    font-size: 1rem;
  }
}
/* 🎯 Filtros en página categoría */
.filtros-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.filtros-container select {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.filtros-container select:hover {
  border-color: var(--violet);
  box-shadow: 0 0 6px #7666d640;
}
.modo-selector {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.modo-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  border: 2px solid var(--violet);
  background: white;
  color: var(--violet);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.modo-btn.active,
.modo-btn:hover {
  background: var(--violet);
  color: white;
}
/* =============================
   🟪 NUEVAS TARJETAS DE CONVOCATORIAS
   ============================= */
.convocatorias-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 5rem;
}

.conv-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  padding: 1.4rem 1.2rem;
  transition: var(--transition);
  text-align: left;
}

.conv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.conv-titulo {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.conv-detalle,
.conv-info {
  font-size: 0.95rem;
  color: var(--text-light);
}

.conv-plazo {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.texto-plazo {
  font-weight: 600;
  color: var(--violet);
  display: inline-flex;
  align-items: center;
}

.texto-plazo::before {
  content: "🗎";
  font-size: 1rem;
  color: #7666d640; /* el icono de solicitud translúcido */
  margin-right: 0.3rem;
}

.btn-verpdf {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background-color: var(--violet);
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.btn-verpdf:hover {
  background-color: #5b4ee8;
}

/* Responsive */
@media (max-width: 600px) {
  .conv-card {
    padding: 1rem;
  }
  .conv-titulo {
    font-size: 1rem;
  }
}
.btn-alert {
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  border:2px solid var(--violet);
  color:#fff;
  background:var(--violet);
  font-weight:700;
  padding:.5rem 1rem;
  border-radius:999px;
  cursor:pointer;
  transition:var(--transition);
}
.btn-alert:hover {
  background:#6b5bd7;
}
.modal-body.scrollable {
  max-height: 75vh;
  overflow-y: auto;
  padding-right: 1rem;
}
#alert-summary h3 {
  font-weight: 800;
  color: var(--violet);
}
#alert-summary-content p {
  margin: .25rem 0;
}
.combo-input input {
  width: 100%;
  box-sizing: border-box;
}
/* 🔥 Hacer que iconos siempre estén en horizontal */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* 🔥 Asegurar que los iconos NO se apilen en móvil */
@media (max-width: 900px) {
  .nav-links {
    flex-direction: column;   /* menú vertical */
    align-items: center;
  }

  /* PERO los iconos siguen en fila */
  .nav-icons {
    flex-direction: row !important;
    margin-top: 0.8rem;
  }
}
/* Ajuste para mantener el header igual en todas las páginas */
.navbar {
  background: white !important;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 12000;
}

/* Contenedor principal */
.nav-container {
  position: relative;   /* 👈 AÑADE ESTA LÍNEA */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Enlaces del menú */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Iconos en horizontal */
.nav-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.8rem;
  margin-left: 1.2rem;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.2rem 0;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  /* Los iconos siguen en horizontal */
  .nav-icons {
    flex-direction: row !important;
    margin-top: 0.8rem;
  }

  .menu-toggle {
    display: block;
  }
}
/* ============================
   🟪 NUEVAS SECCIONES HOME
   ============================ */

.home-section {
  padding: 4rem 1.5rem 4.5rem;
  background: var(--bg-light);
}

.home-section:nth-of-type(even) {
  background: #ffffff;
}

.home-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(118, 102, 214, 0.08);
  color: var(--violet);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--text-dark);
}

.section-description {
  max-width: 620px;
  color: var(--text-light);
  font-size: 1rem;
  margin: 0.2rem 0 2rem;
}

/* 🟣 Beneficios */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.benefit-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 8px 26px rgba(0,0,0,0.04);
  text-align: left;
  border: 1px solid rgba(118,102,214,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.benefit-icon {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 0.6rem;
}

.benefit-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.benefit-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* 🟣 Pasos */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.3rem 1.2rem 1.4rem;
  border: 1px solid rgba(118,102,214,0.06);
  box-shadow: 0 6px 22px rgba(0,0,0,0.04);
  text-align: left;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.step-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.step-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-light);
}

/* 🟣 Oposiciones destacadas */
.home-opos {
  position: relative;
}

.opos-dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.opos-dest-card {
  display: block;
  background: radial-gradient(circle at top left, #f1f0ff, #ffffff);
  border-radius: 18px;
  padding: 1.4rem 1.3rem 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 26px rgba(0,0,0,0.05);
  border: 1px solid rgba(118,102,214,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.opos-dest-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 34px rgba(0,0,0,0.1);
  border-color: rgba(118,102,214,0.4);
}

.opos-chip {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(24,182,155,0.08);
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.opos-dest-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.opos-dest-card p {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.opos-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--violet);
}

/* 🟣 Métricas */
.home-metrics {
  text-align: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.metric-item {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  box-shadow: 0 6px 24px rgba(0,0,0,0.04);
  border: 1px solid rgba(118,102,214,0.08);
}

.metric-number {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.3rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.metrics-footnote {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* 🟣 Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-col {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.3rem;
  box-shadow: 0 8px 26px rgba(0,0,0,0.04);
  border: 1px solid rgba(118,102,214,0.06);
}

.feature-col h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.feature-col ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-light);
}

.feature-col li + li {
  margin-top: 0.25rem;
}

/* 🟣 Testimonios */
.home-testimonials {
  background: radial-gradient(circle at top, #f3f1ff, #fafafa);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.testimonial-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  border: 1px solid rgba(118,102,214,0.08);
  position: relative;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin: 0 0 0.8rem;
}

.testimonial-author {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

/* 🟣 Blog preview */
.blog-prev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.blog-prev-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(118,102,214,0.06);
  box-shadow: 0 6px 22px rgba(0,0,0,0.04);
}

.blog-prev-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.blog-prev-card p {
  margin: 0 0 0.7rem;
  font-size: 0.93rem;
  color: var(--text-light);
}

.blog-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--violet);
  text-decoration: none;
}

.blog-link:hover {
  text-decoration: underline;
}

/* 🟣 CTA final */
.home-cta {
  background: radial-gradient(circle at top, #f2f0ff, #ffffff);
}

.cta-box {
  background: #fff;
  border-radius: 20px;
  padding: 2rem 1.8rem;
  text-align: center;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  border: 1px solid rgba(118,102,214,0.16);
}

.cta-box h2 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
}

.cta-box p {
  margin: 0.2rem 0 1.4rem;
  color: var(--text-light);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.cta-primary {
  background: var(--gradient);
  color: #fff;
}

.cta-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.cta-secondary {
  background: #fff;
  color: var(--violet);
  border-color: var(--violet);
}

.cta-secondary:hover {
  background: rgba(118,102,214,0.06);
}

.cta-note {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* 🟣 Responsivo general */
@media (max-width: 700px) {
  .section-title {
    font-size: 1.6rem;
  }
  .home-section {
    padding: 3.2rem 1.2rem 3.6rem;
  }
  .cta-box h2 {
    font-size: 1.5rem;
  }
}
/* Igualar diseño de botón físicos al de digitales */
.mass-btn.fisico {
  background:#6c47ff !important;
  color:#fff !important;
}
.mass-btn.fisico:hover {
  filter:brightness(1.05);
}
/* Nueva fila para precio + botones */
.bottom-row {
  display: flex;
  flex-direction: column; /* apila si hace falta en móvil */
  align-items: center;    /* centra horizontalmente */
  justify-content: center;
  gap: .4rem;             /* separación visual */
  width: 100%;
  margin-top: .6rem;
  text-align: center;     /* centra el texto de precio/IVA */
}


/* Bloque de precio alineado a la izquierda */
.price-block {
  margin: 0;
  text-align: left;
}
/* ======================
      CARRITO HEADER
   ====================== */

.cart-dropdown {
  position: fixed;   /* 👈 CAMBIA absolute por fixed */
  top: 70px;
  right: 20px;
  width: 330px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  padding: 1rem;
  display: none;
  z-index: 20000;    /* suficiente */
}

/* ⭐ ESTO ES LO QUE PERMITE MOSTRAR EL CARRITO */
.cart-dropdown.show {
  display: block !important;
}

/* contenido del carrito */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cart-items {
  max-height: 250px;
  overflow-y: auto;
  border-top: 1px solid #eee;
  padding-top: 0.7rem;
  margin-bottom: 1rem;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.cart-btn {
  padding: .6rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.cart-primary-btn {
  background: var(--violet);
  color: #fff;
}

.cart-secondary-btn {
  background: #f2f2f2;
}

.cart-clear-btn {
  background: #ff4a4a;
  color: white;
}
/* Chips dentro del carrito */
.cart-item .badge{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #efe9ff;
  color: #4b3cc9;
  border: 1px solid #d8d0ff;
  line-height: 1;
  white-space: nowrap;
}