 /* Reset de márgenes y paddings */
 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #ffeba7;
  background: linear-gradient(135deg, #e8ede5 0%, #9faf98 15%, #7f8f7a 35%, #6F7F6A 60%, #677766 80%, #5F6F5A 100%);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
  padding-bottom: 150px; /* Espacio para el footer fijo */
}

/* Container Section */
.section {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 40px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  max-width: 800px;
  margin: 40px auto;
  position: relative;
  z-index: 1;
}

/* Profile Container with Rotating Light */
.profile-container {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.profile-container::before {
  content: '';
  position: absolute;
  top: -15%; /* Reduce the size of the glow effect */
  left: -15%;
  width: 130%; /* Adjust the width */
  height: 130%; /* Adjust the height */
  background: radial-gradient(circle, rgba(255, 235, 167, 0.3) 0%, rgba(255, 235, 167, 0) 70%); /* Lower opacity */
  border-radius: 50%;
  animation: rotateLight 15s linear infinite;
  z-index: 0;
}

@keyframes rotateLight {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Profile Image */
.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Headings */
h1 {
  font-family: "Monoton", cursive;
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 400;
  color: #ffffff;
}

/* Paragraph */
p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #ffffff;
}

/* Buttons */
.btn-custom {
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 25px;
  background: linear-gradient(45deg, #ff7e5f, #feb47b);
  color: #1f2029;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-custom:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 126, 95, 0.4);
}

/* Hidden and Visible Classes */
.hidden {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  display: none;
}

.visible {
  max-height: 5000px; /* Ajusta según el contenido */
  opacity: 1;
  display: block;
  overflow: visible;
}

/* Projects, Offers y Languages Lists */
.projects ul, .offers ul, .languages ul {
  list-style-type: none;
  padding: 0;
  text-align: left;
}

.projects ul li, .offers ul li, .languages ul li {
  margin: 10px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.projects ul li.visible, .offers ul li.visible, .languages ul li.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Skills Section */
.skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 30px 0;
}

.skill-card {
  background-color: rgba(255, 235, 167, 0.2);
  padding: 15px 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card i {
  font-size: 1.5rem;
  color: #ffffff;
}

.skill-card .bi {
  font-size: 1.5rem;
  color: #ffffff;
}

.skill-card span {
  color: #ffffff;
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 40px 20px;
  text-align: center;
  color: #ffeba7;
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  transform: translateY(100%); /* Inicialmente oculto */
  opacity: 0; /* Inicialmente transparente */
  transition: transform 0.5s ease, opacity 0.5s ease;
  z-index: 10;
}

footer.visible-footer {
  transform: translateY(0); /* Visible */
  opacity: 1; /* Opaco */
}

footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer p {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-family: "Playfair Display", serif;
}

footer .social-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

footer .social-links a {
  transition: color 0.3s ease;
  text-decoration: none;
  font-size: 2rem;
}

footer .social-links a[aria-label="GitHub"] {
  color: #f4f4f4;
}

footer .social-links a[aria-label="GitHub"]:hover {
  color: #ffffff;
}

footer .social-links a[aria-label="LinkedIn"] {
  color: #0077b5;
}

footer .social-links a[aria-label="LinkedIn"]:hover {
  color: #005885;
}

footer .social-links a[aria-label="CV"],
footer .social-links a.cv-link {
  color: #4285F4;
  font-family: "Vast Shadow", cursive;
  font-size: 2rem;
  text-decoration: none;
}

footer .social-links a[aria-label="CV"]:hover,
footer .social-links a.cv-link:hover {
  color: #1967D2;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 30px;
  border: none;
  border-radius: 30px;
  background-color: #25D366; /* WhatsApp green */
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
}

.contact-btn.instagram {
  background: linear-gradient(45deg, #C13584, #E1306C); /* Instagram gradient */
}

.contact-btn.instagram:hover {
  background: linear-gradient(45deg, #E1306C, #C13584);
}

.contact-btn.whatsapp:hover {
  background-color: #128C7E;
}

.contact-btn:hover {
  transform: translateY(-5px);
}

/* Responsividad - Tablet (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .section {
    padding: 30px 20px;
    max-width: 90%;
  }

  .projects-grid,
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    overflow: visible;
  }

  .offers-grid ul li {
    font-size: 0.95rem;
    padding: 6px 10px;
  }

  .languages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    overflow: visible;
  }

  .languages-grid ul li {
    font-size: 0.95rem;
    padding: 6px 10px;
  }

  .languages-grid ul {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .languages-grid ul li {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.95rem;
  }

  .skills {
    gap: 12px;
  }

  .skill-card {
    padding: 12px 18px;
    font-size: 0.95rem;
  }
}

/* Responsividad - Móvil (hasta 768px) */
@media (max-width: 768px) {
  body {
    padding-bottom: 200px;
  }

  .section {
    padding: 20px 15px;
    margin: 20px auto;
    max-width: 95%;
    border-radius: 10px;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }

  p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .btn-custom {
    width: 100%;
    justify-content: center;
    margin: 8px 0;
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Grids responsive */
  .projects-grid,
  .offers-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: visible;
  }

  .projects-grid ul,
  .offers-grid ul {
    width: 100%;
  }

  .offers-grid ul li {
    font-size: 0.9rem;
    padding: 6px 8px;
  }

  .languages-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: visible;
  }

  .languages-grid ul li {
    font-size: 0.9rem;
    padding: 6px 8px;
  }

  .languages-grid ul {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .languages-grid ul li {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.9rem;
    padding: 3px 0;
  }

  .projects ul li a,
  .offers ul li,
  .languages ul li {
    font-size: 0.95rem;
  }

  .skills {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .skill-card {
    width: 100%;
    max-width: 300px;
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .skill-card i,
  .skill-card .bi {
    font-size: 1.3rem;
  }

  footer {
    padding: 30px 15px;
  }

  footer p {
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  footer .social-links {
    gap: 20px;
    margin-bottom: 20px;
  }

  footer .social-links a {
    font-size: 1.8rem;
  }

  .contact-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .contact-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    margin: 0 auto;
  }

  h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .projects,
  .offers,
  .languages {
    padding: 15px;
    margin: 15px auto;
    overflow-x: visible;
    overflow-y: visible;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    height: auto;
    padding-bottom: 20px;
  }
}

/* Responsividad - Móvil pequeño (hasta 480px) */
@media (max-width: 480px) {
  .section {
    padding: 15px 10px;
    margin: 15px auto;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  h1 {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.9rem;
  }

  .btn-custom {
    padding: 8px 15px;
    font-size: 13px;
  }

  .projects-grid ul li a,
  .offers ul li,
  .languages ul li {
    font-size: 0.9rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .offers-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
  }

  .offers-grid ul li {
    font-size: 0.85rem;
    padding: 5px 8px;
  }

  .languages-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
  }

  .languages-grid ul li {
    font-size: 0.85rem;
    padding: 5px 8px;
  }

  .languages-grid ul li {
    font-size: 0.85rem;
  }

  footer .social-links a {
    font-size: 1.5rem;
  }

  .contact-btn {
    font-size: 0.85rem;
    padding: 10px 15px;
  }
}

/* Secciones Específicas */
.projects, .offers, .languages {
  margin: 20px auto;
  padding: 20px;
  max-width: 1200px;
  background-color: #000000; /* Fondo oscuro */
  border: 1px solid #000000;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: visible;
  box-sizing: border-box;
  min-height: auto;
  height: auto;
}

.languages {
  overflow-x: visible;
  overflow-y: visible;
  max-width: 100%;
  min-height: auto;
  height: auto;
  padding-bottom: 25px;
}

.projects ul li a {
  color: #ffffff; /* Texto blanco */
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.projects ul li a:hover {
  color: #ffffff; /* Blanco al pasar el mouse */
}

.projects-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.projects-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.projects-grid ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.project-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  overflow: visible;
  justify-items: start;
  align-items: start;
}

.offers-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  min-width: 0;
  overflow: visible;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: auto;
  min-height: auto;
}

.offers-grid ul li {
  color: #ffffff;
  list-style: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  white-space: normal;
  overflow: visible;
  text-align: left;
  font-size: 1rem;
  transition: transform 0.2s ease, color 0.2s ease;
  display: block;
  width: 100%;
}

.offers-grid ul li:hover {
  transform: translateX(5px);
  color: #fff;
}

h4 {
  font-weight: 600;
  color: #ffffff; /* Blanco puro */
  margin-bottom: 20px;
  text-align: center;
  font-family: "Playfair Display", serif;
}

ul li {
  color: #ffffff; /* Texto blanco */
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  overflow: visible;
  justify-items: start;
  align-items: start;
}

.languages-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  min-width: 0;
  overflow: visible;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: auto;
  min-height: auto;
}

.languages-grid ul li {
  color: #ffffff;
  list-style: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  white-space: normal;
  overflow: visible;
  text-align: left;
  font-size: 1rem;
  transition: transform 0.2s ease, color 0.2s ease;
  display: block;
  width: 100%;
}

.languages-grid ul li:hover {
  transform: translateX(5px);
  color: #fff;
}

.lang-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.languages-grid ul li img.lang-icon {
  width: 1em;
  height: 1em;
  min-width: 1em;
  min-height: 1em;
  display: inline-block !important;
  vertical-align: middle;
  flex-shrink: 0;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain;
  margin-right: 0;
}

.languages-grid ul li i.lang-icon {
  font-size: 1em;
  display: inline-block;
}

footer .social-links a[aria-label="LinkedIn"] {
  color: #0077b5;
}

footer .social-links a[aria-label="LinkedIn"]:hover {
  color: #005885;
}

footer .social-links a[aria-label="CV"],
footer .social-links a.cv-link {
  color: #4285F4;
  font-family: "Vast Shadow", cursive;
  font-size: 2rem;
  text-decoration: none;
}

footer .social-links a[aria-label="CV"]:hover,
footer .social-links a.cv-link:hover {
  color: #1967D2;
}



.contact-buttons {

  display: flex;

  justify-content: center;

  gap: 25px;

  flex-wrap: wrap;

}



.contact-btn {

  display: flex;

  align-items: center;

  gap: 12px;

  padding: 14px 30px;

  border: none;

  border-radius: 30px;

  background-color: #25D366; /* WhatsApp green */

  color: white;

  cursor: pointer;

  transition: background-color 0.3s ease, transform 0.3s ease;

  text-decoration: none;

  font-size: 1.1rem;

  font-weight: bold;

}



.contact-btn.instagram {

  background: linear-gradient(45deg, #C13584, #E1306C); /* Instagram gradient */

}



.contact-btn.instagram:hover {

  background: linear-gradient(45deg, #E1306C, #C13584);

}



.contact-btn.whatsapp:hover {

  background-color: #128C7E;

}



.contact-btn:hover {

  transform: translateY(-5px);

}



/* Responsividad */

@media (max-width: 768px) {

  .section {

    padding: 20px 15px;

  }



  h1 {

    font-size: 2rem;

  }



  .btn-custom {

    width: 100%;

    justify-content: center;

  }



  .skills {

    flex-direction: column;

    align-items: center;

  }



  footer p {

    font-size: 1.2rem;

  }



  footer .social-links a {

    font-size: 1.5rem;

  }



  .contact-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    width: 100%;
  }



  .contact-btn {
    width: 80%;
    max-width: 300px;
    justify-content: center;
    padding: 12px 25px;
    font-size: 1rem;
    margin: 0 auto;
  }

}



/* Secciones Específicas */

.projects, .offers, .languages {
  margin: 20px auto;
  padding: 20px;
  max-width: 1200px;
  background-color: #000000; /* Fondo oscuro */
  border: 1px solid #000000;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: visible;
  box-sizing: border-box;
  min-height: auto;
  height: auto;
}



.projects ul li a {

  color: #ffffff; /* Texto blanco */
  text-decoration: none;

  font-size: 1.1rem;

  transition: color 0.3s ease;

}



.projects ul li a:hover {

  color: #ffffff; /* Blanco al pasar el mouse */

}


.projects-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
}

.projects-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.projects-grid ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
}

.project-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

/* Definición duplicada eliminada - usar la de arriba */


h4 {

  font-weight: 600;

  color: #ffffff; /* Blanco puro */

  margin-bottom: 20px;

  text-align: center;

  font-family: "Playfair Display", serif;
}



ul li {

  color: #ffeba7; /* Texto dorado */

}



.languages-grid {

  display: flex;

  gap: 40px;

}



.languages-grid ul {

  list-style: none;

  padding: 0;

  margin: 0;

}


.languages-grid ul li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.languages-grid ul li i.lang-icon {
  font-size: 1em;
}

