/* Abel Mendoza — Landing · Canto y barro de la misma tierra */

.am-root {
  --am-bone: #efe7da;
  --am-cream: #f5efe4;
  --am-black: #16110d;
  --am-terra: #b5502b;
  --am-ocre: #c98a3b;
  --am-text: #241b14;
  --am-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --am-sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --am-pad: clamp(18px, 4vw, 40px);
  --am-max: 1240px;
  --am-sect: clamp(64px, 9vw, 120px);
  background: var(--am-bone);
  color: var(--am-text);
  font-family: var(--am-sans);
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.am-root *,
.am-root *::before,
.am-root *::after { box-sizing: border-box; }

/* Aislamiento: el tema o otros plugins no deben pisar la landing. */
.am-root section,
.am-root header,
.am-root footer,
.am-root article,
.am-root div,
.am-root nav,
.am-root span,
.am-root p,
.am-root h1,
.am-root h2,
.am-root h3,
.am-root a,
.am-root img,
.am-root svg {
  float: none;
  clear: none;
  max-width: 100%;
  text-shadow: none;
  text-transform: none;
}
.am-root section,
.am-root header,
.am-root footer,
.am-root article { margin: 0; width: auto; }
.am-root a { box-shadow: none; }
.am-root .am-btn,
.am-root .am-float { text-decoration: none; text-transform: none; letter-spacing: 0; }
.am-root .am-eyebrow,
.am-root .am-pill,
.am-root .am-stats__l,
.am-root .am-card__badge,
.am-root .am-seal__l,
.am-root .am-crow__k { text-transform: uppercase; }
.am-root img { display: block; max-width: 100%; height: auto; }
.am-root a { color: var(--am-terra); text-decoration: none; transition: color .2s ease, background-color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.am-root a:hover, .am-root a:focus-visible { color: var(--am-ocre); }
.am-root p { margin: 0; }
.am-root h1, .am-root h2, .am-root h3 { font-family: var(--am-serif); font-weight: 600; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.am-root em { font-style: italic; color: var(--am-terra); font-weight: 500; }
.am-root ::selection { background: var(--am-terra); color: var(--am-cream); }
.am-wrap { max-width: var(--am-max); margin: 0 auto; }
.am-eyebrow { font-size: 12.5px; letter-spacing: .19em; text-transform: uppercase; color: var(--am-terra); font-weight: 500; }
.am-dark .am-eyebrow { color: var(--am-ocre); }
.am-dark em { color: var(--am-ocre); }

/* ---------- botones ---------- */
.am-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; font-size: 16px; font-weight: 500;
  font-family: var(--am-sans); line-height: 1; border: 1px solid transparent; cursor: pointer;
  min-height: 48px;
}
.am-btn--solid { background: var(--am-black); color: var(--am-cream); box-shadow: 0 14px 30px -14px rgba(22,17,13,.6); }
.am-btn--solid:hover { background: var(--am-terra); color: var(--am-cream); transform: translateY(-2px); }
.am-btn--terra { background: var(--am-terra); color: var(--am-cream); box-shadow: 0 18px 40px -18px rgba(181,80,43,.9); }
.am-btn--terra:hover { background: var(--am-ocre); color: var(--am-cream); transform: translateY(-2px); }
.am-btn--ghost { border-color: rgba(36,27,20,.28); color: var(--am-text); }
.am-btn--ghost:hover { border-color: var(--am-text); background: rgba(36,27,20,.05); color: var(--am-text); }
.am-dark .am-btn--ghost { border-color: rgba(245,239,228,.3); color: var(--am-cream); }
.am-dark .am-btn--ghost:hover { border-color: var(--am-ocre); color: var(--am-ocre); background: transparent; }
.am-btn--sm { padding: 13px 20px; font-size: 14.5px; }

/* ---------- header ---------- */
.am-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(239,231,218,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(36,27,20,.09);
}
body.admin-bar .am-header { top: 32px; }
.am-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px var(--am-pad); }
.am-brand { display: flex; align-items: center; gap: 11px; color: var(--am-text); }
.am-brand:hover { color: var(--am-text); }
.am-brand__name { font-family: var(--am-serif); font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.am-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); font-size: 14.5px; font-weight: 500; }
.am-nav a { color: var(--am-text); opacity: .78; }
.am-nav a:hover { opacity: 1; color: var(--am-terra); }
.am-nav .am-btn { padding: 10px 18px; font-size: 14px; min-height: 0; box-shadow: none; }
.am-nav .am-btn:hover { transform: none; }
@media (max-width: 720px) { .am-nav__link { display: none; } }

/* ---------- hero ---------- */
.am-hero { position: relative; padding: clamp(36px, 6vw, 72px) var(--am-pad) clamp(56px, 7vw, 96px); }
.am-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 80% at 78% 34%, rgba(201,138,59,.28), transparent 58%),
    radial-gradient(90% 60% at 10% 0%, rgba(181,80,43,.12), transparent 60%);
}
.am-hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .am-hero__grid { grid-template-columns: 1fr; } }
.am-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(36,27,20,.2); border-radius: 999px; padding: 7px 15px 7px 12px;
  font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; color: rgba(36,27,20,.72);
}
.am-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--am-terra); }
.am-hero h1 { font-size: clamp(44px, 8.4vw, 104px); line-height: .92; letter-spacing: -.035em; margin-top: 22px; }
.am-root .am-hero__lead { max-width: 30em; font-size: clamp(16.5px, 1.5vw, 19.5px); line-height: 1.65; color: rgba(36,27,20,.8); margin-top: 26px; }
.am-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.am-stats { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 44px); margin-top: clamp(38px, 5vw, 56px); padding-top: 26px; border-top: 1px solid rgba(36,27,20,.13); }
.am-stats__n { font-family: var(--am-serif); font-size: 30px; font-weight: 600; color: var(--am-terra); line-height: 1; }
.am-stats__l { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(36,27,20,.62); margin-top: 5px; }
.am-hero__art { position: relative; min-height: clamp(340px, 46vw, 600px); display: flex; align-items: center; justify-content: center; }
.am-halo { position: absolute; width: min(94%, 520px); aspect-ratio: 1; border-radius: 50%; filter: blur(14px); animation: am-ember 7s ease-in-out infinite;
  background: radial-gradient(circle, rgba(201,138,59,.85), rgba(181,80,43,.34) 48%, transparent 72%); }
.am-halo--ring { width: min(92%, 500px); filter: none; animation: none; background: none; border: 1px solid rgba(181,80,43,.28); }
.am-halo--ring2 { width: min(80%, 436px); filter: none; animation: none; background: none; border: 1px solid rgba(181,80,43,.16); }
.am-hero__seal {
  position: relative; width: min(78%, 424px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 34%, #241b14, #16110d 62%);
  display: grid; place-items: center;
  box-shadow: 0 34px 70px -26px rgba(22,17,13,.75), inset 0 0 0 1px rgba(201,138,59,.22);
}
.am-hero__seal img { width: 82%; height: auto; aspect-ratio: 1; object-fit: contain; }
.am-tag {
  position: absolute; bottom: clamp(4px, 2vw, 18px); left: 0;
  background: var(--am-black); color: var(--am-cream); padding: 12px 20px;
  border-radius: 999px; font-size: 13px; letter-spacing: .06em;
}

/* ---------- marquesina ---------- */
.am-marquee {
  background: var(--am-black); color: var(--am-cream); padding: 20px 0; overflow: hidden;
  border-top: 1px solid rgba(201,138,59,.25); border-bottom: 1px solid rgba(201,138,59,.25);
}
.am-marquee__track { display: flex; width: max-content; animation: am-marquee 34s linear infinite; }
.am-marquee__set { display: flex; align-items: center; gap: 34px; padding-right: 34px; font-family: var(--am-serif); font-size: clamp(20px, 2.6vw, 30px); white-space: nowrap; }
.am-marquee__set span:nth-child(even) { color: var(--am-ocre); }
.am-marquee__set span:nth-child(4n+3) { font-style: italic; color: var(--am-ocre); }

/* ---------- historia ---------- */
.am-story { background: var(--am-cream); padding: var(--am-sect) var(--am-pad); }
.am-story__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .am-story__grid { grid-template-columns: 1fr; } }
.am-story__figure { position: relative; }
.am-story__img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 220px 220px 22px 22px / 150px 150px 22px 22px; box-shadow: 0 40px 70px -34px rgba(22,17,13,.55); }
.am-seal {
  position: absolute; right: -6px; bottom: 8%; width: clamp(112px, 15vw, 152px); aspect-ratio: 1;
  border-radius: 50%; background: var(--am-black); color: var(--am-cream);
  display: grid; place-content: center; text-align: center; padding: 14px;
  box-shadow: 0 20px 40px -16px rgba(22,17,13,.6); animation: am-sway 9s ease-in-out infinite;
}
.am-seal__n { font-family: var(--am-serif); font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; color: var(--am-ocre); line-height: 1; }
.am-seal__l { font-size: 10.5px; letter-spacing: .17em; text-transform: uppercase; margin-top: 6px; line-height: 1.4; }
.am-h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; margin-top: 15px; }
.am-prose { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.75; color: rgba(36,27,20,.82); display: grid; gap: 18px; margin-top: 24px; max-width: 34em; }
.am-prose strong { font-weight: 600; }
.am-quote { margin-top: 30px; padding-left: 20px; border-left: 2px solid var(--am-ocre); font-family: var(--am-serif); font-style: italic; font-size: clamp(19px, 2vw, 24px); line-height: 1.4; }

/* ---------- oficios (negro) ---------- */
.am-dark { background: var(--am-black); color: var(--am-cream); padding: var(--am-sect) var(--am-pad); position: relative; overflow: hidden; }
.am-dark__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 50% at 50% 0%, rgba(181,80,43,.28), transparent 70%); }
.am-dark .am-wrap { position: relative; }
.am-center { text-align: center; max-width: 40rem; margin: 0 auto clamp(38px, 5vw, 60px); }
.am-crafts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.5vw, 32px); }
@media (max-width: 780px) { .am-crafts { grid-template-columns: 1fr; } }
.am-craft {
  border: 1px solid rgba(245,239,228,.16); border-radius: 26px; padding: clamp(28px, 3.4vw, 44px);
  background: linear-gradient(160deg, rgba(245,239,228,.07), rgba(245,239,228,.02));
  transition: transform .3s ease, border-color .3s ease;
}
.am-craft--b { background: linear-gradient(160deg, rgba(181,80,43,.16), rgba(245,239,228,.02)); }
.am-craft:hover { transform: translateY(-4px); border-color: rgba(201,138,59,.55); }
.am-craft__icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(201,138,59,.18); display: grid; place-content: center; }
.am-craft h3 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 22px; letter-spacing: -.02em; }
.am-craft p { font-size: 16px; line-height: 1.7; color: rgba(245,239,228,.72); margin-top: 12px; }
.am-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.am-chips span { border: 1px solid rgba(245,239,228,.2); border-radius: 999px; padding: 7px 14px; font-size: 13px; color: rgba(245,239,228,.8); }

/* ---------- obras ---------- */
.am-works { padding: var(--am-sect) var(--am-pad); background: var(--am-bone); }
.am-works__head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(34px, 4vw, 52px); }
.am-works__note { max-width: 26em; font-size: 16px; line-height: 1.7; color: rgba(36,27,20,.75); }
.am-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.am-card {
  background: var(--am-cream); border: 1px solid rgba(36,27,20,.1); border-radius: 24px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.am-card:hover { transform: translateY(-5px); box-shadow: 0 30px 50px -26px rgba(22,17,13,.45); border-color: rgba(181,80,43,.4); }
.am-card__media { position: relative; background: var(--am-black); aspect-ratio: 4/5; display: grid; place-items: center; overflow: hidden; }
.am-card__media::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(201,138,59,.5), transparent 68%); }
.am-card__media img { position: relative; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.am-card:hover .am-card__media img { transform: scale(1.04); }
.am-card__badge { position: absolute; top: 14px; left: 14px; background: var(--am-terra); color: var(--am-cream); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.am-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.am-card__body h3 { font-size: 23px; letter-spacing: -.02em; }
.am-card__desc { font-size: 14.5px; line-height: 1.6; color: rgba(36,27,20,.7); flex: 1; }
.am-card__price { font-family: var(--am-serif); font-size: 20px; font-weight: 600; color: var(--am-terra); }
.am-card .am-btn { margin-top: 6px; width: 100%; }
.am-works__foot { text-align: center; margin-top: clamp(30px, 4vw, 46px); font-size: 15.5px; color: rgba(36,27,20,.65); }
.am-works__foot a { border-bottom: 1px solid rgba(181,80,43,.45); }

/* ---------- proceso ---------- */
.am-process { background: var(--am-cream); padding: var(--am-sect) var(--am-pad); }
.am-process__head { max-width: 40rem; margin-bottom: clamp(36px, 4.5vw, 56px); }
.am-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: clamp(20px, 2.4vw, 30px); }
.am-step { border-top: 2px solid rgba(36,27,20,.16); padding-top: 22px; transition: border-color .3s ease; }
.am-step:hover { border-color: var(--am-terra); }
.am-step__n { font-family: var(--am-serif); font-size: 15px; letter-spacing: .1em; color: var(--am-ocre); font-weight: 600; }
.am-step h3 { font-size: clamp(22px, 2.1vw, 27px); margin-top: 12px; letter-spacing: -.02em; }
.am-step p { font-size: 15.5px; line-height: 1.7; color: rgba(36,27,20,.72); margin-top: 10px; }

/* ---------- contacto ---------- */
.am-contact__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 20% 100%, rgba(181,80,43,.35), transparent 70%),
              radial-gradient(50% 50% at 90% 10%, rgba(201,138,59,.2), transparent 70%);
}
.am-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .am-contact__grid { grid-template-columns: 1fr; } }
.am-contact h2 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1; letter-spacing: -.035em; margin-top: 16px; }
.am-root .am-contact__lead { font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.7; color: rgba(245,239,228,.76); margin-top: 22px; max-width: 32em; }
.am-cards { display: grid; gap: 14px; }
.am-crow {
  display: flex; align-items: center; gap: 18px; border: 1px solid rgba(245,239,228,.16);
  border-radius: 20px; padding: 22px 24px; color: var(--am-cream); background: rgba(245,239,228,.04);
}
.am-crow:hover { border-color: var(--am-ocre); background: rgba(245,239,228,.08); color: var(--am-cream); }
.am-crow__ico { width: 44px; height: 44px; flex: none; border-radius: 50%; background: rgba(201,138,59,.18); display: grid; place-content: center; font-size: 19px; color: var(--am-ocre); }
.am-crow__k { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(245,239,228,.55); }
.am-crow__v { display: block; font-family: var(--am-serif); font-size: clamp(18px, 1.9vw, 22px); font-weight: 600; margin-top: 3px; }
.am-crow__s { display: block; font-size: 14.5px; color: rgba(245,239,228,.6); margin-top: 2px; }

/* ---------- footer ---------- */
.am-footer { background: var(--am-bone); padding: clamp(44px, 5vw, 64px) var(--am-pad) 34px; }
.am-footer__top { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.am-footer__brand { display: flex; align-items: center; gap: 13px; }
.am-footer__name { font-family: var(--am-serif); font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.am-footer__motto { font-family: var(--am-serif); font-style: italic; font-size: 15px; color: var(--am-terra); }
.am-footer__nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14.5px; }
.am-footer__nav a { color: rgba(36,27,20,.72); }
.am-footer__nav a:hover { color: var(--am-terra); }
.am-footer__meta,
.am-footer__credit { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(36,27,20,.13); display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; font-size: 13px; color: rgba(36,27,20,.55); }
.am-footer__credit { justify-content: flex-start; }
.am-footer__credit img { width: 26px; height: 26px; border-radius: 7px; }
.am-footer__credit a { color: var(--am-terra); font-weight: 500; }

/* ---------- botón flotante ---------- */
.am-float {
  position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; background: var(--am-terra); color: var(--am-cream);
  padding: 15px 22px; border-radius: 999px; font-size: 15px; font-weight: 500;
  box-shadow: 0 16px 34px -14px rgba(22,17,13,.7); min-height: 48px;
}
.am-float:hover { background: var(--am-black); color: var(--am-cream); }

/* ---------- integración con el tema ---------- */
/* Documento independiente (plantilla del plugin). */
body.aml-standalone { margin: 0; padding: 0; background: #efe7da; }
body.aml-standalone > .am-root { margin-left: 0; margin-right: 0; }

/* Cuando la landing va por shortcode dentro del tema: rompemos su contenedor,
   ocultamos el título de la página y el pie del tema. */
body.aml-landing .wp-block-post-title,
body.aml-landing .entry-title,
body.aml-landing .page-title,
body.aml-landing .entry-header,
body.aml-landing .page-header { display: none !important; }

body.aml-landing footer.wp-block-template-part,
body.aml-landing .wp-site-blocks > footer,
body.aml-landing .site-footer,
body.aml-landing #colophon,
body.aml-landing .wp-block-post-navigation-link,
body.aml-landing .wp-block-comments,
body.aml-landing #comments { display: none !important; }

body.aml-landing .wp-site-blocks,
body.aml-landing .entry-content,
body.aml-landing .wp-block-post-content,
body.aml-landing .site-content,
body.aml-landing .site-main,
body.aml-landing main,
body.aml-landing article {
  max-width: none !important;
  width: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.aml-landing .wp-site-blocks > * { margin-block-start: 0 !important; }

/* ---------- ancho completo + contraste de botones ---------- */
/* El tema encierra el contenido en un contenedor angosto: lo rompemos. */
.am-root {
  width: auto;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 0;
  padding-right: 0;
}
body:has(.am-root) { overflow-x: hidden; }
.am-root .am-footer ~ *:not(.am-float) { display: none; }

/* Los estilos de enlace del tema pisaban el color del texto de los botones. */
.am-root a.am-btn,
.am-root a.am-btn:link,
.am-root a.am-btn:visited,
.am-root a.am-btn:hover,
.am-root a.am-float,
.am-root a.am-float:link,
.am-root a.am-float:visited,
.am-root a.am-float:hover,
.am-root a.am-crow,
.am-root a.am-crow:link,
.am-root a.am-crow:visited,
.am-root a.am-crow:hover { color: #f5efe4 !important; }

.am-root a.am-btn--ghost,
.am-root a.am-btn--ghost:link,
.am-root a.am-btn--ghost:visited { color: #241b14 !important; }
.am-root .am-dark a.am-btn--ghost,
.am-root .am-dark a.am-btn--ghost:link,
.am-root .am-dark a.am-btn--ghost:visited { color: #f5efe4 !important; }
.am-root .am-dark a.am-btn--ghost:hover { color: #c98a3b !important; }

.am-root a.am-brand,
.am-root a.am-brand:link,
.am-root a.am-brand:visited { color: #241b14 !important; }
.am-root .am-nav a.am-nav__link,
.am-root .am-footer__nav a { color: rgba(36, 27, 20, .78) !important; }
.am-root .am-nav a.am-nav__link:hover,
.am-root .am-footer__nav a:hover { color: #b5502b !important; }

/* ---------- colores explícitos (el tema define color en h1/h2/h3) ---------- */
.am-root .am-hero h1,
.am-root .am-story h2,
.am-root .am-story h3,
.am-root .am-works h2,
.am-root .am-works h3,
.am-root .am-process h2,
.am-root .am-process h3 { color: #241b14; }
.am-root .am-story .am-quote,
.am-root .am-works__note,
.am-root .am-works__foot { color: rgba(36, 27, 20, .75); }
.am-root .am-hero__lead,
.am-root .am-prose { color: rgba(36, 27, 20, .82); }
.am-root .am-tag { color: #f5efe4; }
.am-root .am-seal { color: #f5efe4; }
.am-root .am-seal .am-seal__n { color: #c98a3b; }
.am-root .am-card__price { color: #b5502b; }
.am-root .am-card__badge { color: #f5efe4; }
.am-root .am-card__body h3 { color: #241b14; }
.am-root .am-card__desc { color: rgba(36, 27, 20, .7); }
.am-root .am-step h3 { color: #241b14; }
.am-root .am-step p { color: rgba(36, 27, 20, .72); }
.am-root .am-step__n { color: #c98a3b; }

.am-root .am-dark,
.am-root .am-dark h1,
.am-root .am-dark h2,
.am-root .am-dark h3,
.am-root .am-dark .am-craft h3,
.am-root .am-marquee,
.am-root .am-marquee span { color: #f5efe4; }
.am-root .am-dark em,
.am-root .am-dark .am-eyebrow,
.am-root .am-marquee__set span:nth-child(even),
.am-root .am-marquee__set span:nth-child(4n+3) { color: #c98a3b; }
.am-root .am-dark .am-craft p { color: rgba(245, 239, 228, .72); }
.am-root .am-dark .am-chips span { color: rgba(245, 239, 228, .8); }
.am-root .am-contact__lead { color: rgba(245, 239, 228, .76); }
.am-root .am-crow__k { color: rgba(245, 239, 228, .55); }
.am-root .am-crow__v { color: #f5efe4; }
.am-root .am-crow__s { color: rgba(245, 239, 228, .6); }
.am-root .am-footer__name { color: #241b14; }
.am-root .am-footer__motto { color: #b5502b; }
.am-root .am-footer__meta,
.am-root .am-footer__credit { color: rgba(36, 27, 20, .55); }

/* ---------- reveal + keyframes ---------- */
.am-root [data-am-reveal].is-hidden { opacity: 0; transform: translateY(26px); }
.am-root [data-am-reveal] { transition: opacity .85s cubic-bezier(.22,.61,.36,1), transform .85s cubic-bezier(.22,.61,.36,1); }
@keyframes am-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes am-ember { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.06); } }
@keyframes am-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@media (prefers-reduced-motion: reduce) {
  /* Se desactivan las apariciones al hacer scroll (movimiento vertical),
     pero la cinta y el halo siguen, son parte del diseño. */
  .am-root [data-am-reveal] { transition: none !important; }
  .am-root [data-am-reveal].is-hidden { opacity: 1 !important; transform: none !important; }
  .am-root .am-seal { animation: none; }
}

/* ---------- ventana emergente de la pieza ---------- */
.am-card__media[role="button"] { cursor: zoom-in; }
.am-card__media[role="button"]:focus-visible { outline: 3px solid #c98a3b; outline-offset: -3px; }

.am-lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2.5vw, 34px);
  background: rgba(22, 17, 13, .88);
  backdrop-filter: blur(6px);
  font-family: var(--am-sans, Archivo, system-ui, sans-serif);
}
.am-lb.is-open { display: flex; }

.am-lb__win {
  display: flex;
  flex-direction: column;
  width: min(1180px, 96vw);
  height: min(940px, 94vh);
  background: #16110d;
  border: 1px solid rgba(201, 138, 59, .3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .95);
}

.am-lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 2vw, 22px);
  background: rgba(245, 239, 228, .05);
  border-bottom: 1px solid rgba(245, 239, 228, .12);
  flex: none;
}
.am-lb__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-width: 0; }
.am-lb__title {
  font-family: var(--am-serif, Fraunces, Georgia, serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: #f5efe4;
}
.am-lb__price {
  font-family: var(--am-serif, Fraunces, Georgia, serif);
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 600;
  color: #c98a3b;
}
.am-lb__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.am-lb__level {
  font-size: 12.5px;
  letter-spacing: .08em;
  color: rgba(245, 239, 228, .6);
  min-width: 46px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.am-lb__tool {
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(245, 239, 228, .26);
  background: rgba(245, 239, 228, .06);
  color: #f5efe4;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.am-lb__tool:hover { background: rgba(245, 239, 228, .16); border-color: #c98a3b; }
.am-lb__close { font-size: 24px; padding-bottom: 2px; margin-left: 6px; }

.am-lb__body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(201, 138, 59, .16), transparent 72%),
    #0f0b08;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 138, 59, .5) transparent;
}
.am-lb__body.is-pannable { cursor: grab; }
.am-lb__body.is-dragging { cursor: grabbing; }
.am-lb__body::-webkit-scrollbar { width: 10px; height: 10px; }
.am-lb__body::-webkit-scrollbar-thumb { background: rgba(201, 138, 59, .45); border-radius: 999px; }

.am-lb__img {
  display: block;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

.am-lb__nav {
  position: sticky;
  align-self: center;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-content: center;
  border: 1px solid rgba(245, 239, 228, .28);
  background: rgba(22, 17, 13, .72);
  color: #f5efe4;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.am-lb__nav:hover { background: rgba(22, 17, 13, .95); border-color: #c98a3b; }
.am-lb__nav--prev { grid-area: 1 / 1; justify-self: start; left: 12px; margin-left: 12px; }
.am-lb__nav--next { grid-area: 1 / 1; justify-self: end; right: 12px; margin-right: 12px; }

.am-lb__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px clamp(14px, 2vw, 22px);
  background: rgba(245, 239, 228, .05);
  border-top: 1px solid rgba(245, 239, 228, .12);
  flex: none;
}
.am-lb__desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(245, 239, 228, .72);
  max-width: 52ch;
}
.am-lb__wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: 999px;
  background: #b5502b;
  color: #f5efe4 !important;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s ease;
}
.am-lb__wa:hover { background: #c98a3b; }

@media (max-width: 640px) {
  .am-lb { padding: 0; }
  .am-lb__win { width: 100vw; height: 100vh; border-radius: 0; border: 0; }
  .am-lb__desc { display: none; }
  .am-lb__wa { width: 100%; justify-content: center; }
  .am-lb__nav { width: 44px; height: 44px; font-size: 25px; }
}
