
/* =========================================================
   STYLE RESPONSIVE V2.CSS
   Adaptado para móvil, tablet, notebook y desktop
   ========================================================= */

/* === MENÚ HAMBURGUESA RESPONSIVE === */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: white; /* hamburguesa blanca */
  border-radius: 2px;
  transition: 0.3s;
}

/* Estado activo (X al abrir menú) */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Ocultar menú normal en móvil/tablet */
@media (max-width: 768px) {
  .navbar-nav {
    display: none;
    flex-direction: column;
    background-color: #111; /* fondo oscuro */
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    text-align:justify;
    z-index: 1000;
  }

  .navbar-nav.active {
    display: flex;
  }

  .navbar-nav .nav-link {
    color: white !important;
    padding: 1rem;
    display: block;
  }

  .menu-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .navbar-brand {
    margin-left: 15px;
  }
}

/* =======================
   MÓVILES (320–480px)
   ======================= */
@media (max-width: 480px) {

  body {
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
   
  }
  .p-5 {
    padding: 0rem !important;
}

  h1, h2, h3, h4, h5, h6 {
    font-size: 1.4rem;
    text-align: center;
    line-height: 1.3;
    margin-bottom: 1rem;
  }
  .mb-5.p{
    padding-left: 10px;
  }

  .secondary-font {
    font-size: 2.5rem;
    line-height: 1.2;
    text-align: justify;
  }

  section, .container, .row, .col, .faq-content, .contenedor-noticia, .elegime, .tipos, .news {
    text-align: justify;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
  }
  #posts.p{
    padding-left: 10px;
  }


  .review{
    padding: 20px;
  }
.swiper,swiper-container{
    padding: 10px;
  }
   .swiper-wrapper {
        height: auto;
      }
  p {
    max-width: 100%;
    
  }

  img, .imagen-circular, .imagen2, .imagen3, .fotos img {
    display: block;
    margin: 0 auto 1.2rem auto;
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .fotos {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 1rem;
  }

  .btn, a.border-animation, .BOTON1 {
    width: 80%;
    margin: 1rem auto;
    text-align: center;
    display: block;
  }

  section {
    padding: 2rem 0;
  }

  .menu-toggle {
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .navbar-nav {
    text-align: center;
    background-color: #111;
  }

  .navbar-nav .nav-link {
    color: white !important;
    padding: 1rem 0;
    display: block;
  }
}

/* Tablets (481–768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .secondary-font {
    font-size: 4rem;
    text-align: justify;
  }
  section {
    padding: 3rem 1rem;
    text-align: justify;
  }
  .fotos {
    flex-direction: column;
    align-items: center;
  }
  .fotos img {
    width: 80%;
    max-width: 400px;
  }
}

/* Notebooks (769–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .secondary-font {
    font-size: 5rem;
  }
  section {
    padding: 4rem 2rem;
  }
  .fotos img {
    width: 48%;
  }
}

/* Desktop (1025px en adelante) */
@media (min-width: 1025px) {
  .navbar-nav {
    display: flex !important;
    justify-content: flex-end;
  }
}


