:root {
  --primary: #2563EB;
  --secondary: #F59E0B;
  --background: #F8FAFC;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.90);
  --text: #0F172A;
  --text-muted: #475569;
  --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
  --radius: 28px;
  --transition: 0.35s ease;
}

[data-theme="dark"] {
  --background: #050816;
  --surface: rgba(11, 21, 43, 0.72);
  --surface-strong: rgba(12, 23, 48, 0.92);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 24%), radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.12), transparent 18%), var(--background);
  color: var(--text);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(18px);
  background: rgba(248, 250, 252, 0.62);
  border-bottom: 1px solid rgba(255, 255, 255, 0.44);
}

[data-theme="dark"] .header {
  background: rgba(5, 8, 22, 0.68);
  border-color: rgba(255, 255, 255, 0.08);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

[data-theme="dark"] .header.scrolled {
  background: rgba(5, 8, 22, 0.82);
  border-color: rgba(255, 255, 255, 0.12);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--secondary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.theme-toggle,
.nav-toggle {
  width: 46px;
  height: 46px;
  background: var(--surface);
  border: none;
  border-radius: 18px;
  box-shadow: var(--shadow);
  color: var(--text);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.theme-toggle:hover,
.nav-toggle:hover {
  transform: translateY(-2px);
}

.theme-icon {
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  position: relative;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 32px; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--background);
  color: var(--text);
  gap: 1rem;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

.preloader-ring {
  width: 72px;
  height: 72px;
  border: 6px solid rgba(37, 99, 235, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1.3s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.section-header h2 {
  font-size: clamp(2rem, 2.5vw, 3rem);
  line-height: 1.05;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 4rem 0 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.04), rgba(248, 250, 252, 0.1));
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), transparent 20%), radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.16), transparent 15%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 2rem;
  width: min(1120px, 100%);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--secondary);
}

.hero-copy h1 {
  font-size: clamp(3rem, 4vw, 4.8rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.85;
  max-width: 520px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 65%);
}

.hero-media {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
}

.hero-card {
  width: min(540px, 100%);
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.28));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.hero-card img {
  width: 100%;
  display: block;
}

.hero-floating {
  position: absolute;
  padding: 1rem 1.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  font-weight: 700;
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.11);
}

.floating-1 {
  top: 18%;
  left: 8%;
}

.floating-2 {
  bottom: 18%;
  right: 12%;
}

.floating-3 {
  top: 40%;
  right: -1%;
}

.glass-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.categories-grid,
.products-grid,
.features-grid,
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.category-card {
  padding: 1.4rem;
  border-radius: 24px;
  text-align: center;
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform var(--transition), background var(--transition);
}

.category-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(245, 158, 11, 0.14));
}

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  overflow: hidden;
  border-radius: 30px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.product-copy {
  padding: 1.6rem;
}

.product-copy h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.product-copy p {
  color: var(--text-muted);
  line-height: 1.7;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.about-copy h2 {
  font-size: clamp(2.2rem, 2.7vw, 3.4rem);
  margin: 1rem 0 1.6rem;
}

.about-copy p {
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 560px;
}

.about-highlights {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.about-item {
  display: grid;
  gap: 0.5rem;
  padding: 1.35rem;
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.about-item .icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-weight: 700;
}

.about-media-card {
  overflow: hidden;
  border-radius: 36px;
  max-width: 100%;
}

.about-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  padding: 2rem 1.6rem;
  border-radius: 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 1.25rem;
}

.feature-card h3 {
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 28px;
  transition: transform var(--transition), filter var(--transition);
}

.gallery-grid img:hover {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.gallery-grid img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid img:nth-child(4) { grid-row: span 2; }

.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonial-card {
  padding: 2rem;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: var(--surface-strong);
}

.testimonial-card p {
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.testimonial-author strong {
  display: block;
  margin-bottom: 0.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

.contact-copy h2 {
  font-size: clamp(2rem, 2.5vw, 3rem);
  margin: 1rem 0 1.5rem;
}

.contact-copy p {
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 560px;
}

.contact-details {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.3rem;
  border-radius: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.contact-icon {
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.16);
}

.contact-item a {
  color: var(--text);
  font-weight: 600;
}

.contact-form {
  padding: 2rem;
  border-radius: 32px;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
}

.map-frame {
  margin-top: 2.5rem;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.floating-actions {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  display: grid;
  gap: 0.9rem;
  z-index: 20;
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 56px;
  border-radius: 999px;
  border: none;
  padding: 0 1rem;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition);
}

.floating-btn:hover {
  transform: translateY(-3px);
}

.floating-btn.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
}

.floating-btn.call {
  background: linear-gradient(135deg, #2563EB, #F59E0B);
  color: white;
}

.floating-btn.top {
  background: var(--surface);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}

.floating-btn.top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer {
  padding: 3rem 0 2rem;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), var(--background));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer p,
.footer a {
  color: var(--text-muted);
}

.footer-links,
.footer-contact,
.footer-social {
  display: grid;
  gap: 0.9rem;
}

.footer-links a,
.footer-contact p,
.footer-social a {
  display: inline-block;
}

.footer-social .social-icons {
  display: flex;
  gap: 0.85rem;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
  transition: transform var(--transition);
}

.footer-social a:hover {
  transform: translateY(-3px);
}

.footer-copy {
  text-align: center;
  color: var(--text-muted);
}

.animate-fade-up,
.animate-fade-left,
.animate-fade-right,
.animate-fade-up.delay-100,
.animate-fade-up.delay-150 {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.animate-fade-left { transform: translateX(-30px); }
.animate-fade-right { transform: translateX(30px); }

.reveal {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid img:nth-child(1),
  .gallery-grid img:nth-child(4) {
    grid-column: span 2;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .header-content {
    align-items: flex-start;
  }

  .nav {
    position: fixed;
    inset: 74px 1.5rem auto 1.5rem;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface-strong);
    border-radius: 28px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-link {
    font-size: 1rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-grid {
    gap: 1.5rem;
  }

  .hero-copy h1 {
    font-size: 2.8rem;
  }

  .hero-floating {
    display: none;
  }

  .categories-grid,
  .features-grid,
  .products-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .header {
    padding: 0 0.5rem;
  }

  .header-content {
    padding: 0.85rem 0;
  }

  .section {
    padding: 4rem 0;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 0.98rem;
  }

  .btn {
    width: 100%;
  }

  .categories-grid {
    gap: 0.95rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
