/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

/* ============ TOKENS ============ */
:root {
  --forest:      #2c4033;
  --forest-deep: #1b2a20;
  --coal:        #191a17;
  --mist:        #f1eee7;
  --bone:        #f8f4ea;
  --ink:         #23231e;
  --zica:        #b0552f;
  --zica-dark:   #9a4826;
  --line:        rgba(44, 64, 51, 0.16);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --header-h: 5rem;
}

/* ============ BASE ============ */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--mist);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

section[id] { scroll-margin-top: var(--header-h); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--zica);
  outline-offset: 3px;
}

/* ============ UTILIDADES ============ */
.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 100;
  background: var(--forest); color: var(--bone);
  padding: .75rem 1.25rem; text-decoration: none;
  font-size: .875rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.icon {
  width: 1.5rem; height: 1.5rem;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--zica);
}

.h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--forest);
  margin-top: 1.25rem;
  text-wrap: balance;
}
.h2--light { color: var(--bone); }

.h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  line-height: 1.2;
  color: var(--forest);
  margin-top: .75rem;
}

.body-copy { color: rgba(35, 35, 30, .7); line-height: 1.85; margin-top: 1.5rem; }
.body-copy p + p { margin-top: 1.25rem; }

/* ============ BOTONES ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 0;
  background: none;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-zica { background: var(--zica); color: var(--bone); }
.btn-zica:hover { background: var(--zica-dark); }
.btn-forest { background: var(--forest); color: var(--bone); }
.btn-forest:hover { background: var(--forest-deep); }
.btn-outline { border-color: rgba(44, 64, 51, .25); color: var(--forest); }
.btn-outline:hover { background: rgba(44, 64, 51, .06); }
.btn-lg { padding: 1rem 2rem; font-size: .875rem; }

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(241, 238, 231, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(44, 64, 51, .1);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 72rem;
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: 1.5rem;
}

.icon-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border: 0; background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: background-color .2s;
}
.icon-btn:hover { background: rgba(44, 64, 51, .08); }

.header-cta { justify-self: end; padding-inline: 1rem; }
@media (min-width: 640px) { .header-cta { padding-inline: 1.5rem; } }

.brand-wrap { display: flex; flex-direction: column; align-items: center; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}
.diamond {
  width: .5rem; height: .5rem;
  background: var(--zica);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--forest);
}
.brand-sub {
  margin-top: .3rem;
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: rgba(44, 64, 51, .55);
}
.brand--inverse .brand-name { color: var(--bone); }
.brand-sub--inverse { color: rgba(248, 244, 234, .6); display: block; text-align: center; }

.main-menu {
  position: absolute;
  top: 100%;
  left: 1.5rem;
  width: 16rem;
  padding: .5rem;
  background: rgba(248, 244, 234, .97);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(44, 64, 51, .15);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .4);
}
.main-menu a {
  display: block;
  padding: .8rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--forest);
  text-decoration: none;
}
.main-menu a:hover { background: var(--mist); }

/* ============ HERO ============ */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
}

.hero-media {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 72% 8%, rgba(176, 85, 47, .5), transparent 62%),
    radial-gradient(90% 70% at 15% 85%, rgba(27, 42, 32, .95), transparent 68%),
    linear-gradient(160deg, #3c5443 0%, #2c4033 45%, #1b2a20 100%);
}
/* textura de tejido */
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,.055) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.09)        0 1px, transparent 1px 5px);
}
/* Si usas una foto real: */
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-overlay { position: absolute; inset: 0; background: rgba(27, 42, 32, .45); }

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 5rem 4rem;
  color: var(--bone);
}
.hero .eyebrow { color: rgba(248, 244, 234, .78); }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: .95;
  letter-spacing: -.02em;
  margin-top: 1.25rem;
}

.hero-lead {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  line-height: 1.45;
  max-width: 44rem;
  margin-top: 1.5rem;
  color: rgba(248, 244, 234, .95);
  text-wrap: pretty;
}

.hero .btn { margin-top: 2.25rem; }

/* ============ SECCIONES ============ */
.section { padding-block: clamp(4rem, 9vw, 7rem); }
.section--bone   { background: var(--bone); }
.section--forest { background: var(--forest); color: var(--bone); }
.section--coal   { background: var(--coal);   color: var(--bone); }

.section--forest .h2,
.section--coal .h2 { color: var(--bone); }
.section--forest .eyebrow,
.section--coal .eyebrow { color: var(--zica); }

.intro { max-width: 44rem; }
.intro .body-copy { margin-top: 1.25rem; }

/* ============ PROPÓSITO ============ */
.purpose-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .purpose-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; }
}

.experience {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(44, 64, 51, .2);
}

.experience-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

/* Tabs */
.tabs { display: inline-flex; border: 1px solid rgba(44, 64, 51, .2); }
.tabs [role="tab"] {
  padding: .8rem 1.25rem;
  border: 0;
  background: transparent;
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--forest);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tabs [role="tab"] + [role="tab"] { border-left: 1px solid rgba(44, 64, 51, .2); }
.tabs [role="tab"][aria-selected="true"] { background: var(--forest); color: var(--bone); }
.tabs [role="tab"]:hover:not([aria-selected="true"]) { background: rgba(44, 64, 51, .06); }

/* Rejilla de tarjetas con líneas de 1px */
.card-grid {
  margin-top: 2rem;
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 640px)  { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card-grid > * {
  min-height: 12rem;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--forest);
}
.card-grid .card-title { margin-top: 0; }
.card-text {
  margin-top: .75rem;
  font-size: .875rem;
  line-height: 1.7;
  color: rgba(35, 35, 30, .65);
}
.step {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--zica);
}
.step + .card-title { margin-top: 1rem; }

/* ============ CLIENTE ============ */
.client-grid {
  margin-top: 3rem;
  display: grid;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 768px) { .client-grid { grid-template-columns: repeat(2, 1fr); } }

.aspiration {
  padding: 2rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) { .aspiration { padding: 2.25rem; } }

.aspiration-icon { color: var(--zica); }
.aspiration .card-title { margin-top: 1.75rem; }
.aspiration .card-text { max-width: 28rem; }

/* ============ MARQUEE / PRENDAS ============ */
.marquee {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.marquee.is-animated { overflow: hidden; }

.track { display: flex; width: max-content; }
.track-group {
  display: flex;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

.marquee.is-animated .track { animation: marquee 55s linear infinite; }
.marquee.is-animated:hover .track,
.marquee.is-animated:focus-within .track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Tarjeta de producto */
.product-card {
  flex: 0 0 auto;
  width: 17.5rem;
  background: rgba(248, 244, 234, .95);
  border: 1px solid rgba(44, 64, 51, .15);
  overflow: hidden;
}
@media (min-width: 640px) { .product-card { width: 20.625rem; } }

.product-media {
  aspect-ratio: 1 / 1;
  position: relative;
  background: linear-gradient(145deg, var(--t1), var(--t2));
}
.product-media::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg,  rgba(255,255,255,.10) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.10)        0 1px, transparent 1px 4px);
}

/* Foto real dentro de la tarjeta */
img.product-media { display: block; width: 100%; height: auto; object-fit: cover; }
img.product-media::after { content: none; }
.media-left  { object-position: left center; }   /* jean azul */
.media-right { object-position: right center; }  /* pantalón verde */

/* Tonos por prenda (solo se usan si no hay foto) */
.media-jean   { --t1: #6b7f92; --t2: #35485c; }
.media-drill  { --t1: #7d8b5f; --t2: #414d2f; }
.media-cotton { --t1: #ddd0b8; --t2: #b3a184; }
.media-red    { --t1: #b0552f; --t2: #6d2f1a; }
.media-sage   { --t1: #a3b39a; --t2: #6a7b63; }
.media-terra  { --t1: #c07a52; --t2: #8a4726; }

.product-body { padding: 1.25rem; }

.product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.product-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--forest);
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  flex: 0 0 auto;
  font-size: .875rem;
  font-weight: 600;
  color: var(--zica);
}
.rating svg { width: 1rem; height: 1rem; fill: currentColor; stroke: none; }

.product-quote {
  margin-top: .75rem;
  min-height: 3.25rem;
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(35, 35, 30, .65);
}

.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tag {
  padding: .25rem .625rem;
  border: 1px solid rgba(44, 64, 51, .15);
  background: rgba(241, 238, 231, .75);
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(44, 64, 51, .75);
}

/* ============ CONTACTO ============ */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; }
}

.contact-lead {
  margin-top: 1.5rem;
  line-height: 1.85;
  color: rgba(248, 244, 234, .65);
}

.contact-info {
  margin-top: 2.25rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--zica);
  font-size: .875rem;
  line-height: 1.9;
  color: var(--bone);
}

/* Formulario */
.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--mist);
  border: 1px solid rgba(248, 244, 234, .15);
  color: var(--ink);
}
@media (min-width: 640px) {
  .contact-form { grid-template-columns: 1fr 1fr; padding: 2.25rem; }
}

.field { display: grid; gap: .5rem; align-content: start; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--forest);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8rem .9rem;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(44, 64, 51, .2);
  border-radius: 0;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .2s;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(44, 64, 51, .4); }

.field textarea { resize: vertical; min-height: 8rem; }

.field [aria-invalid="true"] { border-color: #a33b2c; background: rgba(163, 59, 44, .04); }

.error {
  font-size: .75rem;
  color: #a33b2c;
}

/* Panel de éxito (ventana emergente) */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 26, 23, .65);
  backdrop-filter: blur(3px);
  animation: modal-fade .25s ease-out;
}
.success-panel {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 1rem;
  width: 100%;
  max-width: 32rem;
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  background: var(--mist);
  border: 1px solid rgba(44, 64, 51, .15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  color: var(--ink);
  animation: modal-pop .3s ease-out;
}
@media (min-width: 640px) { .success-panel { padding: 3rem; } }
.success-panel:focus { outline: none; }
.success-icon { color: var(--zica); width: 2rem; height: 2rem; }
.success-panel .card-text { max-width: 28rem; }
.success-panel .btn { margin-top: 1rem; }

.modal-x {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--forest);
  cursor: pointer;
}
.modal-x:hover { background: rgba(44, 64, 51, .08); }
.modal-x .icon { width: 1.25rem; height: 1.25rem; }

body.modal-open { overflow: hidden; }

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-pop  { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .success-panel { animation: none; }
}

/* ============ FOOTER ============ */
.site-footer { background: var(--forest-deep); color: var(--bone); }

.footer-inner {
  max-width: 72rem;
  margin-inline: auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-statement {
  max-width: 48rem;
  margin-top: 2.25rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
  line-height: 1.3;
  text-wrap: balance;
}

.footer-bottom {
  width: 100%;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 244, 234, .15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .75rem;
  color: rgba(248, 244, 234, .55);
}

.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--bone); }

/* ============ MOVIMIENTO REDUCIDO ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .marquee.is-animated .track { animation: none; }
  .marquee.is-animated { overflow-x: auto; }
}
/* ============ ACORDEÓN ============ */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-header {
  display: flex;
  margin: 0;
}

.accordion-trigger {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--forest);
  cursor: pointer;
  transition: color .2s;
}

.accordion-trigger:hover {
  color: var(--zica);
}

.accordion-chevron {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--forest);
  transition: transform .2s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
  transform: rotate(180deg);
}

/* Transición suave manteniendo accesibilidad con [hidden] */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows .22s ease, opacity .22s ease;
}

.accordion-content.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion-inner {
  min-height: 0;
}

.accordion-body {
  padding-bottom: 1.25rem;
  font-size: .9rem;
  line-height: 1.75;
  color: rgba(35, 35, 30, .75);
}