:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F5F5;
  --surface: #FFFFFF;
  --surface-strong: #000000;
  --text: #111111;
  --text-soft: #666666;
  --brand: #0B3DFF;
  --brand-strong: #002EB8;
  --accent: #0B3DFF;
  --border: #E5E5E5;
  --shadow: 0 14px 42px rgba(0, 0, 0, 0.08);
  --transition-normal: 0.2s ease;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --font-heading: "Sora", sans-serif;
  --font-body: "Manrope", sans-serif;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 18px;
  --border-radius-xl: 24px;
}


* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  min-height: 100vh;
  overflow-x: clip;
}

img,
video,
svg,
canvas {
  max-width: 100%;
}

img,
video {
  height: auto;
}

body:not(.admin-shell) main,
body:not(.admin-shell) .encabezado,
body:not(.admin-shell) .menu,
body:not(.admin-shell) .footer-principal,
body:not(.admin-shell) .hero,
body:not(.admin-shell) .stats-grid,
body:not(.admin-shell) .section-header,
body:not(.admin-shell) .slider,
body:not(.admin-shell) .footer-contenido {
  min-width: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.encabezado {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contenedor-header {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: clamp(118px, 12vw, 150px);
  height: auto;
  display: block;
}

.info-header {
  text-align: right;
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  color: var(--text-soft);
  display: grid;
  gap: 2px;
}

.brand-kicker {
  color: var(--brand);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0B3DFF;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(11, 61, 255, 0.25);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.75;
  }
}

.menu {
  position: sticky;
  top: 0;
  z-index: 980;
  transition: top 0.3s ease;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu ul {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.menu li {
  min-width: 0;
}

.menu a {
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.menu a:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}

.menu a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.menu a.activo {
  background: var(--brand);
  color: #fff;
}

body:not(.admin-shell) main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 24px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.hero-texto,
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow);
  min-width: 0;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  margin-bottom: 14px;
}

.hero-texto p {
  color: var(--text-soft);
  line-height: 1.6;
}

.hero-cta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-panel h3 {
  margin-bottom: 16px;
}

.hero-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
}

.hero-panel i {
  color: var(--brand);
}

.stats-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.stat-card h3 {
  font-size: 1.9rem;
  color: var(--brand);
}

.stat-card p {
  color: var(--text-soft);
}

.section-header {
  margin: 42px 0 18px;
}

.section-header p {
  color: var(--text-soft);
  margin-top: 8px;
}

.slider {
  position: relative;
}

.slider-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
}

.producto-slide {
  min-width: min(100%, 360px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.producto-slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.producto-slide h3 {
  margin-bottom: 8px;
}

.producto-slide p {
  color: var(--text-soft);
  line-height: 1.5;
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
}

html[data-theme="dark"] .flecha {
  color: #000000;
}

.flecha.izquierda {
  left: -16px;
}

.flecha.derecha {
  right: -16px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primario {
  background: var(--brand);
  color: #fff;
}

.btn-primario:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(11, 61, 255, 0.28);
}

.btn-secundario {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secundario:hover {
  background: var(--bg-soft);
  border-color: var(--brand);
}

.btn-full {
  width: 100%;
}

.footer-principal {
  margin-top: 48px;
  padding: 32px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-contenido {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.footer-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.footer-col h4 {
  margin-bottom: 4px;
}

.footer-col p,
.footer-col a {
  color: var(--text-soft);
  text-decoration: none;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--brand);
}

.redes-sociales {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.whatsapp-float {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 46px;
  text-decoration: none;
  background: #0B3DFF;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(11, 61, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(11, 61, 255, 0.45);
}

.whatsapp-float img {
  width: 24px;
  height: 24px;
  display: block;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-contenido {
    grid-template-columns: 1fr;
  }

  .flecha {
    display: none;
  }

  .slider-container {
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

@media (max-width: 680px) {
  .encabezado {
    padding: 12px 16px;
  }

  .contenedor-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .logo img {
    width: clamp(105px, 28vw, 130px);
  }

  .info-header {
    text-align: right;
    font-size: 0.78rem;
  }

  .menu {
    padding: 8px 12px;
  }

  .menu ul {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    gap: 8px;
    padding: 2px 4px 4px;
  }

  .menu ul::-webkit-scrollbar {
    display: none;
  }

  .menu li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .menu a {
    width: auto;
    text-align: left;
    white-space: nowrap;
    padding: 8px 13px;
    font-size: 0.86rem;
    min-height: 38px;
  }

  body:not(.admin-shell) main {
    padding: 20px 16px 20px;
  }

  .footer-principal {
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
  }
}

@media (max-width: 480px) {
  .encabezado {
    padding: 10px 14px;
  }

  .contenedor-header {
    gap: 10px;
  }

  .brand-kicker {
    font-size: 0.76rem;
  }

  .info-header p:last-child {
    font-size: 0.72rem;
  }

  body:not(.admin-shell) main {
    padding: 16px 14px 20px;
  }

  .footer-principal {
    padding: 20px 14px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .hero-texto,
  .hero-panel,
  .stat-card,
  .footer-col,
  .tools-row,
  .resumen-box,
  .form-box,
  .contacto,
  .nosotros-contenido,
  .admin-card,
  .panel-card {
    border-radius: 16px;
  }
}

@media (max-width: 360px) {
  .contenedor-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .info-header {
    text-align: left;
  }
}


/* ==========================================================================
   ESTILOS ESPECÍFICOS DE INDEX.HTML
   ========================================================================== */

/* --------------------------------------------------------------------------
   HERO INICIO (nuevo layout)
-------------------------------------------------------------------------- */
.hero-inicio {
  padding: var(--space-xl) var(--space-md);
  background: var(--bg);
}

.hero-inicio-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-xl);
}

.hero-inicio-texto {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.kicker-inicio {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-inicio-titulo {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.hero-inicio-subtitulo {
  font-size: 1.1rem;
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-inicio-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-inicio-cta .btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hero-inicio-cta .btn-primario {
  background: var(--brand);
  color: #fff;
  border: 2px solid var(--brand);
}

.hero-inicio-cta .btn-primario:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 61, 255, 0.3);
}

.hero-inicio-cta .btn-secundario {
  background: var(--bg-soft);
  color: var(--text);
  border: 2px solid var(--border);
}

.hero-inicio-cta .btn-secundario:hover {
  background: var(--surface);
  border-color: var(--brand);
}

.hero-inicio-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: var(--shadow);
}

.hero-inicio-panel-titulo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.hero-inicio-panel-lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
}

.hero-inicio-panel-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.hero-inicio-panel-item i {
  color: var(--brand);
  font-size: 1.2rem;
}

/* --------------------------------------------------------------------------
   ESTADÍSTICAS (nuevo layout)
-------------------------------------------------------------------------- */
.estadisticas {
  padding: var(--space-2xl) var(--space-md);
  background: var(--surface);
}

.estadisticas-container {
  max-width: 1180px;
  margin: 0 auto;
}

.estadisticas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-md);
}

.estadistica-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  text-align: center;
}

.estadistica-cantidad {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: var(--space-sm);
}

.estadistica-texto {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   PRODUCTOS DESTACADOS (nuevo layout)
-------------------------------------------------------------------------- */
.productos-destacados {
  padding: var(--space-2xl) var(--space-md);
  background: var(--surface);
}

.productos-destacados-container {
  max-width: 1180px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   SLIDER (conservado de EstiloInicio.css original)
-------------------------------------------------------------------------- */
.slider {
  position: relative;
}

.slider-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
}

.producto-slide {
  min-width: min(100%, 360px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.producto-slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.producto-slide-titulo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.producto-slide-texto {
  color: var(--text-soft);
  line-height: 1.5;
}

.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-strong);
  color: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.flecha.izquierda {
  left: -16px;
}

.flecha.derecha {
  right: -16px;
}

/* --------------------------------------------------------------------------
   FOOTER ECOMMERCE (nuevo layout)
-------------------------------------------------------------------------- */
.footer-main {
  background: var(--bg);
  color: var(--text);
  padding: var(--space-2xl) var(--space-md) var(--space-lg);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.footer-logo span {
  color: var(--brand);
}

.footer-text {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.footer-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

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

.footer-links li {
  margin-bottom: var(--space-xs);
}

.footer-links a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-contact {
  color: var(--text-soft);
  line-height: 1.7;
}

.footer-wa-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: #666666;
  font-weight: 700;
  text-decoration: none;
  margin-top: var(--space-xs);
}

.footer-wa-link:hover {
  color: #666666;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  color: var(--text);
  font-size: 1.4rem;
  transition: color var(--transition-normal);
}

.footer-social a:hover {
  color: var(--brand);
}

.footer-bottom {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  padding-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   BOTÓN FLOTANTE WHATSAPP (nuevo layout)
-------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #0B3DFF;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(11, 61, 255, 0.4);
  z-index: 999;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(11, 61, 255, 0.5);
}

/* --------------------------------------------------------------------------
   RESPONSIVE INDEX.HTML
-------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-inicio-container {
    grid-template-columns: 1fr;
  }

  .estadisticas-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-inicio {
    padding: var(--space-xl) var(--space-md);
  }

  .hero-inicio-titulo {
    font-size: 2.2rem;
  }

  .slider-container {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .flecha {
    display: none;
  }
}

@media (max-width: 480px) {
  .estadistica-cantidad {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-inicio-cta {
    flex-direction: column;
  }

  .hero-inicio-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 375px) {
  .footer-logo {
    font-size: 1.5rem;
  }
}
