:root {
  --primary: #3772f7;
  --secondary: #40eb95;
  --white: #ffffff;
  --text: #222222;
  --bg: #f9f9f9;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--text);
  font-family: 'Segoe UI', sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  text-align: center;
  background-color: var(--primary);
  color: white;
  position: relative;
  padding-bottom: 2vh;
}

.logo {
  height: 150px;
  margin-bottom: 1rem;
  margin-top: 5rem;
  filter: brightness(0) invert(1);
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.header p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta:hover {
  background: var(--secondary);
  color: white;
}

/* Sección About */
.about {
  background-color: var(--white);
  text-align: center;
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
}

.about h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about video {
  max-width: 720px;
  width: 100%;
  display: block;
  border-radius: 30px;
}


/* Sección Certificados */
.certificado{
  background-color: var(--secondary);
  text-align: center;
  padding-bottom: 3.5rem;
  padding-top: 3.5rem;
}

.certificado-inner {
  max-width: 720px;
  margin: 0 auto;
}

.certificado h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.certificado p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  padding: 3rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  background: var(--primary);
  color: white;
}

.divider1 {
  display: block;
  line-height: 0;
  height: 80px;        /* = alto del viewBox */
  width: 100vw;        /* ancho del viewport */
  max-width: 100vw;
  object-fit: fill;    /* estira el svg dentro del box */
  position: relative;
  left: 50%;
  margin-left: -50vw;  /* truco full-bleed */
}

/* Antialias seam (Chrome): ajusta según sea ola superior o inferior */
.divider1--top {  margin-bottom: -1px; transform: scaleY(-1); transform-origin: 50% 50%; }
.divider1--bottom { margin-top: -1px; }

/* Barra de navegación */

.logo-nav {
  height: 35px;
  filter: brightness(0) invert(1);
  display: block;
}

.logo-link {
  display: inline-flex;   /* sin baseline rara */
  align-items: center;
  line-height: 0;         /* sin altura de línea */
  text-decoration: none;
  padding: 0;             /* por si hereda padding de otros <a> */
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--primary);
  z-index: 1000;
  text-align: center;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 10px 3rem;
  width: 100%;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem 0;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--secondary);
}

/* Asegurar espacio arriba del todo */
body {
  padding-top: 20px; /* Ajusta según la altura real de la barra */
}


/* Responsive */
@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .header p {
    font-size: 1rem;
  }

  .logo {
    height: 100px;
  }

  .about h2 {
    font-size: 1.5rem;
  }

  .about p {
    font-size: 1rem;
  }
}

/* Altura del header y hueco extra */
:root {
  --nav-h: 70px;   /* súbelo a 96/104 si quieres más */
  --nav-gap: 0px; /* separación extra bajo el header */
}

.navbar{
  position: fixed; top:0; left:0; right:0; z-index:100000;
}

body{ padding-top: calc(var(--nav-h) + var(--nav-gap)); }

/* Si prefieres empujar solo el contenido principal: */
/* .container{ margin-top: calc(var(--nav-h) + var(--nav-gap)); } */