/* Variables */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #1d4ed8;
  --text-color: #1f2937;
  --light-text: #6b7280;
  --background: #ffffff;
  --section-bg: #f3f4f6;
  --border-color: #e5e7eb;
}

/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navegación */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu-toggle {

  margin-top: 30px;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  position: absolute;
  right: 20px;
}
.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #333;
  border-radius: 5px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}



/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.9)
    ),
    url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.hero-content h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--light-text);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn.primary {
  background-color: var(--primary-color);
  color: white;
}

.btn.primary:hover {
  background-color: var(--secondary-color);
}

.btn.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Secciones */
section {
  padding: 6rem 0;
}

section:nth-child(even) {
  background-color: var(--section-bg);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}
.about img {

 display: block;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  margin: 0 auto;
}


/* Sobre Mí */
.about-content {
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  justify-content: center;
}

.about-text {
  max-width: 800px;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--light-text);
  font-size: 1.1rem;
}

.education {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}


.education h3 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.education-item img {
margin: 0;
width:150px;
height:130px;
border-radius:0%;

}
.education-item1 img {
margin-left: auto;
margin-right:  0;
width:150px;
height:150px;
border-radius:0%;

}

.education-item {
  
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.education-item1 {
  text-align: right;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.education-item .year {
  color: var(--primary-color);
  font-weight: 500;
}

.education-item .degree {
  font-weight: 600;
  color: var(--text-color);
}

.education-item .school {
  color: var(--light-text);
}
.education-item1 .year {
  color: var(--primary-color);
  font-weight: 500;
}

.education-item1 .degree {
  font-weight: 600;
  color: var(--text-color);
}

.education-item1 .school {
  color: var(--light-text);
}


/* Habilidades */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-category {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.skill-category ul {
  list-style: none;
}

.skill-category li {
  padding: 0.5rem 0;
  color: var(--light-text);
}

/* Proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.project-content p {
  color: var(--light-text);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.project-tags span {
  background: var(--section-bg);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--primary-color);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-links .btn {
  flex: 1;
  text-align: center;
}

/* Contacto */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--light-text);
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary-color);
}

.contact-info1 {
  text-align: left; /* Centra todo el contenido */
}

.contact-info1 h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info1 a {
  display: inline-block; /* Permite aplicar estilos como margen o hover */
  margin: 0 15px; /* Espaciado entre los íconos */
  text-decoration: none;
}

.contact-info1 i {
  font-size: 3rem; /* Aumenta el tamaño de los íconos */
  color: #b816b8;
  transition: transform 0.3s ease; /* Efecto suave al hacer hover */
}

.contact-info1 i:hover {
  transform: scale(1.2); /* Agranda los íconos al pasar el cursor */
}.my-button {
  margin-top: 5px;
  background: var(--background);
  border: 2px solid var(--secondary-color);
  border-radius: 2px;
  padding: 18px 36px;
  display: inline-block;
 color: var(--primary-color);
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 #0e0d0d;
  -webkit-transition: ease-out 0.4s;
  -moz-transition: ease-out 0.4s;
  transition: ease-out 0.4s;
}
.my-button:hover {
  margin-top: 5px;
  background: var(--primary-color);
  color: var(--background);
  border: 2px solid var(--secondary-color);
  border-radius: 2px;
  padding: 18px 36px;
  display: inline-block;
 
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 #0e0d0d;
  -webkit-transition: ease-out 0.4s;
  -moz-transition: ease-out 0.4s;
  transition: ease-out 0.4s;
}

.boton_para_abajo:hover {

  box-shadow: inset 0 100px 0 0 var(--secondary-color);

}
.boton_para_abajo a:hover {
  color: var(--background);
}
a {
  
  text-decoration: none;
  transition: color 1s ease;
  color: var(--primary-color);
}

 a:hover {
  color:  #ffffff;
}
 .my-button {
    padding: 10px 20px; /* Ajustar el padding del botÃ³n */
    font-size: 12px; /* Reducir el tamaÃ±o de la fuente del botÃ³n */
  }

/* Footer */
footer {
  background: var(--text-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

/* Tablet (entre 769px y 1024px) */
@media (max-width: 1024px) {
  .about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .education-item,
  .education-item1 {
    text-align: center;
    align-items: center;
  }
  .education-item1 img{
    margin: auto;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .nav-content {
    padding: 1rem;
  }
}


/* Celulares (hasta 768px) */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .about img {
    width: 200px;
    height: 200px;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content h2 {
    font-size: 1.25rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    margin: 0 auto;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .nav-content {
    flex-direction: row;
    justify-content: space-between;
  }
  .education-item1 img{
    margin: auto;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    text-align: center;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }


}
@media (max-width: 768px) {
  .galeria3 {
    column-count: 3;
  }
  @media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }
}
}

@media (max-width: 480px) {
  .galeria3 {
    column-count: 2;
  }
}

/* ya esta */
.Card{
  margin-left: 10px;
  display: flex;
   overflow-x: auto;
    margin-right: 10px;
    position: relative;

}
.Card img{
    width: 200px;
    object-fit: cover;
    height: 300px;
}
