@keyframes fadeUpBlur {
    0% {
        opacity: 0;
        transform: translateY(60px);
        filter: blur(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Aplica al contenedor completo */
.nosotros.animado {
    animation: fadeUpBlur 1.2s ease-out both;
}

/* Aplica a los elementos dentro, con delay */
.nosotros.animado .texto,
.nosotros.animado .imagen,
.nosotros.animado .frase-final {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
    animation: fadeUpBlur 0.8s ease-out forwards;
}

.nosotros.animado .texto {
    animation-delay: 0.3s;
}

.nosotros.animado .imagen {
    animation-delay: 0.5s;
}

.nosotros.animado .frase-final {
    animation-delay: 0.7s;
}









* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}





html {
    -webkit-text-size-adjust: none;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    font-size: 10px;
    max-width: 100%;
    
}

body {
    font-family: Arial, sans-serif;
    height: 300vh;
    overflow-y: scroll;
    max-width: 100%;
}   

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5rem;
    background-color: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    position: fixed;
    width: 100vw;
    overflow-x: hidden;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 7rem;
    margin-right: 1rem;
}

.logo h1 {
    max-width: 9rem;
    font-size: 0.9rem;
    font-family: 'Times New Roman', Times, serif;
}

.logo-mobile {
  display: none;
  font-size: 1.3rem;
  font-weight: bold;
  margin-right: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3.5rem;

}



nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.5rem;
}

nav ul li a:hover {
    text-decoration: underline;
}

.idioma-icono {
    position: relative;
    height: 4rem;
    vertical-align: middle;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
}

.contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 2rem;
}




.seccion {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}



/*                  NOSOTROS                  */


.nosotros {
    display: flex;
    flex-direction: row;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 2rem;
    max-width: 100rem;
    padding: 3rem;
    gap: 3rem;
    box-shadow: 0 .4rem 2rem rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    margin-top: 7rem;
    
}

.nosotros .texto {
    flex: 1;
    margin-top: 1.5rem;
    min-width: 30rem;
    color: #333;
    text-align: justify;
}

.nosotros .texto p {
    font-size: 1.6rem;
    margin-top: 2.5rem;
}

.nosotros .texto h2 {
    margin-bottom: 1.5rem;
    font-size: 3rem;
    color: #000;
    text-align: center;
}

.nosotros .imagen {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5rem;
}

.nosotros .imagen img {
    width: 40rem;
    border-radius: 1rem;
    object-fit: cover;
}

.nosotros .frase-final {
    width: 100%;
    text-align: justify;
    font-style: italic;
    color: #444;
    margin-top: 3rem;
    font-size: 1.8rem;
}






/*                  SERVICIOS                  */


.contenedor-tarjetas {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas sí o sí */
    grid-template-rows: repeat(2, auto);  /* Dos filas */
    gap: 1.5rem;
    max-width: 90rem;
    margin: auto;
    margin-top: 5rem;
    padding: 1.5rem;
}

.tarjeta {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta img {
    height: 11rem;
}

.tarjeta:hover {
    transform: translateY(-1rem);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.tarjeta h3 {
    margin-bottom: 1rem;
    font-size: 19px;
    color: #222;
}

.tarjeta p {
    color: #555;
    font-size: 11px;
    text-align: justify;
}




/*                  CURSOS                  */


.curso-unico {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5rem;
    border-radius: 2.5rem;
    text-align: center;
    max-width: 70rem;
    margin: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.curso-unico h2 {
    font-size: 32px;
    margin-bottom: 2rem;
    color: #111;
}

.curso-unico p {
    font-size: 17px;
    color: #444;
    margin-bottom: 3rem;
    text-align: justify;
}

.boton-inscribirse {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 18px;
    border-radius: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.boton-inscribirse:hover {
    background-color: #0056b3;
}




/*                  PRODUCTOS                  */



.titulo-productos {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  display: inline-block;
  font-size: 2.2rem;
  font-weight: bold;
  color: #000;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.grid-productos-dos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.grid-productos-dos .producto {
    background-color: #e0e0e0;
    padding: 2.5rem;
    border-radius: 2rem;
    font-size: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-productos-dos .producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.grid-productos-dos .producto h3 {
    margin-bottom: 1rem;
    color: #222;
}

.producto img {
  height: 15rem;
  margin-bottom: 1rem;
  object-fit: contain;
}



/*                  CLIENTES                  */

.clientes-box h2 {
    font-size: 24px;
    margin-top: 9rem;
}

.carousel-clientes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.grid-clientes9 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 2rem;
  flex: 1;
  max-width: 80rem;
  min-width: 80rem;
}

.carousel-btn {
  font-size: 30px;
  background: none;
  border: none;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 1); /* mejora visibilidad */
  cursor: pointer;
  padding: 1rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.cliente {
    background-color: #f4f4f4; /* #f4f4f4 */
    border-radius: 1.8rem;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.2s ease;
    min-width: 6rem;
}

.cliente h3 {
    font-size: 18px;
    margin-bottom: .4rem;
}

.cliente p {
    font-size: 12px;
}

.cliente img {
    width: 6rem;
    height: 6rem;
    max-height: 6rem;
    margin-bottom: 1rem;
    object-fit: contain;
}

.cliente:hover {
    transform: translateY(-5px);
}



/*                  CONTACTO                  */

.contacto {
    background: linear-gradient(to bottom, #dce3f0, #b2bee3);
    color: #000;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contacto-box {
    max-width: 110rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4rem 3rem;
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-top: 9rem;
}

.contacto-box h2 {
    font-size: 26px;
    margin-bottom: .5rem;
}

.subtitulo {
    font-size: 14px;
    color: #555;
    margin-bottom: 2rem;
}

.grid-contacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contacto-item {
    background-color: #f4f4f4;
    border-radius: 1.6rem;
    padding: 1.2rem 1.6rem;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.contacto-item h3 {
    font-size: 16px;
    margin-bottom: .6rem;
}

.contacto-item p {
    font-size: 13px;
    margin: .2rem 0;
}


.tel h3 {
    margin-bottom: 2.2rem;
}

.tel p {
    margin-top: .8rem;
}


.contacto-item a {
    color: #1a0dab;
    text-decoration: none;
}

.contacto-item a:hover {
    text-decoration: underline;
}

.contacto-item iframe {
    height: 10rem;
    border-radius: .8rem;
}






.fondo1 { background-image: url("img/fondos/fondo1.jpg"); }
.fondo2 { background-image: url("img/fondos/fondo2.jpg"); }
.fondo3 { background-image: url("img/fondos/fondo3.jpeg"); }
.fondo4 { background-image: url("img/fondos/fondo4.jpg"); }
.fondo5 { background-image: url("img/fondos/fondo52.jpg"); }
.fondo6 { background-image: url("img/fondos/fondo6.jpg"); }
















/* ------------------ RESPONSIVE ------------------ */


/* Tablets */
@media (max-width: 1024px) {
  html {
    scroll-snap-type: none;
    text-decoration: none;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px;
    gap: 10px;
  }
  .logo {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  nav ul {
    flex-wrap: wrap;
    
    font-size: 14px;
    justify-content: center;
  }
  .idioma-icono {
    left: 0;
  }
  .nosotros {
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    margin-top: 14rem;
  }

  .nosotros .texto h2 {
    font-size: 16px;
  }

  .nosotros .texto p {
    font-size: 11px;
  }


  .nosotros .imagen img {
    width: 70%;
  }




  .contenedor-tarjetas {
    grid-template-columns: 2fr, auto;
    gap: 2rem;

  }

  .tarjeta {
    width: 40rem;
  }

  .grid-productos-dos {
    grid-template-columns: 1fr;
  }

  .grid-clientes9 {
    grid-template-columns: repeat(2, 1fr);
  }


  .cliente {
    min-width: 20rem;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .grid-clientes9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 2rem;
    padding-left: 1rem;
    scroll-padding-left: 1rem;
    flex: 1;
    max-width: 100rem;
  }

  .carousel-btn {
    font-size: 24px;
  }

  .curso-unico {
    padding: 30px 20px;
  }

  .grid-contacto {
    grid-template-columns: 1fr;
  }

  .contacto-box {
    padding: 20px;
  }

  .cliente img {
    width: 50px;
    height: 50px;
  }

  .tarjeta img {
    height: 90px;
  }

  .tarjeta p {
    font-size: 13px;
  }

  .curso-unico p {
    font-size: 15px;
  }

  .boton-inscribirse {
    font-size: 16px;
    padding: 12px 24px;
  }

  .menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
  }

}




/* Móviles grandes */
@media (max-width: 768px) {
  .logo {
    display: none;
  }
  
  .seccion {
    height: 100%;
  }

  .nav-bar {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-mobile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
  }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  .logo-mobile {
    display: block;
    font-size: 1.3rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    color: #222;
  }

  #navMenu {
    display: none;
    flex-direction: column;
    padding: 1rem;
    background-color: #f9f9f9;
    border-top: 1px solid #ccc;
  }

  #navMenu.show {
    display: flex;
  }

  #navMenu li {
    margin-bottom: 1rem;
    text-align: left;
  }

  #navMenu li a {
    font-size: 1.3rem;
    color: #222;
    text-decoration: none;
  }

  .contenedor-tarjetas {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 1.5rem;
    max-width: 60rem;
    margin: auto;
    margin-top: 5rem;
    padding: 1.5rem;
  }

  .tarjeta {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    padding: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .tarjeta img {
    height: 10rem;
  }

  .tarjeta:hover {
    transform: translateY(-1rem);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  }

  .tarjeta h3 {
    margin-bottom: 1rem;
    font-size: 17px;
    color: #222;
  }

  .tarjeta p {
    color: #555;
    font-size: 9px;
    text-align: justify;
  }

  .carousel-clientes {
    flex-direction: column;
    align-items: stretch;
  }

  .grid-clientes9 {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    width: 100%;
    min-width: unset;
  }

  .cliente {
    min-width: 20rem;
    flex: 0 0 auto;
    scroll-padding: initial;
    scroll-snap-align: start;
    max-width: 20rem;
    word-wrap: break-word;
    white-space: normal;
    
  }

  .cliente p {
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .carousel-btn {
    display: none;
  }
}


/* Móviles chicos */
@media (max-width: 480px) {
  /* Ajustar para pantallas muy pequeñas */
}


