/*========================

RESET

========================*/
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: white;
}

::-webkit-scrollbar-thumb {
  background: black;
}

::-webkit-scrollbar-thumb:hover {
  background: #d71920;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Grotesk", sans-serif;

  background: #fff;

  color: #000;
}

a {
  text-decoration: none;

  color: inherit;
}

img {
  width: 100%;
  display: block;
}

/*========================
CONTAINER
========================*/

.container {
  width: min(92%, 1400px);
  margin: 0 auto;
}
/*========================
HEADER
========================*/

header {
  width: 100%;

  border-bottom: 1px solid #000;

  background: #fff;

  position: fixed;

  top: 0;

  left: 0;

  z-index: 999;
}

header .container {
  height: 85px;

  display: flex;

  justify-content: center;

  align-items: center;
}

nav {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 60px;
}
nav a {
  position: relative;

  font-size: 0.9rem;

  font-weight: 500;

  letter-spacing: 2px;

  text-transform: uppercase;

  transition: 0.3s;
}
nav a::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -6px;

  width: 0;

  height: 2px;

  background: var(--accent);

  transition: 0.35s ease;
}

nav a:hover::after {
  width: 100%;
}
.menu-toggle {
  display: none;

  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle img {
  width: 28px;
  height: 28px;
}

/*========================

VARIABLES

========================*/

:root {
  --black: #000;

  --white: #fff;

  --accent: #d71920;
}

/*========================

SECCIONES

========================*/

section {
  padding: 120px 8%;
}
#hero {
  display: grid;

  grid-template-columns: 1fr 650px;

  align-items: center;

  gap: 50px;

  min-height: calc(100vh - 70px);

  padding-top: 80px;
}
.hero-image {
  overflow: hidden;
  animation: heroImage 1.4s ease;

  cursor: pointer;
}
.hero-image img {
  width: 100%;

  border: 1px solid #000;
  padding: 10px;

  object-fit: contain;

  aspect-ratio: auto;

  margin-top: 50px;
  margin-bottom: 25px;

  transition: 0.45s ease;
}
.hero-content {
  max-width: 650px;
  animation: heroText 0.9s ease;
}
.hero-tag {
  margin-bottom: 60px;
}
.hero-content h1 {
  font-size: clamp(4rem, 7vw, 7rem);

  line-height: 0.9;

  font-weight: 700;

  letter-spacing: -6px;

  text-transform: uppercase;
}
.hero-description {
  display: flex;

  align-items: center;

  gap: 30px;

  margin-top: 40px;

  font-size: 1.1rem;

  font-weight: 400;

  letter-spacing: 3px;

  text-transform: uppercase;
}

.separator {
  width: 5px;

  height: 5px;

  background: var(--accent);

  display: block;

  flex-shrink: 0;

  transform: translateY(-1px);
}
.art-number {
  font-size: 0.9rem;

  letter-spacing: 3px;

  color: #666;
}
.hero-artwork-info h3 {
  font-size: 1.6rem;

  margin-top: 6px;

  font-weight: 700;
}
/*========================
OBRAS DESTACADAS
========================*/

#obras {
  padding: 100px 8%;
}

.section-title {
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 3rem;

  font-weight: 700;

  letter-spacing: -2px;

  text-transform: uppercase;
}

.obras-home {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 360px));
  justify-content: center;
  gap: 70px;
}

.obras-home .obra img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.obra {
  cursor: pointer;
}

.obra-info span {
  display: block;

  font-size: 0.75rem;

  color: #777;

  letter-spacing: 2px;

  margin-bottom: 8px;
}

.obra-info h3 {
  font-size: 1.05rem;

  font-weight: 700;

  text-transform: uppercase;

  transition: 0.3s;
  margin-bottom: 5px;
}

.obra:hover h3 {
  color: var(--accent);
}

.obras-button {
  display: flex;

  justify-content: center;

  margin-top: 70px;
}
.obra-info {
  margin-top: 22px;
}

.btn-outline {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 16px 34px;

  border: 1px solid #000;

  font-size: 0.9rem;

  font-weight: 500;

  letter-spacing: 2px;

  text-transform: uppercase;

  transition: 0.35s ease;
}

.btn-outline:hover {
  background: #000;

  color: #fff;
}
/*========================
GALERÍA
========================*/

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 60px;
  align-items: start;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: 0.45s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  opacity: 0;
  transition: 0.35s;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 6px;
  color: #d5d5d5;
}

.gallery-overlay h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.gallery-overlay p {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.gallery-overlay small {
  font-size: 0.9rem;
  opacity: 0.85;
}
.gallery-cta {
  padding: 0;
}

.gallery-cta a {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  min-height: 220px;

  background: #000;
  color: #fff;

  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -2px;
  text-transform: uppercase;

  transition: 0.35s;
}

.gallery-cta a:hover {
  background: var(--accent);
}
/*========================
CATÁLOGO
========================*/

.catalogo-page .page-title span {
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--accent);
}

.catalogo-page .page-title h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -3px;
  text-transform: uppercase;
  margin: 18px 0;
  transition: transform 0.15s linear;
  transform-origin: center;
}

.catalogo-page .page-title p {
  color: #666;
}

/* MASONRY */
.catalogo-page main {
  padding: 120px 8% 70px;
}

.catalogo-page .page-title {
  text-align: center;
  margin-bottom: 90px;

  position: relative;

  transition:
    transform 0.1s linear,
    opacity 0.25s ease;
}
.catalogo-page .obras-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 60px;
  align-items: start;
}

.catalogo-page .obra {
  width: 100%;
}

.catalogo-page .obra img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.catalogo-page .obra-info {
  margin-top: 18px;
}

/*========================
GALERÍA PAGE
========================*/

.galeria-page main {
  padding: 190px 8% 70px;
}

.galeria-page .page-title {
  text-align: center;
  margin-bottom: 90px;
}

.galeria-page .page-title span {
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--accent);
}

.galeria-page .page-title h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -3px;
  text-transform: uppercase;
  margin: 18px 0;
}

.galeria-page .page-title p {
  color: #666;
}

.galeria-page #galeria {
  padding: 0;
}

/*========================
CONTACTO
========================*/

#contacto {
  padding: 0;
}

.contact-title {
  width: 100%;
}

.contact-title h2 {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  min-height: 220px;

  background: #000;
  color: #fff;

  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -2px;
  text-transform: uppercase;
}

.contact-content {
  width: min(92%, 1200px);
  margin: 90px auto;

  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 120px;
  align-items: start;
}

.contact-right {
  display: flex;
  flex-direction: column;
}

.contact-heading {
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-heading h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.contact-heading p {
  color: #666;
  line-height: 1.7;
  max-width: 500px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-links a {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.3s;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-info p {
  color: #777;
  font-size: 0.95rem;
  line-height: 1.7;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 700px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  padding: 18px 0;

  border: none;
  border-bottom: 1px solid #000;

  background: transparent;

  font-family: inherit;
  font-size: 1rem;

  outline: none;
  resize: none;

  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom: 2px solid var(--accent);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #888;
}

.contact-form button {
  margin-top: 20px;
  width: fit-content;
  background-color: #fff;
}

/*========================
footer
========================*/
footer {
  padding: 80px 8%;
  border-top: 1px solid #000;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content h2 {
  font-size: 2rem;
  letter-spacing: -1px;
}

.footer-content p {
  color: #666;
}


.footer-links a {
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}
/*========================
SOBRE MÍ
========================*/

#sobre {
  padding: 100px 8%;
}

.about-content {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border: 1px solid #000;
  padding: 10px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 30px;

  max-width: 700px;

  font-size: 1.05rem;
  line-height: 1.9;
  color: #444;
}
.about-tag {
  display: block;
  margin-bottom: 20px;

  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(70px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/*========================
OBRA INDIVIDUAL
========================*/

.obra-page main {
  padding: 150px 8% 80px;
}

.volver-obras {
  display: inline-block;

  font-size: 1.2rem;

  letter-spacing: 1px;

  text-transform: uppercase;

  transition: 0.3s;
}

.volver-obras:hover {
  color: var(--accent);
}

.mobile-logo {
  display: none;
}

/*========================
DETALLE DE OBRA
========================*/

.obra-detalle-contenido {
  display: grid;

  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);

  gap: 100px;

  align-items: center;

  max-width: 1400px;

  margin: 0 auto;
}

.obra-detalle-imagen {
  width: 100%;
}

.obra-detalle-imagen img {
  width: 70%;

  height: auto;

  display: block;

  object-fit: contain;
}

/*========================
INFO DE OBRA
========================*/

.obra-detalle-info {
  max-width: 500px;
}

.obra-numero {
  display: block;

  margin-bottom: 20px;

  color: #777;

  font-size: 0.85rem;

  letter-spacing: 3px;
}

.obra-detalle-info h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);

  line-height: 0.95;

  letter-spacing: -3px;

  text-transform: uppercase;

  margin-bottom: 35px;
}

.obra-tecnica,
.obra-medidas,
.obra-anio,
.obra-marco,
.obra-estilo {
  font-size: 1rem;

  color: #555;

  margin-bottom: 10px;
}

.obra-precio {
  display: block;

  margin-top: 35px;

  font-size: 1.5rem;

  letter-spacing: 1px;
}

/*========================
CONTACTO DE LA OBRA
========================*/

.obra-contacto {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 100px;

  padding: 100px 8%;

  border-top: 1px solid #000;

  max-width: 1400px;

  margin: 0 auto;
}

.obra-contacto-texto {
  max-width: 550px;
}

.obra-contacto-texto > span {
  display: block;

  color: var(--accent);

  font-size: 0.85rem;

  letter-spacing: 4px;

  margin-bottom: 25px;
}

.obra-contacto-texto h2 {
  font-size: clamp(2.5rem, 5vw, 5rem);

  line-height: 0.95;

  letter-spacing: -3px;

  margin-bottom: 30px;
}

.obra-contacto-texto p {
  max-width: 500px;

  color: #666;

  line-height: 1.7;
}

/* FORMULARIO */

.obra-contacto .contact-form {
  max-width: 700px;

  width: 100%;
}

.obra-contacto .contact-form input,
.obra-contacto .contact-form textarea {
  width: 100%;

  padding: 18px 0;

  border: none;

  border-bottom: 1px solid #000;

  background: transparent;

  font-family: inherit;

  font-size: 1rem;

  outline: none;

  resize: none;
}

.obra-contacto .contact-form input:focus,
.obra-contacto .contact-form textarea:focus {
  border-bottom: 2px solid var(--accent);
}

.obra-contacto .contact-form button {
  margin-top: 20px;
}

/*========================
RESPONSIVE OBRA
========================*/

@keyframes heroImage {
  from {
    opacity: 0;
    transform: scale(1.08);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes heroText {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  header .container {
    justify-content: space-between;
    padding: 0 20px;
  }

  nav {
    position: absolute;
    top: 85px;
    left: 0;

    width: 100%;

    background: #fff;
    border-top: 1px solid #000;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 28px;

    padding: 35px 25px;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);

    transition: 0.3s ease;
  }
  nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    left: 0;
  }

  .menu-toggle {
    display: block;
    z-index: 1001;
  }
  #hero {
    grid-template-columns: 1fr;
    gap: 40px;

    min-height: auto;

    padding: 120px 24px 80px;
  }
  .hero-content {
    max-width: none;
    text-align: center;
  }
  .hero-content h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);

    letter-spacing: -3px;
  }
  .hero-tag {
    margin-bottom: 35px;

    font-size: 0.85rem;

    letter-spacing: 3px;
  }
  .hero-description {
    justify-content: center;

    gap: 18px;

    margin-top: 30px;

    flex-wrap: wrap;

    font-size: 0.85rem;
  }
  .hero-image {
    max-width: 420px;

    margin: 0 auto;
  }
  .hero-artwork-info {
    text-align: center;
  }
  .obras-home {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .obra {
    max-width: 420px;
    margin: 0 auto;
  }

  .obras-home .obra-extra {
    display: none;
  }
  .section-title {
    margin-bottom: 35px;
  }

  .section-title h2 {
    font-size: 2.2rem;
    line-height: 1;
    text-align: center;
  }
  .obra-info {
    margin-top: 18px;
  }

  .obra-info h3 {
    font-size: 1rem;
  }
  .obras-button {
    margin-top: 50px;
  }

  .btn-outline {
    width: 100%;
    justify-content: center;
  }
  #obras {
    padding: 80px 24px;
  }

  .gallery-cta a {
    min-height: 150px;
    font-size: clamp(1.8rem, 9vw, 3rem);
    letter-spacing: -1px;
    gap: 10px;
  }
  .gallery-cta a::after {
    transition: 0.3s;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-image {
    max-width: 380px;
    margin: 0 auto;
  }
  .about-text {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.8;
    gap: 22px;
  }
  .about-tag {
    text-align: center;
    margin-bottom: 10px;
  }
  #sobre {
    padding: 80px 24px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }
  .footer-content h2 {
    font-size: 1.7rem;
    line-height: 1;
  }
  .footer-content p {
    font-size: 0.95rem;
  }
  footer {
    padding: 60px 24px;
  }
  .contact-content {
    grid-template-columns: 1fr;
    gap: 60px;
    margin: 60px auto;
  }

  .contact-info {
    text-align: center;
  }

  .contact-links {
    align-items: center;
  }

  .contact-form button {
    width: 100%;
  }
  .obra-page main {
    padding: 130px 24px 60px;
  }

  .volver-obras {
    margin-bottom: 40px;
  }

  .obra-detalle-contenido {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .obra-detalle-info {
    max-width: none;
  }

  .obra-detalle-info h1 {
    font-size: 3rem;
  }

  .obra-contacto {
    grid-template-columns: 1fr;

    gap: 60px;

    padding: 70px 24px;
  }

  .obra-contacto-texto h2 {
    font-size: 3rem;
  }

  /* ========================
   CATÁLOGO RESPONSIVE
======================== */

  .catalogo-page main {
    padding: 130px 24px 60px;
  }

  .catalogo-page .page-title {
    margin-bottom: 55px;
  }

  .catalogo-page .page-title span {
    font-size: 0.75rem;
    letter-spacing: 3px;
  }

  .catalogo-page .page-title h1 {
    font-size: clamp(2.5rem, 11vw, 4rem);
    letter-spacing: -2px;
    line-height: 0.95;
    margin: 15px 0;
  }

  .catalogo-page .page-title p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  header .container {
    position: relative;
    height: 85px;
    justify-content: flex-start;
  }

  .mobile-logo {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    white-space: nowrap;
  }

  /* OBRAS */

  .catalogo-page .obras-masonry {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .catalogo-page .obra {
    width: 80%;
    max-width: 500px;
    margin: 0 auto;
  }

  .catalogo-page .obra img {
    width: 100%;
    height: auto;
  }

  .catalogo-page .obra-info {
    margin-top: 15px;
  }

  .catalogo-page .obra-info span {
    font-size: 0.7rem;
  }

  .catalogo-page .obra-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .catalogo-page .obra-info strong {
    font-size: 0.95rem;
  }
  /* ========================
   GALERÍA RESPONSIVE
======================== */

  .galeria-page main {
    padding: 130px 24px 60px;
  }

  .galeria-page .page-title {
    margin-bottom: 55px;
  }

  .galeria-page .page-title span {
    font-size: 0.75rem;
    letter-spacing: 3px;
  }

  .galeria-page .page-title h1 {
    font-size: clamp(2.8rem, 12vw, 4rem);
    letter-spacing: -2px;
    line-height: 0.95;
    margin: 15px 0;
  }

  .galeria-page .page-title p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  /* GALERÍA */

  .galeria-page .gallery-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  /* BLOQUE COMPLETO */

  .galeria-page .gallery-item {
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
  }

  /* IMAGEN */

  .galeria-page .gallery-item img {
    width: 70%;
    height: auto;
    margin: 0 auto;
    transform: none !important;
  }

  /* INFORMACIÓN */

  .galeria-page .gallery-overlay {
    position: static;
    opacity: 1;
    background: transparent;
    color: #000;

    padding: 16px 0 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    text-align: center;
  }

  /* NÚMERO */

  .galeria-page .gallery-overlay span {
    font-size: 0.7rem;
    color: #777;
    letter-spacing: 2px;
    margin-bottom: 6px;
  }

  /* NOMBRE */

  .galeria-page .gallery-overlay h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #000;
  }

  /* TÉCNICA */

  .galeria-page .gallery-overlay p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 3px;
  }

  /* MEDIDAS */

  .galeria-page .gallery-overlay small {
    font-size: 0.8rem;
    color: #888;
  }

  /* DESACTIVAR EFECTO HOVER EN MOBILE */

  .galeria-page .gallery-item:hover img {
    transform: none;
  }

  .galeria-page .gallery-item:hover .gallery-overlay {
    opacity: 1;
  }
  /* ========================
   OBRA INDIVIDUAL MOBILE
======================== */

  .obra-detalle-contenido {
    text-align: center;
  }

  .obra-detalle-imagen {
    display: flex;
    justify-content: center;
  }

  .obra-detalle-imagen img {
    width: 85%;
    max-width: 420px;
    margin: 0 auto;
  }

  .obra-detalle-info {
    max-width: 100%;
    text-align: center;
  }

  .obra-detalle-info h1 {
    font-size: 3rem;
  }

  .obra-numero {
    margin-bottom: 15px;
  }

  .obra-tecnica,
  .obra-medidas,
  .obra-marco,
  .obra-estilo {
    margin-bottom: 10px;
  }

  .obra-precio {
    margin-top: 30px;
  }

  /* ========================
   CONTACTO OBRA MOBILE
======================== */

  .obra-contacto {
    text-align: center;
  }

  .obra-contacto-texto {
    max-width: 100%;
    margin: 0 auto;
  }

  .obra-contacto-texto p {
    margin: 0 auto;
  }

  .obra-contacto-texto > span {
    margin-bottom: 20px;
  }

  .obra-contacto .contact-form {
    max-width: 500px;
    margin: 0 auto;
  }

  .obra-contacto .contact-form button {
    margin: 30px auto 0;
  }
  .volver-obras {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    margin-bottom: 35px;
  }
}
