/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= VARIABLES ================= */
:root {
  --header-height: 200px; /* altura aproximada del header + menú */
}

/* ================= BODY ================= */
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: #fff;
  color: #212529;
}

/* ================= SECCIÓN HERO ================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 90vh; /* altura relativa a la ventana */
  min-height: 400px; /* mínimo para móviles */
  overflow: hidden;
}

/* Video de fondo */
.video-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.video-hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene proporción y cubre toda la sección */
  z-index: 0;
}


/* Capa translúcida solo sobre header */
.video-overlay-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.65);
  z-index: 1;
}

/* ================= HEADER ================= */
.site-header {
  position: relative;
  z-index: 2;
  padding: 30px 20px 10px;
  text-align: center;
  background: transparent;
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1116px;
  margin: 0 auto 20px;
}

.header-logo img {
  height: 80px;
}

.header-logo h1 {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    color: #003660;
}

.header-social {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.header-social img {
  width: 22px;
  height: 22px;
}

.header-nav {
  display: flex;
  justify-content: center;
  font-size: 16px;
  margin-top: 35px;
}

.main-nav a {
  text-decoration: none;
  color: #003660;
  margin: 0 20px;
  padding-bottom: 5px;
  position: relative;
}

.main-nav a.active {
  pointer-events: none;
  cursor: default;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #003660;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

/* ================= TEXTO SOBRE VIDEO ================= */
.video-text {
  position: relative;
  z-index: 2;
  top: 30%;
  text-align: center;
  color: #fff;
}

.video-text h1 {
  font-size: 42px;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

.video-text p {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ================= CONTENIDO PRINCIPAL ================= */
.about-content {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.about-content h2 {
  font-size: 32px;
  margin-bottom: 30px;
  color: #003660;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #333;
}

/* ================= FOOTER ================= */
.site-footer {
  background-color: #f0f0f0;
  text-align: center;
  padding: 40px 20px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-legal {
  margin-top: 20px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .video-text {
    top: 20%;
  }

  .about-content {
    margin: 50px auto;
  }

  .video-hero video {
    object-fit: cover;
  }
}
/* ================= MOBILE HEADER ================= */
.mobile-header {
  display: none;
  position: relative;
  z-index: 20;
}

.mobile-top {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 16px 20px;
}

.mobile-logo {
  justify-self: center;
}

.mobile-logo img {
  height: 100px;
}

.burger {
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #003660;
  margin: 5px 0;
}

/* ================= MENÚ MÓVIL DESPLEGABLE ================= */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 54, 96, 0.85);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 998;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: #fff;
  padding: 40px 30px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 25px;
}

.mobile-menu a {
  text-decoration: none;
  color: #003660;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.mobile-menu .active a {
  text-decoration: underline;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .site-header,
  .header-nav {
    display: none;
  }

  .mobile-header {
    display: block;
  }
}
@media (max-width: 992px) {
  .hero-section {
    height: 70vh; /* un poco más pequeño en tablets */
  }
}

@media (max-width: 576px) {
  .hero-section {
    height: 50vh; /* más pequeño en móviles */
  }
}

.about-content{
  text-align:center;
}

.about-content img{
  width:50%;
  max-width:300px;
}
