/*
Theme Name: Mi Tema Personalizado
Theme URI: http://localhost/miweb
Author: Tu Nombre
Author URI: http://localhost
Description: Tema ligero y multilingüe para proyecto naturalista
Version: 1.0
*/
.imagen-cabecera {
    width: 100%;
    height: 175px;
    overflow: hidden; /* Oculta lo que sobrepase el alto */
  }
  
  .imagen-cabecera img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen sin deformarla */
    display: block;
  }
  
  .logo {
    text-align: center;
    margin-top: 20px;
  }
  
  .logo img {
    width: 150px; /* o ajusta el tamaño que quieras fijo */
    height: auto; /* auto para que NO se deforme */
    object-fit: contain; /* mejor que cover para logos */
    display: inline-block;
  }

  /* Menú horizontal alineado a la derecha */
.menu-principal ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  background: #fff;
}

/* Estilo para cada ítem */
.menu-principal li {
  position: relative;
}

/* Enlaces del menú */
.menu-principal a {
  display: block;
  padding: 15px 20px;
  color: #000;
  text-decoration: none;
}

/* Primer submenú (segundo nivel) */
.menu-principal ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  z-index: 1000;
  margin: 0;
  padding: 0;
}

/* Sub-submenú (tercer nivel) */
.menu-principal ul ul ul {
  top: 0;
  left: 100%;
  background: #fff;
  min-width: 200px;
  display: none;
  position: absolute;
  z-index: 2000;
}

/* Mostrar submenú al pasar el cursor */
.menu-principal li:hover > ul {
  display: block;
}


/* Estilo del submenú */
.menu-principal ul ul li {
  border-bottom: 1px solid #ddd;
}
.menu-principal ul ul li:last-child {
  border-bottom: none;
}


.menu-principal ul {
  list-style: none; /* para quitar los puntos */
  margin: 0;
  padding: 0;
  display: flex; /* para que los items estén en fila */
  justify-content: flex-end; /* para alinearlos a la derecha */
}



.menu-principal ul li:first-child {
  margin-left: 0; /* quitar margen del primer item */
}

.selector-idioma {
  position: absolute;
  top: 15px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.selector-idioma a {
  padding: 6px 12px;
  background-color: #333;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .selector-idioma {
    top: 10px;
    right: 10px;
    flex-direction: column;
    gap: 5px;
  }

  .selector-idioma a {
    font-size: 13px;
    padding: 5px 10px;
  }
}


.selector-idioma {
  position: fixed;
  top: calc(32px + 10px); /* Para admin bar en escritorio */
  right: 20px;
  z-index: 9999;
  display: flex;
  gap: 10px;
}

@media screen and (max-width: 782px) {
  .selector-idioma {
    top: calc(46px + 10px); /* Admin bar más alta en móvil */
  }
}

body.admin-bar .selector-idioma {
  top: 52px; /* Ajuste cuando está visible la admin bar */
}

.site-header {
  width: 100%;
  background-color: #f5f5f5;
  padding: 10px 20px;
}
.idioma-y-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
}

/* Ocultar puntos y organizar lista horizontal */
.selector-idioma ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
}

/* Eliminar bullets y márgenes */
.selector-idioma li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

/* Estilo base de los enlaces */
.selector-idioma a {
  background-color: white;
  color: black;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  border: 2px solid #28a745;
  transition: all 0.3s ease;
}

/* Estilo cuando está activo */
.selector-idioma a.pll-current {
  background-color: #28a745;
  color: white !important;
  border-color: #28a745;
}

/* Hover en cualquier enlace */
.selector-idioma a:hover {
  background-color: #28a745;
  color: white;
}


.custom-language-switcher {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.custom-language-switcher li {
  margin: 0;
}

.custom-language-switcher a {
  background-color: white;
  color: black;
  font-weight: bold;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  border: 2px solid #28a745;
  transition: all 0.3s ease;
}

.custom-language-switcher a.activo {
  background-color: #28a745;
  color: white !important;
  border-color: #28a745;
}

.custom-language-switcher a:hover {
  background-color: #28a745;
  color: white;
}

.texto-justificado {
  text-align: justify;
}


  .assemblea-container {
    max-width: 800px;
    margin: auto;
    text-align: justify;
    font-size: 18px;
    line-height: 1.6;
  }

  .assemblea-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
  }

  .assemblea-images img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
  }


/* ===== MOBILE MENU ===== */
@media screen and (max-width: 768px) {

  .menu-principal ul {
    position: fixed;
    top: 0;
    right: -250px; /* fuera de pantalla */
    width: 250px;
    height: 100%;
    background: #fff;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 60px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    z-index: 9999;
  }

  .menu-principal ul.show {
    left: 0;
  }

  .menu-principal li {
    margin: 0;
  }

  .menu-principal a {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    color: #333;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    z-index: 10000;
  }

  /* SEGUNDO NIVEL */
  .menu-principal ul ul {
    position: static;
    width: 100%;
    background: #f9f9f9;
    display: none;
    flex-direction: column;
    padding-left: 15px; /* desplazamiento para jerarquía */
  }

  .menu-principal  ul ul.show  {
      left: 0;
  }

  .menu-principal li.open > ul {
    display: flex;
  }

  /* TERCER NIVEL (más desplazado) */
  .menu-principal ul ul ul {
    background: #f1f1f1;
    padding-left: 30px;
  }

    .menu-principal ul  ul ul.show  {
      right: 0;
  }
}


.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f0f0f0;
}

.auth-wrapper form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 400px;
}

