/* Custom styles for WISLABS website */

/* Compensar header fijo */
body {
  padding-top: 80px;
}

/* Ajuste para móviles */
@media screen and (max-width: 736px) {
  body {
    padding-top: 44px !important;
  }
}

/* Centering the "Four" section */
.wrapper .container {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 20px;
}

/* Ensure the header content is centered */
.wrapper .container .major {
  text-align: center;
}

/* Center the grid items */
.wrapper .container .box.alt .row.gtr-uniform {
  justify-content: center;
  display: flex;
  flex-wrap: wrap;
}

/* Ensure individual sections are properly aligned */
.wrapper .container .box.alt .row.gtr-uniform section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive adjustments */
@media screen and (max-width: 980px) {
  .wrapper .container {
    padding: 0 15px;
  }
}

@media screen and (max-width: 736px) {
  .wrapper .container {
    padding: 0 10px;
  }
}

/* About Me Section Styles */
#about-me {
  padding: 4rem 0;
  background: linear-gradient(135deg, #272833 0%, #1c1d26 100%);
  color: white;
}

#about-me .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

#about-me .major {
  text-align: center;
  margin-bottom: 3rem;
}

#about-me .major h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.about-image {
  flex: 0 0 300px;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  filter: grayscale(100%) contrast(115%) brightness(90%); /* Blanco y negro más oscuro para combinar con el diseño */
  transition: all 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.about-text p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: white;
}

/* Responsive design for About Me section */
@media screen and (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .about-image {
    flex: 0 0 auto;
  }

  .about-image img {
    max-width: 250px;
  }

  #about-me .major h2 {
    font-size: 2rem;
  }

  .about-text p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  #about-me {
    padding: 2rem 0;
  }

  .about-image img {
    max-width: 200px;
  }

  #about-me .major h2 {
    font-size: 1.8rem;
  }
}

/* Contact Form Styles */
#five {
  padding: 4rem 0;
  background-color: #272833;
}

#five .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

#five .major {
  text-align: center;
  margin-bottom: 3rem;
}

#five .major h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

#five .major p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form form {
  background-color: #1c1d26;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  background-color: #272833;
  border: 1px solid #3a3b4a;
  color: white;
  transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #e44c65;
  outline: none;
}

/* Botones mejorados */
.contact-form .actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.contact-form .actions li {
  margin: 0;
}

.contact-form input[type="submit"] {
  background-color: #e44c65;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: auto;
}

.contact-form input[type="submit"]:hover {
  background-color: #d13a5a;
}

.contact-form input[type="reset"] {
  background-color: transparent;
  color: #e44c65;
  border: 1px solid #e44c65;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  height: auto;
}

.contact-form input[type="reset"]:hover {
  background-color: #d13a5a;
  color: white;
  border-color: #d13a5a;
}

/* Footer mejorado */
#footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 10;
}

#footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e44c65, transparent);
}

/* Enlaces legales en footer */
.legal-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links li {
  margin: 0;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: #e44c65;
}

/* Responsive para enlaces legales - columna en móviles */
@media screen and (max-width: 524px) {
  .legal-links {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }
}

/* Estilos para páginas legales */
.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.content-section h2 {
  color: #e44c65;
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  border-bottom: 2px solid #e44c65;
  padding-bottom: 0.5rem;
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: justify;
}

.content-section ul {
  margin: 1rem 0 1.5rem 2rem;
}

.content-section li {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.content-section a {
  color: #e44c65;
  text-decoration: none;
  transition: color 0.3s ease;
}

.content-section a:hover {
  color: #d13a5a;
}

.last-updated {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.last-updated p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive design for contact form */
@media screen and (max-width: 768px) {
  #five .major h2 {
    font-size: 2rem;
  }

  .contact-form form {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  #five {
    padding: 2rem 0;
  }

  #five .major h2 {
    font-size: 1.8rem;
  }

  .contact-form form {
    padding: 1rem;
  }
}

/* Header mejorado */
#header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #1c1d26 !important;
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#header.scrolled {
  background: #1c1d26 !important;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
}

/* Sobrescribir estilos específicos del landing */
body.landing #header {
  background: #1c1d26 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  position: fixed !important;
}

#header h1 {
  font-size: 2rem;
  margin: 0;
}

#header h1 a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

/* Navegación mejorada */
#nav {
  display: flex;
  align-items: center;
}

#nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.5rem;
  align-items: center;
}

#nav ul li {
  margin: 0;
}

#nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#nav .scroll-link {
  transition: color 0.3s ease;
}

#nav .scroll-link:hover {
  color: #e44c65 !important;
}

/* Email en header como opción de navegación */
.header-email a {
  color: #e44c65 !important;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.header-email a:hover {
  color: #d13a5a !important;
}

.header-email i {
  font-size: 0.9rem;
}

/* Responsive para navegación */
@media screen and (max-width: 980px) {
  #header {
    padding: 1rem 0;
  }

  #header h1 {
    font-size: 1.7rem;
  }

  #nav ul {
    gap: 2rem;
  }

  #nav ul li a {
    font-size: 1rem;
  }

  .header-email a {
    font-size: 0.9rem;
  }

  .header-email i {
    font-size: 0.8rem;
  }
}

/* Móviles - ocultar header personalizado y usar el sistema del tema */
@media screen and (max-width: 736px) {
  #header {
    display: none !important;
  }

  /* Ajustar padding del body para el titleBar */
  body {
    padding-top: 44px !important;
  }
}

@media screen and (max-width: 480px) {
  #header {
    padding: 0.6rem 0;
  }

  #header h1 {
    font-size: 1.3rem;
  }

  #nav ul {
    gap: 1rem;
  }

  #nav ul li a {
    font-size: 0.85rem;
  }

  .header-email a {
    font-size: 0.8rem;
  }

  .header-email i {
    font-size: 0.7rem;
  }
}

/* Botón Volver Arriba */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top .scroll-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e44c65 0%, #d13a5a 100%);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(228, 76, 101, 0.4);
  transition: all 0.3s ease;
  font-size: 18px;
}

#back-to-top .scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(228, 76, 101, 0.6);
  background: linear-gradient(135deg, #d13a5a 0%, #b82a4a 100%);
}

#back-to-top .scroll-top:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 15px rgba(228, 76, 101, 0.5);
}

/* Responsive para el botón */
@media screen and (max-width: 768px) {
  #back-to-top {
    bottom: 20px;
    right: 20px;
  }

  #back-to-top .scroll-top {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  #back-to-top {
    bottom: 15px;
    right: 15px;
  }

  #back-to-top .scroll-top {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
}

/* Estilos para el logo en el banner */
#banner {
  background: #1c1d26; /* Color gris oscuro del diseño original */
  min-height: 65vh; /* Reducir altura del banner */
}

/* Reducir altura del banner en diferentes resoluciones */
@media screen and (max-width: 1680px) {
  #banner {
    min-height: 60vh;
  }
}

@media screen and (max-width: 1280px) {
  #banner {
    min-height: 55vh;
  }
}

@media screen and (max-width: 980px) {
  #banner {
    min-height: 50vh;
  }
}

@media screen and (max-width: 736px) {
  #banner {
    min-height: 45vh;
  }
}

@media screen and (max-width: 480px) {
  #banner {
    min-height: 40vh;
  }
}

#banner .image {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  padding: 8px;
}

#banner .image::before,
#banner .image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
}

#banner .image::before {
  background: rgba(255, 255, 255, 0.1);
}

#banner .image::after {
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: #1c1d26; /* Color gris oscuro del diseño original */
}

#banner .image img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  z-index: 1;
}

/* Responsive para páginas legales */
@media screen and (max-width: 768px) {
  .content-section {
    padding: 1.5rem 0;
  }

  .content-section h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.8rem 0;
  }

  .content-section p {
    font-size: 1rem;
  }

  .content-section li {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .content-section {
    padding: 1rem 0;
  }

  .content-section h2 {
    font-size: 1.3rem;
    margin: 1.2rem 0 0.6rem 0;
  }

  .content-section p {
    font-size: 0.95rem;
  }

  .content-section li {
    font-size: 0.95rem;
  }

  .content-section ul {
    margin: 0.8rem 0 1.2rem 1.5rem;
  }
}

/* Estilos para el formulario de contacto */
.error-message {
  color: #e44c65;
  font-size: 0.85em;
  margin-top: 0.3em;
  display: block;
}

.contact-form input:invalid,
.contact-form textarea:invalid {
  border-color: #e44c65;
}

.contact-form input:focus:invalid,
.contact-form textarea:focus:invalid {
  box-shadow: 0 0 5px rgba(228, 76, 101, 0.5);
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
  border-color: #4caf50;
}

/* Responsive para el logo */
@media screen and (max-width: 768px) {
  #banner .image {
    width: 280px;
    height: 280px;
    padding: 6px;
  }

  #banner .image::after {
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
  }
}

@media screen and (max-width: 480px) {
  #banner .image {
    width: 240px;
    height: 240px;
    padding: 4px;
  }

  #banner .image::after {
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
  }
}

/* Estilos para el popup de confirmación */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.popup-content {
  background: linear-gradient(135deg, #1c1d26 0%, #272833 100%);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(228, 76, 101, 0.3);
  animation: slideIn 0.4s ease-out;
}

.popup-content.error {
  border-color: rgba(220, 53, 69, 0.3);
}

.popup-icon {
  margin-bottom: 1.5rem;
}

.popup-icon i {
  font-size: 3rem;
  color: #e44c65;
}

.popup-content.error .popup-icon i {
  color: #dc3545;
}

.popup-content h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.popup-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.popup-btn {
  background: linear-gradient(135deg, #e44c65 0%, #d13a5a 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.popup-btn:hover {
  background: linear-gradient(135deg, #d13a5a 0%, #b82a4a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(228, 76, 101, 0.4);
}

.popup-btn:active {
  transform: translateY(0);
}

.popup-btn i {
  font-size: 0.9rem;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive para el popup */
@media screen and (max-width: 768px) {
  .popup-content {
    padding: 2rem;
    max-width: 350px;
  }

  .popup-icon i {
    font-size: 2.5rem;
  }

  .popup-content h3 {
    font-size: 1.3rem;
  }

  .popup-content p {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .popup-content {
    padding: 1.5rem;
    max-width: 300px;
  }

  .popup-icon i {
    font-size: 2rem;
  }

  .popup-content h3 {
    font-size: 1.2rem;
  }

  .popup-content p {
    font-size: 0.9rem;
  }

  .popup-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Circular Progress Bar */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-out;
}

.loading-content {
  background: linear-gradient(135deg, #1c1d26 0%, #272833 100%);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  max-width: 300px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(228, 76, 101, 0.3);
  animation: slideIn 0.4s ease-out;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(228, 76, 101, 0.2);
  border-top: 4px solid #e44c65;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

.loading-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.loading-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive para loading */
@media screen and (max-width: 768px) {
  .loading-content {
    padding: 2rem;
    max-width: 280px;
  }

  .loading-spinner {
    width: 50px;
    height: 50px;
  }

  .loading-text {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  .loading-content {
    padding: 1.5rem;
    max-width: 250px;
  }

  .loading-spinner {
    width: 45px;
    height: 45px;
  }

  .loading-text {
    font-size: 0.95rem;
  }

  .loading-subtitle {
    font-size: 0.85rem;
  }
}
