html {
  height: 100%;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}

body {
  font-family: "Geist Mono", sans-serif;
  line-height: 1;
  background: #ffffff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

html,
body {
  scrollbar-width: none;
}

del {
  text-decoration: line-through;
}

input,
select {
  vertical-align: middle;
}

address {
  font-style: normal;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
}

nav {
  border-radius: 0.5rem;
  padding: 0;
}

nav ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

nav li {
  border-radius: 0.5rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.063);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 243, 237, 0.13);
}

nav a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: black;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.1em;
  line-height: 1;
}

nav a span {
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  display: block;
  line-height: 1.2;
}

nav a:hover span {
  transform: translateY(-100%);
}

nav .activo {
  align-items: center;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #aaa;
  cursor: default;
  display: flex;
  flex-direction: column;
  height: 1.1em;
  line-height: 1;
}

.logo {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
  transform: rotate(15deg);
}

.logo img {
  position: relative;
  width: 50px;
  border-radius: 0.5rem;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.063);
  backdrop-filter: blur(10px);
  transition: border-radius 0.3s ease;
}

.logo img:hover {
  border-radius: 50%;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2rem 3rem;
  font-size: 0.8rem;
  color: black;
}

footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
}

footer nav a {
  text-decoration: none;
  text-transform: none;
  font-size: 0.8rem;
  height: auto;
  letter-spacing: 0;
}

footer address {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

footer a,
footer a:visited {
  color: black;
  text-decoration: none;
}

footer a:hover,
footer a:active {
  color: #aaa;
}

main {
  animation: fadeUp 0.8s ease both;
}

.pagina-inicio main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero {
  padding: 1rem;
  max-width: 1200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

h1 {
  font-size: 8rem;
  font-weight: 450;
}

#hero a {
  text-decoration: none;
  color: black;
  cursor: pointer;
}

#hero h1 {
  animation: pulso 2.5s ease-in-out infinite;
}

.jelly-magnet {
  display: inline-block;
  cursor: pointer;
  transition: transform 0.3s ease-out;
  filter: drop-shadow(0 4px 12px rgba(251, 68, 23, 0.15));
}

.hero-sub {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.1em;
  text-decoration: none;
  color: #aaa;
  position: relative;
  transition: color 0.3s ease;
}

.btn-email.hero-sub {
  font-size: 0.85rem;
  padding: 1rem 1.2rem;
  animation: parpadeo 2.5s ease-in-out infinite;
}

#hero a.btn-email:hover {
  color: #fff;
}

#hero a.btn-email span {
  z-index: 1;
  position: relative;
}

.foto-cursor {
  position: fixed;
  width: 150px;
  height: 150px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  z-index: 999;
}

.foto-cursor.visible {
  opacity: 1;
  transform: scale(1);
}

.pagina-proyectos main {
  flex: 1;
  width: 100%;
  padding: 0 3rem;
}

.lista-proyectos {
  list-style: none;
  width: 100%;
}

.proyecto-fila a {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid #ddd;
  text-decoration: none;
  color: black;
  position: relative;
  transition: background-color 0.3s ease;
  height: auto;
  overflow: visible;
  flex-direction: row;
}

.proyecto-fila:last-child a {
  border-bottom: 1px solid #ddd;
}

.proyecto-fila a:hover {
  background-color: #f0f0f0;
}

.proyecto-numero {
  font-size: 0.75rem;
  color: #aaa;
  width: 2rem;
}

.proyecto-nombre {
  flex: 1;
  font-size: 1.1rem;
}

.proyecto-tipo {
  font-size: 0.8rem;
  color: #888;
}

.proyecto-aÃ±o {
  font-size: 0.8rem;
  color: #aaa;
  width: 3rem;
  text-align: right;
}

.proyecto-preview {
  position: absolute;
  right: 30rem;
  top: 50%;
  transform: translateY(-45%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  z-index: 50;
  border-radius: 0.5rem;
}

.proyecto-fila a:hover .proyecto-preview {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.pagina-proyecto1 main {
  flex: 1;
  padding: 0 3rem;
  margin-bottom: 6rem;
}

.informacion-proyectos {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  gap: 2rem;
}

.categ-peque {
  font-size: 0.8rem;
  font-weight: 500;
  color: grey;
}

.descripcion {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.descripcion-texto {
  line-height: 1.2;
  text-align: justify;
}

.descripcion-texto a,
.descripcion-texto a:visited {
  color: black;
  text-decoration: underline;
}

.descripcion-texto a:hover,
.descripcion-texto a:active {
  color: #888;
  text-decoration: underline;
}

.categorias {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.8rem;
}

.categorias ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  gap: 1rem;
}

.categorias li {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  padding-top: 1rem;
  border-top: 1px solid rgba(128, 128, 128, 0.277);
}

.imagenes-proyectos {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 3rem;
}

.fila-imagenes {
  display: flex;
  gap: 0.8rem;
}

.item {
  height: 500px; 
  border-radius: 1rem;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(128, 128, 128, 0.18);
}

.w-05 {
  flex: 0.5;
}

.w-1 {
  flex: 1;
}

.w-15 {
  flex: 1.5;
}

.w-2 {
  flex: 2;
}

.item img,
.item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.item:hover img,
.item:hover video {
  transform: scale(1.03);
}


.imagenes-proyectos div {
  border-radius: 1rem;
  overflow: hidden;
}

.frames {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
}

.frames .item {
  flex: 1;
}

.item-alto {
  height: 790px;
}

.item-span-8 {
  width: 100%;
  flex: 1;
  height: auto;
  min-height: 600px;
}

.fila-imagenes:has(.item-alto) {
  align-items: stretch;
}

.fila-imagenes:has(.item-alto) .frames {
  height: 790px;
}

.fila-imagenes:has(.item-alto) .frames .item {
  flex: 1;
  height: auto;
}

.pagina-carteleria-main {
  flex: 1;
  padding: 3rem;
  max-width: none;
  width: 100%;
  margin: 0 auto;
}

.carteleria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.cartel-item {
  aspect-ratio: 70.707071%;
  background-color: #f0f0f0;
  border: 1px solid rgba(128, 128, 128, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 300px;
}

.cartel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cartel-item:hover {
  transform: scale(1.08);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.carteleria-grid:has(.cartel-item:hover) .cartel-item:not(:hover) {
  filter: blur(3px);
  opacity: 0.7;
}

#sobre-mi {
  display: flex;
  width: 100%;
  align-items: flex-start;
  margin-bottom: 6rem;
}

#sobre-mi .contenido {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
  text-align: justify;
  gap: 0;
  border: 1px solid #ddd;
  margin: 1rem 3rem 0 3rem;
  padding: 0;
}

#sobre-mi h2 {
  font-weight: 500;
}

#sobre-mi .foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#sobre-mi .foto {
  width: 35%;
  position: sticky;
  top: 0;
  height: auto;
}

.titulos-sm {
  font-weight: 700;
}

.descripcion-about {
  font-size: 1.7rem;
  padding: 1.5rem;
  border-bottom: 1px solid #ddd;
}

.fila {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #ddd;
}

.experiencia {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 50%;
  border-right: 1px solid #ddd;
  padding: 1.5rem;
}

.formacion {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 50%;
  padding: 1.5rem;
}

.habilidades {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-bottom: 1px solid #ddd;
  padding: 1.5rem;
}

.experiencia:hover,
.formacion:hover,
.habilidades:hover,
.idiomas:hover,
.descripcion-about:hover {
  background-color: #f0f0f0;
}

.habilidades > div {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.habilidades > div > div {
  width: 50%;
}

.tecnicas {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.blandas {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.idiomas {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem;
}

.contenido ul {
  list-style-type: "→ ";
  list-style-position: inside;
}
.formacion li,
.idiomas li,
.tecnicas ul {
  list-style: none;
}

.tecnicas ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.tecnicas ul img {
  width: 40px;
}

.fechas,
.idiomas span {
  color: #00000076;
  font-weight: 400;
}

.experiencia h2,
.formacion h2,
.habilidades h2,
.idiomas h2 {
  margin-bottom: 0.6rem;
}

.pagina-contacto main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  text-align: center;
}

.contacto-intro {
  width: 65%;
  font-size: 1.5rem;
  line-height: 1.4;
}

.contacto-sub {
  font-size: 0.8rem;
  color: #aaa;
}

.btn-email {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 1.1em;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.1em;
  font-size: 2rem;
  color: black;
  border: 1px solid black;
  border-radius: 0.5rem;
  padding: 1.5rem 2rem;
  position: relative;
  transition: color 0.4s ease;
}

.btn-email::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: black;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: 0;
}

.btn-email:hover::before {
  transform: scaleY(1);
}

.btn-email span {
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  display: block;
  line-height: 0;
}

.btn-email:hover {
  color: #fff;
}

.btn-email:hover span {
  transform: translateY(-100%);
}



@media (max-width: 1024px) {
  .proyecto-preview {
    right: 5rem;
  }
}

@media (max-width: 900px) {
  #sobre-mi {
    flex-direction: column;
  }

  #sobre-mi .foto {
    width: 100%;
    position: relative;
    height: auto;
    max-height: 400px;
    overflow: hidden;
  }

  #sobre-mi .foto img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    object-position: center top;
  }

  #sobre-mi .contenido {
    width: 100%;
    margin: 0;
  }

  .descripcion-about {
    font-size: 1.2rem;
  }

  .fila {
    flex-direction: column;
  }

  .experiencia,
  .formacion {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .item:not(.item-alto) {
    height: 200px;
  }

  .proyecto-preview {
    right: 2rem;
  }

  .carteleria-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .item-span-8 {
    min-height: 400px;
  }
}

@media (max-width: 805px) {
  .informacion-proyectos {
    flex-direction: column;
  }

  .descripcion,
  .categorias {
    width: 100%;
  }

  .fila-imagenes {
    flex-direction: column;
    height: auto;
  }

  .item:not(.item-alto) {
    height: 250px;
    width: 100%;
  }

  .categorias li {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    text-align: right;
  }

  .categorias li p:last-child {
    text-align: right;
  }

  .proyecto-preview {
    display: none;
  }

  .item-alto {
    height: 500px;
  }

  .fila-imagenes:has(.item-alto) .frames {
    height: auto;
  }
}

@media (max-width: 700px) {
  .btn-email {
    font-size: 1rem;
    padding: 1rem;
  }

  .contacto-intro {
    width: 90%;
    font-size: 1.2rem;
  }

  .contacto-sub {
    font-size: 0.7rem;
    width: 50%;
  }

  .item-span-8 {
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 5rem;
  }

  header {
    padding: 1rem;
  }

  nav li {
    padding: 0.6rem;
  }

  nav ul {
    gap: 0.3rem;
  }

  nav a {
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  nav .activo {
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  .logo img {
    width: 35px;
    padding: 0.4rem;
  }

  .proyecto-tipo,
  .proyecto-año {
    display: none;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  footer address {
    text-align: left;
  }

  .pagina-carteleria-main {
    padding: 1rem;
  }

  .carteleria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 5rem;
  }

  header {
    padding: 1rem;
  }

  nav li {
    padding: 0.6rem;
  }

  nav ul {
    gap: 0.3rem;
  }

  nav a {
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  nav .activo {
    font-size: 0.7rem;
    letter-spacing: 0;
  }

  .logo img {
    width: 35px;
    padding: 0.4rem;
  }

  .proyecto-tipo,
  .proyecto-aÃ±o {
    display: none;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
  }

  footer address {
    text-align: left;
  }

  .pagina-carteleria-main {
    padding: 1rem;
  }

  .carteleria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(1px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes pulso {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes parpadeo {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
