/* Reset básico */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Exa:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Barcode+128&display=swap');

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lexend Exa', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #222;
  min-height: 100vh;
}

/* CABECERA */
.main-header {
  position: relative;
  background: #fff;
  min-height: 100vh;           /* Más alto para la estatua */
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  overflow: hidden;
  border: 4px solid #f3f3f3;
}

.main-bg-image {
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translate(-50%, -40%);
  width: 900px;
  max-width: 90vw;
  height: auto;
  z-index: 0;
  pointer-events: auto; /* <-- Cambiado aquí */
  user-select: none;
}


.header-left, .header-right {
  position: relative;
  z-index: 2;
  margin-top: 32px;
  margin-left: 50px;
}

.header-left {
  flex: 1;
}

.portfolio-title {
  font-size: 2.3rem;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.portfolio-barcode {
  font-family: 'Libre Barcode 128', cursive;
  font-size: 2.2rem;
  letter-spacing: 2px;
  background: none;
  width: auto;
  height: auto;
  margin-top: 6px;
  margin-left: 5px;
  line-height: 1;
}

.header-right {
  text-align: right;
  margin-top: 32px;
  flex: 1;
  margin-right: 50px;
}

.author-name {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.header-nav a {
  color: #222;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.7;
}

.header-nav a:hover {
  color: #888;
}

/* NAV PRINCIPAL */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 2px solid #eee;
  background: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.main-nav a {
  color: #222;
  text-decoration: none;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #888;
}

/* CONTENIDO PRINCIPAL */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 12px 0 12px;
}

/* WORK ARCHIVE - CUADRÍCULA */
.work-archive {
  margin-bottom: 48px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.work-thumb {
  width: 100%;
  height: 200px;      /* O el alto que prefieras */
  object-fit: cover;  /* Hace que la imagen cubra el espacio sin deformarse */
  display: block;
  background: none;   /* Elimina fondo gris si lo hay */
}



.work-archive-separator {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 40px;
  margin-top: -50px;
  border-top: 4px solid #222;
  border-bottom: 4px solid #222;
  overflow: hidden;
  background: #fff;
  height: 100px;
  display: flex;
  align-items: center;
  z-index: 10;
}

.work-archive-marquee {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
}

.work-archive-marquee span {
  display: inline-block;
  font-family: inherit;
  font-size: 5rem;
  letter-spacing: 2px;
  color: #222;
  animation: marquee 12s linear infinite;
  line-height: 50px;
  font-weight: 400;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-20%); }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 360px);
  gap: 32px 24px;
  justify-content: center;
  align-items: center;
}

.work-card.locked {
  display: none;
}

.work-card {
  background: none;
  width: 360px;
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
  opacity: 1;
  transform: none;
  transition: none;
}

.work-card img {
    display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-info {
  padding: 12px 0 0 0;
}

.work-info h3 {
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 2px;
  margin-left: 0;
  text-align: left;
}

.work-info p {
  font-size: 0.85rem;
  color: #222;
  margin-left: 0;
  text-align: left;
}

/* SOBRE MI */

/* Separador ABOUT ME con margen superior */
.work-archive-separator.about-separator {
  margin-top: 50px;
}
.about-me {
  margin: 48px 0;
  padding: 0 0 32px 0;
  border-bottom: 4px solid #f3f3f3;
}

.about-me h2 {
  font-size: 5.5rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
  font-weight: bold;
  text-align: left;
  margin-left: -125px;
  margin-right: -125px;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-left: -125px;
  margin-right: -125px;
}

.about-image img {
  width: 620px;
  height: 740px;
  object-fit: cover;
  background: #ddd;
  display: block;
  border-radius: 0;
  margin-left: 0;
  margin-bottom: 50px;
}

.about-text {
  max-width: 420px;
  font-size: 1rem;
  color: #222;
  text-align: left;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 420px;
}

.about-text ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
}

.about-text li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.about-text ul li {
  margin-bottom: 6px;
}

/* CONTACTO NUEVO ESTILO */
.contact-section {
  background: #fff;
  padding: 0;
  border: none;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0 24px 0;
}

.contact-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.contact-email {
  font-weight: bold;
  color: #222;
  text-decoration: underline;
  margin-bottom: 18px;
  font-size: 1rem;
}

.contact-desc {
  font-size: 1rem;
  color: #222;
  text-align: center;
  margin-bottom: 0;
  line-height: 1.4;
}

.contact-image-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  display: flex;
  justify-content: center;
  background: #fff;
}

.contact-image-full img {
  width: 100vw;
  max-width: 100vw;
  height: auto;
  max-height: 75vh;
  display: block;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  padding-top: 125px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .work-card {
    width: 140px;
    height: 140px;
  }
  .about-content {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .about-image img {
    width: 220px;
    height: 220px;
  }
  .about-me h2 {
    font-size: 2.2rem;
  }
}
@media (max-width: 700px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    min-height: 340px;
    padding: 0 8px;
  }
  .main-bg-image {
    width: 95vw;
    top: 55%;
    transform: translate(-50%, -20%);
  }
  .header-left, .header-right {
    margin-top: 16px;
  }
  .about-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .about-image img {
    width: 100%;
    height: auto;
    max-width: 320px;
    max-height: 320px;
  }
  .contact-image img {
    width: 100%;
    height: 80px;
  }
  .work-archive-separator {
   height: 32px;
   margin-bottom: 24px;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
  .work-card {
    width: 90vw;
    height: 90vw;
    max-width: 320px;
    max-height: 320px;
  }
}

a {
  text-decoration: none;
  color: #222;
}

a:hover {
  color: #888;
}