/* Textiles del Norte */

:root {
  --green: #2c4a3e;
  --green-dark: #1e3329;
  --gold: #d4a574;
  --gold-dark: #b8895a;
  --cream: #faf8f5;
  --sand: #ede8e0;
  --text: #2c3330;
  --text-muted: #6b7570;
  --white: #ffffff;
  --font: 'Plus Jakarta Sans', sans-serif;
  --header-h: 72px;
  --max-w: 1140px;
  --gutter: 1.5rem;
  --ease: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.tag--light { color: var(--gold); }

.section-head { margin-bottom: 2.5rem; }
.section-head--center { text-align: center; }

.section-desc {
  max-width: 540px;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.section-head--center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.section-head h2,
.about__copy h2,
.benefits h2,
.sectors__text h2,
.contact__form h2,
.testimonials h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1.2;
}

.testimonials h2 { color: var(--white); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
}

.btn--primary {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212,165,116,0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn--full { width: 100%; }

/* ── Icons (Lucide) ── */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.icon--value {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: rgba(212,165,116,0.15);
  border-radius: 10px;
  color: var(--gold-dark);
}

.icon--value svg { width: 24px; height: 24px; }

.icon--benefit {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 10px;
  color: var(--green);
}

.icon--process {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--gold);
  border-radius: 50%;
  color: var(--green-dark);
}

.icon--process svg { width: 22px; height: 22px; }

.icon--contact {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 8px;
  color: var(--green);
}

.icon--contact svg { width: 18px; height: 18px; }

/* ── Header · oscuro ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--green);
  transition: box-shadow var(--ease);
}

.header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.2); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 6px;
}

.logo--footer .logo__mark {
  background: rgba(255,255,255,0.12);
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex: 1;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: color var(--ease);
}

.nav__link:hover,
.nav__link.active { color: var(--gold); }

.header__cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: var(--ease);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero · variante 06: imagen completa, texto abajo-izquierda ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 51, 41, 0.92) 0%,
    rgba(30, 51, 41, 0.55) 45%,
    rgba(30, 51, 41, 0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 4rem 0 5rem;
  max-width: 560px;
}

.hero__content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__content p {
  font-size: 1.05rem;
  opacity: 0.88;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Nosotros ── */
.about {
  padding: 5.5rem 0;
  background: var(--cream);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(212,165,116,0.08) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(44,74,62,0.05) 0%, transparent 35%);
}

.about__top {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.about__copy h2 {
  margin-bottom: 1.25rem;
}

.about__lead {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about__copy p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.about__copy strong { color: var(--green); }

.about__visual {
  position: relative;
  min-height: 380px;
}

.about__img-main {
  width: 78%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(44,74,62,0.15);
}

.about__img-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 5px solid var(--cream);
  box-shadow: 0 8px 28px rgba(44,74,62,0.12);
}

.about__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  transition: transform var(--ease), border-color var(--ease);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.value-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about__quote {
  position: relative;
  background: var(--green);
  color: var(--white);
  border-radius: 10px;
  padding: 2.5rem 3rem;
  text-align: center;
}

.about__quote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
  font-family: Georgia, serif;
}

.about__quote p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 1rem;
  opacity: 0.92;
}

.about__quote cite {
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
}

/* ── Ventajas ── */
.benefits {
  padding: 5.5rem 0;
  background: var(--white);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.benefit-card {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--sand);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(44,74,62,0.1);
}

.benefit-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Sectores ── */
.sectors {
  padding: 4rem 0;
  background: var(--green);
  color: var(--white);
}

.sectors__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.sectors__text h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.sectors__text p {
  font-size: 0.95rem;
  opacity: 0.75;
  line-height: 1.6;
}

.sectors__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
}

.sectors__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.9;
}

.sectors__list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  stroke-width: 1.75;
}

/* ── Galería ── */
.gallery {
  overflow: hidden;
  background: var(--green-dark);
}

.gallery__track {
  display: flex;
  gap: 4px;
}

.gallery__track img {
  flex: 1;
  min-width: 0;
  height: 200px;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity var(--ease);
}

.gallery__track img:hover {
  opacity: 1;
}

/* ── Productos · grid ── */
.products {
  padding: 5rem 0;
  background: var(--white);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  background: var(--cream);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--sand);
  transition: transform var(--ease), box-shadow var(--ease);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(44,74,62,0.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card__body {
  padding: 1.25rem;
}

.product-card__body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.product-card__body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Proceso · tarjetas ── */
.process {
  padding: 5rem 0;
  background: var(--cream);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.process-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 10px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--ease), border-color var(--ease);
}

.process-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.process-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.4rem;
}

.process-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Testimonios · oscuro ── */
.testimonials {
  padding: 5rem 0;
  background: var(--green);
  color: var(--white);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.testimonials__grid blockquote {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.75rem;
}

.testimonials__grid p {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.testimonials__grid cite {
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
}

/* ── CTA · sobre imagen ── */
.cta {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,51,41,0.82);
}

.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 3.5rem 0;
}

.cta__content h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta__content p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/* ── Contacto · imagen + form ── */
.contact {
  padding: 5rem 0;
  background: var(--white);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--sand);
}

.contact__item > div:last-child {
  flex: 1;
  min-width: 0;
}

.contact__item strong {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.contact__item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact__form {
  background: var(--cream);
  border-radius: 10px;
  padding: 2.5rem;
  border: 1px solid var(--sand);
}

.contact__form h2 {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 0.9rem;
  border: 1px solid var(--sand);
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.form-notice {
  margin-top: 1rem;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  text-align: center;
}

.form-notice.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── Footer · tres columnas ── */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

.footer__brand p {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  opacity: 0.65;
  line-height: 1.5;
}

.footer__links strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.footer__links a {
  display: block;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  opacity: 0.65;
  transition: opacity var(--ease), color var(--ease);
}

.footer__links a:hover { opacity: 1; color: var(--gold); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
}

.footer__bottom p {
  font-size: 0.78rem;
  opacity: 0.45;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero__content {
    padding: 3rem 0 4rem;
    max-width: none;
  }

  .about__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__visual { min-height: 320px; max-width: 480px; margin: 0 auto; }
  .about__values { grid-template-columns: 1fr; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .sectors__inner { grid-template-columns: 1fr; gap: 2rem; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .gallery__track img { height: 140px; }
}

@media (max-width: 768px) {
  .header__cta { display: none; }
  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--green-dark);
    padding: 1rem var(--gutter);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    transform: translateY(-110%);
    opacity: 0;
    transition: all var(--ease);
    pointer-events: none;
  }

  .nav.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav__link { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }

  .logo span:not(.logo__mark) { display: none; }

  .benefits__grid { grid-template-columns: 1fr; }
  .sectors__list { grid-template-columns: 1fr; }
  .about__quote { padding: 2rem 1.5rem; }
  .products__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .header__cta { display: inline-flex; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
