/* Fuente base */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #0c1c3d;
  color: #333;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: #0c1c3d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 68px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  border-bottom: 3px solid #f1c40f;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-brand img { height: 44px; }
.navbar-brand-name {
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: .01em;
}
.navbar-brand-name span { color: #f1c40f; }

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-nav li a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  display: block;
}
.navbar-nav li a:hover,
.navbar-nav li a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
  text-decoration: none;
}
.navbar-nav li a.nav-cta {
  background: #f1c40f;
  color: #0c1c3d;
  font-weight: 700;
  padding: 8px 22px;
  border-radius: 50px;
  margin-left: 10px;
  transition: background .2s, transform .2s;
}
.navbar-nav li a.nav-cta:hover {
  background: #ffe234;
  color: #0c1c3d;
  transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  gap: 5px;
}
.menu-toggle .bar {
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: .3s;
}

@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .menu-toggle { display: flex; }
  .navbar nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #0c1c3d;
    border-top: 1px solid rgba(241,196,15,0.3);
    padding: 12px 0 20px;
    transform: translateY(-110%);
    transition: transform .3s ease;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  }
  .navbar nav.active {
    transform: translateY(0);
  }
  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    padding: 0 24px;
    gap: 2px;
  }
  .navbar-nav li a { padding: 12px 14px; border-radius: 8px; }
  .navbar-nav li a.nav-cta { margin-left: 0; margin-top: 8px; text-align: center; border-radius: 8px; }
}

/* Hero Section */
.hero {
  background-color: #0c1c3d; /* Fondo azul oscuro */
  color: white;
  text-align: center;
  padding: 1rem 1rem; /* Agregar padding para más altura */
  min-height: 200px; /* Altura mínima para la sección */
}

.hero h1 {
  font-size: 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  margin: 1rem 0; /* Agregar margen vertical */
}

.hero p {
  font-size: 1.4rem; /* Aumentar tamaño del párrafo */
}

.btn-cta {
  display: inline-block;
  background: #f1c40f;
  color: #0c1c3d;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0.8rem 2.2rem;
  border: none;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(241,196,15,0.15);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}

.btn-cta:hover, .btn-cta:focus {
  background: linear-gradient(90deg, #27ae60 60%, #2ecc40 100%);
  color: #0c1c3d;
  box-shadow: 0 6px 24px rgba(39,174,96,0.25), 0 0 0 3px #27ae60;
  outline: none;
  transform: scale(1.07);
}

/* Diplomados */
.diplomados {
  padding: 4rem 2rem;
  background-color: #f7f7f7;
}

.diplomados .contenido {
  max-width: 1200px;
  margin: 0 auto;
}

.diplomado {
  background-color: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.diplomado h3 {
  color: #0c1c3d;
  margin-bottom: 1rem;
}

.diplomado p {
  color: #666;
  margin-bottom: 1.5rem;
}

/* Presentación */
.presentacion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 2rem;
  gap: 2rem;
  background-color: #f7f7f7;
}

.presentacion .contenido {
  flex: 1;
  min-width: 300px;
}

.presentacion h2 {
  color: #0c1c3d;
}

.presentacion .logo-presentacion img {
  max-width: 200px;
}

/* Opiniones */
.opiniones {
  padding: 4rem 2rem;
  background-color: #fff;
  text-align: center;
}

.opiniones h2 {
  color: #0c1c3d;
  margin-bottom: 2rem;
}

/* Offset body for fixed navbar */
body { padding-top: 68px; }

/* Footer */
.footer {
  background: #f1c40f;
  color: #0c1c3d;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 52px 80px 32px;
  position: relative;
  border-top: 4px solid #0c1c3d;
}

/* Columnas del footer */
.footer-col { display: flex; flex-direction: column; gap: 12px; }

.footer-brand-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0c1c3d;
  margin-bottom: 4px;
}
.footer-brand-name span { color: #152a6a; }
.footer-brand img { height: 100px; width: auto; object-fit: contain; margin-bottom: 8px; }
.footer-brand p { font-size: .88rem; color: #333; line-height: 1.6; }

.footer-col h4 {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #0c1c3d;
  margin-bottom: 4px;
  border-bottom: 2px solid rgba(12,28,61,0.15);
  padding-bottom: 6px;
}

.footer-links { display: flex; flex-direction: column; gap: 6px; list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
.footer-links a {
  color: #1a1a1a;
  text-decoration: none;
  font-size: .92rem;
  transition: color .2s;
}
.footer-links a:hover { color: #0c1c3d; font-weight: 600; }

.footer-contacto { display: flex; flex-direction: column; gap: 6px; }
.footer-contacto p { margin: 0; font-size: .92rem; color: #1a1a1a; }

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(12,28,61,0.2);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .8rem;
  color: #333;
}

.footer-logo img { height: 48px; }

.facebook-feed {
  display: flex;
  justify-content: center;
}
.facebook-feed iframe,
.facebook-feed .fb-iframe {
  width: 100%;
  max-width: 250px;
  height: 260px;
  border: none;
  overflow: hidden;
  display: block;
  border-radius: 8px;
}

.developer-credit {
  font-size: .75rem;
  color: #444;
  opacity: 0.7;
}
.developer-name { font-weight: 700; }
.developer-credit:hover { opacity: 1; }

/* Footer responsive */
@media (max-width: 900px) {
  .footer { grid-template-columns: 1fr 1fr; padding: 40px 40px 28px; }
}
@media (max-width: 600px) {
  .footer { grid-template-columns: 1fr; padding: 36px 24px 24px; gap: 28px; text-align: center; }
  .footer-links { align-items: center; }
  .footer-bottom { justify-content: center; }
  .footer-brand img { margin: 0 auto 8px; display: block; }
  .facebook-feed { margin: 0 auto; }
}

/* Menú hamburguesa — estilos migrados a nueva navbar en .navbar-nav */

/* Responsividad páginas internas */
@media (max-width: 768px) {
  .diplomados .contenido {
    padding: 0 1rem;
  }

  .presentacion {
    flex-direction: column;
    align-items: center;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
}