* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #0b0f1a;
  color: #e5e7eb;
  line-height: 1.6;
}

/* -------------------- Hero Slider -------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slides {
  display: none;
  height: 100%;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover ;
  object-position: center top;
}

/* Dots (indicadores) */
.slider-dots {
  position: absolute;
  bottom: 30px;
  width: 100%;
  text-align: center;
}

#skills .grid {
  display: grid;
  gap: 1rem;
}

.skill-card {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.skill-gallery {
  display: none;
  padding: 1rem;
}

.skill-gallery img {
  width: 100%;
  border-radius: 10px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.skill-gallery.active {
  display: block;
}

.skill-gallery.active img {
  opacity: 1;
}

.skill-card.show-images .skill-content {
  display: none;
}


.repo-links {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 1rem 1rem;
  flex-wrap: wrap;
}

.repo-links a {
  flex: 1 1 90px;
  text-align: center;
  padding: 0.45rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #38bdf8;
  border: 1px solid rgba(56,189,248,0.35);
  border-radius: 6px;
  text-decoration: none;
  transition: 
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

/* Hover desktop */
.repo-links a:hover {
  background: #38bdf8;
  color: #020617;
  transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 600px) {
  .repo-links {
    gap: 0.5rem;
  }

  .repo-links a {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
  }
}


.contact-grid {
  max-width: 900px;
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.contact-item .icon {
  font-size: 1.4rem;
  line-height: 1;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}

.contact-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.contact-item a {
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-item a:hover {
  color: #7dd3fc;
}

/* Responsive */
@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}




.skill-header {
  width: 100%;
  background: transparent;
  color: #fff;
  padding: 1rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.skill-header:hover {
  background: rgba(255,255,255,0.05);
}

.arrow {
  font-size: 1.4rem;
  transition: transform 0.35s ease;
}

.skill-card.active .arrow {
  transform: rotate(90deg);
}

.skill-content {
  max-height: 0;
  opacity: 0;
  padding: 0 1.2rem;
  font-size: 0.9rem;
  margin: 1rem 0;
  color: #ccc;
  line-height: 1.6;
  transition: all 0.4s ease;
}

.skill-card.active .skill-content {
  max-height: 200px;
  opacity: 1;
  padding: 0.8rem 1.2rem 1.2rem;
}
.service-card.active .arrow {
  transform: rotate(90deg);
}

.logo-strip {
  position: relative;
  top: -70px;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
  background: linear-gradient(
    to right,
    #0a0a0a,
    #111,
    #0a0a0a
  );
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scroll 35s linear infinite;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
  flex-wrap: wrap; /* permite 2 líneas si no caben */
}

.logo-group img {
  height: 42px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-group img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .logo-group img {
    height: 34px;
  }
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  display: inline-block;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #38bdf8;
}

/* Fade animation */
.fade {
  animation: fadeAnimation 1.5s ease;
}
@keyframes fadeAnimation {
  from {opacity: 0.4;}
  to {opacity: 1;}
}

/* Superposición de texto */
.overlay {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}


/* ---------------- NAVBAR ---------------- */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.marca {
  display: flex;
  align-items: center;   /* centra verticalmente */
  gap: 12px;             /* espacio entre logo y texto */
}
.logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;        /* 🔥 recorta sin deformar */
  object-position: center top;  /* 🎯 centra el rostro */ 
}
.NameTittle {
  font-weight: 800;
  color: #38bdf8;
  font-size: 1.3rem;
}

/* Desktop menu */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-menu a {
  color: #9ca3af;
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}

.nav-menu a:hover {
  color: #38bdf8;
}

/* ---------------- HAMBURGER ---------------- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 2px;
  background: #e5e7eb;
  transition: all .4s ease;
}

/* ---------------- MOBILE ---------------- */
@media (max-width: 768px) {

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #020617;

    flex-direction: column;
    align-items: center;

    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 18px;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* Acordeón activo */
  .nav-menu.active {
    max-height: 400px;
  }

  /* Animación hamburguesa → X */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
  }
}

/* Contenedor de detalles */
.details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);

  transition:
    max-height 0.6s ease,
    opacity 0.4s ease,
    transform 0.4s ease;

  background: #020617;
  border-radius: 10px;
  margin-top: 15px;
  padding: 0 20px;
}

/* Estado activo */
.details.active {
  max-height: 500px; /* suficiente para el contenido */
  opacity: 1;
  transform: translateY(0);
  padding: 20px;
}

/* Botón */
.details-btn {
  margin-top: 15px;
  background: transparent;
  color: #38bdf8;
  border: 1px solid #38bdf8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.details-btn:hover {
  background: #38bdf8;
  color: #020617;
}

/* Lista interna */
.details ul {
  margin-left: 20px;
}

.details li {
  margin-bottom: 8px;
  color: #cbd5f5;
}


.nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.nav a {
  color: #9ca3af;
  text-decoration: none;
}

.logo {
  font-weight: 800;
  color: #38bdf8;
}

.hero-content {
  padding-top: 150px;
  margin: auto;
  text-align: center;
}


.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #38bdf8;
  color: #000;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
}

.section {
  padding: 80px 10%;
}

.section.dark {
  background: #020617;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: #111827;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  transition: transform .3s;
}

.card:hover {
  transform: translateY(-8px);
}

.timeline {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.timeline-item {
  background: #111827;
  padding: 25px;
  border-left: 4px solid #38bdf8;
  border-radius: 10px;
}

.contact-box {
  text-align: center;
  font-size: 1.1rem;
}

footer {
  text-align: center;
  padding: 20px;
  background: #020617;
  color: #6b7280;
}

/* Animaciones */
.fade-in {
  animation: fade 1.5s ease;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
