/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf8f5;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-soft: #555;
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --accent: #fd79a8;
  --accent-2: #00cec9;
  --accent-3: #fdcb6e;
  --border: #eee;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.12);
    --font-main: 'Montserrat', sans-serif;
  --font-fun: 'Caveat', cursive;
  --font-logo: 'Pacifico', cursive;

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding: 0.4rem 0.8rem;
  background: linear-gradient(135deg, rgba(108,92,231,0.08), rgba(253,121,168,0.08));
  border-radius: 12px;
  transition: transform 0.2s;
}

.logo:hover { transform: scale(1.03); }

.logo-main {
  font-family: var(--font-main);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -1px;
}

.logo-accent {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: linear-gradient(90deg, #6c5ce7, #fd79a8, #00cec9, #fdcb6e, #6c5ce7);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: chameleon 4s linear infinite;
}

@keyframes chameleon {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

.main-nav {
  display: flex;
  gap: 0.6rem;
  background: rgba(108,92,231,0.06);
  padding: 0.4rem;
  border-radius: 50px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  transition: all 0.25s;
  background: transparent;
}

.main-nav a:hover {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(108,92,231,0.3);
}

.cart-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.65rem 1.3rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(108,92,231,0.3);
}

.cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,92,231,0.4);
}

.cart-count {
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0 4px;
}

/* ===== HERO ===== */
.hero { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem 3rem; text-align: center; position: relative; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900; letter-spacing: -1px; line-height: 1.1; margin-bottom: 1rem; }
.hero h1 .word-fun { font-family: var(--font-fun); font-weight: 700; color: var(--accent); font-size: 1.1em; }
.hero h1 .word-teal { color: var(--accent-2); }
.hero h1 .word-yellow { color: var(--accent-3); }
.hero p { font-size: 1.2rem; color: var(--text-soft); max-width: 560px; margin: 0 auto 2rem; }
.hero .hero-badges { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-badge { background: var(--bg-card); border: 2px solid var(--border); border-radius: 50px; padding: 0.5rem 1.2rem; font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; box-shadow: var(--shadow); }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.hero-cta { display: inline-block; background: var(--primary); color: #fff; padding: 1rem 2.5rem; border-radius: 50px; font-weight: 700; font-size: 1.1rem; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 6px 20px rgba(108,92,231,0.3); }
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(108,92,231,0.4); }
.hero-scribble { position: absolute; font-family: var(--font-fun); font-size: 1.5rem; color: var(--accent-3); transform: rotate(-8deg); }
.hero-scribble.s1 { top: 20px; right: 8%; }
.hero-scribble.s2 { bottom: 60px; left: 5%; color: var(--accent-2); }

/* ===== SECCIONES ===== */
.section { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 0.5rem; }
.section-header h2 .fun { font-family: var(--font-fun); color: var(--accent); font-weight: 600; }
.section-header p { color: var(--text-soft); font-size: 1.05rem; }

/* ===== GRID DE COLECCIONES ===== */
.collections-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.8rem; }
.collection-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.3s, box-shadow 0.3s; position: relative; }
.collection-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.collection-card .card-tshirt { background: linear-gradient(135deg, #f0f0f5, #e8e8f0); padding: 2rem; display: flex; justify-content: center; align-items: center; min-height: 200px; }
.collection-card .card-info { padding: 1.2rem 1.2rem 1.4rem; }
.collection-card .card-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.3rem; }
.collection-card .card-desc { font-size: 0.9rem; color: var(--text-soft); margin-bottom: 0.8rem; }
.collection-card .card-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.collection-card .card-price .euro-fun { font-family: var(--font-fun); font-size: 1.1em; }
.collection-card .card-tag { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 50px; }

/* ===== PÁGINA DE PRODUCTO ===== */
.product-page { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; color: var(--text-soft); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.product-preview { background: linear-gradient(135deg, #f0f0f5, #e8e8f0); border-radius: var(--radius); padding: 2rem; display: flex; justify-content: center; align-items: center; min-height: 400px; position: relative; }
.product-info h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.product-info .product-desc { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 1.5rem; }
.product-info .product-price { font-size: 2rem; font-weight: 900; color: var(--primary); margin-bottom: 1.5rem; }
.product-info .product-price .euro-fun { font-family: var(--font-fun); font-size: 1.1em; }

/* ===== SELECTOR DE COLORES ===== */
.option-group { margin-bottom: 1.8rem; }
.option-label { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.4rem; }
.option-label .label-fun { font-family: var(--font-fun); color: var(--accent); font-size: 1.1em; }
.color-swatches { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.color-swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: transform 0.2s, border-color 0.2s; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.selected { border-color: var(--primary); transform: scale(1.1); }
.color-swatch.selected::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 1rem; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.color-name { font-size: 0.85rem; color: var(--text-soft); margin-top: 0.4rem; font-family: var(--font-fun); font-size: 1.1rem; }

/* ===== SELECTOR DE TALLAS ===== */
.size-grid { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.size-btn { min-width: 52px; padding: 0.55rem 0.8rem; border: 2px solid var(--border); border-radius: 10px; background: var(--bg-card); font-family: var(--font-main); font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; text-align: center; }
.size-btn:hover { border-color: var(--primary); }
.size-btn.selected { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ===== BOTÓN AÑADIR ===== */
.btn-add { width: 100%; background: var(--primary); color: #fff; border: none; border-radius: 12px; padding: 1.1rem; font-family: var(--font-main); font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: transform 0.2s, background 0.2s; margin-top: 0.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.btn-add:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-add:active { transform: translateY(0); }

/* ===== CARRITO ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; display: none; opacity: 0; transition: opacity 0.3s; }
.cart-overlay.open { display: block; opacity: 1; }
.cart-panel { position: fixed; top: 0; right: 0; width: 100%; max-width: 420px; height: 100%; background: var(--bg); box-shadow: -8px 0 30px rgba(0,0,0,0.1); display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.3s; }
.cart-overlay.open .cart-panel { transform: translateX(0); }
.cart-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-soft); }
.cart-title { padding: 1.5rem 1.5rem 1rem; font-size: 1.5rem; font-weight: 700; }
.cart-items { flex: 1; overflow-y: auto; padding: 0 1.5rem; }
.cart-item { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item .ci-color { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-name { font-weight: 600; font-size: 0.95rem; }
.cart-item .ci-meta { font-size: 0.82rem; color: var(--text-soft); }
.cart-item .ci-price { font-weight: 700; color: var(--primary); }
.cart-item .ci-remove { background: none; border: none; color: #e74c3c; cursor: pointer; font-size: 1.2rem; padding: 4px; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--text-soft); }
.cart-empty .fun { font-family: var(--font-fun); font-size: 1.6rem; color: var(--accent); display: block; margin-bottom: 0.5rem; }
.cart-footer { padding: 1.5rem; border-top: 1px solid var(--border); background: var(--bg-card); }
.cart-total { font-size: 1.3rem; font-weight: 800; margin-bottom: 1rem; display: flex; justify-content: space-between; }
.btn-checkout { width: 100%; background: var(--accent); color: #fff; border: none; border-radius: 12px; padding: 1rem; font-family: var(--font-main); font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
.btn-checkout:hover { background: #e84393; }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--text); color: #fff; padding: 0.9rem 1.8rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem; z-index: 300; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .fun { font-family: var(--font-fun); color: var(--accent-3); }

/* ===== SOBRE NOSOTROS ===== */
.about-page { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; text-align: center; }
.about-page h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; }
.about-page h1 .fun { font-family: var(--font-fun); color: var(--accent); }
.about-page p { font-size: 1.1rem; color: var(--text-soft); margin-bottom: 1rem; }
.about-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.about-value { background: var(--bg-card); border-radius: var(--radius); padding: 2rem 1.5rem; box-shadow: var(--shadow); }
.about-value .icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.about-value h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.about-value p { font-size: 0.9rem; }

/* ===== FOOTER ===== */
.site-footer { margin-top: auto; background: var(--text); color: #ccc; padding: 3rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-family: var(--font-logo); font-size: 1.8rem; color: #fff; margin-bottom: 0.5rem; }
.footer-tagline { font-family: var(--font-fun); color: var(--accent); font-size: 1.2rem; }
.footer-col h4 { color: #fff; margin-bottom: 0.8rem; font-size: 0.95rem; }
.footer-col a, .footer-col p { display: block; color: #aaa; font-size: 0.9rem; margin-bottom: 0.4rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; font-size: 0.85rem; color: #888; }
.footer-bottom .fun { font-family: var(--font-fun); }

/* ===== LOADING ===== */
.loading { text-align: center; padding: 4rem; color: var(--text-soft); font-size: 1.1rem; }
.loading .fun { font-family: var(--font-fun); font-size: 1.6rem; color: var(--accent); display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-inner { padding: 0.8rem 1rem; }
  .product-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding: 2.5rem 1.5rem 2rem; }
  .hero-scribble { display: none; }
  .collections-grid { grid-template-columns: 1fr; }
}

/* ===== IMÁGENES DE DISEÑO ===== */
.card-design {
  background: linear-gradient(135deg, #f0f0f5, #e8e8f0);
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}
.card-design img {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 8px;
}

/* ===== GALERÍA DE DISEÑOS ===== */
.product-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.design-main {
  background: linear-gradient(135deg, #f0f0f5, #e8e8f0);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 350px;
}
.design-main img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}
.design-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.design-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.design-thumb:hover { transform: scale(1.05); }
.design-thumb.active { border-color: var(--primary); }

/* ===== MINI PREVIEW CAMISETA ===== */
.tshirt-mini {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
}

/* ===== PREVIEW CAMISETA + DISEÑO ===== */
.tshirt-preview {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 350px;
}
.tshirt-svg-wrap {
  position: relative;
  z-index: 1;
}
.tshirt-design-overlay {
  position: absolute;
  top: 28%;
  left: 22%;
  width: 56%;
  height: 42%;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  border-radius: 4px;
}
