@charset "utf-8";

:root {
  --green: #0B591F;
  --brown: #4E160F;
  --cream: #F7F4EF;
  --white: #FFFFFF;
  --black: #171717;
  --max-width: 1180px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}


/* =====================================================
   HEADER
===================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  backdrop-filter: blur(8px);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 78px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--green);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}


/* =====================================================
   HERO
===================================================== */

.hero {
  min-height: 600px;
  height: 75vh;
  display: grid;
  place-items: center;
  padding: 5vw;

  background-image: url("/assets/images/Portada.jpg") !important;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;

  overflow: hidden;
  position: relative;
}

.hero-inner {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: center;
}

.hero-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-title-img {
  position: absolute;
  width: 100%;
  max-width: 950px;
  height: auto;
  display: block;
  z-index: 10;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
}

.hero-paragraph {
  width: 100%;
  max-width: 540px;
  margin: 320px auto 0 auto;
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  position: relative;
  z-index: 20;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: var(--green);
}

.hero-button {
  display: block;
  width: max-content;
  margin: 28px auto 0 auto;
  padding: 14px 22px;
  background: var(--green);
  color: white;
  text-decoration: none;
  border: 1px solid var(--green);
  border-radius: 5px;
  transition: 0.2s ease;
  font-size: 1rem;
  position: relative;
  z-index: 25;
}

.hero-button:hover {
  background: transparent;
  color: var(--green);
}


/* =====================================================
   SECCIONES
===================================================== */

.section {
  padding: 10px 28px clamp(80px, 10vw, 150px);
}

.section-inner {
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
}


/* =====================================================
   SOBRE MÍ
===================================================== */

.about {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(40px, 6vw, 80px);
}

.about-copy {
  flex: 1;
  max-width: 580px;
  font-size: clamp(1rem, 1vw, 1.05rem);
  color: #0B591F;
}

.about-copy h1 {
  font-weight: 700;
  margin: 0 0 20px 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.about-copy p {
  margin-top: 0;
  margin-bottom: 1em;
  font-weight: 400;
}

.about-image-container {
  flex: 1;
  max-width: 500px;
  width: 100%;
}

.about-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #E8E5DF;
  display: block;
  border-radius: 50%;
}


/* =====================================================
   CONTACTO
===================================================== */

.contact {
  min-height: 70vh;
  display: grid;
  align-items: center;
  background: #FFFFFF;
}

.contact h1 {
  color: var(--green);
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.95;
  font-weight: 500 !important;
  letter-spacing: -0.06em;
  margin: 0 0 35px;
}

.contact-intro {
  font-size: 1.15rem;
  max-width: 680px;
}


/* =====================================================
   BOTONES
===================================================== */

.button {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 22px;
  background: var(--green);
  color: white;
  text-decoration: none;
  border: 1px solid var(--green);
  border-radius: 5px;
  transition: 0.2s ease;
}

.button:hover {
  background: transparent;
  color: var(--green);
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {
  padding: 28px;
  border-top: 1px solid rgba(23, 23, 23, 0.12);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}


/* =====================================================
   PORTFOLIO
===================================================== */

.portfolio {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 70px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.index-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #E8E5DF;
  border-radius: 8px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.project-card:hover .index-thumb {
  opacity: 1;
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.project-info {
  padding: 16px 0 30px;
}

.project-info h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 400;
  color: #8A8A8A;
  transition: color 0.25s ease;
}

.project-card:hover .project-info h3 {
  color: var(--green);
  font-weight: 400;
  text-decoration: none;
}

.project-info p {
  margin: 0;
  color: #8A8A8A;
  font-size: 0.92rem;
  color: #0B591F;
}

h2.portfolio-title {
  color: var(--green);
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin-top: 20px;
  margin-bottom: 0;
}


/* =====================================================
   MOSAICO
===================================================== */

.project-mosaic {
  column-count: 2;
  column-gap: 40px;
  margin-top: 60px;
  width: 100%;
}

.project-mosaic img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-radius: 4px;
  margin-bottom: 40px;
  break-inside: avoid;
}

.mosaic-large,
.mosaic-medium,
.mosaic-wide,
.mosaic-small {
  width: 100%;
  display: block;
}


/* =====================================================
   TEXTO CIRCULAR
===================================================== */

.circular-text-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: block;
}

.circular-text-wrapper .about-image {
  width: 74%;
  max-width: 350px;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.circular-text-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  position: relative;
  z-index: 2;
  pointer-events: none;
  animation: rotarTextoCircular 20s linear infinite;
}

.circular-text-svg text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 5px;
  fill: var(--green);
  display: inline;
  white-space: nowrap;
}

@keyframes rotarTextoCircular {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

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

  .about {
    gap: 40px;
  }
}


/* =====================================================
   CELULAR
===================================================== */

@media (max-width: 767px) {

  .nav {
    min-height: 68px;
    padding: 10px 18px;
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .menu-toggle {
    display: block;
    color: var(--green);
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px 28px;
    background: white;
    border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 45px 20px 70px;
  }

  .hero-title-img {
    width: 90%;
    max-width: 500px;
    top: 12%;
  }

  .hero-paragraph {
    margin: 180px auto 0 auto;
  }

  /* SOLO PORTFOLIO PASA A UNA COLUMNA */
  .portfolio {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 45px;
  }

  /* SOBRE MÍ */
  .about {
    flex-direction: column;
    align-items: center;
  }

  .about-copy {
    max-width: 100%;
  }

  .about-image-container {
    max-width: 400px;
  }

  .hero-copy h1,
  .contact h1 {
    font-size: clamp(3.3rem, 16vw, 5.5rem);
  }

  .hero-image {
    max-height: 55vh;
  }

  .section {
    padding: 75px 20px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .project-mosaic {
    column-count: 1;
    column-gap: 0;
  }

  .project-mosaic img {
    margin-bottom: 30px;
  }

  .circular-text-wrapper {
    max-width: 320px;
    margin-top: 40px;
    min-height: 320px;
  }
}

.kicker {
  color: #8A8A8A;
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0 0 15px;
}