/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL */
body {
    font-family: 'Verdana', 'Arial', sans-serif;
    background: #f7f7f7;
    color: #222;
    overflow-x: hidden;
    font-size: 14px;
    line-height: 1.6;
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px clamp(40px, 5vw, 80px);
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    border-bottom: 1px solid #ddd;
}



/* MENU PRINCIPAL */
.menu-principal ul {
    list-style: none;
    display: flex;
    gap: clamp(20px, 5vw, 40px);
    pointer-events: none;
}
.menu-principal li {
    cursor: pointer;
    font-size: 14px;
    text-transform: capitalize;
    transition: color 0.3s;
    font-family: 'Verdana', 'Arial', sans-serif;
    color: #888;
    pointer-events: auto;
}
.menu-principal li.activo {
    color: #222;
}

/* MENU IDIOMA */
.menu-idioma {
    position: relative;
    margin-left: clamp(40px, 5vw, 80px);
}
#idioma-actual {
    cursor: pointer;
    color: #555;
    font-size: 14px;
}
#idiomas {
    position: absolute;
    top: calc(100% - 8px);
    right: -21px;
    display: none;
    flex-direction: row;
    gap: 10px;
    padding: 5px;
    background: transparent;
    opacity: 0;
    transition: all 0.4s ease;
}
#idiomas a {
    padding: 6px 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    color: #888;
    transition: color 0.3s;
}
#idiomas a.activo {
    color: #222;
}
#idiomas a:hover {
    color: #000;
}

/* MAIN */
main#secciones {
    margin-top: 80px;
    padding: 0;
    background: #f7f7f7;
}

/* SLIDER BASE */
.portadaSwiper {
    width: 100vw;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.swiper-wrapper {
    width: 100%;
    height: 100%;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.pagination-container {
    width: 100%;
    height: 55px;
    background: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}
.swiper-pagination {
    position: relative !important;
    margin-bottom: 10px !important;
    z-index: 10;
}
.swiper-pagination-bullet {
    background: #999 !important;
    width: 22px;
    height: 22px;
    margin: 0 12px;
    opacity: 1;
    border-radius: 50%;
}
.swiper-pagination-bullet-active {
    background: #000 !important;
}



.fichaSwiper {
    width: 100%;
    aspect-ratio: 5 / 3; /* misma proporción que los botones */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.fichaSwiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

/* ARTÍCULOS */
.articulo-lista {
    padding: 0 clamp(40px, 5vw, 80px);
    margin: 0 auto;
    position: relative;
}
.articulo-bloque {
    margin:20px 0;
    background-color: #f7f7f7;
}
.articulo-parte {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    margin: 10px 0;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.articulo-parte.oculto {
    opacity: 0;
    transform: translateY(-20px);
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}
@media (max-width: 1024px) {
    .articulo-parte {
        margin: 5px 0;
    }
}
.articulo-parte-imagen img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
}
.articulo-parte-texto {
    padding: 20px clamp(40px, 5vw, 80px);
    font-size: 14px;
    text-align: justify;
}
.articulo-parte-titulo {
    padding: 20px clamp(40px, 5vw, 80px);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    color: #222;
}
.articulo-parte-tema {
    position: relative;
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    padding: 8px 16px;
    overflow: hidden;
}
.articulo-parte-tema::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background-color: #007BFF;
    border-radius: 0 12px 12px 0;
    transition: width 0.4s ease;
}
.articulo-parte-tema:hover::before {
    width: 100%;
}
.articulo-parte-enlace {
    text-align: center;
    margin: 30px 0;
}
.articulo-parte-enlace a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    border: 2px solid #555;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}
.articulo-parte-enlace a:hover {
    background-color: #555;
    color: #fff;
}

/* Filtros tipo – Sticky */
.articulo-parte-botones {
    position: sticky;
    top: 80px;
    z-index: 900;
    background: rgba(247, 247, 247, 0.95);
    padding: 7px 0;
    margin-top: 0;
    opacity: 0;
    transform: translateY(-20px);
    animation: aparecerTipos 0.5s forwards;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    border-bottom: 1px solid #ddd;
}
@keyframes aparecerTipos {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.tipo-btn {
    font-size: clamp(12px, 1.3vw, 14px);
    font-family: 'Verdana', sans-serif;
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: color 0.3s;
}
.tipo-btn:hover {
    color: #000;
}
.tipo-btn.activo {
    color: #000;
    font-weight: normal;
    cursor: default;
}

/* BOTONES GRID Y PROYECTOS */
.botones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}
.boton-cuadro {
    position: relative;
    width: 100%;
    aspect-ratio: 5/3;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background-color: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    
     transition: transform 0.6s ease-in-out, opacity 0.4s ease, filter 0.4s ease;
  will-change: transform, opacity;
   
}


.boton-cuadro img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}
.boton-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
    padding: 10px 15px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
.boton-texto {
    font-size: 12px;
    font-weight: normal;
    color: #000;
    text-align: center;
    line-height: 1.4;
}
.boton-cuadro.activo .boton-overlay {
    opacity: 1;
    transform: translateY(0);
}
.boton-cuadro.inactivo {
    opacity: 0.2;
    filter: grayscale(100%);
    pointer-events: none;
    transition: opacity 0.8s ease, filter 0.8s ease;
}
.boton-cuadro.zoomear {
    animation: zoomearActivo 0.3s ease;
}


.animacion-entrada {
  opacity: 0;
  transform: translateY(-40px);
  animation: entradaDesdeArriba 0.6s ease forwards;
}









#linea-transicion {
  position: fixed;
  top: 80px; /* altura de tu header */
  left: 0px;
  height: 2px;
  background: black;
  z-index: 999;
  width: 500px
  opacity: 0;
  transition: hight 0.4s ease, opacity 0.4s ease;
}

#linea-transicion.active {
  opacity: 1;
  transform: scaleX(1);
}

#secciones {
  opacity: 0;
  transform: translateY(-800px);
  transition: all 0.8s ease;
}
#secciones.visible {
  opacity: 1;
  transform: translateY(calc(80px + 20px)); /* para que parezca que baja hasta debajo del header */
}


#menu-hamburguesa-principal,
#menu-hamburguesa-idioma,
#menu-hamburguesa-tipos {
  position: fixed;
  top: 80px; /* ajusta según altura de tu header */
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: rgba(255, 255, 255, .8); /* Blanco con transparencia */
  backdrop-filter: blur(5px); /* efecto glassmorphism */
  transition: opacity 0.3s ease;
  opacity: .8;
  pointer-events: none;
}

#menu-hamburguesa-principal.visible,
#menu-hamburguesa-idioma.visible,
#menu-hamburguesa-tipos.visible {
  opacity: 1;
  pointer-events: auto;
}







/* Botón lupa */
.hamburguesa-tipos img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  cursor: pointer;
  display: block;
}

/* Idioma */
.hamburguesa-idioma #idioma-icono {
  
  font-size: 14px;
  background: transparent;
  padding: 6px 8px;
  border: none;
  cursor: pointer;
  color: #000;
}

/* Hamburguesa */
.hamburguesa-boton {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 23px;
  width: 20px;
  cursor: pointer;
  position: relative;
  z-index: 2000;
  margin-right:-20px;
}

.hamburguesa-boton span {
  background: #000;
  height: 2px;
  width: 24px;
  margin: 5px 0;
  transition: all 0.4s ease;
  display: block;
}

/* Animación a X */
.hamburguesa-boton.abierto span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburguesa-boton.abierto span:nth-child(2) {
  transform: rotate(-45deg) translate(5px, -5px);
}






.menu-hamburguesa {
  display: none;
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  background: white;
  z-index: 1500;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  background-color: rgba(255, 255, 255, 0.95); /* Blanco con transparencia */
  backdrop-filter: blur(5px); /* efecto glassmorphism */
}
.menu-hamburguesa ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}
.menu-hamburguesa ul li {
  padding: 10px 20px;
  font-size: 16px;
  color: #222;
  cursor: pointer;
  transition: background 0.2s;
}
.menu-hamburguesa ul li:hover {
  background-color: rgba(255, 255, 255, 0.95); /* Blanco con transparencia */
  backdrop-filter: blur(5px); /* efecto glassmorphism */
}

.menu-hamburguesa.oculto {
  display: none;
}
.menu-hamburguesa.visible {
  display: block;
}

/* Solo visible en móvil */
@media screen and (max-width: 768px) {
  .menu-principal,
  .menu-idioma{
    display: none;
  }
  .hamburguesa-boton,
  .hamburguesa-idioma
   {
    display: flex;
  }
  
    .logo {
    padding: 2px;
    margin-left: -20px !important;
  }
}

@media screen and (min-width: 769px) {

 .logo-movil {
    display: none !important;
  }
  .hamburguesa-tipos {
    display: none !important;
  }
}


@media screen and (min-width: 769px) {
  .hamburguesa-boton,
  .hamburguesa-idioma,
  .hamburguesa-tipos {
    display: none !important;
    .movil {
 display: none !important;
 }}
  
  
}
@media screen and (max-width: 768px) {
  .tipos-proyecto-barra {
    display: none !important;
  }
}


.menu-movil-contenedor {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-left: 5px !important;
  padding-right: 0px;
  margin-top: 30px;
}
#boton-tipos img {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .articulo, .articulo-contenido{
    margin: 0 1px !important;
    padding:1px 2px !important;
  }
}

@keyframes entradaDesdeArriba {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .articulo,
  .articulo-contenido,
  .articulo-parte,
  .articulo-parte-texto,
  .articulo-parte-titulo,
  .pagination-container,
  .swiper-pagination,
  .menu-hamburguesa-principal{
    margin:5px !important;
    margin-left: 1px !important;
    margin-right: 1px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
  
  
  
  
@media (max-width: 768px) {
  .articulo-lista{
    padding-left: 5px !important;
    padding-right: 5px !important;
    padding-top: 5px !important; /* margen superior menor */
    
  }

  .articulo-parte,
  .pagination-container,
  .articulo-contenido,
  .swiper-pagination {
    margin-top: 3px !important;
    margin-bottom: 1px !important;
  }
  
  @media (max-width: 768px) {
  .swiper-pagination {
    margin-bottom: 0 !important;
  }

  .articulo-lista {
    margin-top: 2px !important;
    padding-top: 0 !important;
  }

  
  
  .menu-hamburguesa-principal {
  background-color: rgba(255, 255, 255, 0.95); /* Blanco con transparencia */
  backdrop-filter: blur(5px); /* efecto glassmorphism */
}
  
  
 }

.menu-hamburguesa-principal {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.menu-hamburguesa-principal.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mostrar solo logo de escritorio en pantallas grandes */
@media (min-width: 769px) {
  .logo-web {
    display: block !important;
  }
  .logo-movil {
    display: none !important;
  }
   .logo-web {

    width: 110px;
        height: auto;
  }
  
}

/* Mostrar solo logo móvil en pantallas pequeñas */
@media (max-width: 768px) {
  .logo-web {
    display: none !important;
  }
  .logo-movil {
    display: block !important;
  }

  .logo img {
    height: 60px;
    width: auto;
  }

  .logo {
    padding: 2px 0;
    margin-left: -20px;
  }
}


.hamburguesa-boton {
  height: 20px;
}
.hamburguesa-boton span {
  height: 2px;
  width: 18px;
  margin: 4px 0;
}



@keyframes zoomearActivo {
    0% { transform: scale(1.0); }
    50% { transform: scale(1.04); }
    100% { transform: scale(1.0); }
}

/* SLIDER FICHA PROYECTO */
...
/* (continúa exactamente igual hasta el final de tu archivo) */