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

:root {
  --white: #ffffff;
  --black: #1a1a1a;
  --navy: #0d1433;
  --navy-light: #1a2550;
  --beige: #e5e0d8;
  --overlay: rgba(0, 0, 0, 0.38);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', Helvetica, Arial, sans-serif;
  --font-poppins: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ─── HERO ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  background-image: url('imagenes-web/Irene Foto 3.png');
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px 40px 0;
}

.hero__name {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--black);
  line-height: 1.1;
  text-transform: uppercase;
}

.hero__subtitle {
  font-family: var(--font-poppins);
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.03em;
  line-height: 1.5;
  margin-top: 6px;
}

.hero__menu {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
  margin-top: 4px;
}

.hero__menu span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--black);
}

.hero__quote {
  padding: 0 40px 48px;
  text-align: center;
}

.hero__quote p {
  font-family: var(--font-poppins);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(15px, 1.8vw, 21px);
  color: var(--white);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ─── STATEMENT ─────────────────────────────────────────────────────── */
.statement {
  padding: 140px 40px;
  text-align: center;
  background: var(--white);
}

.statement p {
  font-family: var(--font-poppins);
  font-size: clamp(15px, 2.2vw, 26px);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--black);
  line-height: 1.55;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ─── PROJECTS GRID ─────────────────────────────────────────────────── */
.projects {
  width: 100%;
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.project-card {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}

.project-card:hover .project-card__overlay {
  background: rgba(0, 0, 0, 0.30);
}

.project-card__content {
  position: relative;
  z-index: 1;
  padding: 28px 40px 36px;
  width: 100%;
  text-align: center;
}

.project-card__brand {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 10px;
  line-height: 1.1;
}

.project-card__brand--small {
  font-size: 0.55em;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

.project-card__desc {
  font-family: var(--font-poppins);
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.6;
}

/* ─── SERVICES INTRO ────────────────────────────────────────────────── */
.services-intro {
  padding: 140px 40px;
  text-align: center;
  background: var(--white);
}

.services-intro__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--navy);
  margin-bottom: 32px;
}

.services-intro__lead {
  font-family: var(--font-poppins);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 300;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.services-intro__body {
  font-family: var(--font-poppins);
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 300;
  color: var(--black);
  letter-spacing: 0.02em;
}

/* ─── SERVICES DARK ─────────────────────────────────────────────────── */
.services-dark {
  background: #000000;
  padding: 72px 40px 80px;
}

.services-dark__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
}

.service__numeral {
  font-family: var(--font-serif);
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.service__title {
  font-family: var(--font-poppins);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.service__list {
  list-style: none;
  padding: 0;
}

.service__list li {
  font-family: var(--font-poppins);
  font-style: italic;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 4px;
  opacity: 0.9;
}

/* ─── TESTIMONIALS ──────────────────────────────────────────────────── */
.testimonials {
  padding: 80px 40px 88px;
  background: var(--white);
  text-align: center;
}

.testimonials__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--navy);
  margin-bottom: 48px;
}

.testimonials__carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials__arrow {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--black);
  padding: 8px;
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.testimonials__arrow:hover {
  opacity: 1;
}

.testimonials__track {
  position: relative;
  flex: 1;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.testimonial.active {
  display: flex;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: var(--black);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial__name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--black);
  letter-spacing: 0.04em;
}

.testimonial__company {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.04em;
}

/* ─── CONTACT ───────────────────────────────────────────────────────── */
.contact {
  background: var(--beige);
  padding: 80px 40px 100px;
  text-align: center;
}

.contact__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--navy);
  margin-bottom: 52px;
}

.contact__form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
  text-align: left;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 300;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.contact__field:has(input:required) .contact__label::after {
  content: ' *';
  color: var(--navy);
  opacity: 0.5;
}

.contact__input {
  background: none;
  border: none;
  border-bottom: 1px solid var(--navy);
  outline: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--navy);
  padding: 6px 0;
  width: 100%;
  transition: border-color 0.2s;
}

.contact__input:focus {
  border-bottom-color: var(--navy);
}

.contact__submit {
  margin-top: 12px;
  align-self: center;
  background: none;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: var(--font-poppins);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 40px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.contact__submit:hover {
  background: var(--navy);
  color: var(--white);
}

.contact__success {
  display: none;
  font-family: var(--font-poppins);
  font-size: 15px;
  font-weight: 300;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 24px;
}

/* ─── NAV OVERLAY ───────────────────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-overlay__close {
  position: absolute;
  top: 36px;
  right: 40px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-overlay__close:hover {
  opacity: 1;
}

.nav-overlay__list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.nav-overlay__link {
  font-family: var(--font-serif);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.nav-overlay__link:hover {
  opacity: 0.6;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero__header {
    padding: 24px 24px 0;
  }

  .hero__quote {
    padding: 0 24px 36px;
  }

  .statement {
    padding: 64px 24px;
  }

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

  .project-card {
    aspect-ratio: 4 / 3;
  }

  .services-intro {
    padding: 64px 24px;
  }

  .services-dark {
    padding: 56px 24px 64px;
  }

  .services-dark__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .testimonials {
    padding: 56px 24px 64px;
  }

  .testimonials__carousel {
    gap: 16px;
  }

  .contact {
    padding: 56px 24px 72px;
  }

  .contact__form {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero__name {
    font-size: 16px;
  }

  .statement p {
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .project-card__brand {
    font-size: 20px;
  }
}
