/* =============================
   RESET BÁSICO
============================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #111827;
  background-color: #ffffff;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =============================
   VARIABLES
============================= */
:root {
  --color-primary: #1e4dbc;
  --color-primary-strong: #183d96;
  --color-accent: #4d8bff;

  --color-bg: #f4f6fb;
  --color-bg-soft: #f9fafb;
  --color-surface: #ffffff;
  --color-text-main: #111827;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 8px 24px rgba(15, 23, 42, 0.06);

  --max-width: 1160px;
}

/* =============================
   LAYOUT GENERAL
============================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

main {
  background: linear-gradient(180deg, #ffffff, #f3f4ff);
}

/* =============================
   HEADER
============================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

/* Marca */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 40px;
  width: auto;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Nav desktop */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  position: relative;
}

/* subrayado animado */
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.25s ease;
}

.nav-desktop a:hover::after {
  width: 100%;
}

/* Toggle móvil */
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-primary);
}

/* Nav móvil */
.nav-mobile {
  display: none;
}

/* =============================
   HERO
============================= */
.hero {
  padding: 80px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.12;
  font-weight: 800;
  color: var(--color-text-main);
  margin: 0 0 10px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

.hero-ctas {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Imagen hero */
.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

/* =============================
   BOTONES
============================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 11px 22px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* principal */
.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(30, 77, 188, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(24, 61, 150, 0.38);
}

/* secundario */
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid rgba(30, 77, 188, 0.55);
}

.btn-outline:hover {
  background: rgba(30, 77, 188, 0.08);
  border-color: var(--color-primary);
}

/* icono */
.btn-icon {
  font-size: 1.05rem;
  display: inline-block;
  transition: transform 0.25s ease;
}

.btn-primary:hover .btn-icon {
  transform: translate(3px, -2px);
}

.btn-outline:hover .btn-icon {
  transform: translateX(4px);
}

/* =============================
   SECCIÓN CATÁLOGO CTA
============================= */
.section {
  padding: 64px 0;
}

.section-catalog-cta {
  background: linear-gradient(
    90deg,
    rgba(30, 77, 188, 0.07),
    rgba(77, 139, 255, 0.04)
  );
}

.catalog-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.catalog-cta-inner h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.catalog-cta-inner p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 520px;
}

/* =============================
   SERVICIOS / BENEFICIOS
============================= */
.section-services,
.section-benefits,
.section-featured {
  background: #ffffff;
}

.section-benefits {
  background: var(--color-bg-soft);
}

.section-title {
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 0.98rem;
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

/* grid */
.grid {
  display: grid;
  gap: 22px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* cards */
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.service-card h3,
.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.service-card p,
.benefit-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* =============================
   PRODUCTOS DESTACADOS
============================= */
.section-featured {
  background: linear-gradient(
    180deg,
    #ffffff,
    rgba(244, 246, 251, 0.9)
  );
}

#featured-products {
  margin-top: 18px;
}

/* Tarjeta de producto (lo que inyectemos luego) */
.product-card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card img {
  border-radius: var(--radius-sm);
  background: radial-gradient(circle at 20% 0, #e0e7ff, #f1f5f9);
}

.product-card h3 {
  margin: 6px 0 2px;
  font-size: 1rem;
}

.product-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.featured-cta {
  margin-top: 26px;
  text-align: center;
}

/* =============================
   FOOTER
============================= */
.site-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 40px 0 28px;
  margin-top: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: flex-start;
}

.footer-logo {
  height: 34px;
  margin-bottom: 10px;
}

.footer-text {
  font-size: 0.9rem;
  color: #9ca3af;
}

.footer-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  font-size: 0.9rem;
  color: #d1d5db;
  margin-bottom: 4px;
}

.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 10px;
  text-align: center;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-media {
    order: -1;
  }

  .hero {
    padding-top: 96px;
  }

  .catalog-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 10px 0;
  }

  /* nav: ocultar desktop, mostrar móvil */
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-mobile {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px 20px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-mobile a {
    font-size: 0.96rem;
    font-weight: 500;
  }

  /* cuando JS agregue una clase .open, se despliega */
  .nav-mobile.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .container {
    padding: 0 16px;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Tabs de ficha de producto */
.product-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--color-border);
}

.product-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 999px 999px 0 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.product-tab-btn.active {
  background: #e0e7ff;
  color: var(--color-primary);
}

.product-tab-panel p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}
