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

/* Tipografía elegante y fondo sutil */
body {
  font-family: 'IBM Plex Sans', sans-serif;
  background-color: #121212;
  background-image: url('https://www.transparenttextures.com/patterns/escheresque.png'); /* textura sutil */
  background-repeat: repeat;
  background-blend-mode: overlay;
  color: #e0e0e0;
  line-height: 1.7;
  font-size: 16px;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}


header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  text-align: center;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}


nav {
  margin-top: 20px;
}

nav a {
  color: #ccc;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  transition: color 0.3s;
}

main {
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


section {
  margin-bottom: 60px;
  background-color: transparent;
  text-align: center;
  width: 100%;
}


h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 26px;
  color: #dddddd;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 600;
}

/* Imagen */
.about-me img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
}

/* Descripción */
.about-me p {
  text-align: center;
  color: #cccccc;
  max-width: 700px;
  margin: 0 auto;
}

/* Lista de habilidades */
.skills ul {
  list-style-type: square;
  padding-left: 1.5rem;
  color: #b5b5b5;
}

.skills li {
  margin-bottom: 0.5rem;
}

/* Botones */
.social-box a,
.btn-download {
  display: inline-block;
  margin: 10px 10px 0;
  padding: 10px 20px;
  background-color: #1e1e1e;
  color: #f0f0f0;
  border: 1px solid #444;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  transition: background 0.3s, transform 0.2s;
}

.social-box, .cv {
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Responsivo */
@media (max-width: 600px) {
  header h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 22px;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-content: center;
  justify-items: center;
  align-items: center;
  margin-top: 20px;
}


.skill-card {
  background-color: #1d1d1d;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 20px 10px;
  width: 100%;
  max-width: 150px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.skill-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  object-fit: contain;
}

.skill-card span {
  color: #e0e0e0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  display: block;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  justify-items: center;
  align-items: center;
}

.skill-card {
  background-color: #1d1d1d;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 20px 10px;
  width: 100%;
  max-width: 150px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.skill-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  object-fit: contain;
}

.skill-card span {
  color: #e0e0e0;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  display: block;
}

/* Títulos llamativos */
h1, h2, nav a, .skill-card span {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Botones y elementos destacados */
.social-btn, .btn-download {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}








/* === ESTILO DE PROYECTOS === */

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.project-item {
  background-color: #1d1d1d;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(255,255,255,0.08);
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.project-item h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: #f5f5f5;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.project-item p {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  color: #ccc;
  margin-bottom: 15px;
}

.project-link {
  display: inline-block;
  padding: 10px 20px;
  font-family: 'IBM Plex Sans', sans-serif;
  background-color: #2a2a2a;
  border: 1px solid #444;
  color: #f0f0f0;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-link:hover {
  background-color: #3a3a3a;
  transform: scale(1.03);
}





/* === CONTACTO === */
.contact-section {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.contact-intro {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  color: #ddd;
  margin-bottom: 40px;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  width: 100%;
}

.contact-section input,
.contact-section textarea {
  width: 80%;
  max-width: 700px;
  padding: 12px;
  background-color: #1a1a1a;
  border: 1px solid #444;
  color: #eee;
  border-radius: 6px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
}

.contact-section input::placeholder,
.contact-section textarea::placeholder {
  color: #888;
}
.contact-divider {
  width: 80%;
  max-width: 500px;
  border: none;
  border-top: 1px solid #444;
  margin: 40px auto;
}

.contact-subtitle {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  color: #aaa;
  margin-bottom: 15px;
}
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: #1e1e1e;
  color: #fff;
  font-size: 22px;
  line-height: 48px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #444;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
}

.scroll-top-btn:hover {
  background-color: #333;
  transform: scale(1.1);
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}

.flash-msg {
  padding: 15px 20px;
  border-radius: 6px;
  margin: 20px auto;
  max-width: 600px;
  text-align: center;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
}

.flash-msg.success {
  background-color: #1e4620;
  color: #b9fbc0;
  border: 1px solid #2e8b57;
}

.flash-msg.error {
  background-color: #531616;
  color: #f8d7da;
  border: 1px solid #c0392b;
}

.timeline-section {
  width: 100%;
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 20px;
  border-left: 2px solid #444;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 20px;
}

.timeline-date {
  font-family: 'Bebas Neue', sans-serif;
  color: #aaa;
  font-size: 18px;
  position: absolute;
  left: -75px;
  top: 0;
  width: 60px;
  text-align: right;
}

.timeline-content {
  background-color: #1d1d1d;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 15px 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #f0f0f0;
}

.timeline-content p {
  font-size: 15px;
  color: #bbb;
  margin: 0;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-3px);
}

footer {
  text-align: center;
  padding: 30px 20px;
  color: #999;
  font-size: 14px;
  border-top: 1px solid #333;
  margin-top: 60px;
}
