@import url("./maintenance.css");

/* ═══════════════════════════════════════════════════
   Santa Cruz SRL — Design System
   Paleta: azul del logo #004a99 / amarillo #fee12b
   ═══════════════════════════════════════════════════ */

:root {
  /* Brand */
  --brand-blue: #004a99;
  --brand-blue-dark: #003470;
  --brand-blue-deeper: #00254f;
  --brand-blue-light: #1a6fc4;
  --brand-blue-soft: #e8f0fe;
  --brand-yellow: #fee12b;
  --brand-yellow-hover: #ffe94d;
  --brand-yellow-soft: #fef9e0;
  --brand-oferta: #e63530;
  --brand-oferta-active: #ff4a44;
  --brand-whatsapp: #25d366;
  --font-brand: "Inter", system-ui, sans-serif;

  /* Alias legacy */
  --color-navy: var(--brand-blue);
  --color-navy-light: var(--brand-blue-light);
  --color-blue: var(--brand-blue);
  --color-blue-dark: var(--brand-blue-dark);
  --color-blue-light: var(--brand-blue-light);
  --color-yellow: var(--brand-yellow);
  --color-yellow-soft: var(--brand-yellow-soft);
  --color-yellow-ring: var(--brand-yellow);

  /* Neutral */
  --color-white: #ffffff;
  --color-bg: #f4f6f9;
  --color-bg-alt: #eef1f5;
  --color-text: #1a1a2e;
  --color-text-secondary: #4a5568;
  --color-muted: #718096;
  --color-border: #e2e8f0;
  --color-border-light: #f0f0f0;

  /* Accent */
  --whatsapp: #25d366;
  --danger: #e53e3e;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 16px rgba(0, 74, 153, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 74, 153, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 74, 153, 0.15);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Dancing Script", cursive;

  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  min-width: 0;
}

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

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-blue-dark);
}

button {
  font-family: inherit;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Evita el botón “×” nativo de inputs search (tooltips “Cerrar” / “Clear” en algunos navegadores) */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* ── Section Titles ── */
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-blue-dark);
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  letter-spacing: -0.01em;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--brand-yellow);
  border-radius: 2px;
}

.tagline-brand {
  font-size: 0.82rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0.25rem 0 1.25rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg, #e8ecf1 25%, #f4f6f9 50%, #e8ecf1 75%);
  background-size: 200% 100%;
  animation: sk 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes sk {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ── WhatsApp Button ── */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--whatsapp);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  background: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-wa svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ── WhatsApp Floating ── */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: all var(--transition);
  border: none;
  animation: wa-pulse 2s infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.wa-float-wrap {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.wa-float-wrap .wa-float {
  position: static;
}

.wa-float-tooltip {
  display: none !important;
}

.wa-float__label {
  display: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .wa-float-wrap {
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  }

  .wa-float-wrap .wa-float {
    display: inline-flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    width: auto;
    min-height: 52px;
    height: 52px;
    padding: 0 1.05rem 0 0.9rem;
    border-radius: 999px;
    animation: none;
  }

  .wa-float-wrap .wa-float svg {
    width: 26px;
    height: 26px;
  }

  .wa-float__label {
    display: inline;
  }
}

@keyframes wa-pulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 4px 28px rgba(37, 211, 102, 0.65);
  }
}

/* ── Generic Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--brand-blue);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--brand-blue);
  color: #fff;
  text-decoration: none;
}

.empty-msg {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--color-muted);
  font-size: 0.95rem;
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease-out both;
}

.animate-fade {
  animation: fadeIn 0.4s ease-out both;
}

.section-title {
  animation: fadeInUp 0.5s ease-out both;
}

.tagline-brand {
  animation: fadeIn 0.6s ease-out 0.2s both;
}

.grid-productos {
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

.sidebar-cats {
  animation: fadeInUp 0.5s ease-out 0.15s both;
}

.carousel-wrap {
  animation: scaleIn 0.5s ease-out 0.1s both;
}
