/* === RESET === */
/* === RESET === */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
  background-color: #0f0f0f;
  color: #fff;
  font-family: 'iki-mono-variable', monospace;
  font-variation-settings: 'wght' 100;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'scale-variable', sans-serif;
  font-variation-settings: 'wdth' 100, 'wght' 400;
  letter-spacing: 0.03em; /* aquí ajustas el tracking */
}

.nav-list li a,
p,
li,
.btn-footer,
.footer-info a,
.contacto-intro,
.skills-list li,
.descripcion-revista,
.formulario-contacto input,
.formulario-contacto textarea {
  font-family: 'iki-mono-variable', monospace;
  font-variation-settings: 'wght' 100;
}

.overlay h2,
.section h2,
.hero h1,
.detalle-texto h2,
.revista-titulo,
.contacto-page h1,
.habilidades h3 {
  font-family: 'scale-variable', sans-serif;
  font-variation-settings: 'wdth' 100, 'wght' 400;
}

/* Todo el resto de tu CSS permanece igual y sigue aplicando correctamente. */
  
  /* === SIDEBAR === */
  .sidebar {
    width: 200px;
    min-height: 100vh;
    background-color: #0f0f0f;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.4);
  }
  
  .logo img {
   width: 150px;
    margin-bottom: 30px;
    object-fit: contain;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
  }
  
  .nav-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: color 0.3s;
  }
  
  .nav-list li a:hover {
    color: #aaa;
  }
  
  /* === MAIN CONTENT === */
  .main-content {
    margin-left: 200px;
    width: calc(100% - 200px);
    
  }
  
  .hero {
    text-align: center;
    margin-bottom: 80px;
  }
  
  .hero h1 {
    font-size: 4rem;
    margin-bottom: 10px;
  }
  
  .hero p {
    font-size: 1.5rem;
    color: #ccc;
  }
  
  .section {
    padding: 80px 0;
    max-width: 1000px;
    margin: 0 auto;
  }
  
  .section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
  
  .galeria img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #fff;
    transition: transform .3s;
  }
  
  .galeria img:hover {
    transform: scale(1.05);
  }
  
 
  
  /* === ANIMACIONES === */
  .hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }
  
  .visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* === SUBMENÃš === */
  .has-submenu {
    position: relative;
  }
  
  .submenu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0f0f0f;
    border: 1px solid #0f0f0f;
    padding: 10px 0;
    z-index: 1000;
    min-width: 200px;
  }
  
  .submenu li {
    padding: 8px 20px;
  }
  
  .submenu li a {
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
  }
  
  .submenu li a:hover {
    color: #aaa;
  }
  
  .has-submenu:hover .submenu {
    display: flex;
  }
  
  /* === BRANDING PAGE === */
  .branding-page {
    padding: 0;
  }
  
  .branding-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .project-item {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease;
  }
  
  .project-item:hover {
    transform: scale(1.01);
  }
  
  .overlay {
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .project-item:hover .overlay {
    opacity: 1;
  }
  
  .overlay h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .overlay p {
    font-size: 1rem;
    color: #ccc;
  }
  
  /* === SOBRE MÃ === */
  .sobre-mi-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .sobre-mi-texto {
    flex: 1 1 300px;
  }
  
  .sobre-mi-texto h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .sobre-mi-texto p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #ccc;
    line-height: 1.6;
  }
  
  .sobre-mi-foto {
    flex: 1 1 200px;
    display: flex;
    justify-content: center;
  }
  
  .sobre-mi-foto img {
    max-width: 200px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #fff;
  }
  
 /* === PROYECTOS 2x2 === CORREGIDO */
html, body {
  overflow-x: hidden;
  background-color: #0f0f0f;
  color: #fff;
  font-family: 'Helvetica Neue', sans-serif;
  scroll-behavior: smooth;
  width: 100%;
}
.proyectos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.proyecto-box {
  position: relative;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  margin: 0;
  padding: 0;
  aspect-ratio: 1 / 1;
}

.proyecto-box .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.proyecto-box:hover .overlay {
  opacity: 1;
}

.proyecto-box h2 {
  color: #fff;
  font-size: 2rem;
  text-align: center;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .proyectos-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0 20px;
  }

  .proyecto-box {
    aspect-ratio: 16 / 9;
  }

  .proyecto-box h2 {
    font-size: 1.5rem;
  }
}


  
  /* === HABILIDADES === */
  .habilidades {
    margin-top: 40px;
  }
  
  .habilidades h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
  }
  
  .skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    padding: 0;
  }
  
  .skills-list li {
    font-size: 1.1rem;
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #333;
  }
  
  /* === RESPONSIVE === */
  @media screen and (max-width: 768px) {
    body {
      flex-direction: column;
    }
  
    .sidebar {
      width: 100%;
      height: auto;
      position: relative;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      padding: 20px;
    }
  
    .logo img {
      height: 40px;
      margin-bottom: 0;
    }
  
    .menu-toggle {
      display: block;
      cursor: pointer;
      font-size: 1.5rem;
      color: white;
      border: 2px solid white;
      padding: 5px 10px;
      border-radius: 5px;
    }
  
    .nav-list {
      flex-direction: column;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background: #111;
      display: none;
      padding: 20px 0;
      z-index: 1000;
    }
  
    .nav-list.active {
      display: flex;
    }
  
    .nav-list li {
      text-align: center;
    }
  
    .main-content {
      margin-left: 0;
      width: 100%;
      padding: 20px;
    }
  
    .galeria {
      grid-template-columns: 1fr;
    }
  
    .skills-list {
      justify-content: center;
    }
  
    .project-item {
      height: 80vh;
    }
  
    .overlay h2 {
      font-size: 1.5rem;
    }
  
    .overlay p {
      font-size: 0.95rem;
    }
  
    .submenu {
      display: none;
    }
  
    .has-submenu.open .submenu {
      display: flex;
    }
  
    .proyectos-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 0;
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0;
    }
  
    .proyecto-box {
      height: 50vh;
    }
  
    .proyecto-box h2 {
      font-size: 1.5rem;
    }
  
    .sobre-mi-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .sobre-mi-foto img {
      max-width: 200px;
    }
  }
  @media screen and (max-width: 768px) {
    .proyectos-grid {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
      max-width: 100%;
      margin: 0;
    }
  
    .proyecto-box {
      height: 50vh;
    }
  }
  @media screen and (max-width: 500px) {
    .project-item {
      height: 70vh;
    }
  
    .overlay {
      padding: 20px;
    }
  
    .overlay h2 {
      font-size: 1.2rem;
    }
  
    .overlay p {
      font-size: 0.85rem;
    }
  }
  /* === PROYECTO INDIVIDUAL === */
.carrusel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
 
  padding: 0;
  width: 100%;
  height: 80vh; /* carrusel más grande */
}

.carrusel img {
  flex: 0 0 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
  border-radius: 0;
}

/* Sección de detalle del proyecto */
.detalle-proyecto {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  flex-wrap: wrap;
}

.detalle-proyecto img {
  max-width: 400px;
  border-radius: 10px;
}

.detalle-texto {
  max-width: 500px;
  color: #ccc;
}

.detalle-texto h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
}

.detalle-texto p {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  .detalle-proyecto {
    flex-direction: column;
    padding: 30px 20px;
  }

  .detalle-proyecto img {
    max-width: 100%;
  }

  .detalle-texto {
    text-align: center;
  }

  .carrusel {
    height: 60vh;
  }

  .carrusel img {
    flex: 0 0 100%;
  }
}
/* === FOOTER EXTENDIDO === */
.footer {
  background-color: #111;
  padding: 60px 20px 30px;
  color: #ccc;
  text-align: left; /* Alineación a la izquierda */
  width: 100%;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
.footer-info a {
  color: #fff;
  text-decoration: none;
  position: relative;
}

.footer-info a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.footer-info a:hover::after {
  width: 100%;
}

.footer-info p {
  margin-bottom: 8px;
}

/* Redes con iconos */
.footer-social a {
  display: inline-block;
  margin-right: 15px;
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #aaa;
}

/* Botón gris tipo menú */
.btn-footer {
  display: inline-block;
  background: #111;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-footer:hover {
  background-color: #fff;
  color: #111;
}

.footer-copy {
  font-size: 0.9rem;
  color: #666;
  margin-top: 20px;
  padding-left: 20px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-social a {
    margin: 5px 10px 5px 0;
  }
}
/* REVISTA_EDITORIAL */
.revista-video {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

/* VIDEO ENCABEZANDO */
.video-revista-top {
  width: 100%;
  max-height: 600px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
  margin-bottom: 60px;
}

/* BLOQUE DE IMAGEN + TEXTO */
.revista-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.revista-imagen {
  flex: 1 1 350px;
}

.revista-imagen img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.revista-contenido {
  flex: 2 1 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.revista-titulo {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
}

.descripcion-revista {
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-descarga {
  display: inline-block;
  background-color: #111;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 16px; /* altura 10px, ancho más corto con 16px */
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  max-width: max-content;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn-descarga:hover {
  background-color: #fff;
  color: #111;
}
/* RESPONSIVE */
@media screen and (max-width: 768px) {
  .revista-layout {
    flex-direction: column;
    align-items: center;
  }

  .revista-contenido {
    text-align: center;
    align-items: center;
  }

  .revista-titulo {
    font-size: 1.6rem;
  }

  .video-revista-top {
    max-height: 400px;
  }
}
.main-content.contacto-page {
  
  width: calc(100% - 200px);
  min-height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contacto-page h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
}

.contacto-intro {
  color: #ccc;
  margin-bottom: 40px;
  font-size: 1.2rem;
}

.formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 600px;
}

.formulario-contacto input,
.formulario-contacto textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.formulario-contacto textarea {
  resize: vertical;
}

.btn-enviar {
  background-color: #fff;
  color: #111;
  border: none;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-enviar:hover {
  background-color: #ddd;
}
.mensaje-exito {
  color: #0f0;
  font-weight: bold;
  margin-top: 10px;
}
