* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
@font-face {
    font-family: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    src: url(/fonts/Montserrat-VariableFont_wght.ttf) format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

body {
  font-family: 'Montserrat';
  color: #000;
  background-color: #fff;
}

/* Header */
.header {
  height: 8vh;
  background-color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10rem;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header__logo {
  font-size: 1.5rem;
  font-weight: bold;
}
.logo__icon {
  width: 45px;
  height: 45px;
}
.header__nav {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}
.header__link {
  display: inline-block;
  color: #999999;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}
.header__link:hover {
  transform: scale(1.01);
  color: #fff;
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  height: 92vh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.5;
  z-index: 1;
}
.hero__content {
  z-index: 2;
  color: #fff;
}
.hero__title {
  font-size: 12rem;
  font-weight: 700;
}
.hero__subtitle {
  font-size: 3rem;
  font-weight: 500;
}

/* Sección Hola */
.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 10rem;
  background-color: #fff;
  height: auto;
  gap: 5rem;
}
.about__text {
  flex: 1;
}
.about__title {
  font-size: 5rem;
  font-weight: 700;
}
.about__subtitle {
  font-size: 4rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 2rem;
}
.about__description {
  margin-bottom: 3.5rem;
  font-size: 1.4rem;
  color: #333;
}
.about__button {
  background-color: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  display: inline-block;
}
.about__button:hover {
  background-color: #666;
  transform: scale(1.05);
  transition: all 0.1s ease-in-out;
}
.about__image {
  flex: 1;
  max-width: 550px;
}
.about__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Proyectos */
.projects {
  background-color: #111;
  padding: 4rem 2rem;
  color: #fff;
}
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 4rem;
  column-gap: 3rem;
  padding: 1rem 8rem;
}
.projects__item {
  position: relative;
  min-height: 250px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.projects__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
}
.projects__content {
  padding: 1rem;
  border-radius: 12px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.projects__title {
  font-size: 3rem;
  font-weight: 700;
}
.projects__text {
  font-size: 1.15rem;
  margin: 1rem 0 5rem 0;
  font-weight: 500;
}
.projects__button {
  background-color: #fff;
  color: #000;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease-in-out;
}
.projects__button:hover {
  font-size: 0.98rem;
  background-color: #000;
  color: white;
  transform: scale(0.95);
}

/* Footer */
.footer {
  background-color: #000;
  color: #fff;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer__info {
  max-width: 400px;
  margin-bottom: 1rem;
}
.footer__contact a {
  color: #fff;
  text-decoration: underline;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}


/*____INFO____*/
.cv {
  background-color: #f9f9f9;
  padding: 5rem 2rem;
  margin-right: 9rem;
  margin-left: 9rem;
}

.cv__container {
  max-width: 1920px;
  margin: auto;
}

.cv__intro {
  text-align: center;
  margin-bottom: 4rem;
}

.cv__title {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.cv__description {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #333;
  font-weight: 600;
  margin-bottom: 4rem;
}

.cv__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-bottom: 5rem;
}

.cv__block {
  background-color: #161616;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.219);
  line-height: 1.7;
  font-size: 1.4rem;
  color: #dfdfdf;
}

.cv__subtitle {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.cv__button-container {
  text-align: center;
}

.cv__button {
  background-color: #161616;
  color: #fff;
  text-decoration: none;
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
}

.cv__button:hover {
  background-color: #ffffff;
  transform: scale(1.05);
  color: black;
  border: 4px solid black;
}



.projects-section {
  padding: 4rem 2rem;
  background-color: #fff;
  margin-bottom: 5rem;
}

.projects-title {
  text-align: center;
  font-size: 4rem;
  margin-bottom: 4rem;
  margin-top: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #f0f0f0;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.363);
}

.project-card:hover {
  transform: scale(1.03);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.project-details {
  grid-column: 1 / -1;
  background: #fafafa;
  padding: 1.5rem;
  margin-top: -1rem;
  border-radius: 10px;
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.project-details img {
  width: 100%;
  margin-top: 1rem;
  border-radius: 10px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.project-media {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.media-fixed {
  flex: 1 1 300px;
  max-width: 500px;
}

.media-fixed img,
.media-fixed video {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.media-gallery {
  flex: 1 1 500px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.gallery-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 1rem;
}

.gallery-track img,
.gallery-track video {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  flex-shrink: 0;
}

.gallery-arrow {
  background-color: #ffffffb7;
  color: #000000;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1;
  border-radius: 10px;
}

.gallery-arrow.left {
  position: absolute;
  left: 5px;
}

.gallery-arrow.right {
  position: absolute;
  right: 5px;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .project-media {
    flex-direction: column;
  }

  .media-fixed, .media-gallery {
    max-width: 100%;
  }

  .gallery-arrow {
    top: 50%;
    transform: translateY(-50%);
  }
}



























/* Responsive: tablets y móviles */
@media (max-width: 768px) {
  .header {
    padding: 0 2rem;
  }
  .header__nav {
    gap: 1.5rem;
  }
  .hero__title {
    font-size: 6rem;
  }
  .hero__subtitle {
    font-size: 2rem;
  }
  .about {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 3rem;
    text-align: center;
  }
  .about__text {
    padding: 0;
  }
  .about__title {
    font-size: 3rem;
  }
  .about__subtitle {
    font-size: 2.5rem;
  }
  .projects__grid {
    grid-template-columns: 1fr;
    padding: 1rem 2rem;
  }
  .projects__title {
    font-size: 2.2rem;
  }
  .projects__text {
    font-size: 1.2rem;
  }
  .footer {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Extra pequeño: iPhone SE, 5, etc. */
@media (max-width: 480px) {
  .hero__title {
    margin-bottom: 1.5rem;
    font-size: 4rem;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .about__title {
    font-size: 2.2rem;
  }
  .about__subtitle {
    font-size: 1.8rem;
  }
  .about__description {
    font-size: 1.2rem;
  }
  .projects__title {
    font-size: 2rem;
  }
  .projects__text {
    font-size: 1rem;
  }
  .header {
    flex-direction: column;
    gap: 1rem;
    height: auto;
    padding: 1rem;
  }
  .header__nav {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Botón hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  gap: 6px;
}

.menu-toggle span {
  height: 3px;
  width: 25px;
  background: white;
  border-radius: 2px;
}

/* Modo responsive */
@media (max-width: 768px) {
  .header {
    padding: 1rem 2rem;
    height: auto;
    flex-wrap: nowrap; /* importante */
    flex-direction: row;
  }

  .header__logo {
    flex: 1;
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .header__nav {
  flex-direction: column;
  gap: 1.5rem;
  background-color: #000;
  width: 100%;
  padding: 2rem 1.5rem;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header__nav.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

  .header__nav.active {
    display: flex;
  }
}

p,
.projects__text,
.footer__info,
.footer__contact {
  line-height: 1.6; /* Ajusta este valor según tu gusto (1.4–1.8 suele estar bien) */
}

/* Responsive para móviles */
@media screen and (max-width: 1024px) {
  .cv__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 768px) {
  .cv {
    display: flex;
    padding: 1rem 0rem;
    justify-content: center;
    margin-top: 1rem;
  }

  .cv__intro {
    margin-bottom: 2rem;
  }

  .cv__title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .cv__description {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 100%;
  }

  .cv__grid {
    margin-top: 4rem;
    grid-template-columns: 1fr;
  }

  .cv__block {
    padding: 1.2rem;
    font-size: 1rem;
    line-height: 1.8;
    text-align: left;
  }

  .cv__subtitle {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
  }

  .cv__block p {
    margin-bottom: 0.7rem;
  }

  .cv__button {
    width: 100%;
    display: inline-block;
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}