/* -- HERO -- */
#hero {
  min-height: 100svh;
  background: var(--bg-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 5vw;
  position: relative;
  overflow: hidden;
}

.hero-img-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.jpeg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
  z-index: 0;
}

.hero-img-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 12, 12, 0.92) 40%, rgba(12, 12, 12, 0.55) 100%);
}

.hero-bg-text {
  position: absolute;
  top: 50%;
  right: -2vw;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 28vw;
  font-weight: 300;
  color: rgba(184, 154, 106, .04);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp .7s .2s forwards;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--text-on-dark);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp .8s .35s forwards;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 460px;
  margin-bottom: 2.6rem;
  opacity: 0;
  animation: fadeUp .8s .5s forwards;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s .65s forwards;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fadeIn 1s .7s forwards;
}

.hero-visual img {
  width: 100%;
  max-width: 520px;
  border-radius: 6px;
  border: 1px solid rgba(184, 154, 106, .25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(184, 154, 106, .1);
  display: block;
}

/* -- SERVICIOS -- */
#servicios {
  background: var(--bg-alt);
}

.servicios-header {
  margin-bottom: 3.5rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.servicio-card {
  background: var(--card-bg);
  border-radius: 4px;
  padding: 2.4rem;
  border: 1px solid var(--card-border);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  position: relative;
  overflow: hidden;
}

.servicio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}

.servicio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(12, 12, 12, .1);
  border-color: transparent;
}

.servicio-card:hover::before {
  transform: scaleX(1);
}

.servicio-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(184, 154, 106, .18);
  line-height: 1;
  margin-bottom: .8rem;
}

.servicio-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: .8rem;
}

.servicio-card p {
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

.servicio-list {
  list-style: none;
}

.servicio-list li {
  font-size: .82rem;
  color: var(--gray);
  padding: .35rem 0;
  border-bottom: 1px solid rgba(12, 12, 12, .06);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.servicio-list li::before {
  content: '\2192';
  color: var(--gold);
  font-size: .8rem;
  flex-shrink: 0;
}

/* -- SOBRE MI -- */
#sobre {
  background: var(--bg-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
}

#sobre .section-title {
  color: var(--text-on-dark);
}

.sobre-text {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-muted);
  margin: 1.6rem 0 2rem;
}

.sobre-text strong {
  color: var(--gold-lt);
  font-weight: 500;
}

.sobre-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}

.value-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(184, 154, 106, .12);
  border: 1px solid rgba(184, 154, 106, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.value-item h4 {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-on-dark);
  margin-bottom: .25rem;
}

.value-item p {
  font-size: .78rem;
  color: var(--text-muted-light);
  line-height: 1.5;
}

.sobre-visual {
  position: relative;
}

.sobre-photo-frame {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(184, 154, 106, .2);
  border-radius: 4px;
  padding: 2.5rem;
  text-align: center;
}

.sobre-photo {
  width: 100%;
  max-width: 280px;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

.sobre-name {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-on-dark);
  margin: .5rem 0 .3rem;
}

.sobre-role {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
}

.sobre-quote {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 154, 106, .12);
  line-height: 1.6;
}

/* -- TESTIMONIOS -- */
#testimonios {
  background: var(--bg);
}

.testi-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testi-card {
  background: var(--bg-alt);
  border-radius: 4px;
  padding: 2rem;
  border: 1px solid var(--card-border);
  transition: transform .3s;
}

.testi-card:hover {
  transform: translateY(-3px);
}

.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.testi-stars span {
  color: var(--gold);
  font-size: .9rem;
}

.testi-text {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.4rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.testi-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}

.testi-role {
  font-size: .74rem;
  color: var(--gray);
}

/* -- CTA BAND -- */
#cta {
  background: var(--bg-dark);
  text-align: center;
  padding: 5rem 5vw;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(184, 154, 106, .08) 0%, transparent 70%);
  pointer-events: none;
}

#cta .section-label {
  justify-content: center;
}

#cta .section-title {
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}

#cta p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.4rem;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* -- CONTACT FORM -- */
.contact-form {
  max-width: 500px;
  margin: 0 auto 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--input-text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 2px;
  padding: .85rem 1.2rem;
  outline: none;
  transition: border-color .25s;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--input-placeholder);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: .85rem 2rem;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .25s;
}

.contact-form button:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 154, 106, .25);
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold-lt);
  margin-bottom: .8rem;
}

.form-success p {
  font-size: .95rem;
  color: rgba(245, 243, 239, .6);
  margin: 0;
}

/* -- RESPONSIVE INDEX -- */
@media (max-width: 900px) {
  /* Hero centrado */
  #hero {
    grid-template-columns: 1fr;
    padding-top: 7rem;
    padding-bottom: 4rem;
    text-align: center;
    justify-items: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-img-bg {
    opacity: 0.35;
  }

  .hero-tag {
    justify-content: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns {
    justify-content: center;
  }

  /* Servicios centrado */
  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .servicios-header {
    text-align: center;
  }

  .servicios-header .section-label {
    justify-content: center;
  }

  /* Sobre mi centrado */
  #sobre {
    grid-template-columns: 1fr;
  }

  #sobre>.reveal {
    text-align: center;
  }

  #sobre .section-label {
    justify-content: center;
  }

  .sobre-text {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .sobre-visual {
    margin-top: 2rem;
  }

  .sobre-photo {
    max-width: 200px;
  }

  .sobre-photo-frame {
    padding: 1.5rem;
  }

  .sobre-values {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .value-item {
    text-align: left;
  }

  /* Testimonios centrado */
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .testi-header {
    justify-content: center;
    text-align: center;
  }

  .testi-header .section-label {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  section {
    padding: 4rem 5vw;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-sub {
    font-size: .95rem;
  }

  .servicio-card {
    padding: 1.8rem;
  }

  .testi-card {
    padding: 1.5rem;
  }

  .sobre-photo {
    max-width: 160px;
  }
}

/* -- LIGHT THEME INDEX -- */
.light .hero-img-bg::after {
  background: linear-gradient(90deg, rgba(240, 236, 229, 0.92) 40%, rgba(240, 236, 229, 0.55) 100%);
}

.light .btn-outline {
  color: var(--gold);
  border-color: var(--gold);
}

.light .sobre-photo-frame {
  background: rgba(0, 0, 0, .03);
  border-color: rgba(184, 154, 106, .3);
}

.light .form-success h3 {
  color: var(--gold);
}

.light .form-success p {
  color: var(--text-muted);
}

.light .btn-ig {
  color: var(--text);
  border-color: rgba(0, 0, 0, .15);
}
