:root {
  --ink: #0d1b2a;
  --ink-2: #12263a;
  --ivory: #faf7f1;
  --paper: #ffffff;
  --soft: #f3eee4;
  --gold: #c2a14d;
  --gold-deep: #a8853a;
  --text: #1c2b3a;
  --muted: #5b6b7a;
  --line: #e6dfd1;
  --line-dark: rgba(250, 247, 241, 0.14);
  --radius: 16px;
  --radius-xl: 24px;
  --shadow: 0 14px 34px rgba(13, 27, 42, 0.1);
  --shadow-strong: 0 24px 60px rgba(13, 27, 42, 0.28);
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-soft {
  background: var(--soft);
}

.center {
  text-align: center;
}

.section-intro {
  color: var(--muted);
  max-width: 720px;
  margin: 1rem auto 2.6rem;
}

/* ---------- Tipografía ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.9rem;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
}

h3 {
  font-size: 1.18rem;
}

.center h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

p {
  margin: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 247, 241, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand img {
  width: 235px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.menu a:hover {
  color: var(--ink);
}

.menu a:hover::after {
  transform: scaleX(1);
}

.menu-cta {
  background: var(--ink);
  color: var(--ivory) !important;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.menu-cta::after {
  display: none;
}

.menu-cta:hover {
  background: var(--gold-deep);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  box-shadow: 0 10px 26px rgba(168, 133, 58, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(168, 133, 58, 0.45);
}

.btn-secondary {
  color: var(--ivory);
  background: transparent;
  border-color: rgba(250, 247, 241, 0.4);
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 0;
  min-height: 620px;
  height: 92vh;
  max-height: 840px;
  background: var(--ink);
  color: var(--ivory);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
}

.hero-slide.active .slide-bg {
  animation: kenburns 7.5s ease-out forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(13, 27, 42, 0.95) 0%,
    rgba(13, 27, 42, 0.78) 45%,
    rgba(13, 27, 42, 0.42) 100%
  );
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(6.5rem, 16vh, 10rem);
}

.hero-slide .eyebrow,
.hero-slide h1,
.hero-slide .hero-sub {
  opacity: 0;
  transform: translateY(26px);
}

.hero-slide.active .eyebrow {
  animation: heroUp 0.7s ease 0.25s forwards;
}

.hero-slide.active h1 {
  animation: heroUp 0.7s ease 0.45s forwards;
}

.hero-slide.active .hero-sub {
  animation: heroUp 0.7s ease 0.65s forwards;
}

@keyframes heroUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  flex-wrap: wrap;
  padding-bottom: 2.4rem;
}

.hero-dots {
  display: flex;
  gap: 0.55rem;
}

.dot {
  width: 2.2rem;
  height: 4px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(250, 247, 241, 0.32);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}

.dot:hover {
  background: rgba(250, 247, 241, 0.6);
}

.dot.active {
  background: var(--gold);
  width: 3rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.active .slide-bg,
  .hero-slide.active .eyebrow,
  .hero-slide.active h1,
  .hero-slide.active .hero-sub {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1 {
  color: var(--ivory);
  max-width: 21ch;
}

.hero-sub {
  color: rgba(250, 247, 241, 0.78);
  font-size: 1.06rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------- Quiénes somos ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem;
  align-items: start;
}

.split > div > p {
  color: var(--muted);
  font-size: 1.03rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: 0 8px 20px rgba(13, 27, 42, 0.05);
  font-weight: 500;
}

.about-emphasis {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.9rem;
}

.about-emphasis article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem 1.15rem;
}

.about-emphasis h3 {
  margin-bottom: 0.35rem;
}

.about-emphasis article p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Grids y tarjetas ---------- */

.grid {
  display: grid;
  gap: 1.1rem;
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manufacturers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.brand-card,
.category-card,
.use-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card,
.use-card {
  padding: 0;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-card:hover .card-img,
.use-card:hover .card-img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.2rem 1.4rem 1.4rem;
}

.card:hover,
.brand-card:hover,
.category-card:hover,
.use-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(194, 161, 77, 0.55);
}

.card p,
.brand-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-icon {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 100%);
  box-shadow: 0 10px 22px rgba(13, 27, 42, 0.22);
  margin-bottom: 0.9rem;
}

.card-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: var(--gold);
}

.card-icon-soft {
  background: rgba(194, 161, 77, 0.14);
  box-shadow: none;
}

/* ---------- Fabricantes ---------- */

.brand-card h3 {
  font-size: 1.35rem;
}

.brand-card.muted {
  background: transparent;
  border-style: dashed;
}

/* ---------- Diferenciadores (bloque oscuro) ---------- */

.differentiators {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.differ-card {
  position: relative;
  padding: 1.7rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(240px 180px at 90% -20%, rgba(194, 161, 77, 0.14) 0%, rgba(194, 161, 77, 0) 70%),
    linear-gradient(155deg, var(--ink) 0%, var(--ink-2) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.differ-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.differ-card h3 {
  color: var(--ivory);
}

.differ-card p {
  color: rgba(250, 247, 241, 0.72);
  font-size: 0.95rem;
}

/* ---------- Aplicaciones ---------- */

.use-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.05rem;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.about-media {
  margin-top: 2.4rem;
}

.about-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.use-card li::marker {
  color: var(--gold-deep);
}

/* ---------- Productos ---------- */

.category-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.category-card a {
  color: var(--gold-deep);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.category-card a:hover {
  text-decoration: underline;
}

/* ---------- Proceso ---------- */

.process {
  margin: 1.8rem auto 0;
  padding: 0;
  max-width: 800px;
  display: grid;
  gap: 0.9rem;
  list-style: none;
  counter-reset: regu-steps;
}

.process li {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem 1.1rem 1.05rem 3.6rem;
  box-shadow: 0 8px 20px rgba(13, 27, 42, 0.05);
}

.process li::before {
  counter-increment: regu-steps;
  content: counter(regu-steps, decimal-leading-zero);
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gold-deep);
}

.process-note {
  margin: 1.6rem auto 0;
  max-width: 800px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Callout ---------- */

.callout {
  padding-top: 1.5rem;
}

.callout-box {
  background:
    linear-gradient(150deg, rgba(13, 27, 42, 0.94) 0%, rgba(18, 38, 58, 0.9) 100%),
    url("assets/img/callout-bg.jpg") center / cover no-repeat;
  color: var(--ivory);
  border-radius: var(--radius-xl);
  padding: 3.4rem 2.4rem;
  text-align: center;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(194, 161, 77, 0.3);
}

.callout-box h2 {
  color: var(--ivory);
}

.callout-box h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 1rem auto 0;
  border-radius: 2px;
  background: var(--gold);
}

.callout-box p {
  color: rgba(250, 247, 241, 0.78);
  max-width: 620px;
  margin: 1rem auto 1.6rem;
}

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}

.contact-grid > div > p {
  color: var(--muted);
}

.contact-points {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.55rem;
}

.contact-points p {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.contact-points strong {
  color: var(--ink);
}

.contact-points a {
  color: var(--gold-deep);
  text-decoration: none;
  font-weight: 600;
}

.contact-points a:hover {
  text-decoration: underline;
}

.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  display: grid;
  gap: 0.7rem;
  box-shadow: var(--shadow);
}

.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.72rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #cfc7b6;
  background: var(--ivory);
  outline: none;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(194, 161, 77, 0.2);
  background: var(--paper);
}

.contact-form .btn-primary {
  margin-top: 0.4rem;
  justify-self: start;
}

.form-note {
  min-height: 1.2rem;
  color: #2f6b4f;
  font-weight: 500;
  font-size: 0.92rem;
}

/* ---------- Servicios ---------- */

.service-strip {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.service-pill {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(13, 27, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-pill:hover {
  transform: translateY(-3px);
  border-color: rgba(194, 161, 77, 0.55);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.2rem 0;
  background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 100%);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(250, 247, 241, 0.65);
  font-size: 0.92rem;
}

.footer-content img {
  width: 200px;
}

/* ---------- Animaciones ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: 80px;
    right: 4%;
    width: min(320px, 92vw);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 0.9rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    display: none;
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    padding: 0.5rem 0.6rem;
  }

  .menu a::after {
    display: none;
  }

  .menu-cta {
    text-align: center;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: auto;
    min-height: 100svh;
  }

  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three,
  .manufacturers,
  .differentiators,
  .use-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-strip {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4rem 0;
  }

  .brand img {
    width: 190px;
  }

  .grid.four,
  .grid.three,
  .manufacturers,
  .differentiators,
  .use-grid {
    grid-template-columns: 1fr;
  }

  .callout-box {
    text-align: left;
    padding: 2.2rem 1.5rem;
  }

  .callout-box h2::after {
    margin-left: 0;
  }

  .callout-box p {
    margin-left: 0;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-strip {
    grid-template-columns: 1fr;
  }

  .hero-bottom {
    padding-bottom: 1.8rem;
  }
}
