/* ============================================================
    1. VARIABLES Y RESET
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark: #001D3D;
  --blue-mid: #1565A8;
  --blue-light: #00A3E0;
  --yellow: #F39C12;
  --yellow-pale: #FEF9E7;
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --gray: #555555;
  --dark: #000000;
  --blue-pale: #EAF3FB;
  --blue-tint: #D6E8F7;
  --text-body: #000000;
  --text-muted: #000000;
  --border: #D8E4EE;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--text-body);
  overflow-x: hidden;
  line-height: 1.65;
}

/* ============================================================
    2. HEADER
============================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 75px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2.5rem;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-wrap img {
  width: 55px;
  height: 65px;
  object-fit: contain;
  margin-left: 10px;
}

.logo-name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--blue-dark);
  letter-spacing: -0.01em;
  margin-left: -5px;
  line-height: 1;
}

.logo-name span {
  color: var(--yellow);
}

.brand-lockup,
.footer-brand {
  display: flex;
  flex-direction: column;
}

.logo-tagline {
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--blue-mid);
}

.btn-nav {
  background: var(--blue-mid);
  color: white !important;
  padding: 0.55rem 1.5rem;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.99rem !important;
  transition: background 0.2s, transform 0.15s !important;
}

.btn-nav:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
}

.cart-btn-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--blue-pale);
  border: 1px solid var(--blue-tint);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.cart-btn-header:hover {
  background: var(--blue-tint);
  transform: translateY(-1px);
}

.cart-btn-header svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue-mid);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-count.visible {
  display: flex;
}

/* ============================================================
    3. HERO TIENDA
============================================================ */
.store-hero {
  margin-top: 75px;
  background: var(--blue-pale);
  border-bottom: 1px solid var(--blue-tint);
  padding: 3.5rem 2.5rem;
}

.store-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.store-hero-text .section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-light);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.store-hero-text .section-eyebrow::before {
  content: '';
  width: 24px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.store-hero-text h1 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(3rem, 3vw, 2.5rem);
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.store-hero-text p {
  color: var(--dark);
  font-size: 1.5rem;
  max-width: 480px;
  line-height: 1.7;
}

.store-hero-badges-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.store-hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--yellow);
  border-radius: 16px;
  padding: 1rem 2.5rem;
}

.store-hero-badge svg {
  width: 30px;
  height: 30px;
  stroke: var(--blue-mid);
  fill: none;
  stroke-width: 2.5;
  margin-left: -1.5rem;
}

.store-hero-badge p {
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.4;
}

.store-hero-badge strong {
  display: block;
  font-size: 1.25rem;
  color: var(--blue-dark);
}

/* ============================================================
    4. TIENDA LAYOUT Y PRODUCTOS
============================================================ */
.store-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2.5rem 6rem;
}

.store-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-count {
  font-size: 1.25rem;
  color: var(--dark);
}

.store-count strong {
  color: var(--blue-dark);
  font-weight: 600;
}

.acc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
}

.acc-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.acc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(21, 101, 168, 0.13);
  border-color: var(--blue-mid);
}

.acc-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--blue-pale);
  overflow: hidden;
}

.acc-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  transition: transform 0.35s;
}

.acc-card:hover .acc-img-wrap img {
  transform: scale(1.07);
}

.acc-body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.acc-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  flex: 1;
}

.acc-price {
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--blue-mid);
  margin-bottom: 0.85rem;
}

.acc-price span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--dark);
  margin-left: 3px;
}

.acc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  background: var(--blue-mid);
  color: white;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 550;
  padding: 0.6rem 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}

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

.acc-btn svg {
  width: 20px;
  height: 25px;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
  margin-left: -1.5rem;
}

.acc-btn.added {
  background: #27AE60;
}

/* ============================================================
    5. CARRITO LATERAL (DRAWER) Y OVERLAY
============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 61, 107, 0.35);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -8px 0 40px rgba(10, 61, 107, 0.12);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-header h2 {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.cart-close {
  width: 50px;
  height: 50px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.cart-close:hover {
  background: var(--blue-pale);
}

.cart-close svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue-dark);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.75rem;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 1rem;
  color: var(--text-muted);
  text-align: center;
}

.cart-empty svg {
  width: 52px;
  height: 52px;
  stroke: var(--blue-tint);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-empty p {
  font-size: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 64px;
  height: 64px;
  background: var(--blue-pale);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-dark);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-mid);
  font-family: 'Fraunces', serif;
}

.cart-item-meta {
  margin-top: 3px;
  font-size: 0.90rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--blue-dark);
  transition: background 0.15s;
  flex-shrink: 0;
  line-height: 1;
}

.qty-btn:hover {
  background: var(--blue-pale);
}

.qty-num {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-dark);
  min-width: 28px;
  text-align: center;
}

.cart-remove {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.15s;
  flex-shrink: 0;
}

.cart-remove:hover {
  color: #E74C3C;
}

.cart-remove svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.cart-footer {
  display: none;
  padding: 1rem 1rem 1rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cart-subtotal span {
  font-size: 1.25rem;
  color: var(--dark);
}

.cart-subtotal strong {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.cart-note {
  font-size: 0.80rem;
  color: var(--dark);
  margin-bottom: 1.25rem;
}

.cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--yellow);
  color: var(--dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.cart-checkout:hover {
  background: #E67E22;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.3);
}

.cart-checkout svg {
  width: 16px;
  height: 16px;
  stroke: var(--dark);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-continue {
  display: block;
  text-align: center;
  margin-top: 0.8rem;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cart-continue:hover {
  color: var(--blue-mid);
}

/* ============================================================
    6. TOAST NOTIFICACIÓN
============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--blue-dark);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
    7. FOOTER
============================================================ */
footer {
  background: var(--blue-dark);
  padding: 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner .logo-name {
  color: white;
  font-size: 2rem;
  text-decoration: none;
}

.footer-brand {
  text-decoration: none;
}

.footer-logo .logo-tagline {
  color: rgba(255, 255, 255, 0.72);
  font-size: .70rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.90rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  max-width: 1200px;
  margin: 1rem auto 0;
  text-align: center;
  font-size: 0.90rem;
  color: rgba(255, 255, 255, 0.3);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.social-links a:hover {
  background: var(--blue-mid);
  transform: translateY(-3px);
}

.social-links img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.footer-copy {
  font-size: 0.90rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   8. RESPONSIVE
============================================================ */

/* ============================================================
    8. MEDIA QUERIES (RESPONSIVE)
============================================================ */

/* -------------------- 1200px -------------------- */

@media (max-width:1200px) {

  .store-wrap,
  .store-hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .acc-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}


/* -------------------- 992px -------------------- */

@media (max-width:992px) {

  header {
    padding: 0 1.5rem;
  }

  nav {
    gap: 1rem;
  }

  .logo-name {
    font-size: 1.7rem;
  }

  .store-hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-hero-text h1 {
    font-size: 2.6rem;
  }

  .store-hero-text p {
    max-width: 100%;
    font-size: 1.15rem;
  }

  .store-hero-badges-col {
    width: 100%;
  }

  .store-hero-badge {
    width: 100%;
  }

  .acc-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* -------------------- 768px -------------------- */

@media (max-width:768px) {

  header {
    height: auto;
    padding: 1rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
  }

  .logo-wrap {
    width: 100%;
    justify-content: center;
  }

  .logo-wrap img {
    width: 48px;
    height: 58px;
    margin-left: 0;
  }

  .logo-name {
    font-size: 1.6rem;
    margin-left: 0;
  }

  .logo-tagline {
    font-size: .58rem;
  }

  nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: .8rem 1rem;
  }

  nav a {
    display: block;
    font-size: .9rem;
  }

  .btn-nav {
    padding: .5rem 1rem;
    font-size: .9rem !important;
  }

  .cart-btn-header {
    width: 40px;
    height: 40px;
  }

  .store-hero {
    margin-top: 145px;
    padding: 2rem 1rem;
  }

  .store-wrap {
    padding: 2rem 1rem 5rem;
  }

  .store-top {
    align-items: flex-start;
  }

  .store-count {
    font-size: 1rem;
  }

  .store-hero-text h1 {
    font-size: 2rem;
  }

  .store-hero-text p {
    font-size: 1rem;
  }

  .acc-name {
    font-size: 1rem;
  }

  .acc-price {
    font-size: 1.55rem;
  }

  .acc-btn {
    gap: 12px;
    padding: .75rem;
    font-size: .95rem;
  }

  .acc-btn svg {
    margin-left: 0;
  }

  .cart-drawer {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

}


/* -------------------- 576px -------------------- */

@media (max-width:576px) {

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

  .store-hero {
    margin-top: 150px;
  }

  .store-hero-text .section-eyebrow {
    font-size: .7rem;
  }

  .store-hero-text h1 {
    font-size: 1.8rem;
  }

  .store-hero-text p {
    font-size: .95rem;
  }

  .store-hero-badge {
    padding: .9rem 1rem;
  }

  .store-hero-badge strong {
    font-size: 1rem;
  }

  .store-hero-badge p {
    font-size: .9rem;
  }

  .cart-header {
    padding: 1rem;
  }

  .cart-header h2 {
    font-size: 1.6rem;
  }

  .cart-items {
    padding: 1rem;
  }

  .cart-footer {
    padding: 1rem;
  }

  .footer-bottom {
    text-align: center;
    font-size: .82rem;
  }

}


/* -------------------- 420px -------------------- */

@media (max-width:420px) {

  header {
    padding: .8rem;
  }

  .logo-wrap {
    flex-direction: column;
    gap: .5rem;
  }

  .brand-lockup {
    align-items: center;
  }

  .logo-name {
    font-size: 1.4rem;
  }

  .logo-tagline {
    font-size: .55rem;
    text-align: center;
  }

  nav {
    gap: .6rem;
  }

  nav a {
    font-size: .82rem;
  }

  .btn-nav {
    padding: .45rem .8rem;
    font-size: .82rem !important;
  }

  .store-hero {
    margin-top: 180px;
    padding: 1.8rem .8rem;
  }

  .store-wrap {
    padding: 1.5rem .8rem 4rem;
  }

  .acc-body {
    padding: 1rem;
  }

  .acc-price {
    font-size: 1.35rem;
  }

  .toast {
    width: 90%;
    white-space: normal;
    text-align: center;
  }

}
