@tailwind base;
@tailwind components;
@tailwind utilities;

/* Estilos personalizados */
.modal {
    @apply fixed inset-0 bg-black bg-opacity-50 z-50 hidden;
}

.modal.show {
    @apply flex items-center justify-center;
}

.modal-content {
    @apply bg-[#1F2937] rounded-lg shadow-xl max-w-2xl w-full mx-4;
}

.message-area {
    @apply fixed top-4 right-4 z-50;
}

.alert {
    @apply p-4 mb-4 rounded-lg shadow-lg transition-all duration-300;
}

.alert-success {
    @apply bg-green-500 text-white;
}

.alert-error {
    @apply bg-red-500 text-white;
}

/* Hero storefront — animaciones */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.75s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up {
    animation: none;
  }
}

/* —— Hero storefront (mockup Papelería Express) —— */
.hero-storefront {
  --hero-blue: #2563eb;
  --hero-blue-hover: #1d4ed8;
  --hero-ink: #0f172a;
  --hero-muted: #64748b;
  --hero-line: #e2e8f0;
  background: linear-gradient(105deg, #f8fafc 0%, #ffffff 48%, #eff6ff 100%);
  overflow: hidden;
}

.hero-storefront__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

@media (min-width: 1024px) {
  .hero-storefront__inner {
    padding: 3.25rem 2.5rem 2rem;
  }
}

.hero-storefront__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-storefront__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
  }
}

.hero-storefront__eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #94a3b8;
}

.hero-storefront__title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hero-ink);
}

.hero-storefront__title-accent {
  display: block;
  color: var(--hero-blue);
}

.hero-storefront__lead {
  margin: 1.15rem 0 0;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--hero-muted);
}

.hero-storefront__search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.75rem;
  max-width: 34rem;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--hero-line);
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.hero-storefront__search:focus-within {
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
}

.hero-storefront__search-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: none;
  color: #94a3b8;
}

.hero-storefront__search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  color: var(--hero-ink);
  outline: none;
  box-shadow: none !important;
}

.hero-storefront__search-input::placeholder {
  color: #94a3b8;
}

.hero-storefront__search-btn {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--hero-blue);
  color: #fff;
  font-weight: 700;
  padding: 0.7rem 1.35rem;
  transition: background 0.2s ease, transform 0.15s ease;
}

.hero-storefront__search-btn:hover {
  background: var(--hero-blue-hover);
}

.hero-storefront__search-btn:active {
  transform: scale(0.97);
}

.hero-storefront__trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .hero-storefront__trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-storefront__trust li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 600;
  color: #334155;
}

.hero-storefront__trust-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  flex: none;
  border-radius: 0.75rem;
  background: #eff6ff;
  color: var(--hero-blue);
}

.hero-storefront__trust-icon svg {
  display: block;
}

.hero-cats__cta svg {
  flex: none;
}

.hero-strip__list svg {
  color: var(--hero-blue);
  flex: none;
}

.hero-storefront__visual {
  position: relative;
}

.hero-storefront__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.75rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  background: #e2e8f0;
}

/* Categorías — fila tipo mockup */
.hero-cats {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--hero-line);
  border-bottom: 1px solid var(--hero-line);
}

.hero-cats__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

@media (min-width: 1024px) {
  .hero-cats__inner {
    padding: 1.1rem 2.5rem;
  }
}

.hero-cats__row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hero-cats__row::-webkit-scrollbar {
  display: none;
}

.hero-cats__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 0;
  min-width: 9.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid var(--hero-line);
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-cats__item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}

.hero-cats__thumb {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex: none;
}

.hero-cats__label {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}

.hero-cats__chev {
  color: #94a3b8;
  font-size: 1.15rem;
  line-height: 1;
}

.hero-cats__cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1.35 1 0;
  min-width: 14rem;
  padding: 0.85rem 1.15rem;
  border-radius: 0.9rem;
  background: var(--hero-blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
  scroll-snap-align: start;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cats__cta:hover {
  background: var(--hero-blue-hover);
  color: #fff !important;
  transform: translateY(-2px);
}

.hero-cats__cta i {
  opacity: 0.9;
}

/* Barra inferior */
.hero-strip {
  background: #f1f5f9;
  border-bottom: 1px solid var(--hero-line);
}

.hero-strip__inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

@media (min-width: 1024px) {
  .hero-strip__inner {
    padding: 0.9rem 2.5rem;
  }
}

.hero-strip__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
}

.hero-strip__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.15rem 0.95rem;
  border-right: 1px solid #cbd5e1;
}

.hero-strip__list li:first-child {
  padding-left: 0;
}

.hero-strip__list li:last-child {
  border-right: 0;
}

.hero-strip__list i {
  color: var(--hero-blue);
  font-size: 0.85rem;
}

.hero-strip__script {
  margin: 0;
  font-family: 'Caveat', cursive;
  font-size: 1.55rem;
  font-weight: 700;
  color: #1e3a8a;
  line-height: 1;
}

/* scroll móvil categorías (legacy class name kept) */
.hero-cats-scroll {
  -webkit-overflow-scrolling: touch;
}
 