@import url('complements/conoceme.css');

.web-content aside ul.nav-list a.nav-link li.nav-option,
.web-content aside ul.nav-list div.go-back-container {
    animation: animateNavOptionsRight 0.35s forwards;
}

div.last-webs-title {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  text-wrap: wrap;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

div.last-webs-title span {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 500;
}


.webs-made-container {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.web-made-card {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  border-radius: 20px;
  overflow: hidden;
}

.iframe-container {
  transition: width .5s ease, height .5s ease;
  position: relative;
  width: 100%;
  width: 650px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
}

.iframe-container img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  
  border-radius: 20px;
  transition: opacity 0.5s ease;
  z-index: 2;
}

.hover-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
  z-index: 3;
}

body.theme-light .hover-overlay {
  background-color: rgb(255, 255, 255, 0.7);
  color: #000;
}

.iframe-container:hover img {
  opacity: 0;
}

/* .iframe-container:hover {
  width: 700px;
  height: 450px;
} */

.iframe-container:hover .hover-overlay {
  opacity: 1;
}


/* MODAL */
#webModal {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  transform: translateZ(0);
}

.web-modal {
  background: rgba(0, 0, 0, .5);
}


.web-modal-content.active-iframe-webs-made {
  transition: transform .8s ease;
  animation: showIframeWebs .8s ease forwards;
}

.web-modal-content.closing-iframe-webs-modal {
  transition: transform .5s ease;
  animation: closeIframeWebs .5s ease-in-out forwards;
}


.web-modal-content {
  background-color: #000;
  color: #fff;
  border-radius: 16px;
  width: 70vw;
  height: 90vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);

  position: relative;
}

/* --- CERRAR BOTÓN --- */
.close-btn-container-modal-iframe {
  cursor: pointer;
  position: absolute;
  top: -20px;
  right: -25px;
  width: fit-content;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-modal {
  transition: background-color .8s ease, transform .25s ease;
  background-color: transparent;
  z-index: 999;
  border-radius: 50%;
  display: flex;
  width: 35px;
  height: 35px;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-left: auto;
  font-size: 20px;
  font-weight: bold;
  background-color: gray;
  color: #fff;
}

.close-modal:hover {
  background-color: lightgray;
  transform: rotate(90deg);
}

/* --- CUERPO DEL MODAL --- */
.modal-body {
  display: flex;
  flex-direction: row;
  gap: 20px;
  height: 100%;
  overflow-y: auto;
  margin-top: 40px;
}

.modal-iframe {
  flex: 2;
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
}

.modal-iframe iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- INFO --- */
.modal-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 12px;
  color: #ccc;
}

.modal-info h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #fff;
  border-left: 4px solid #999;
  padding-left: 10px;
}

.modal-info p {
  font-size: 14px;
  line-height: 1.6;
}

.web-project-button {
  text-align: center;
  margin-top: auto;
  padding: 10px 20px;
  background-color: #fff;
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  border: 1.5px solid transparent;
}


.web-project-button:hover {
  background-color: #000;
  color: #fff;
  border-color: #fff;
}

div.see-more-wens-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
}

div.see-more-wens-btn a { 
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  text-decoration: none;
  border: 1.5px solid transparent;
  padding: 10px 20px;
  font-size: 1rem;
  color: #000;
  background-color: #fff;
  font-weight: 500;
  border-radius: 8px;
}

div.see-more-wens-btn a:hover {
  background-color: #000;
  color: #fff;
  border-color: #fff;
}

body.theme-light div.see-more-wens-btn a {
  background-color: #fff;
  color: #000;
  border-color: #000;
}

body.theme-light div.see-more-wens-btn a:hover {
  background-color: #000;
  color: #fff;
}

body.theme-light .web-modal-content {
  background-color: #fff;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

body.theme-light .close-modal {
  color: #000;
}


body.theme-light .modal-info h2,
body.theme-light .modal-info p {
  color: #000;
}


body.theme-light .web-project-button {
  background-color: #000;
  color: #fff;
}

body.theme-light .web-project-button:hover {
  background-color: #353535;
}

body.theme-light .web-modal-content {
  background-color: rgb(255, 255, 255, 0.7);
}

body.theme-light .modal-info p strong {
  color: #000;
  background: rgba(0, 0, 0, 0.06);
}

.modal-info p strong {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  color: #eee;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
  margin-right: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

body.theme-light .web-modal-content {
  background-color: #fff !important;
}



/* TICK GREEN PASSWORD UPDATED */
.p-updated__alert {
  transition: top .3s ease;
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  width: max-content;
  background-color: green;
  z-index: 9999;
  height: max-content;
  display: flex;
  box-sizing: border-box;
  padding: 2rem;
  justify-content: center;
  align-items: center;
  gap: 20px;
  animation-delay: 2s;
  animation: showPUpdatedAlert 1s forwards;
}

.p-updated__alert.hide {
  animation: hidePUpdateAlert .5s forwards;
}

@keyframes hidePUpdateAlert {
  from {
    top: 10px;
  } to {
    top: -100%;
  }
}

.p-updated__alert.show {
  top: 10px;
}

.p-updated__alert p {
  margin-top: auto;
  margin-bottom: auto;
  color: #d4d4d4;
}

.tick-green {
  width: 30px;
  height: 30px;
  position: relative;
  transform: rotate(-45deg);
}

.tick-green::before,
.tick-green::after {
  content: "";
  position: absolute;
  background-color: lightgreen;
  transition: width 0.3s ease;
  transform-origin: left top;
}

.tick-green::before {
  width: 0;
  height: 3px;
  top: 15px;
  left: 6px;
  transform: rotate(-90deg);
  transition: width 0.3s ease;
}

.tick-green::after {
  width: 0;
  height: 3px;
  top: 15px;
  left: 6px;
  transform: rotate(0);
}

.tick-green.animate::before {
  width: 6px;
}

.tick-green.animate::after {
  width: 18px;
  transition-delay: 0.3s;
}


/* --- RESPONSIVE PARA MÓVIL --- */
@media (max-width: 900px) {
  .web-modal-content {
    width: 95vw;
    height: 80vh;
    max-height: 90vh;
    padding: 16px;
  }

  .modal-body {
    flex-direction: column;
    gap: 16px;
  }

  .modal-iframe {
    width: 100%;
    height: 200px;
  }

  .modal-info {
    width: 100%;
    padding: 12px;
  }
}
