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

:root {
  --azul: #3641a5;
  --rosa: #fb56b2;
  --crema: #fdf9ee;
  --crema-nav: #FDF2EC;
  --rosa-header: #ff9dce;
  --rosa-fila: #FFEAF4;
  --activo-bg: #FDDCE0;
  --hover-bg: #FDE6E6;
  --amarillo: #FFD152;
  --amarillo2: #FFB347;
  --verde: #48C9B0;
  --violeta: #7B8FE8;
  --rosa-cat: #FF84B1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--azul);
  background-color: var(--rosa-cat);
  background-image: url('../images/pattern.png');
  background-repeat: repeat;
  background-size: 400px 400px;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, .brand {
  font-family: 'Poppins', sans-serif;
}

a { color: inherit; text-decoration: none; }

img, video { max-width: 100%; display: block; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 12px 16px;
}
.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  background-color: var(--crema-nav);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(54,65,165,0.12);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  backdrop-filter: blur(6px);
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--azul);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}
.nav-link {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azul);
  white-space: nowrap;
  transition: background-color .15s;
}
.nav-link:hover { background-color: var(--hover-bg); }
.nav-link.active { background-color: var(--activo-bg); color: var(--rosa); font-weight: 700; }
.nav-toggle {
  display: none;
  background: none; border: none; color: var(--azul); cursor: pointer;
  padding: 4px;
}
.nav-mobile {
  display: none;
  max-width: 1000px;
  margin: 8px auto 0;
  background-color: var(--crema-nav);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(54,65,165,0.12);
  padding: 14px;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { padding: 10px 14px; }

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ---------- SEARCH ---------- */
.search-box { position: relative; width: 190px; flex-shrink: 0; }
.search-box.mobile { width: 100%; }
.search-input-wrap {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(54,65,165,0.15);
  border-radius: 999px;
  padding: 6px 12px;
}
.search-input-wrap svg { flex-shrink: 0; opacity: .5; }
.search-input {
  border: none; outline: none; background: transparent;
  font-size: 0.85rem; color: var(--azul); width: 100%; font-family: inherit;
}
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--crema);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(54,65,165,0.2);
  border: 1px solid rgba(54,65,165,0.08);
  overflow: hidden;
  z-index: 60;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}
.search-results.show { display: block; }
.search-result-item {
  display: block; width: 100%; text-align: left; padding: 10px 16px;
  border: none; background: none; cursor: pointer; font-family: inherit;
}
.search-result-item:hover { background: rgba(54,65,165,0.05); }
.search-result-item .name { font-size: 0.9rem; font-weight: 600; color: var(--azul); margin: 0; }
.search-result-item .cat { font-size: 0.75rem; color: rgba(54,65,165,0.5); margin: 2px 0 0; }
.search-empty { padding: 12px 16px; font-size: 0.85rem; color: rgba(54,65,165,0.5); }

/* ---------- MAIN LAYOUT ---------- */
main { padding: 96px 16px 16px; }

.page-header {
  background-color: var(--crema);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(54,65,165,0.12);
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
}
.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.page-header p {
  color: rgba(54,65,165,0.6);
  font-size: 0.9rem;
  margin: 10px auto 0;
  max-width: 560px;
}

.empty-state {
  background-color: var(--crema);
  border-radius: 24px;
  box-shadow: 0 15px 35px rgba(54,65,165,0.12);
  padding: 48px;
  text-align: center;
  color: rgba(54,65,165,0.5);
}

.cards { display: flex; flex-direction: column; gap: 16px; }

/* ---------- PRICE CARD ---------- */
.price-card {
  background-color: var(--crema);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(54,65,165,0.10);
  overflow: hidden;
  scroll-margin-top: 110px;
}
.price-card-header {
  padding: 20px 20px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.price-card-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--rosa);
  margin: 0;
}
.price-card-header .subtitle {
  font-size: 0.78rem;
  color: var(--azul);
  margin: 4px 0 0;
  white-space: pre-line;
  line-height: 1.5;
}
.badge-links { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.badge-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 700;
  background: var(--crema);
  border: 1px solid rgba(54,65,165,0.2);
  padding: 6px 12px; border-radius: 999px;
  white-space: nowrap;
}
.rainbow-text {
  background: linear-gradient(90deg, #FF84B1, #FFB347, #FFD152, #48C9B0, #7B8FE8);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

.card-body-flex { display: flex; flex-wrap: wrap; align-items: flex-start; }
.table-wrap { flex: 1; min-width: 260px; padding: 0 16px 16px; overflow-x: auto; }

table.price-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 0.78rem; border-radius: 12px; overflow: hidden;
  table-layout: fixed;
}
table.price-table th {
  text-align: left; vertical-align: top;
  padding: 10px 12px;
  background: var(--rosa-header);
  color: var(--azul);
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.35;
  white-space: pre-line;
  word-break: break-word;
}
table.price-table td {
  padding: 10px 12px;
  vertical-align: top;
  font-size: 0.72rem;
  line-height: 1.5;
  word-break: break-word;
}
table.price-table tr:nth-child(odd) td { background: rgba(255,255,255,0.5); }
table.price-table tr:nth-child(even) td { background: var(--rosa-fila); }
table.price-table td:first-child { font-weight: 700; }
table.price-table .mt-half { margin-top: 4px; }
.muestra-col { width: 64px; text-align: center; }
.muestra-col img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; margin: 0 auto; border: 1px solid rgba(54,65,165,0.1); }

.product-image-wrap { padding: 0 20px 16px; flex-shrink: 0; }
.product-image-wrap img {
  width: 100%; max-width: 210px; height: 176px; object-fit: cover;
  border-radius: 14px; border: 2px solid rgba(54,65,165,0.15);
}
.product-image-placeholder {
  width: 100%; max-width: 210px; height: 176px;
  border-radius: 14px; border: 2px dashed rgba(54,65,165,0.25);
  background: #FFF4F9;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: rgba(54,65,165,0.4); font-size: 0.75rem; padding: 12px;
}

.extras-block { padding-bottom: 14px; }
.extras-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 20px 8px; }
.extras-title { font-size: 0.9rem; font-weight: 700; color: var(--rosa); margin: 0; }

.adicionales-grid { padding: 8px 20px 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.adicionales-item { text-align: center; }
.adicionales-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid #FFD0E4; }
.adicionales-item p { font-size: 0.68rem; font-weight: 600; margin: 4px 0 0; line-height: 1.25; }
.adicionales-item .price { color: #FF6FA5; font-weight: 700; margin-top: 2px; }

/* ---------- ACRILICOS CHART ---------- */
.acrilicos-chart {
  display: flex; align-items: flex-end; justify-content: center; gap: 10px;
  height: 190px; width: 100%; max-width: 460px; margin: 0 auto; padding: 0 16px 8px;
  box-sizing: border-box; overflow: hidden;
}
.acrilicos-bar {
  flex: 1 1 0; min-width: 0; border-radius: 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 10px 6px;
  box-sizing: border-box; overflow: hidden;
}
.acrilicos-bar p { margin: 0; font-weight: 700; font-size: 0.75rem; line-height: 1.3; white-space: nowrap; }
@media (max-width: 420px) {
  .acrilicos-chart { gap: 6px; padding: 0 10px 8px; }
  .acrilicos-bar { padding: 8px 3px; border-radius: 16px; }
  .acrilicos-bar p { font-size: 0.62rem; }
}

/* ---------- GRID PAGES (holograficos / vinilo uv) ---------- */
.type-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 640px) { .type-grid { grid-template-columns: repeat(4, 1fr); } }
.type-card {
  background-color: var(--crema);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(54,65,165,0.1);
  overflow: hidden;
}
.type-card .media-wrap { width: 100%; aspect-ratio: 1; overflow: hidden; }
.type-card .media-wrap img, .type-card .media-wrap video { width: 100%; height: 100%; object-fit: cover; }
.type-card p { text-align: center; padding: 12px 8px; font-weight: 700; font-size: 0.85rem; margin: 0; }

/* ---------- HOME ---------- */
.hero-card {
  background-color: rgba(253,249,238,0.95);
  border-radius: 28px;
  box-shadow: 0 20px 45px rgba(54,65,165,0.15);
  overflow: hidden;
  margin-bottom: 24px;
}
.hero-grid { display: grid; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 768px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-mascot { display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 260px; }
.hero-mascot img { max-height: 340px; padding: 16px 0 0 16px; object-fit: contain; }
.hero-text { padding: 28px; text-align: center; }
@media (min-width: 768px) { .hero-text { text-align: left; padding: 28px 40px 28px 20px; } }
.hero-text h1 { font-size: 2.2rem; line-height: 1.15; margin: 0; }
@media (min-width: 768px) { .hero-text h1 { font-size: 2.8rem; } }
.hero-text .tagline1 { color: var(--rosa); }
.hero-text .tagline2 {
  background: linear-gradient(90deg, var(--rosa-cat), var(--amarillo), var(--verde));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero-text p.desc { margin: 14px 0 0; font-size: 1rem; line-height: 1.5; }
.hero-cta {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--azul); color: var(--crema);
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 0.9rem;
}
.hero-cta:hover { opacity: .9; }

.category-grid {
  padding: 8px 24px 24px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(5, 1fr); } }
.category-tile {
  border-radius: 16px; padding: 14px; text-align: center;
  transition: transform .15s, background-color .15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.category-tile:hover { transform: translateY(-2px); }
.category-tile h3 { font-size: 0.85rem; margin: 0; color: var(--azul); }
.category-tile p { font-size: 0.7rem; margin: 4px 0 0; color: rgba(54,65,165,0.8); line-height: 1.3; }

.info-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 768px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.info-card {
  background-color: rgba(253,249,238,0.95);
  border-radius: 20px; box-shadow: 0 6px 18px rgba(54,65,165,0.1);
  padding: 24px;
}
.info-card.span-2 { grid-column: 1 / -1; }
.info-card h3 { font-size: 1rem; color: var(--rosa); margin: 0 0 12px; }
.info-card .body { font-size: 0.88rem; line-height: 1.6; }
.info-card .body p { margin: 0 0 12px; }
.info-card .highlight { font-weight: 700; background: #fff4f9; border: 1px solid #ffd0e4; border-radius: 12px; padding: 8px 12px; }
.info-card .bold { font-weight: 700; }
.info-card a.link { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.delivery-grid { display: grid; grid-template-columns: 1fr; gap: 16px; font-size: 0.88rem; }
@media (min-width: 640px) { .delivery-grid { grid-template-columns: repeat(3, 1fr); } }
.delivery-grid p.title { font-weight: 700; margin: 0 0 6px; }
.delivery-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.delivery-grid li.faded { opacity: .6; }

/* ---------- FOOTER ---------- */
footer { margin-top: 32px; padding: 0 16px 32px; }
.footer-card {
  max-width: 1000px; margin: 0 auto;
  background-color: var(--crema);
  border-radius: 20px; box-shadow: 0 8px 20px rgba(54,65,165,0.1);
  padding: 32px; text-align: center;
}
.footer-card h3 { font-size: 1.5rem; margin: 0 0 6px; }
.footer-card .sub { font-size: 0.85rem; color: rgba(54,65,165,0.6); margin: 0 0 20px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; }
.footer-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
}
.footer-btn.solid { background: var(--azul); color: var(--crema); }
.footer-btn.solid:hover { opacity: .9; }
.footer-btn.outline { border: 2px solid var(--azul); color: var(--azul); }
.footer-btn.outline:hover { background: rgba(54,65,165,0.08); }
.footer-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(54,65,165,0.1); font-size: 0.72rem; color: rgba(54,65,165,0.4); }

/* ---------- 404 ---------- */
.notfound { max-width: 500px; margin: 140px auto; text-align: center; }
.notfound .card { background: var(--crema); border-radius: 24px; padding: 48px 32px; box-shadow: 0 15px 35px rgba(54,65,165,0.12); }
.notfound h1 { font-size: 3rem; margin: 0; color: var(--rosa); }
.notfound p { margin: 10px 0 24px; }
