/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --burgundy: #8B2252;
  --teal: #1a7a6d;
  --gold: #D4A843;
  --coral: #C85A3A;
  --cream: #FAF5EF;
  --cream-dark: #F0E8DD;
  --text: #2a2a2a;
  --text-light: #5a5a5a;
  --white: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === TYPOGRAPHY === */
.section-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  font-style: italic;
  color: var(--burgundy);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 500px;
}

.section-header {
  margin-bottom: 48px;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--burgundy);
  color: var(--cream);
  border: 1px solid var(--burgundy);
}

.btn--primary:hover {
  background: transparent;
  color: var(--burgundy);
}

.btn--ghost {
  background: transparent;
  color: var(--burgundy);
  border: 1px solid var(--burgundy);
}

.btn--ghost:hover {
  background: var(--burgundy);
  color: var(--cream);
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(250, 245, 239, 0.95);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid rgba(139, 34, 82, 0.08);
}

.nav__logo-img {
  height: 44px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav__links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.3s;
}

.nav__links a:hover {
  color: var(--burgundy);
}

.nav__cta {
  padding: 8px 20px;
  border: 1px solid var(--burgundy);
  color: var(--burgundy) !important;
  transition: all 0.3s;
}

.nav__cta:hover {
  background: var(--burgundy);
  color: var(--cream) !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 60px;
  background: var(--cream);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 700;
  font-style: italic;
  color: var(--burgundy);
  line-height: 0.95;
  margin-bottom: 24px;
}

.hero__tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-style: italic;
  color: var(--text-light);
  max-width: 400px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === QUE HAGO === */
.que-hago {
  padding: 80px 0;
  background: var(--white);
}

.que-hago__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.que-hago__item {
  padding: 32px 24px;
  border-left: 2px solid var(--cream-dark);
}

.que-hago__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
  line-height: 1;
}

.que-hago__item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 8px;
}

.que-hago__item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* === PIEZAS === */
.piezas {
  padding: 80px 0;
  background: var(--cream);
}

.piezas__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.piezas__item {
  cursor: pointer;
  overflow: hidden;
}

.piezas__img-wrap {
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream-dark);
}

.piezas__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.piezas__item:hover .piezas__img-wrap img {
  transform: scale(1.04);
}

.piezas__info {
  padding: 16px 4px;
}

.piezas__info h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 4px;
}

.piezas__info p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* === BOX CREATIVOS === */
.box-creativos {
  padding: 80px 0;
  background: var(--white);
}

.box-creativos__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.box-creativos__text p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.box-creativos__text .btn {
  margin-top: 8px;
}

.box-creativos__img {
  overflow: hidden;
  aspect-ratio: 4/5;
}

.box-creativos__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === TALLERES === */
.talleres {
  padding: 80px 0;
  background: var(--burgundy);
  color: var(--cream);
}

.talleres .section-eyebrow {
  color: var(--gold);
}

.talleres .section-title {
  color: var(--cream);
}

.talleres__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.talleres__item {
  padding: 32px;
  border: 1px solid rgba(250, 245, 239, 0.15);
}

.talleres__item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 12px;
}

.talleres__item p {
  font-size: 0.9rem;
  color: rgba(250, 245, 239, 0.8);
  line-height: 1.7;
}

/* === SOBRE MI === */
.sobre-mi {
  padding: 80px 0;
  background: var(--cream);
}

.sobre-mi__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.sobre-mi__img {
  overflow: hidden;
  aspect-ratio: 4/5;
}

.sobre-mi__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sobre-mi__text p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* === CONTACTO === */
.contacto {
  padding: 80px 0;
  background: var(--white);
}

.contacto__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacto__text p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.7;
}

.contacto__canales {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacto__canal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--burgundy);
  transition: opacity 0.3s;
}

.contacto__canal:hover {
  opacity: 0.7;
}

.contacto__canal svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* === FORM === */
.contacto__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__group label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.form__group input,
.form__group select,
.form__group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--cream-dark);
  background: var(--cream);
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--burgundy);
}

.form__group textarea {
  resize: vertical;
}

/* === FOOTER === */
.footer {
  padding: 48px 0 32px;
  background: var(--cream);
  border-top: 1px solid var(--cream-dark);
  text-align: center;
}

.footer__brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  font-style: italic;
  color: var(--burgundy);
}

.footer__sub {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer__nav a {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  transition: color 0.3s;
}

.footer__nav a:hover {
  color: var(--burgundy);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.6;
}

/* === LIGHTBOX === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .que-hago__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .talleres__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    background: var(--cream);
    padding: 40px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }

  .nav__links.open {
    right: 0;
  }

  .nav__burger {
    display: flex;
    z-index: 1001;
  }

  .nav__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav__burger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__logo {
    max-width: 280px;
    margin: 0 auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .box-creativos__layout,
  .sobre-mi__layout,
  .contacto__layout {
    grid-template-columns: 1fr;
  }

  .que-hago__grid {
    grid-template-columns: 1fr;
  }

  .piezas__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .piezas__grid {
    grid-template-columns: 1fr;
  }
}
