/* =========================================
   RESET GENERAL Y CONFIGURACIÓN BASE
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f0f0f; /* Fondo oscuro moderno */
  color: #ffffff;
  min-height: 100vh;
}

/* =========================================
   NAVBAR (barra superior flotante)
========================================= */

.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;

  background: rgba(255, 255, 255, 0.05); /* Efecto glass */
  backdrop-filter: blur(10px);

  padding: 15px 30px;
  border-radius: 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 100;
}

.logo {
  font-weight: 800;
  letter-spacing: 2px;
}

.navbar nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #bdbdbd;
  font-weight: 500;
  transition: 0.3s ease;
}

.navbar nav a:hover {
  color: white;
}

/* =========================================
   CONTENEDOR PRINCIPAL (layout general)
========================================= */

.hero-container {
  display: grid;
  grid-template-columns: 320px 1fr; /* Card izquierda + contenido derecha */
  gap: 60px;

  align-items: flex-start;

  padding: 140px 0%;
}

/* =========================================
   TARJETA PERSONAL (STICKY)
========================================= */

.profile-card {
  position: sticky;   /* Hace que se quede fija al hacer scroll */
  top: 120px;         /* Distancia desde arriba */

  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);

  padding: 25px;
  border-radius: 25px;

  text-align: center;

  transition: transform 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-5px); /* efecto premium al pasar mouse */
}

.profile-card img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 15px;
}

.profile-card h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.profile-card p {
  font-size: 14px;
  color: #aaa;
}
.social-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-links a {
  font-size: 22px;
  color: #bbb;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);

  transition: all 0.25s ease;
}

/* Hover elegante */
.social-links a:hover {
  color: white;
  transform: translateY(-3px) scale(1.05);
  background: rgba(255,255,255,0.15);
}
.social-links a {
  text-decoration: none;   /* Quita la línea */
}
/* =========================================
   HERO DERECHO (texto principal)
========================================= */

.hero-content h1 {
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
}

.hero-content h1 span {
  color: rgba(255, 255, 255, 0.15); /* efecto elegante tipo Framer */
}

.description {
  max-width: 700px;
  margin: 30px 0;
  line-height: 1.7;
  color: #bdbdbd;
}

/* =========================================
   STATS (números grandes debajo del hero)
========================================= */

.stats {
  display: flex;
  gap: 40px;
  margin-top: 10px;
}

.stat h2 {
  font-size: 40px;
  font-weight: 700;
}

.stat p {
  font-size: 12px;
  color: #888;
  letter-spacing: 1px;
}

/* =========================================
   EXPERIENCE SECTION
========================================= */

.experience {
  padding: 80px 0%;
}

.experience h2 {
  font-size: 60px;
  font-weight: 800;
  margin-bottom: 60px;
}

/* Contenedor vertical */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
}

/* Tarjeta de trabajo */
.job {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 20px;

  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);

  padding: 30px;
  border-radius: 25px;
}

.job-date {
  color: #777;
  font-weight: 600;
  font-size: 14px;
}

.job-content h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.job-content p {
  color: #aaa;
  line-height: 1.6;
}

/* =========================================
   RESPONSIVE (CELULAR Y TABLET)
========================================= */

@media (max-width: 900px) {

  /* Layout pasa a una sola columna */
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Card deja de ser sticky en móvil */
  .profile-card {
    position: relative;
    top: 0;
  }

  .stats {
    justify-content: center;
    flex-wrap: wrap;
  }

  .job {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   PREMIUM TOOLS SECTION
========================================= */

.tools {
  padding: 80px 0%;
}

.section-title {
  font-size: 60px;
  font-weight: 800;
  margin-bottom: 60px;
}

.section-title span {
  color: rgba(255,255,255,0.15); /* segundo tono elegante */
}

/* Grid de herramientas */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
}

/* Cada tool */
.tool {
  display: flex;
  align-items: center;
  gap: 20px;

  background: rgba(255,255,255,0.03);
  padding: 25px;
  border-radius: 20px;

  transition: transform 0.3s ease, background 0.3s ease;
}

.tool:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.06);
}

/* Icono cuadrado */
.tool-icon {
  width: 55px;
  height: 55px;

  background: rgba(255,255,255,0.08);
  border-radius: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 24px;
}

/* Textos */
.tool h3 {
  font-size: 18px;
}
.tool .logos{
    width: 50px;
}
.tool p {
  font-size: 14px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================================
   PROJECTS SECTION
========================================= */

.projects {
  padding: 80px 10%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
}

.project-card {
  background: rgba(255,255,255,0.03);
  padding: 30px;
  border-radius: 25px;
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.06);
}

.project-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.project-card p {
  color: #aaa;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
/* Botón de proyectos */
.project-btn {
  display: inline-block;
  margin-top: 20px;

  padding: 10px 20px;
  border-radius: 12px;

  background: rgba(255,255,255,0.08);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;

  transition: all 0.3s ease;
}

.project-btn:hover {
  background: white;
  color: black;
  transform: translateY(-2px);
}


.page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: all 0.6s ease;
}

.page.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Estilo fotografía */
.photo-portfolio {
  padding: 160px 10%;
}

.photo-portfolio h1 {
  font-size: 70px;
  font-weight: 800;
  margin-bottom: 60px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.photo-grid img {
  width: 100%;
  border-radius: 20px;
  transition: 0.4s ease;
}

.photo-grid img:hover {
  transform: scale(1.03);
}
/* === CAROUSEL FOTOGRAFÍA === */

.carousel {
  margin-top: 60px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.carousel-track {
  width: 600px;
  max-width: 90vw;
  position: relative;
  overflow: hidden;
}

.slide {
  display: none;
  animation: fade 0.6s ease;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  border-radius: 25px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.caption {
  margin-top: 15px;
  background: rgba(255,255,255,0.05);
  padding: 15px 20px;
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

.caption h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.caption p {
  font-size: 14px;
  color: #aaa;
}

/* Botones */
.nav-btn {
  background: rgba(255,255,255,0.08);
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px 18px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s ease;
}

.nav-btn:hover {
  background: white;
  color: black;
}

/* Animación */
@keyframes fade {
  from {opacity: 0; transform: scale(0.98);}
  to {opacity: 1; transform: scale(1);}
}
/* === PHOTO VIEWER PRO === */

.photo-viewer {
  margin-top: 60px;
  max-width: 1100px;
}

.viewer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
}

.viewer-image img {
  width: 100%;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.viewer-info {
  background: rgba(255,255,255,0.04);
  padding: 40px;
  border-radius: 30px;
  backdrop-filter: blur(12px);
}

.viewer-info h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.viewer-info p {
  font-size: 16px;
  line-height: 1.7;
  color: #aaa;
}

/* Miniaturas */
.thumbnails {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.thumbnails img {
  height: 90px;
  border-radius: 15px;
  cursor: pointer;
  opacity: 0.5;
  transition: 0.3s ease;
}

.thumbnails img:hover,
.thumbnails img.active-thumb {
  opacity: 1;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 900px) {
  .viewer-main {
    grid-template-columns: 1fr;
  }

  .viewer-info {
    padding: 25px;
  }
}
/* =========================================
   HERO BUTTONS (RECUPERAR ESTILO PREMIUM)
========================================= */

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .3px;
  transition: all .35s ease;
  backdrop-filter: blur(10px);
}

/* Botón principal */
.hero-btn.primary {
  background: linear-gradient(135deg, #ffffff, #dcdcff);
  color: #000;
  box-shadow: 0 10px 30px rgba(255,255,255,0.15);
}

.hero-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(255,255,255,0.25);
}

/* Botón secundario */
.hero-btn.secondary {
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  background: rgba(255,255,255,0.03);
}

.hero-btn.secondary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}
/* Asegura que el hero sea un bloque claro */
.hero-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* La card siempre a la izquierda */
.hero-container {
  align-items: flex-start;
}

/* Opcional: evita que el sticky se vea raro al llegar a secciones largas */
.profile-card {
  align-self: flex-start;
}
/* =========================================
   HERO ACTIONS (BOTONES PREMIUM)
========================================= */

.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-btn {
  position: relative;
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Botón principal (blanco premium) */
.hero-btn.primary {
  background: linear-gradient(135deg, #ffffff, #e6e8ff);
  color: #0a0a0a;
  box-shadow: 0 10px 30px rgba(255,255,255,0.15);
}

.hero-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(255,255,255,0.25);
}

/* Botón secundario (glass) */
.hero-btn.secondary {
  background: rgba(255,255,255,0.06);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero-btn.secondary:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}
