/* ============================================
   Header, Footer y Separador comunes
   Usado por: index, victimas, temas, proyecto, video
   ============================================ */

@font-face {
  font-family: 'Outfit';
  src: url('../font/Outfit-Regular.ttf') format('truetype');
}

/* ========== HEADER ========== */
header {
  width: 100%;
  min-height: 10rem;
  height: auto;
  background-color: rgb(63, 63, 63);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  position: static;
  z-index: 1002;
  padding: 0 4% 0 6%;
  box-sizing: border-box;
  justify-content: flex-start;
  align-items: center;
}

header .logo {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 2rem;
  flex: 0 0 auto;
}

header #main-nav {
  width: auto;
  margin-left: auto;
}

header .img-fbuesa {
  width: 10rem;
  height: 100%;
}

header .logo a {
  display: block;
}

header .img-memorial {
  width: 8rem;
  height: 70%;
}

header .logo img {
  max-width: 160px;
  object-fit: contain;
}

/* ========== NAV ========== */
nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 65%;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  gap: 10%;
  list-style-type: none;
  margin-right: 1%;
}

nav li {
  color: white;
  font-size: 25px;
  white-space: nowrap;
}

nav a {
  text-decoration: none;
  color: white;
}

header nav li a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

header nav li:hover a {
  border-bottom-color: white;
}

/* ========== MENÚ HAMBURGUESA ========== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  z-index: 10000;
  position: relative;
  margin-left: auto;
}

.mobile-menu-toggle span {
  width: 2rem;
  height: 0.25rem;
  background: white;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
  transform-origin: center;
}

.mobile-menu-toggle span:nth-child(1) {
  top: 0;
}
.mobile-menu-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.mobile-menu-toggle span:nth-child(3) {
  bottom: 0;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 40%;
  height: 100vh;
  background-color: rgb(63, 63, 63);
  z-index: 9999;
  transition: right 0.3s ease-in-out;
  padding-top: 11rem;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
  right: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-nav.active ul {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  padding-bottom: 3rem;
  margin: 0;
}

.mobile-nav li {
  font-size: 20px;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav a {
  display: block;
  width: 100%;
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* Menú móvil - altura pequeña: más compacto para no ocupar tanto */
@media (max-height: 600px) {
  .mobile-nav {
    padding-top: 4rem !important;
    width: 38% !important;
  }
  .mobile-nav ul {
    gap: 0.75rem;
    padding: 0.75rem 1.5rem 1.5rem;
  }
  .mobile-nav li {
    padding: 0.5rem 0;
    font-size: 17px;
  }
}
@media (max-height: 500px) {
  .mobile-nav {
    padding-top: 3.5rem !important;
    width: 42% !important;
  }
  .mobile-nav ul {
    gap: 0.5rem;
    padding: 0.5rem 1.25rem 1rem;
  }
  .mobile-nav li {
    padding: 0.4rem 0;
    font-size: 15px;
  }
}
@media (max-height: 400px) {
  .mobile-nav {
    padding-top: 2.5rem !important;
    width: 45% !important;
  }
  .mobile-nav ul {
    gap: 0.35rem;
    padding: 0.4rem 1rem 0.75rem;
  }
  .mobile-nav li {
    padding: 0.3rem 0;
    font-size: 14px;
  }
}

/* ========== SEPARADOR ========== */
.separator {
  width: 100%;
  height: 1rem;
  display: flex;
  flex-direction: row;
  margin: 2rem 0;
}

.orange {
  background-color: #dc9c64;
  width: 33.33%;
  height: 1rem;
}

.green {
  background-color: #6eab27;
  width: 33.33%;
  height: 1rem;
}

.black {
  background-color: #1d1d1b;
  width: 33.34%;
  height: 1rem;
}

/* ========== FOOTER ========== */
footer {
  background-color: #444444;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1rem;
}

footer .column {
  flex: 1 1 16%;
}

footer img {
  width: 65%;
  height: 60%;
}

footer .column-text {
  flex: 1 1 23%;
  margin-top: 2.7%;
}

footer .img-two {
  margin-top: 1.5rem;
}

footer .img-column p {
  margin: 0;
  border-left: 1px white solid;
  padding-left: 1rem;
}

footer .img-column {
  margin-top: 1rem;
}

footer .last {
  flex: 1 1 23%;
  margin-left: 0%;
}

footer .footer-text {
  font-size: 0.875rem;
  display: block;
}

footer .column-text p {
  margin-top: 1.3rem;
}

footer a {
  color: white;
  text-decoration: none;
}

footer .first {
  margin-left: 13%;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1800px) {
  header {
    min-height: 8rem;
    height: auto;
  }
  header .img-memorial {
    width: 8rem;
  }
  header .img-fbuesa {
    width: 10rem;
  }
}

@media (max-width: 1600px) {
  footer .first {
    margin-left: 5%;
  }
  footer .column p, footer .column-text span {
    font-size: 11px !important;
  }
  footer .column-text b {
    font-size: 12px !important;
  }
  footer .column-text p {
    margin-top: 1vw;
  }
  footer img {
    width: 6.4rem;
  }
  footer .first {
    margin-top: 3.2vw;
  }
  footer .img-two {
    margin-top: 4vw;
  }
}

@media (max-height: 400px) {
  header {
    position: static;
  }
}

@media (max-width: 1025px) {
  header {
    position: relative;
    min-height: 8rem;
    height: auto;
    flex-wrap: wrap;
  }
  #main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: auto;
  }
  .mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scale(0);
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
  }
  .mobile-nav.active {
    display: block;
    padding-top: 9rem !important;
  }
  header .logo {
    width: 30%;
    gap: 1vw;
  }
  header .logo img {
    max-width: 90%;
  }
  header .img-fbuesa {
    width: 7rem;
    height: 6rem;
  }
  header .img-memorial {
    width: 6rem;
    height: 4rem;
  }
  footer .column p, footer .column-text span {
    font-size: 15px !important;
  }
  footer .column-text b {
    font-size: 16px !important;
  }
  footer {
    gap: 1rem;
    margin: 0;
    font-size: 100%;
  }
  footer img {
    width: 50% !important;
    height: 20% !important;
  }
  footer .column,
  footer .column-text {
    flex: 1 1 44%;
  }
  footer .img-column p {
    text-align: left;
    padding-left: 0;
    border-left: none;
  }
  footer .img-two {
    margin-top: 6vw;
  }
  footer .first,
  footer .third {
    margin-left: 5%;
    margin-top: 3.5%;
  }
}
@media (max-width: 770px) {
  .mobile-menu-toggle {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
}
/* Botón menú más grande desde 770px hasta el máximo donde se muestra */
@media (min-width: 770px) and (max-width: 1025px) {
  .mobile-menu-toggle {
    width: 3rem;
    height: 2.25rem;
    padding: 0.35rem 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .mobile-menu-toggle span {
    width: 3rem;
    height: 0.35rem;
  }
}

@media (min-width: 391px) and (max-width: 768px) {
  header {
    height: 7rem;
    position: relative;
  }
  #main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
  }
  .mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scale(0);
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
  }
  .mobile-nav.active {
    display: block;
    padding-top: 8rem !important;
  }
  header .logo {
    width: 30%;
    gap: 1vw;
  }
  header .logo img {
    max-width: 90%;
  }
  header .img-fbuesa {
    width: 7rem;
    height: 6rem;
  }
  header .img-memorial {
    width: 6rem;
    height: 4rem;
  }
  nav {
    width: 55%;
  }
  nav li {
    font-size: 15px;
  }
  footer {
    gap: 1rem;
    margin: 0;
    font-size: 100%;
  }
  footer .column,
  footer .column-text {
    flex: 1 1 40%;
  }
  footer .img-column p {
    text-align: left;
    padding-left: 0;
    border-left: none;
  }
  footer img {
    width: 40%;
    height: 10%;
  }
  footer .first {
    margin-left: 5%;
    margin-top: 1%;
  }
  footer .third {
    margin-left: 5%;
  }
  footer span {
    font-size: 12px;
  }
  footer b {
    font-size: 15px;
  }
  footer .column p {
    font-size: 12px;
  }
  footer .column-text {
    margin-left: 5%;
  }
  footer .img-two {
    margin-top: 4vw;
  }
  footer .footer-text {
    font-size: 0.75rem;
  }
  footer .column {
    margin-left: 5%;
  }
  footer .first {
    margin-top: 2%;
  }
}

@media (max-width: 570px) {
  footer .column p,
  footer .column-text span,
  footer .column-text p {
    font-size: 2vw !important;
  }
  footer .column-text b {
    font-size: 2.5vw !important;
  }
}

@media (max-width: 470px) {
  header {
    min-height: 5rem;
    height: auto;
  }
  .mobile-nav {
    padding-top: 6rem !important;
  }
  footer .column {
    margin-left: 5%;
  }
  footer .column-text {
    margin-top: 0;
  }
  footer .column p,
  footer .column-text span,
  footer .column-text p {
    font-size: 3vw;
  }
  footer .column-text b {
    font-size: 10px;
  }
  footer .column,
  footer .column-text {
    flex: 1 1 40%;
  }
  footer img {
    width: 60% !important;
  }
  .logo {
    width: 50%;
  }
  .logo .img-memorial {
    width: 4rem;
  }
  .logo .img-fbuesa {
    width: 5rem;
  }
  header a {
    font-size: 70%;
  }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (max-width: 390px) {
  header {
    height: 5rem;
    position: relative;
  }
  #main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
  }
  .mobile-menu-toggle.active span:nth-child(1) {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(45deg);
  }
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scale(0);
  }
  .mobile-menu-toggle.active span:nth-child(3) {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%) rotate(-45deg);
  }
  .mobile-nav.active {
    display: block;
    padding-top: 6rem !important;
  }
  header .logo {
    width: 30%;
    gap: 1vw;
  }
  header .logo img {
    max-width: 90%;
  }
  header .img-fbuesa {
    width: 7rem;
    height: 6rem;
  }
  header .img-memorial {
    width: 6rem;
    height: 4rem;
  }
}
