/*
Theme Name: azaes
Description: Tema editorial de una sola página para AZAES, optimizado y sin dependencias externas.
Author: AZAES
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: azaes
*/

:root {
  --ink: #141613;
  --paper: #f8f7f3;
  --ivory: #eeeee9;
  --sage: #edf0ed;
  --blush: #e9e7e4;
  --blue: #e7ebec;
  --muted: #686d67;
  --line: rgba(20, 22, 19, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: var(--paper);
}

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

button,
input,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 16px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 92px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4.5vw, 76px);
  color: var(--paper);
}

.admin-bar .site-header {
  top: 32px;
}

.brand-lockup,
.footer-lockup {
  display: block;
  width: 116px;
  line-height: 0;
}

.brand-lockup img,
.footer-lockup img {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header nav a:not(.nav-cta) {
  position: relative;
}

.site-header nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.site-header nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 12px 17px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-cta:hover {
  background: var(--paper);
  color: var(--ink);
}

.hero {
  display: grid;
  min-height: 100svh;
  background: #10120f;
  color: var(--paper);
  grid-template-columns: 0.86fr 1.14fr;
}

.hero-copy {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  justify-content: center;
  padding: 138px clamp(36px, 7vw, 118px) 72px;
}

.hero-copy .eyebrow {
  color: #a7aaa4;
}

.hero h1,
.product-copy-panel h2,
.origin h2,
.campaign-copy h2,
.details h2,
.consultation h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(4rem, 7vw, 8.5rem);
  line-height: 0.88;
}

.hero-copy > p:last-of-type {
  max-width: 470px;
  margin: 34px 0 0;
  color: #b9bbb6;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-copy > a,
.campaign-copy > a {
  display: flex;
  width: min(100%, 330px);
  align-items: center;
  justify-content: space-between;
  margin-top: 55px;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  padding-top: 14px;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 18, 15, 0.23), transparent 35%);
  content: "";
  pointer-events: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% center;
  transform: scale(1.015);
}

.hero-visual figcaption,
.campaign-split figcaption {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-scroll {
  height: 440vh;
  background: var(--sage);
}

.product-stage {
  position: sticky;
  top: 0;
  min-height: 100svh;
  overflow: hidden;
  background: var(--sage);
  transition: background-color 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-bar .product-stage {
  top: 32px;
  min-height: calc(100svh - 32px);
}

.product-stage.chapter-1 {
  background: var(--blue);
}

.product-stage.chapter-2 {
  background: var(--blush);
}

.product-stage.chapter-3 {
  background: #f0eee9;
}

.product-topline {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 64px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(24px, 4.5vw, 76px);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-grid {
  position: absolute;
  inset: 64px 0 0;
  display: grid;
  grid-template-columns: minmax(340px, 0.74fr) minmax(0, 1.26fr);
}

.product-copy-panel {
  position: relative;
  z-index: 5;
  min-width: 0;
  border-right: 1px solid var(--line);
  background: rgba(248, 247, 243, 0.94);
}

.product-copy-panel article {
  position: absolute;
  top: 50%;
  right: clamp(34px, 5vw, 90px);
  left: clamp(34px, 5vw, 90px);
  opacity: 0;
  transform: translateY(calc(-50% + 38px));
  transition: opacity 0.48s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.product-copy-panel article.is-active {
  opacity: 1;
  transform: translateY(-50%);
}

.product-copy-panel h2 {
  max-width: 640px;
  font-size: clamp(3rem, 5vw, 6.6rem);
  line-height: 0.91;
}

.product-copy-panel article > p:last-child {
  max-width: 470px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.chapter-index {
  position: absolute;
  right: clamp(34px, 5vw, 90px);
  bottom: 30px;
  left: clamp(34px, 5vw, 90px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.chapter-index strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.chapter-index span {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
}

.product-model-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
}

.product-model-panel::before {
  position: absolute;
  z-index: -1;
  top: 4%;
  left: 8%;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.46) 42%, rgba(255, 255, 255, 0) 71%);
  content: "";
}

.product-stills,
.product-still {
  position: absolute;
  inset: 0;
}

.product-still {
  margin: 0;
  opacity: 0;
  overflow: hidden;
  transform: scale(1.025);
  transition: opacity 0.7s ease, transform 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.product-still.is-active {
  opacity: 1;
  transform: scale(1);
}

.product-still img {
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(50px, 8vw, 130px);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.product-still[data-chapter="1"] img {
  padding: clamp(34px, 5vw, 90px);
}

.product-still[data-chapter="2"] img {
  padding: clamp(50px, 9vw, 145px);
}

.product-still.is-cinematic img {
  padding: 0;
  object-fit: cover;
  mix-blend-mode: normal;
}

.product-still.is-cinematic::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 68%, rgba(10, 12, 12, 0.25));
  content: "";
}

.drag-note {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 4vw, 64px);
  bottom: 32px;
  left: clamp(24px, 4vw, 64px);
  margin: 0;
  color: rgba(20, 22, 19, 0.62);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.5s ease;
}

.chapter-3 .drag-note {
  color: rgba(255, 255, 255, 0.78);
}

.model-progress {
  position: absolute;
  z-index: 3;
  right: clamp(24px, 4vw, 64px);
  bottom: 20px;
  left: clamp(24px, 4vw, 64px);
  height: 1px;
  background: rgba(20, 22, 19, 0.16);
}

.model-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  transform: scaleX(0.004);
  transform-origin: left;
}

.chapter-3 .model-progress {
  background: rgba(255, 255, 255, 0.28);
}

.chapter-3 .model-progress span {
  background: var(--paper);
}

.origin {
  padding: clamp(110px, 14vw, 220px) clamp(24px, 7vw, 120px);
  background: var(--paper);
}

.origin-heading {
  display: grid;
  align-items: end;
  gap: 40px;
  grid-template-columns: 0.55fr 1.45fr;
}

.origin-heading .eyebrow {
  align-self: start;
  margin-top: 14px;
}

.origin h2 {
  max-width: 980px;
  font-size: clamp(4rem, 8vw, 9.5rem);
  line-height: 0.86;
}

.origin-content {
  display: grid;
  margin-top: clamp(90px, 12vw, 170px);
  gap: 70px;
  grid-template-columns: 0.7fr 1.3fr;
}

.origin-lead {
  max-width: 470px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.3vw, 2.55rem);
  line-height: 1.28;
}

.origin-grid {
  display: grid;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.origin-grid article {
  min-height: 245px;
  padding: 24px 24px 24px 0;
}

.origin-grid article + article {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.origin-grid span {
  color: var(--muted);
  font-size: 0.65rem;
}

.origin-grid h3 {
  margin: 68px 0 14px;
  font-size: 1rem;
  font-weight: 500;
}

.origin-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.campaign-split {
  display: grid;
  min-height: 105svh;
  background: #111310;
  color: var(--paper);
  grid-template-columns: 1.12fr 0.88fr;
}

.campaign-split figure {
  position: relative;
  min-height: 105svh;
  margin: 0;
  overflow: hidden;
}

.campaign-split figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.campaign-split figure:hover img {
  transform: scale(1.025);
}

.campaign-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 8vw, 145px);
}

.campaign-copy > img {
  position: absolute;
  top: clamp(38px, 5vw, 75px);
  right: clamp(38px, 5vw, 75px);
  width: 50px;
  opacity: 0.3;
  filter: invert(1);
}

.campaign-copy .eyebrow {
  color: #999d96;
}

.campaign-copy h2 {
  max-width: 720px;
  font-size: clamp(3.2rem, 6vw, 7rem);
  line-height: 0.92;
}

.campaign-copy > p:last-of-type {
  max-width: 470px;
  margin: 30px 0 0;
  color: #aeb1ab;
  line-height: 1.7;
}

.details {
  display: grid;
  min-height: 100svh;
  background: var(--ivory);
  grid-template-columns: 0.75fr 1.25fr;
}

.details > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(60px, 7vw, 115px);
}

.details h2 {
  max-width: 640px;
  font-size: clamp(3.5rem, 6vw, 7.2rem);
  line-height: 0.9;
}

.details figure {
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: #e5e5e1;
}

.details figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.consultation {
  display: grid;
  min-height: 84svh;
  align-items: center;
  gap: clamp(60px, 8vw, 130px);
  padding: clamp(100px, 13vw, 190px) clamp(24px, 7vw, 120px);
  background: var(--paper);
  grid-template-columns: 0.9fr 1.1fr;
}

.consultation h2 {
  max-width: 640px;
  font-size: clamp(3.2rem, 5.8vw, 6.7rem);
  line-height: 0.92;
}

.consultation-copy > p:last-child {
  max-width: 460px;
  margin-top: 26px;
  color: var(--muted);
  line-height: 1.7;
}

.consultation-form {
  display: grid;
  gap: 30px 24px;
  grid-template-columns: repeat(2, 1fr);
}

.consultation-form label {
  display: grid;
  gap: 10px;
}

.consultation-form label span {
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.consultation-form .full-field {
  grid-column: 1 / -1;
}

.consultation-form input,
.consultation-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  padding: 13px 0;
  resize: none;
}

.consultation-form input:focus,
.consultation-form textarea:focus {
  border-bottom-color: var(--ink);
}

.consultation-form input::placeholder,
.consultation-form textarea::placeholder {
  color: #9b9c98;
}

.consultation-form input[type="hidden"] {
  display: none;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-button {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  grid-column: 1 / -1;
  padding: 0 22px;
  transition: background 0.25s ease, color 0.25s ease;
}

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

.form-success {
  padding: 50px;
  border: 1px solid var(--line);
}

.form-success > span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
}

.form-success p {
  color: var(--muted);
  line-height: 1.6;
}

.form-success a {
  display: inline-block;
  margin-top: 25px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
}

.form-error {
  margin: 0 0 28px;
  border-left: 2px solid #8f3028;
  color: #74251f;
  padding: 10px 0 10px 15px;
  line-height: 1.5;
}

.site-footer {
  display: flex;
  min-height: 165px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px clamp(24px, 4.5vw, 76px);
  background: #10120f;
  color: var(--paper);
}

.site-footer p,
.site-footer > a:last-child {
  color: #969a93;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.wp-fallback {
  width: min(760px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 70px 0;
}

.fallback-brand {
  display: inline-block;
  margin-bottom: 90px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.wp-fallback article + article {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  padding-top: 70px;
}

.wp-fallback h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 8vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.wp-fallback p {
  line-height: 1.7;
}

@media (max-width: 900px) {
  .site-header nav > a:not(.nav-cta) {
    display: none;
  }

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

  .hero-copy {
    min-height: 72svh;
    padding: 145px 24px 70px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 15vw, 6.8rem);
  }

  .hero-visual {
    min-height: 72svh;
  }

  .product-scroll {
    height: 400vh;
  }

  .product-topline {
    height: 56px;
  }

  .product-topline span:last-child {
    display: none;
  }

  .product-grid {
    inset: 56px 0 0;
    grid-template-columns: 1fr;
    grid-template-rows: 57% 43%;
  }

  .product-copy-panel {
    order: 2;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .product-model-panel {
    order: 1;
  }

  .product-copy-panel article {
    top: 44%;
    right: 24px;
    left: 24px;
  }

  .product-copy-panel h2 {
    max-width: 610px;
    font-size: clamp(2.3rem, 10vw, 4.6rem);
  }

  .product-copy-panel article > p:last-child {
    max-width: 520px;
    margin-top: 14px;
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .product-copy-panel .eyebrow {
    margin-bottom: 10px;
  }

  .chapter-index {
    right: 24px;
    bottom: 13px;
    left: 24px;
  }

  .chapter-index strong {
    font-size: 1.35rem;
  }

  .product-still img,
  .product-still[data-chapter="1"] img,
  .product-still[data-chapter="2"] img {
    padding: 34px 15vw 46px;
  }

  .product-still.is-cinematic img {
    padding: 0;
  }

  .drag-note {
    bottom: 26px;
  }

  .model-progress {
    bottom: 16px;
  }

  .origin-heading,
  .origin-content,
  .campaign-split,
  .details,
  .consultation {
    grid-template-columns: 1fr;
  }

  .origin-heading {
    gap: 16px;
  }

  .origin h2 {
    font-size: clamp(3.6rem, 14vw, 7rem);
  }

  .origin-content {
    margin-top: 75px;
  }

  .campaign-split figure {
    min-height: 80svh;
  }

  .campaign-copy {
    min-height: 82svh;
    padding: 90px 24px;
  }

  .details > div {
    min-height: 65svh;
    order: 2;
    padding: 80px 24px;
  }

  .details figure {
    min-height: 72svh;
  }

  .consultation {
    gap: 70px;
  }

  .site-footer {
    min-height: 225px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .product-stage {
    top: 46px;
    min-height: calc(100svh - 46px);
  }
}

@media (max-width: 600px) {
  .brand-lockup {
    width: 96px;
  }

  .nav-cta {
    padding: 10px 12px;
    font-size: 0.58rem;
  }

  .hero-copy > p:last-of-type {
    font-size: 0.95rem;
  }

  .product-grid {
    grid-template-rows: 55% 45%;
  }

  .product-copy-panel h2 {
    font-size: clamp(2.15rem, 9.7vw, 3.6rem);
  }

  .product-copy-panel article > p:last-child {
    max-width: 350px;
  }

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

  .origin-grid article {
    min-height: 180px;
  }

  .origin-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }

  .origin-grid h3 {
    margin-top: 42px;
  }

  .consultation {
    padding-inline: 24px;
  }

  .consultation-form {
    grid-template-columns: 1fr;
  }

  .consultation-form label {
    grid-column: 1;
  }

  .form-success {
    padding: 34px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

