/* Global */
body {
  background-color: rgb(17, 17, 18);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

/* Sección Introducción */
.intro-header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 5vw;
  box-sizing: border-box;
}

.intro-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.intro-text {
  flex: 1 1 60%; /* que tome hasta 60% del ancho */
  min-width: 280px;
  /* quita max-width o ponla alta */
  max-width: 100%;
  width: 100%;
}

.line1 {
  font-size: 4.5rem;
  font-weight: 600;
  margin-bottom: 0rem;
}

.line2 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-top: 0rem;
  margin-bottom: 0.1rem;
}

.text-line {
  margin-top: 0.1rem;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #cccccc;
}

.italic-line {
  font-style: italic;
  font-size: 1rem;
  color: #aaaaaa;
}

.intro-image {
  flex: 1 1 35%; /* que tome hasta 35% del ancho */
  display: flex;
  justify-content: center;
  min-width: 250px;
}

.intro-image img {
  width: 100%;
  max-width: 300px; /* para que no sea gigante, pero crezca */
  border-radius: 12px;
  box-shadow: 0 0 10px #f3f3f3;
  object-fit: cover;
}

.social-icons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.social-icons a img {
  width: 32px;
  height: 32px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  filter: brightness(0) invert(1);
}

.social-icons a:hover img {
  transform: scale(1.15);
  opacity: 0.8;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff 0%, #e2ebff 100%);
  color: #101010;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
}

.resume-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.2);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #f2f2f2;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.secondary-btn:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.12);
}

.resume-btn i,
.secondary-btn i {
  font-size: 1rem;
}

/* Stack badges */
.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.stack-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f0f0f0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Responsive Design */
@media (max-width: 768px) {
  .intro-content {
    flex-direction: column;
    text-align: center;
  }

  .intro-text {
    align-items: center;
  }

  .line1 {
    font-size: 2.2rem;
  }

  .line2 {
    font-size: 1.6rem;
  }

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

  .intro-image {
    margin-top: 2rem;
  }
}

/* Skills section */

.skills-section {
  background-color: #121212;
  padding: 4rem 5vw;
}

.content-section {
  padding: 3.5rem 5vw;
  background-color: #121212;
}

.content-section-content {
  max-width: 1100px;
  margin: 0 auto;
}

.content-section-content h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

.content-grid {
  display: grid;
  gap: 1rem;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.six-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card {
  background: linear-gradient(135deg, rgba(31, 31, 31, 0.95), rgba(20, 20, 20, 0.95));
  border: 1px solid #333;
  border-radius: 14px;
  padding: 1.4rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  min-height: 150px;
}

.content-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  color: #ffffff;
}

.content-placeholder {
  margin: 0;
  color: #d7d7d7;
  font-size: 0.95rem;
  line-height: 1.7;
}

.philosophy-card {
  min-height: 170px;
}

@media (max-width: 900px) {
  .three-up,
  .six-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .three-up,
  .six-up {
    grid-template-columns: 1fr;
  }
}

.skills-content {
  max-width: 1200px;
  margin: 0 auto;
  color: #ffffff;
}

.skills-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.skill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 8px;
  color: #ccc;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.skill img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.skill:hover {
  transform: scale(1.05);
  background-color: #2a2a2a;
}

.skill.soft {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  background-color: #292929;
  border: 1px solid #444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .skills-content h2 {
    text-align: center;
    font-size: 1.8rem;
  }

  .skills-grid {
    justify-content: center;
  }

  .skill {
    font-size: 0.9rem;
  }

  .skill img {
    width: 20px;
    height: 20px;
  }
}

/* Projects Section */

.projects-section {
  padding: 4rem 5vw;
  background-color: #121212;
}

.projects-content {
  max-width: 1200px;
  margin: 0 auto;
  color: #ffffff;
}

.projects-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

.project-group {
  margin-bottom: 3rem;
}

.project-group-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #f0f0f0;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.featured-project-card {
  background: linear-gradient(135deg, rgba(31, 31, 31, 0.96), rgba(24, 24, 24, 0.96));
  border: 1px solid #333;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.placeholder-card {
  border-style: dashed;
  border-color: #444;
}

.featured-project-image-wrap {
  background-color: #0f0f0f;
  padding: 1rem;
}

.placeholder-visual {
  min-height: 180px;
  border: 1px dashed #555;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-project-body {
  padding: 1.2rem 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.project-subtitle {
  margin: 0.2rem 0 0;
  color: #9f9f9f;
  font-size: 0.92rem;
}

.project-section-block h5 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  color: #ffffff;
}

.project-list {
  margin: 0;
  padding-left: 1rem;
  color: #cccccc;
  line-height: 1.6;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.project-card {
  background-color: #1f1f1f;
  border: 1px solid #333;
  border-radius: 12px;
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #444;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.github-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.github-icon:hover {
  transform: scale(1.2);
}

.project-description {
  font-size: 0.95rem;
  color: #cccccc;
  line-height: 1.5;
  margin: 0;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background-color: #292929;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #ccc;
  border: 1px solid #444;
}

@media (max-width: 900px) {
  .featured-projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .projects-content h2 {
    text-align: center;
    font-size: 2rem;
  }

  .project-group-title {
    text-align: center;
  }
}


/* Responsive Design */

@media (max-width: 768px) {
  .projects-content h2 {
    text-align: center;
    font-size: 2rem;
  }

  .project-card {
    max-width: 100%;
  }

  .project-description {
    font-size: 0.9rem;
  }
}

/* Certifications Section */
.certifications-section {
  background-color: #121212;
  padding: 4rem 5vw;
}

.certifications-content {
  max-width: 1200px;
  margin: 0 auto;
  color: #ffffff;
}

.certifications-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  font-weight: 600;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

.certification {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.cert-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.cert-date {
  font-size: 1rem;
  color: #bbbbbb;
}

.cert-issuer {
  font-size: 0.95rem;
  color: #aaaaaa;
  margin-top: 0.3rem;
  margin-bottom: 0.7rem;
}

.cert-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #66ccff;
  text-decoration: none;
  border-bottom: 1px dashed #66ccff;
  transition: color 0.2s ease;
}

.cert-link:hover {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cert-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .cert-title {
    font-size: 1.3rem;
  }

  .cert-date {
    font-size: 0.9rem;
  }
}

/* About Me Section */
.about-section {
  background-color: #121212;
  padding: 4rem 5vw;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  color: #ffffff;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #cccccc;
  margin-bottom: 3rem;
}

/* Timeline Section */

.timeline {
  border-left: 2px solid #444;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 4px;
  width: 12px;
  height: 12px;
  background-color: #66ccff;
  border-radius: 50%;
  border: 2px solid #222;
}

.timeline-year {
  font-weight: 600;
  color: #ffffff;
  font-size: 1.1rem;
}

.timeline-desc {
  color: #bbbbbb;
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.timeline-item.future::before {
  background-color: #999; /* Gris para eventos futuros */
}

/* Responsive Desgin */
@media (max-width: 768px) {
  .about-content h2 {
    text-align: center;
    font-size: 2rem;
  }

  .about-text {
    text-align: justify;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline-year {
    font-size: 1rem;
  }

  .timeline-desc {
    font-size: 0.9rem;
  }
}

/* Navbar */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #111;
  padding: 0.8rem 5vw;
  display: flex;
  justify-content: center;
  z-index: 1000;
  transition: top 0.3s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  text-decoration: none;
  color: #f3f3f3;
  font-weight: 500;
  font-size: 1.3rem;
  transition: color 0.2s;
}

.nav-links li a:hover {
  color: #66ccff;
}


html {
  scroll-behavior: smooth;
}

/* Contact Me Section */

.contact-section {
  padding: 4rem 5vw;
  background-color: #121212;
  color: #eee;
  text-align: center;
}

.contact-content {
  max-width: 680px;
  margin: 0 auto;
}

.contact-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
}

.contact-card {
  background: linear-gradient(135deg, rgba(31, 31, 31, 0.95), rgba(20, 20, 20, 0.95));
  border: 1px solid #333;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.contact-content form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-content label {
  text-align: left;
  font-weight: 600;
  color: #d8d8d8;
  margin-bottom: 0.2rem;
}

.contact-content input,
.contact-content textarea {
  padding: 0.8rem 0.9rem;
  border: 1px solid #333;
  border-radius: 8px;
  background-color: #171717;
  color: #f2f2f2;
  font-size: 1rem;
  resize: vertical;
  font-family: 'Poppins', sans-serif;
}

.contact-content input::placeholder,
.contact-content textarea::placeholder {
  color: #8a8a8a;
}

.contact-content input:focus,
.contact-content textarea:focus {
  outline: 2px solid #66ccff;
  background-color: #1f1f1f;
  color: #eee;
}

.contact-content button {
  padding: 0.9rem 1rem;
  background-color: #66ccff;
  color: #101010;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-content button:hover {
  background-color: #5ab7f4;
  transform: translateY(-1px);
}

