/* ============================= */
/* RESET Y TIPOGRAFÍA            */
/* ============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  line-height: 1.6;
  color: #fff;
  background: #0a0a0a;
}

/* ============================= */
/* HERO                          */
/* ============================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url('assets/1.jpg') center/cover no-repeat;
}
.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  padding: 0.8rem 1.5rem;
  background: #00ffb3;
  color: #0a0a0a;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}
.btn:hover {
  background: #00cc8f;
  transform: scale(1.05);
}

/* ============================= */
/* SECCIONES                     */
/* ============================= */
.section {
  padding: 6rem 2rem;
}
.section.light {
  background: #1a1a1a;
  color: #fff;
}
.section.dark {
  background: #0a0a0a;
  color: #f5f5f5;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}
.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ============================= */
/* CONTAINER                     */
/* ============================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================= */
/* LISTAS CON ICONOS             */
/* ============================= */
.fa-ul {
  margin-left: 2rem;
  margin-top: 1rem;
}
.fa-ul li {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.fa-li i {
  color: #00ffb3;
}

/* ============================= */
/* SOCIAL ICONS                  */
/* ============================= */
.social-icons {
  margin-top: 2rem;
  display: flex;
  gap: 1.5rem;
}
.social-icon {
  color: #00ffb3;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s;
}
.social-icon:hover {
  color: #00cc8f;
}

/* ============================= */
/* PROJECTS GRID                 */
/* ============================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}
.card {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:nth-child(odd) {
  background: #111;
}
.card-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin-bottom: 15px;
}
.card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}
.card p {
  flex-grow: 1;
  line-height: 1.6;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}
.btn-project {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: #2575fc;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  text-align: center;
  transition: background 0.3s ease;
}
.btn-project:hover {
  background-color: #4b6cb7;
}

/* ============================= */
/* EXPERIENCIA / TIMELINE        */
/* ============================= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}
.experience {
  background: #1e1e1e;
  padding: 1.5rem;
  border-left: 5px solid #00ffb3;
  border-radius: 8px;
}
.experience h3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.experience .fecha {
  font-size: 0.9rem;
  color: #888;
  font-weight: normal;
}

/* ============================= */
/* FORMACIÓN / CERTIFICACIONES   */
/* ============================= */
.grid-2cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ============================= */
/* SKILLS ICONS                  */
/* ============================= */
.list-inline {
  padding-left: 0;
  margin-bottom: 1rem;
  list-style: none;
}
.list-inline-item {
  display: inline-block;
  margin-right: 1rem;
  font-size: 2rem;
  color: #00ffb3;
  transition: transform 0.3s;
}
.list-inline-item:hover {
  transform: scale(1.2);
}

/* ============================= */
/* FORMULARIO                     */
/* ============================= */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
input, textarea {
  padding: 0.8rem;
  border-radius: 8px;
  border: none;
}
textarea {
  resize: none;
}
button {
  background: #00ffb3;
  color: #0a0a0a;
  border: none;
  padding: 0.9rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
button:hover {
  background: #00cc8f;
}

/* ============================= */
/* FOOTER                        */
/* ============================= */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #111;
  color: #fff;
}

/* ============================= */
/* SIDE NAV                      */
/* ============================= */
.side-nav {
  position: fixed;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  z-index: 100;
}
.side-nav ul {
  list-style: none;
  padding: 0;
}
.side-nav li {
  margin: 1rem 0;
}
.side-nav a {
  color: #00ffb3;
  font-size: 1.5rem;
  text-decoration: none;
}
.side-nav a:hover {
  color: #00cc8f;
}

/* ============================= */
/* RESPONSIVE                     */
/* ============================= */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.2rem; }
  .hero-buttons { flex-direction: column; gap: 0.8rem; }

  .card {
    padding: 15px;
  }
  .card h3 { font-size: 1.1rem; }
  .card p { font-size: 0.9rem; line-height: 1.4; }
  .card-img { height: 120px; }
  .btn-project { font-size: 0.85rem; padding: 6px 12px; }

  .grid-2cols { grid-template-columns: 1fr; gap: 2rem; }
  .list-inline-item { font-size: 2rem; }

  .section { padding: 4rem 1.5rem; }
  .section.dark { padding: 5rem 1.5rem; }
  .section-title { font-size: 2rem; }
  .lead { font-size: 1rem; line-height: 1.5; }
}

/* Ocultar side-nav en móviles */
@media (max-width: 768px) {
  .side-nav {
    display: none;
  }
}
/* Botón hamburguesa oculto en desktop */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  font-size: 2rem;
  color: #00ffb3;
  cursor: pointer;
}

/* Menú móvil */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: #111;
  padding-top: 60px;
  z-index: 199;
  flex-direction: column;
}

.mobile-nav a {
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.mobile-nav a:hover {
  background: #00ffb3;
  color: #0a0a0a;
}

/* Mostrar botón y ocultar side-nav en móviles */
@media (max-width: 768px) {
  .side-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }
}
/* Sobre mí en una columna */
.about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.social-icons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Responsivo: ya todo está centrado */
@media (max-width: 768px) {
  .about-text {
    text-align: center;
  }
}

/* ============================= */
/* MENU HAMBURGUESA / RESPONSIVE */
/* ============================= */

/* Flex container del header */
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Menú desktop */
.side-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: fixed;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.side-nav a {
  color: #00ffb3;
  font-size: 1.5rem;
  text-decoration: none;
  transition: 0.3s;
}

.side-nav a:hover {
  color: #00cc8f;
}

/* Botón hamburguesa oculto en desktop */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  font-size: 2rem;
  color: #00ffb3;
  cursor: pointer;
}

/* Menú móvil oculto por defecto */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: #111;
  padding-top: 60px;
  flex-direction: column;
  z-index: 199;
}

.mobile-nav a {
  color: #fff;
  padding: 1rem 2rem;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.mobile-nav a:hover {
  background: #00ffb3;
  color: #0a0a0a;
}

/* Responsive */
@media (max-width: 768px) {
  .side-nav { display: none; }
  .mobile-nav-toggle { display: block; }
}

/* Sección "Sobre mí" en una columna */
#about .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.hero .role {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #00ffb3;
}

.hero .contact-info {
  margin-bottom: 2rem;
}

.hero .contact-info p {
  font-size: 1.1rem;
  margin: 0.3rem 0;
}

.hero .contact-info i {
  margin-right: 0.5rem;
  color: #2575fc;
}
.project-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.code-block {
  background-color: #1a1a1a;
  color: #00ffb3;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

.project-content h2 {
  margin-top: 2rem;
  color: #2575fc;
}
.project-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.code-block {
  background-color: #1a1a1a;
  color: #00ffb3;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
  font-family: 'Courier New', monospace;
}

.project-content h2, .project-content h3 {
  margin-top: 2rem;
  color: #2575fc;
}
.project-img {
  display: block;
  margin: 1.5rem auto; /* centra la imagen */
  max-width: 800px;    /* tamaño máximo */
  height: auto;        /* mantiene proporción */
  border-radius: 12px;
}


.status span {
  display: inline-block;
  background: #ffcc00;
  color: #333;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 16px;
}
