/* ============================================================
   campus.css — Campus Virtual | Cultura Legal
   Paleta: #005baa | #ffd700 | #1a1a1a | fondo #90adf0
   Tipografía: Segoe UI / Arial (igual al sitio original)
   ============================================================ */

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #050505;
  background-color: #90adf0;
  background-image: url("img/fondo.png");
  background-repeat: repeat;
  background-attachment: fixed;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --azul:       #005baa;
  --azul-dark:  #003d7a;
  --azul-light: #1976d2;
  --dorado:     #ffd700;
  --dorado-osc: #e0c000;
  --blanco:     #ffffff;
  --negro:      #1a1a1a;
  --gris:       #555555;
  --gris-claro: #f0f2f5;
  --radius:     12px;
  --shadow:     0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-hover: 0 12px 36px rgba(0, 91, 170, 0.18);
}

/* ── Textos de color dorado ────────────────────────────────── */
.texto-dorado { color: var(--dorado); }

/* ============================================================
   HEADER — idéntico al sitio original
   ============================================================ */
.header {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(194, 177, 177, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
}
.logo img {
  height: 50px;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-weight: 400;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.nav-links a.active,
.nav-links a:hover {
  background: #e0f0ff;
  color: var(--azul);
}

/* Submenús */
.menu-item-has-children { position: relative; }
.menu-item-has-children .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  background: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  list-style: none;
}
.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 5px);
}
.sub-menu a {
  padding: 0.7rem 1.5rem;
  color: #333;
  white-space: nowrap;
  display: block;
  font-size: 0.95rem;
  transition: background 0.3s;
  text-decoration: none;
}
.sub-menu a:hover { background: #4a90e2; color: white; }
.arrow { font-size: 0.7rem; margin-left: 5px; transition: transform 0.3s; }
.menu-item-has-children:hover .arrow { transform: rotate(180deg); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px; height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.menu-toggle span {
  width: 30px; height: 3px;
  background: var(--azul);
  border-radius: 10px;
  transition: all 0.3s linear;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* ── Nav responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 70px; left: 0; width: 100%;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease, visibility 0.3s;
    visibility: hidden;
    z-index: 999;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav-links { flex-direction: column; gap: 0; padding: 1rem 0; }
  .nav-links li { border-bottom: 1px solid #eee; }
  .nav-links a { text-align: center; padding: 1rem; }
  .sub-menu {
    position: static; opacity: 1; visibility: visible; display: none;
    box-shadow: none; padding-left: 1.5rem; min-width: auto; background: transparent;
  }
  .menu-item-has-children.submenu-open .sub-menu { display: block; }
  .menu-item-has-children.submenu-open .arrow { transform: rotate(180deg); }
  .sub-menu a { white-space: normal; padding: 0.8rem 1rem; font-size: 1rem; color: #555; }
  .sub-menu a:hover { background: #e0f0ff; color: var(--azul); }
}

/* ============================================================
   BOTONES GLOBALES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 0.95rem;
  white-space: nowrap;
}
.btn-primary-campus {
  background: var(--dorado);
  color: var(--azul);
  border-color: var(--dorado);
}
.btn-primary-campus:hover {
  background: var(--dorado-osc);
  border-color: var(--dorado-osc);
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(255,215,0,0.4);
}
.btn-outline-campus {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,0.65);
}
.btn-outline-campus:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--blanco);
  transform: translateY(-2px);
}
.btn-enroll {
  background: var(--dorado);
  color: var(--azul);
  border-color: var(--dorado);
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  border-radius: 20px;
}
.btn-enroll:hover { background: var(--dorado-osc); border-color: var(--dorado-osc); }
.btn-ver-todos {
  background: transparent;
  color: var(--azul);
  border: 2px solid var(--azul);
}
.btn-ver-todos:hover {
  background: var(--azul);
  color: var(--blanco);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25d366;
  color: var(--blanco);
  border-color: #25d366;
}
.btn-whatsapp:hover {
  background: #1da851;
  border-color: #1da851;
  transform: translateY(-2px);
}
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; }

/* ============================================================
   SECCIONES — espaciado general
   ============================================================ */
.sections { padding: 5rem 0; }

.section-header-campus { margin-bottom: 3rem; }
.section-header-campus.centrado { text-align: center; }
.section-header-campus.centrado p { max-width: 580px; margin: 0.75rem auto 0; }

.section-tag-campus {
  display: inline-block;
  background: rgba(0, 91, 170, 0.1);
  color: var(--azul);
  border: 1px solid rgba(0, 91, 170, 0.2);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}

.section-header-campus h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #002d6e;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.section-header-campus p {
  color: var(--gris);
  font-size: 0.975rem;
  line-height: 1.7;
}

/* ============================================================
   HERO
   ============================================================ */
.hero-campus {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #002060 0%, var(--azul) 55%, var(--azul-light) 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url('img/aula-bg.jpg') center/cover no-repeat;
  opacity: 0.1;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255,215,0,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,1) 1px, transparent 1px);
  background-size: 55px 55px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--blanco);
  padding: 5rem 1.5rem 4rem;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.4);
  color: var(--dorado);
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.8rem;
  animation: fadeUp 0.6s ease both;
}

.hero-inner h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
  animation: fadeUp 0.6s 0.15s ease both;
}

.hero-inner p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s 0.45s ease both;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  animation: fadeUp 0.6s 0.6s ease both;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--dorado);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
}

/* ============================================================
   BENEFICIOS / FEATURES
   ============================================================ */
.beneficios-section {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--blanco);
  text-align: center;
  padding: 2.2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s, border-bottom-color 0.3s;
  border-bottom: 4px solid transparent;
  opacity: 0;
  transform: translateY(24px);
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s, border-bottom-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-bottom-color: var(--dorado);
}
.feature-icon {
  width: 62px; height: 62px;
  background: linear-gradient(135deg, #e0f0ff, #c5e0ff);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--azul);
  margin: 0 auto 1.1rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  color: var(--azul);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--gris);
  line-height: 1.6;
}

/* ============================================================
   CURSOS
   ============================================================ */
.cursos-section {
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
  margin-bottom: 2.5rem;
}
.curso-card {
  background: var(--blanco);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px);
}
.curso-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}
.curso-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Thumbnail */
.curso-thumb {
  height: 165px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
  position: relative;
}
.thumb-1 { background: linear-gradient(135deg, #002060, var(--azul)); }
.thumb-2 { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.thumb-3 { background: linear-gradient(135deg, #0f3443, #2980b9); }

.curso-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 12px; border-radius: 100px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.badge-nuevo    { background: var(--dorado);  color: #002060; }
.badge-popular  { background: #22c55e;         color: white; }
.badge-avanzado { background: #8b5cf6;         color: white; }

.curso-rating {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,0.5);
  color: var(--dorado);
  padding: 3px 9px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
}

/* Body */
.curso-body {
  padding: 1.4rem;
  flex: 1;
  display: flex; flex-direction: column;
}
.curso-cat {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--azul-light);
  margin-bottom: 6px;
}
.curso-body h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: #002060;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.curso-body p {
  font-size: 0.85rem;
  color: var(--gris);
  line-height: 1.6;
  margin-bottom: 0.9rem;
  flex: 1;
}
.curso-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  font-size: 0.76rem; color: #777;
  margin-bottom: 0.75rem;
}
.curso-meta span i { color: var(--azul); margin-right: 3px; }

.instructor-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; color: #666;
  margin-bottom: 1rem;
}
.inst-ava {
  width: 26px; height: 26px; border-radius: 50%;
  background: #e0f0ff; color: var(--azul);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; flex-shrink: 0;
}

.curso-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid #f0f0f0;
}
.curso-price {
  font-size: 1.25rem; font-weight: 800; color: var(--azul);
}
.cert-price {
  font-size: 0.7rem; color: #aaa; margin-top: 2px;
}

.ver-todos-wrap { text-align: center; }

/* ============================================================
   PASOS — Cómo funciona
   ============================================================ */
.pasos-section { background: rgba(255,255,255,0.25); }
.pasos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.paso-card {
  background: var(--blanco);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  min-width: 170px;
  max-width: 195px;
  flex: 1;
  box-shadow: var(--shadow);
  position: relative;
  opacity: 0; transform: translateY(20px);
}
.paso-card.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.paso-num {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px;
  background: var(--dorado); color: #002060;
  border-radius: 50%;
  font-weight: 800; font-size: 0.82rem;
  display: flex; align-items: center; justify-content: center;
}
.paso-icon {
  width: 50px; height: 50px;
  background: #e0f0ff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--azul);
  margin: 0.3rem auto 0.75rem;
}
.paso-card h4 { font-size: 1rem; font-weight: 700; color: #002060; margin-bottom: 0.4rem; }
.paso-card p  { font-size: 0.82rem; color: var(--gris); line-height: 1.5; }
.paso-flecha  { color: var(--azul); font-size: 1.2rem; opacity: 0.35; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, #002060 0%, var(--azul) 100%);
  padding: 5rem 1.5rem;
}
.cta-inner {
  text-align: center;
  color: var(--blanco);
}
.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta-inner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER — idéntico al sitio original
   ============================================================ */
.footer-empresarial {
  background: var(--negro);
  color: #eee;
  padding: 3rem 1rem 0;
}
.footer-container {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; gap: 2rem;
}
.footer-logo-section { flex: 1.5 1 280px; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo img { height: 45px; }
.footer-logo span { font-size: 1.2rem; font-weight: bold; color: #fff; }
.footer-description { margin-top: 1rem; line-height: 1.6; color: #ccc; font-size: 0.9rem; }
.footer-social { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: #333; border-radius: 50%; color: #fff;
  transition: all 0.3s; text-decoration: none;
}
.social-icon:hover:nth-child(1) { background: #1877f2; }
.social-icon:hover:nth-child(2) { background: #1da1f2; }
.social-icon:hover:nth-child(3) { background: linear-gradient(45deg,#f09433,#d62976,#962fbf,#4f5bd5); }
.social-icon:hover { transform: translateY(-3px); }
.footer-links, .footer-contacto { flex: 1 1 180px; }
.footer-links h4, .footer-contacto h4 {
  font-size: 1.05rem; margin-bottom: 0.75rem; color: #b0d8ff;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: #ccc; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--dorado); }
.footer-contacto p { color: #ccc; margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-contacto p i { color: #b0d8ff; margin-right: 6px; }
.footer-contacto a { color: #b0d8ff; text-decoration: none; }
.footer-contacto a:hover { color: var(--dorado); }
.footer-legal-bar { background: #111; margin-top: 2rem; padding: 1.1rem 0; border-top: 1px solid #333; }
.footer-legal-container {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 1rem; gap: 1rem;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 2rem; }
.footer-legal-links a { color: #aaa; text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-legal-links a:hover { color: var(--dorado); }
.footer-copyright { color: #666; font-size: 0.85rem; }

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .paso-flecha { display: none; }
  .pasos-grid  { gap: 1.5rem; }
}
@media (max-width: 768px) {
  .hero-stats { gap: 1.2rem; }
  .stat-sep   { display: none; }
  .cursos-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .cta-btns  { flex-direction: column; align-items: center; }
  .footer-container { flex-direction: column; text-align: center; }
  .footer-logo { justify-content: center; }
  .footer-social { justify-content: center; }
  .footer-legal-container { flex-direction: column; text-align: center; }
  .footer-legal-links { gap: 1rem; justify-content: center; }
}
@media (max-width: 420px) {
  .features-grid { grid-template-columns: 1fr; }
}