/* ─── RESET & VARIABLES ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --black: #000000;
  --black-light: #181818;
  --white: #fff;
  --gray-50: #f5f5f5;
  --gray-100: #e8e8e8;
  --gray-600: #666;
  --yellow: #ffe600;
  --whatsapp: #66e066;
  --whatsapp-dark: #1e9b4c;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-xxl: 52px;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: system-ui, sans-serif;
  color: var(--black-light);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ─── WHATSAPP FLOATING ─── */
.wa-float {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--black-light);
  color: var(--white);
  padding: 14px 24px 14px 18px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.wa-float:hover {
  transform: translateY(-3px);
  background: var(--whatsapp-dark);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.wa-float img {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  width: 100%;
  height: 95vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
/* Carousel layer */
.hero-carousel {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 35, 40, 0.45);
}
.hero-slide.active {
  opacity: 1;
}
/* Dots */
.hero-dots {
  position: absolute;
  bottom: 170px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.3s,
    transform 0.3s,
    border-color 0.3s;
}
.hero-dot.active {
  background: var(--white);
  border-color: var(--white);
  transform: scale(1.3);
}
.hero-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.hero-logo {
  width: min(70%, 80%);
}
.hero-tagline {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 100;
  width: min(70%, 80%);
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  text-align: end;
}
.hero-tagline strong {
  font-weight: 900;
}

/* ─── HERO BOTTOM (curve + strip) ─── */
.hero-bottom {
  position: relative;
  z-index: 1;
  margin-top: auto;
  line-height: 0;
}
.hero-curve {
  position: relative;
  line-height: 0;
  top: 1px;
}
.hero-curve svg {
  display: block;
  width: 100%;
  height: 150px;
}
.hero-strip {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 2;
  line-height: normal;
  width: min(46%, 720px);
  padding: 0 20px;
}
.hero-strip p {
  font-size: clamp(0.95rem, 1.4vw, 1.6rem);
  color: var(--black-light);
  line-height: 1.4;
}
.hero-strip strong {
  color: var(--black-light);
  font-weight: 700;
  white-space: nowrap;
}
.hero-strip img {
  width: clamp(120px, 13vw, 200px);
  height: auto;
  aspect-ratio: 200 / 40;
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
}

/* ─── FEATURES ─── */
.features {
  padding: 100px 24px 60px;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 16px 16px 32px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  background: var(--black-light);
  color: var(--white);
  border-color: var(--black-light);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
}
.feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  transition: filter 0.3s;
}
.feature-card:hover .feature-icon {
  filter: invert(1);
}
.feature-card h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.feature-card p {
  font-size: 1.2rem;
  color: var(--gray-700);
  line-height: 1.5;
  transition: color 0.3s;
}
.feature-card:hover p {
  color: rgba(255, 255, 255, 0.7);
}

/* ─── PRECISION SECTION ─── */
.precision {
  padding: 80px 24px 0;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  min-height: 600px;
}
.precision-text {
  padding-top: 20px;
  padding-bottom: 40px;
}
.precision-text h2 {
  font-family: system-ui, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 24px;
  font-weight: 700;
}
.precision-text > p {
  font-size: 1.5rem;
  color: var(--black-light);
  margin-bottom: 32px;
}
.precision-text strong {
  color: var(--black-light);
  font-weight: 700;
}
.badge-3en1 {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: var(--black-light);
  color: var(--white);
  border-radius: var(--radius);
  padding: 16px 54px 16px 36px;
  margin-bottom: 20px;
}
.badge-3en1 .num {
  font-family: system-ui, serif;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
}
.badge-3en1 .num sub {
  font-size: 3rem;
  font-weight: 200;
  vertical-align: baseline;
}
.badge-3en1 ul {
  list-style: none;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 500;
}
.precision-img {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  overflow: visible;
}
.precision-img img {
  width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: bottom;
}

/* ─── PRODUCTS ─── */
.products-wrapper {
  padding: 0 24px 80px;
  max-width: 1500px;
  margin: 0 auto;
  height: 90vh;
  display: flex;
  align-items: stretch;
}
.products {
  background: var(--gray-50);
  border-radius: var(--radius-xxl);
  box-shadow: 16px 16px 32px rgba(0, 0, 0, 0.75);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 25px;
  margin: 0 auto;
  width: 100%;
}
.product-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.05) 60%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: var(--white);
}
.product-card h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 6px;
}
.product-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.9;
}
.product-card p strong {
  font-weight: 700;
}
.btn-folleto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  transition:
    background 0.25s,
    transform 0.2s;
  width: fit-content;
}
.btn-folleto:hover {
  background: var(--white);
  color: var(--black-light);
  transform: translateY(-2px);
}
.btn-folleto img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.btn-folleto:hover img {
  filter: invert(0);
}

/* Align text in cards without folleto button to match cards that have one */
.overlay--no-folleto {
  padding-bottom: calc(32px + 36px + 36px) !important;
}

.btn-catalogo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--black-light);
  color: var(--white);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  transition:
    background 0.25s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.btn-catalogo:hover {
  background: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.btn-catalogo img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  filter: invert(1);
}

/* ─── STATS + ABOUT ─── */
.stats-about {
  padding: 60px 24px 80px;
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.stat-block {
  text-align: center;
}
.stat-block .big {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: system-ui, serif;
  font-size: clamp(6rem, 8vw, 12rem);
  font-weight: 900;
  line-height: 1;
  color: var(--black-light);
}
.stat-block .big span {
  font-size: 8rem;
}
.stat-block .label {
  font-size: 3rem;
  margin-top: 8px;
  color: var(--black-light);
}
.stat-block .label strong {
  color: var(--black-light);
  font-weight: 700;
}
.stat-block .backed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 2rem;
  color: var(--black-light);
}
.stat-block .backed img {
  width: 250px;
}
.about-card {
  max-width: 600px;
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
.about-card .icon-people {
  filter: invert(1);
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}
.about-card p {
  font-size: 1.5rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
}

/* ─── CTA ─── */
.cta {
  text-align: center;
  padding: 40px 24px 80px;
  max-width: 1000px;
  margin: 0 auto;
}
.cta h2 {
  font-family: system-ui, serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--black);
  line-height: 1.5;
}
.cta h2 mark {
  background: var(--yellow);
  color: var(--black);
  padding: 2px 8px;
  border-radius: 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.75);
}

/* ─── FOOTER ─── */
footer {
  background: var(--black-light);
  color: var(--white);
  padding: 48px 24px;
}
.footer-inner {
  max-width: 1500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-logo {
  width: 400px;
  height: auto;
}
.footer-contact {
  text-align: right;
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--white);
}
.footer-contact a {
  color: var(--white);
}
.footer-contact a:hover {
  text-decoration: underline;
  color: var(--white);
}

/* ─── ANIMATIONS (CSS only, no JS) ─── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-driven animations (Chrome 115+, Firefox 110+) */
@supports (animation-timeline: view()) {
  .hero-content,
  .feature-card,
  .precision-text,
  .precision-img,
  .product-card,
  .stat-block,
  .about-card,
  .cta {
    animation: fadeInUp ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

/* Fallback for Safari / older browsers: simple load animation */
@supports not (animation-timeline: view()) {
  .hero-content {
    animation: fadeInUp 0.6s ease both;
  }
  .feature-card {
    animation: fadeInUp 0.5s ease both;
  }
  .feature-card:nth-child(1) {
    animation-delay: 0.1s;
  }
  .feature-card:nth-child(2) {
    animation-delay: 0.2s;
  }
  .feature-card:nth-child(3) {
    animation-delay: 0.3s;
  }
  .feature-card:nth-child(4) {
    animation-delay: 0.4s;
  }
  .precision-text,
  .precision-img,
  .product-card,
  .stat-block,
  .about-card,
  .cta {
    animation: fadeInUp 0.6s ease both;
    animation-delay: 0.2s;
  }
}

/* ─── RESPONSIVE: LARGE SCREENS (2K+) ─── */
@media (min-width: 1800px) {
  .hero-strip {
    width: min(42%, 760px);
  }
  .hero-strip p {
    font-size: 1.6rem;
  }
  .hero-strip img {
    width: clamp(180px, 12vw, 240px);
  }
  .hero-tagline {
    font-size: 1.8rem;
  }
  .products {
    padding: 40px;
  }
}

/* ─── RESPONSIVE: LAPTOP ─── */
@media (max-width: 1400px) {
  .hero-strip {
    width: min(46%, 600px);
  }
  .hero-strip p {
    font-size: clamp(0.9rem, 2vw, 1.25rem);
  }
  .hero-strip img {
    width: clamp(110px, 16vw, 170px);
  }
  .hero-curve svg {
    height: 130px;
  }
  .hero-tagline {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
  }
  .features {
    max-width: 1200px;
  }
  .feature-card h3 {
    font-size: 1.3rem;
  }
  .feature-card p {
    font-size: 1rem;
  }
  .feature-icon {
    width: 60px;
    height: 60px;
  }
  .products-wrapper {
    max-width: 1200px;
  }
  .stats-about {
    max-width: 1200px;
  }
  .stat-block .big {
    font-size: 8rem;
  }
  .stat-block .big span {
    font-size: 5rem;
  }
  .stat-block .label {
    font-size: 2rem;
  }
  .stat-block .backed {
    font-size: 1.4rem;
  }
  .stat-block .backed img {
    width: 180px;
  }
  .about-card p {
    font-size: 1.2rem;
  }
  .footer-logo {
    width: 280px;
    height: auto;
  }
  .footer-contact {
    font-size: 1.1rem;
  }
  .precision {
    max-width: 1200px;
    padding: 50px 24px 0;
    min-height: 450px;
  }
  .precision-text h2 {
    font-size: 2.2rem;
  }
  .precision-text > p {
    font-size: 1.1rem;
  }
  .badge-3en1 {
    padding: 14px 36px 14px 24px;
  }
  .badge-3en1 .num {
    font-size: 3.5rem;
  }
  .badge-3en1 .num sub {
    font-size: 2rem;
  }
  .badge-3en1 ul {
    font-size: 0.95rem;
  }
}

/* ─── RESPONSIVE: TABLET ─── */
@media (max-width: 960px) {
  .hero-strip {
    width: min(56%, 480px);
    bottom: 14px;
  }
  .hero-strip p {
    font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  }
  .hero-strip img {
    width: clamp(100px, 14vw, 140px);
  }
  .hero-curve svg {
    height: 110px;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
    padding: 60px 20px 40px;
  }
  .hero-dots {
    bottom: 130px;
  }
  .precision {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 20px 40px;
    min-height: auto;
  }
  .precision-img {
    order: -1;
  }
  .precision-img img {
    max-height: 400px;
  }
  .badge-3en1 {
    justify-content: center;
  }
  .products {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
  }
  .stats-about {
    grid-template-columns: 1fr;
  }
  .stat-block {
    margin-bottom: 20px;
  }
  .stat-block .big {
    font-size: 6rem;
  }
  .stat-block .big span {
    font-size: 4rem;
  }
  .stat-block .label {
    font-size: 1.8rem;
  }
  .stat-block .backed {
    font-size: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-block .backed img {
    width: 160px;
  }
  .about-card {
    max-width: 100%;
  }
}

/* ─── RESPONSIVE: MOBILE ─── */
@media (max-width: 720px) {
  /* Hero */
  .hero {
    height: 100vh;
    height: 100dvh;
  }
  .hero-dots {
    bottom: 100px;
    gap: 8px;
  }
  .hero-dot {
    width: 8px;
    height: 8px;
  }
  .hero-logo {
    width: 90%;
  }
  .hero-tagline {
    width: 90%;
    font-size: 1.1rem;
    text-align: center;
  }

  /* Hero bottom: replace trapezoid with simple white strip */
  .hero-curve svg {
    display: none;
  }
  .hero-bottom {
    background: var(--white);
    line-height: normal;
  }
  .hero-strip {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    width: 100%;
    white-space: normal;
    padding: 16px 20px;
  }
  .hero-strip p {
    font-size: 0.9rem;
    gap: 6px;
  }
  .hero-strip img {
    width: 130px;
    height: auto;
  }

  /* WhatsApp floating */
  .wa-float {
    bottom: 100px;
    top: auto;
    right: 16px;
    padding: 15px;
    font-size: 0;
  }
  .wa-float span {
    display: none;
  }
  .wa-float img {
    width: 36px;
    height: 36px;
  }

  /* Features */
  .features {
    grid-template-columns: 1fr;
    padding: 20px 16px 20px;
    gap: 16px;
  }
  .feature-card {
    padding: 24px 20px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.15);
  }
  .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
  .feature-card h3 {
    font-size: 1.2rem;
  }
  .feature-card p {
    font-size: 0.9rem;
  }

  /* Precision */
  .precision {
    grid-template-columns: 1fr;
    padding: 20px 16px 0;
    min-height: auto;
    text-align: left;
  }
  .precision-text {
    padding-top: 0;
    padding-bottom: 20px;
  }
  .precision-text h2 {
    font-size: 1.8rem;
  }
  .precision-text > p {
    font-size: 1rem;
    line-height: 1.6;
  }
  .precision-img {
    order: 1;
  }
  .precision-img img {
    max-height: 200px;
    margin: 0 auto;
  }
  .badge-3en1 {
    padding: 14px 24px;
    gap: 14px;
    display: flex;
    width: 100%;
    justify-content: center;
  }
  .badge-3en1 .num {
    font-size: 3rem;
  }
  .badge-3en1 .num sub {
    font-size: 1.5rem;
  }
  .badge-3en1 ul {
    font-size: 0.9rem;
  }

  /* Products */
  .products-wrapper {
    padding: 0 16px 20px;
    height: auto;
    display: block;
  }
  .products {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
    padding: 16px;
    gap: 16px;
    border-radius: var(--radius-lg);
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.2);
  }
  .product-card {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
  }
  .product-card .overlay {
    padding: 20px;
  }
  .overlay--no-folleto {
    padding-bottom: calc(20px + 36px + 12px) !important;
  }
  .product-card h3 {
    font-size: 1.1rem;
  }
  .product-card p {
    font-size: 0.8rem;
  }

  /* Stats + About */
  .stats-about {
    grid-template-columns: 1fr;
    padding: 20px 16px 20px;
    gap: 20px;
  }
  .stat-block .big {
    font-size: 4.5rem;
  }
  .stat-block .big span {
    font-size: 2.5rem;
  }
  .stat-block .label {
    font-size: 1.3rem;
  }
  .stat-block .backed {
    font-size: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-block .backed img {
    width: 130px;
  }
  .about-card {
    max-width: 100%;
    padding: 28px 24px;
  }
  .about-card .icon-people {
    width: 36px;
    height: 36px;
  }
  .about-card p {
    font-size: 1rem;
  }

  /* CTA */
  .cta {
    padding: 20px 16px 30px;
  }
  .cta h2 {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  .cta h2 mark {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  /* Footer */
  footer {
    padding: 32px 16px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer-logo {
    width: 200px;
    height: auto;
  }
  .footer-contact {
    text-align: center;
    font-size: 0.95rem;
  }
}
