/* ================= 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;
}


/* ================= 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;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 20px; /* <-- Esto baja la línea */
}

.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);
}

/* ================= 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 */
  }
}

/* Contenedor principal */
.contact-content{
  max-width:1000px;
  margin:auto;
  padding:40px 20px;
  text-align:center;
  font-family: Arial, sans-serif;
}

/* Título */
.contact-content h2{
  font-size:28px;
  margin-bottom:30px;
  color:#003660;
}

/* Contenedor del mapa */
.contact-map{
  margin:30px 0 50px 0;
  border-radius:8px;
  overflow:hidden;
}

/* Estilo del iframe del mapa */
.contact-map .map-iframe{
  width:100%;
  height:400px;
  border:0;
  display:block;
  border-radius:8px;
}

/* Contenedor de información de contacto */
.contact-info{
  display:flex;
  justify-content:center;
  gap:60px;
  flex-wrap:wrap;
}

/* Cada ítem de contacto */
.contact-item{
  min-width:180px;
}

.contact-item h3{
  margin-bottom:10px;
  font-size:18px;
  color:#003660;
}

.contact-item p{
  color:#555;
  font-size:16px;
  line-height:1.4;
}
