:root {
  --blue: #213a81;
  --blue-dark: #152a68;
  --gray: #6b7280;
  --gray-light: #d9d9d9;
  --gray-bg: #f5f7fa;
  --white: #fff;
  --green: #25d366;
  --shadow: 0 4px 24px rgba(33, 58, 129, 0.08);
  --radius: 12px;
  --radius-lg: 30px;
  --container: 1200px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.header.scrolled { box-shadow: var(--shadow); }

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

.logo img { height: 40px; width: auto; }

.nav { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
  position: relative;
}

.nav a:hover,
.nav a.active { color: var(--blue); }

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--blue);
}

.menu-toggle svg { display: block; }

/* Hero slideshow */
.hero {
  margin-top: var(--header-h);
  position: relative;
  height: clamp(280px, 45vw, 520px);
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.hero__slide.is-active {
  opacity: 1;
}

/* Sections */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }

.section--gray { background: var(--gray-bg); }

.section__title {
  color: var(--blue);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin: 0 0 1rem;
  text-align: center;
}

.section__subtitle {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: var(--gray);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.about-grid > img:first-child,
.about-grid__photo {
  border-radius: var(--radius);
  width: auto;
  max-width: 100%;
  height: auto;
}

.about-grid .logo-inline {
  width: auto;
  max-width: 178px;
}

.about-grid h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.35;
  margin: 1rem 0;
  font-weight: 600;
}

.about-grid h2 em {
  font-style: italic;
  font-weight: 400;
}

.about-grid p { margin: 0 0 1rem; color: #444; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}

.feature {
  padding: 2rem 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature + .feature { border-left: 1px solid var(--gray-light); }

.feature__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
}

.feature__icon svg { width: 22px; height: 22px; fill: currentColor; }

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray);
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.5rem;
}

.product-card {
  text-align: center;
}

.product-card img {
  width: 100%;
  aspect-ratio: 496 / 400;
  object-fit: contain;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.product-card p {
  font-size: 0.875rem;
  color: var(--gray);
  margin: 0 0 1.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  background: var(--blue);
  color: var(--white);
}

.btn:hover { background: var(--blue-dark); }

.btn:active { transform: scale(0.98); }

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

.btn--whatsapp { background: var(--green); text-decoration: none; }

.btn--whatsapp:hover { background: #1ebe5b; }

.product-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.product-card__actions .btn { gap: 0.4rem; padding: 0.225rem 0.75rem; text-align: center; }

.product-card__actions .btn svg { width: 1.1em; height: 1.1em; flex-shrink: 0; }

/* Accordion */
.accordion { max-width: 900px; margin: 0 auto; }

.accordion details {
  border-bottom: 1px solid var(--gray-light);
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 3rem 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--blue);
  position: relative;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  line-height: 1;
}

.accordion details[open] summary::after { content: "−"; }

.accordion__body {
  padding: 0 0 1.5rem;
  color: #444;
  font-size: 0.9375rem;
}

.accordion__body ul {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.accordion__body li { margin-bottom: 0.35rem; }

/* Company */
.company-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.company-header h2 {
  color: var(--blue);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.company-header p {
  color: var(--blue);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  margin: 0;
}

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

.company-card { text-align: center; }

.company-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
}

.company-card__icon svg { width: 24px; height: 24px; fill: currentColor; }

.company-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  color: var(--blue);
}

.company-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.footer {
  background: var(--blue);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer img.logo-white {
  height: 48px;
  width: auto;
  margin-bottom: 1rem;
}

.footer p { margin: 0 0 0.75rem; font-size: 0.9375rem; line-height: 1.6; }

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin: 0 0 1rem;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li { margin-bottom: 0.5rem; }

.footer a {
  font-size: 0.9375rem;
  transition: opacity 0.2s;
}

.footer a:hover { opacity: 0.8; }

.footer__cert img { width: 80px; margin-top: 0.5rem; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
}

.footer__social svg { width: 20px; height: 20px; fill: currentColor; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.modal.is-open { display: flex; }

.modal__content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  width: min(100%, 480px);
  margin-top: 10vh;
  position: relative;
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
}

.modal h2 {
  margin: 0 0 1.5rem;
  font-size: 1.375rem;
  font-weight: 500;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  border: 1px solid var(--gray-light);
  border-radius: 6px;
  transition: border-color 0.2s;
}

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

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

.form-feedback {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.form-feedback--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-feedback--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

body.modal-open { overflow: hidden; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 105;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: bottom 0.25s ease;
}

body.cookie-visible .whatsapp-float {
  bottom: 5.5rem;
}

.whatsapp-float__label {
  background: var(--green);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float__label {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s;
}

.whatsapp-float__btn:hover { transform: scale(1.06); }

.whatsapp-float__btn svg { width: 28px; height: 28px; fill: currentColor; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  background: var(--white);
  border-top: 1px solid var(--gray-light);
  padding: 1rem 1.5rem;
  padding-right: calc(52px + 2.5rem);
  display: none;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__inner {
  width: min(100%, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cookie-banner__icon { width: 48px; flex-shrink: 0; }

.cookie-banner__text {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--gray);
}

.cookie-banner__text a { color: var(--blue); text-decoration: underline; }

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner__actions .btn--outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.mobile-nav.is-open { opacity: 1; visibility: visible; }

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(280px, 85vw);
  height: 100%;
  background: var(--white);
  padding: 5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.25s;
}

.mobile-nav.is-open .mobile-nav__panel { transform: translateX(0); }

.mobile-nav__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav li { border-bottom: 1px solid var(--gray-light); }

.mobile-nav a {
  display: block;
  padding: 1rem 0;
  font-weight: 500;
  color: var(--blue);
}

/* Responsive */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .company-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
}

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

  .about-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; border-radius: var(--radius); }
  .feature + .feature { border-left: none; border-top: 1px solid var(--gray-light); }

  .products-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .cookie-banner {
    padding: 1rem;
  }

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__icon { display: none; }

  body.cookie-visible .whatsapp-float {
    bottom: 7.5rem;
  }

  .whatsapp-float__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide { transition: none; }
  .modal__content { animation: none; }
}
