@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

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

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    background-image: url('/IMG/Fondo.jpg'); 
    background-size: cover; 
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Estilos de la barra de navegación */
.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    background: transparent;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 999;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    max-width: 1600px;
}

.navbar-logo {
    text-decoration: none;
    cursor: pointer;
}

.navbar-container .navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.navbar-container .navbar-menu li a {
    font-size: 1.3rem;
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    padding: 3px 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    transform: all 0.7s ease;
    white-space: nowrap;
}

.navbar-container .navbar-menu li a:hover, .navbar-container .navbar-menu li a:active {
    color: #162530;
    background: rgba(188, 212, 229, 0.8);
    border: 2px solid #fff;
}

.navbar-toggle {
    display: none;
    background: transparent;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: #fff;
    transition: all 0.3s ease-in-out;
}

.navbar-menu li {
    position: relative;
}


.navbar-menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(139, 207, 241, 0.582); 
    box-shadow: 0 6px 15px rgba(188, 212, 229, 0.8);
    border-radius: 10px;
    padding: 0.6rem 0;
    list-style: none;
    min-width: 180px;
    z-index: 1000;
}


.navbar-menu li:hover > ul {
    display: block;
}


.navbar-menu li ul li {
    width: 100%;
}

.navbar-menu li ul li a {
    display: block;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-weight: 500;
}


.navbar-menu li ul li a:hover {
    background: rgba(188, 212, 229, 0.8);
}


.navbar-menu > li > a[href=""]:after {
    content: '';
    display: inline-block;
    margin-left: 6px;
    border: 5px solid transparent;
    border-top-color: #000;
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

.navbar-menu > li:hover > a[href=""]:after {
    transform: rotate(180deg);
}

.navbar-menu li ul li a::after {
    display: none;
}

@media (max-width: 880px) {
    .navbar {
        backdrop-filter: none;
    }

    .navbar-container .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem !important;
        position: absolute;
        height: 100vh;
        width: 250px;
        top: 0;
        right: 0;
        padding: 5rem 1.5rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
    }

    .navbar-container .navbar-menu.active{
        display: flex;
    }

    .navbar-toggle {
        display: block;
        z-index: 999;
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

        .navbar-menu li ul {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        padding-left: 1rem;
    }

    .navbar-menu li.active ul {
        display: block;
    }

    .navbar-menu li ul li a {
        color: #fff;
        background: transparent;
        font-size: 1.1rem;
    }

    .navbar-menu li ul li a:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .navbar-menu li a::after {
        border-top-color: #fff;
    }
}

@media (max-width: 400px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-logo{
        font-size: 1.7rem;
    }

    .navbar-container .navbar-menu li a {
        font-size: 1.2rem;
        padding: 3px 15px;
    }
}

.all {
    position: relative;
    min-height: 100vh;
    padding-bottom: 60px; 
}

/*Estilos footer*/
footer{
    height: auto;
    width: 100%;
    color: gray;
    background-color: rgba(1, 1, 1, 0.7);
    position: absolute;
    padding: 1rem 2rem;
    text-align: center;
    bottom: 0;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    color: white;
    text-align: center;
}

/* Encabezados */
main h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

main h3 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #f2f2f2;
}

p {
    font-size: 1.2rem;
    font-weight: 300;
    color: #f2f2f2;
}

h2 {
    font-size: 2rem;
    color: white;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    margin-bottom: 15px;
    padding: 10px 20px;
    border-radius: 15px;
    backdrop-filter: blur(4px);
}

#res {
    max-width: 850px;
    margin: 0 auto 3rem auto;
    font-size: 1.2rem;
    color: #e9f6ff;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Títulos intermedios */
.titulo {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Carrusel */
#carrusel-container {
  width: 80%;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-track  {
  display: flex;
  width: calc(200%); 
  animation: scroll-carousel 25s linear infinite;
}

.carousel-track img{
  width: 100%;
  max-width: 300px;
  height: 520px; 
  object-fit: cover;
  border-radius: 20px;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

#carrusel img:hover {
  transform: scale(1.05);
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#contenido {
    margin-top: 3rem;
    text-align: center;
}

.card_area {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.card {
    position: relative;
    width: 240px;
    height: 320px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.titulo {
  font-size: 1.8em;
  font-weight: bold;
  color: #004aad;
  margin-top: 50px;
  margin-bottom: 20px;
}

.title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.card_area {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 20px;
}

.card {
  position: relative;
  width: 220px;
  height: 280px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.card:hover img {
  opacity: 0.35;
}

.overlay {
  position: absolute;
  inset: 0;
  color: #fff;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 20px;
}

.card:hover .overlay {
  opacity: 1;
}

#erick.overlay {
  background: rgba(173, 8, 8, 0.301); 
}

#sebas.overlay {
  background: rgba(180, 175, 128, 0.411); 
}

#gabo.overlay {
  background: rgba(0, 150, 32, 0.37); 
}

.overlay h3 {
  margin-bottom: 5px;
  font-size: 1.2em;
  font-weight: bold;
}

.overlay p {
  font-size: 0.9em;
  margin: 2px 0;
}

@media (max-width: 768px) {
    main h1 {
        font-size: 2.2rem;
    }

    main h3 {
        font-size: 1.2rem;
    }

    #carrusel img {
        height: 300px;
    }

    .card {
        width: 200px;
        height: 280px;
    }

    #res {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .titulo {
        font-size: 1.4rem;
    }

    #carrusel img {
        height: 220px;
    }

    .card {
        width: 170px;
        height: 240px;
    }

    .overlay h3 {
        font-size: 1.1rem;
    }

    .overlay p {
        font-size: 0.85rem;
    }
}

.carousel {
  margin: 40px auto;
  max-width: 1000px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.carousel-caption h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.carousel-caption p {
  color: #f1f1f1;
  font-size: 1rem;
}

.carousel-caption .btn {
  background-color: #004aad;
  border: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.carousel-caption .btn:hover {
  background-color: #0066ff;
}

#contenido {
  margin: 60px auto;
  text-align: center;
  width: 90%;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#titulo {
  font-size: 1.6em;
  font-weight: bold;
  color: #004aad;
  margin-bottom: 20px;
}

#contenido img {
    width: 80%;
    max-width: 600px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

#contenido img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

#iframeContainer {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.recursos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  margin-top: 50px;
  padding: 20px;
}

.recurso {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  text-align: center;
  width: 85%;
  max-width: 700px;
  padding: 30px;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.recurso:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.recurso img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.recurso:hover img {
  transform: scale(1.03);
}

.recurso a {
  text-decoration: none;
  color: white;
  display: block;
}

.recurso h2 {
  font-size: 1.8em;
  font-weight: bold;
  margin: 10px 0;
  transition: color 0.3s;
}

.recurso:hover h2 {
  color: #ffe066;
}

.recurso p {
  font-size: 1.1em;
  color: #e0e0e0;
}

/* Responsivo */
@media (max-width: 768px) {
  #contenido img {
    width: 100%;
  }

  .carousel-caption h1 {
    font-size: 1.3rem;
  }

  .btn-ver-doc {
    width: 80%;
  }

  .document {
    width: 95%;
    height: 600px;
  }
}

.app-section {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px 30px;
  width: 85%;
  max-width: 900px;
  margin: 60px auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.app-section h1 {
  font-size: 2rem;
  color: white;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.links-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 30px;
}

.link-item h2 {
  color: #cce4ff;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.link-item a {
  font-size: 1.1rem;
  color: #a4d7ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
  word-wrap: break-word;
}

.link-item a:hover {
  color: #fff;
  text-decoration: underline;
}

.app-image {
  width: 100%;
  max-width: 850px;
  border-radius: 15px;
  margin-top: 20px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

#uml, main > div {
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

#visor {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#visor.oculto {
    display: none;
}

#imgAmpliada {
    cursor: grab;
    transition: transform 0.1s ease-out;
    max-width: 90%;
    max-height: 90%;
    user-select: none;
    touch-action: none;
}

#cerrar {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

#cerrar:hover {
    color: red;
}

.titulo-link {
  text-decoration: none;
  color: #004aad;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
}

.titulo-link:hover {
  color: #0077ff;
  transform: scale(1.05);
}
