@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* ═══════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════ */
:root {
  --navy: #1a2744;
  --navy-dark: #0f1a2e;
  --navy-light: #2a3d5f;
  --blue-accent: #2e6da4;
  --blue-light: #e8f0f8;
  --orange: #e8732a;
  --orange-hover: #d4631c;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #212529;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --max-width: 1200px;
  --header-h: 70px;
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ═══════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: box-shadow .3s;
}
.header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img {
  height: 42px;
  width: auto;
  mix-blend-mode: multiply;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--navy);
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  padding: 10px 22px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-cta:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}
.btn-cta i { font-size: .8rem; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--navy);
  cursor: pointer;
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
  margin-top: var(--header-h);
  position: relative;
  height: 480px;
  background: linear-gradient(135deg, rgba(15,26,46,.82), rgba(26,39,68,.75)),
              url('extracted_media/image4.jpeg') center/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  color: var(--white);
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hero p {
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 600px;
  margin-bottom: 32px;
  opacity: .9;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-hero.primary {
  background: var(--orange);
  color: var(--white);
}
.btn-hero.primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
}
.btn-hero.secondary {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-hero.secondary:hover {
  background: rgba(255,255,255,.25);
}

/* ═══════════════════════════════════════
   SECTION SHARED
   ═══════════════════════════════════════ */
.section {
  padding: 72px 24px;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 48px;
}
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--orange);
  margin: 12px auto 0;
  border-radius: 2px;
}
.bg-light { background: var(--gray-50); }

/* ═══════════════════════════════════════
   ABOUT / PRESENTACION
   ═══════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 16px;
}
.about-text p {
  color: var(--gray-700);
  font-size: .95rem;
  margin-bottom: 14px;
  line-height: 1.7;
}
.about-img {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.about-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* ═══════════════════════════════════════
   PRODUCT CATEGORIES CARDS
   ═══════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.1);
}
.category-card-img {
  height: 180px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}
.category-card-img img {
  max-height: 100%;
  object-fit: contain;
}
.category-card-body {
  padding: 20px;
}
.category-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.category-card-body p {
  font-size: .85rem;
  color: var(--gray-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-card-body .card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue-accent);
  margin-top: 12px;
  transition: gap .2s;
}
.category-card-body .card-link:hover {
  gap: 8px;
}

/* ═══════════════════════════════════════
   PRODUCT DETAIL (shown when clicking a category)
   ═══════════════════════════════════════ */
.product-detail {
  display: none;
  animation: fadeSlideIn .35s ease-out;
  min-height: 70vh;
}
.product-detail.active { display: block; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--gray-300);
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  color: var(--gray-700);
  transition: all .2s;
}
.btn-back:hover {
  background: var(--gray-100);
  border-color: var(--gray-500);
}
.detail-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--navy);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}
.detail-image {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.detail-image img {
  max-height: 280px;
  object-fit: contain;
}
.detail-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}
.detail-info p {
  font-size: .9rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
}
.detail-info ul {
  margin-bottom: 20px;
}
.detail-info ul li {
  font-size: .88rem;
  color: var(--gray-700);
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
}
.detail-info ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* Spec tables */
.spec-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  margin-bottom: 0;
  min-width: 500px;
}
.spec-table thead th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
}
.spec-table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}
.spec-table tbody tr:hover {
  background: var(--blue-light);
}
.spec-table tbody tr:nth-child(even) {
  background: var(--gray-50);
}
.spec-table tbody tr:nth-child(even):hover {
  background: var(--blue-light);
}
.spec-row-clickable {
  cursor: pointer;
  transition: background .15s;
}
.spec-row-clickable:hover {
  background: var(--blue-light) !important;
}
.spec-wa-cell {
  text-align: center;
  color: #25d366;
  font-size: 1.1rem;
  opacity: .4;
  transition: opacity .2s;
}
.spec-row-clickable:hover .spec-wa-cell {
  opacity: 1;
}

.btn-quote-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: var(--white);
  padding: 12px 24px;
  font-size: .9rem;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s;
  margin-top: 8px;
}
.btn-quote-product:hover { background: #1ebe57; }
.btn-quote-product i { font-size: 1.1rem; }

/* ═══════════════════════════════════════
   CERTIFICATIONS
   ═══════════════════════════════════════ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cert-icon {
  width: 64px;
  height: 64px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.cert-item h4 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
}
.cert-item p {
  font-size: .8rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 20px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-item i {
  color: var(--orange);
  font-size: 1.2rem;
  margin-top: 3px;
}
.contact-item h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.contact-item p,
.contact-item a {
  font-size: .88rem;
  color: var(--gray-500);
}
.contact-item a:hover { color: var(--blue-accent); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--gray-900);
  transition: border-color .2s;
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue-accent);
}
.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p {
  font-size: .85rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 340px;
}
.footer-brand img {
  height: 36px;
  background: var(--white);
  padding: 6px 12px;
  border-radius: 4px;
}
.footer h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: .95rem;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  padding: 4px 0;
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  margin-bottom: 10px;
}
.footer-contact-item i {
  color: var(--orange);
  font-size: .9rem;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: .9rem;
  transition: background .2s;
}
.footer-social a:hover { background: var(--orange); }

/* ═══════════════════════════════════════
   WHATSAPP FAB
   ═══════════════════════════════════════ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(37,211,102,.4);
  z-index: 999;
  transition: transform .2s;
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: scale(1.08);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { height: 400px; }
  .hero h1 { font-size: 2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    gap: 8px;
    align-items: stretch;
  }
  .nav-links.open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
    display: block;
    font-size: 0.95rem;
  }
  .nav-links.open a.active::after {
    bottom: 0;
  }
  .nav-links.open .btn-cta {
    margin-top: 12px;
    justify-content: center;
    width: 100%;
    padding: 12px;
  }
  .menu-toggle { display: block; }
  .hero { height: auto; padding: 60px 0; min-height: 380px; }
  .hero h1 { font-size: 1.65rem; }
  .hero p { font-size: .92rem; margin-bottom: 24px; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-buttons .btn-hero { width: 100%; justify-content: center; }
  .section { padding: 48px 16px; }
  .section-title { font-size: 1.35rem; }
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .detail-header { flex-wrap: wrap; gap: 8px; }
  .detail-title { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr; }
  .detail-layout { gap: 20px; }
}
