/* ============================================
   ALQUDIA — Farmacia & Veterinaria Boutique
   Paleta: Crema + Dorado + Verde botánico
   ============================================ */

:root {
  /* Colores */
  --cream: #F5EFE4;
  --cream-light: #FBF7EF;
  --cream-dark: #EBE2D0;
  --gold: #B8924A;
  --gold-light: #D4B36A;
  --gold-dark: #8C6E32;
  --ink: #2C2419;
  --ink-soft: #5A4F3F;
  --botanical: #4A5D3A;
  --botanical-light: #7A8B6A;
  --white: #FFFFFF;
  --shadow: 0 4px 24px rgba(60, 45, 20, 0.08);
  --shadow-lg: 0 12px 40px rgba(60, 45, 20, 0.14);

  /* Tipografía */
  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter Tight', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .25s ease; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ TIPOGRAFÍA ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline-block;
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title h2 {
  font-style: italic;
  font-weight: 400;
}

.section-title h2 em {
  font-style: normal;
  color: var(--gold);
}

/* ============ HEADER ============ */
.top-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.78rem;
  padding: 8px 0;
  letter-spacing: 0.1em;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.top-bar a:hover { color: var(--gold-light); }

header.main {
  background: var(--cream-light);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--cream-dark);
  backdrop-filter: blur(8px);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 32px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-style: italic;
  font-size: 1.1rem;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s ease;
}

nav.main-nav a:hover { color: var(--ink); }
nav.main-nav a:hover::after,
nav.main-nav a.active::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  position: relative;
  transition: background .25s ease;
}

.icon-btn:hover { background: var(--cream-dark); }

.cart-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(184, 146, 74, 0.08), transparent 50%),
    var(--cream);
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%; right: -5%;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 146, 74, 0.12), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-style: italic;
  font-weight: 400;
  margin: 1.2rem 0;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}

.hero-text h1 em::after {
  content: '';
  position: absolute;
  left: 0; bottom: 4px;
  width: 100%; height: 2px;
  background: var(--gold);
  opacity: 0.4;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream-light);
  padding: 16px 36px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  transition: left .3s ease;
  z-index: 0;
}

.btn-primary span { position: relative; z-index: 1; }

.btn-primary:hover::before { left: 0; }
.btn-primary:hover { color: var(--white); }

.btn-secondary {
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 16px 36px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all .3s ease;
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--cream-light);
}

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
}

.hero-visual svg {
  width: 100%; height: 100%;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  animation: gentle-rotate 20s linear infinite;
}

.hero-badge .num {
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1;
}

.hero-badge .label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-style: normal;
  font-family: var(--font-sans);
  margin-top: 6px;
}

@keyframes gentle-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============ TRUST STRIP ============ */
.trust-strip {
  background: var(--cream-light);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  padding: 32px 0;
}

.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-item .icon {
  width: 40px; height: 40px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.trust-item h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.trust-item p {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ============ CATEGORÍAS ============ */
.categories {
  padding: 100px 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cat-card {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--cream-light);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .5s ease;
}

.cat-card:hover { transform: translateY(-6px); }

.cat-card .cat-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-card svg { width: 60%; height: 60%; }

.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 36, 25, 0.85) 0%, transparent 55%);
  z-index: 1;
}

.cat-card .cat-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 32px;
  z-index: 2;
  color: var(--cream-light);
}

.cat-card .cat-info span {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 6px;
}

.cat-card h3 {
  color: var(--cream-light);
  font-style: italic;
  margin-bottom: 8px;
}

.cat-card .arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-light);
  transition: gap .3s ease;
}

.cat-card:hover .arrow { gap: 16px; }

/* ============ PRODUCTOS ============ */
.products {
  padding: 100px 0;
  background: var(--cream-light);
  position: relative;
}

.products::before {
  content: '';
  position: absolute;
  top: 50%; left: 5%;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(184, 146, 74, 0.1), transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  transition: all .4s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-img {
  aspect-ratio: 1;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.product-img svg {
  width: 100%; height: 100%;
  transition: transform .5s ease;
}

.product-card:hover .product-img svg { transform: scale(1.05); }

.product-img img,
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 18px;
  background: var(--white);
}

.cart-item-img img {
  padding: 8px;
}


.product-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  font-weight: 500;
}

.product-tag.bio {
  background: var(--botanical);
}

.product-info {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info .brand {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.product-info h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 12px;
  flex: 1;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.product-price .price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 500;
}

.product-price .old-price {
  font-size: 0.9rem;
  color: var(--ink-soft);
  text-decoration: line-through;
}

.btn-add {
  width: 100%;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: all .3s ease;
}

.btn-add:hover {
  background: var(--ink);
  color: var(--cream-light);
}

.btn-add.added {
  background: var(--botanical);
  color: var(--white);
  border-color: var(--botanical);
}

/* ============ BANNER VETERINARIA ============ */
.vet-banner {
  padding: 100px 0;
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.vet-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184, 146, 74, 0.15), transparent 60%);
  border-radius: 50%;
}

.vet-banner .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.vet-banner h2 {
  color: var(--cream);
  font-style: italic;
  font-weight: 400;
  margin: 1rem 0 1.5rem;
}

.vet-banner h2 em {
  font-style: normal;
  color: var(--gold-light);
}

.vet-banner p {
  color: rgba(245, 239, 228, 0.75);
  margin-bottom: 2rem;
  max-width: 460px;
}

.vet-banner .btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.vet-banner .btn-primary::before { background: var(--cream-light); }
.vet-banner .btn-primary:hover { color: var(--ink); }

.vet-visual {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cream);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 80px rgba(184, 146, 74, 0.3);
}

/* ============ TESTIMONIOS ============ */
.testimonials {
  padding: 100px 0;
  background: var(--cream);
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.test-card {
  background: var(--cream-light);
  padding: 36px;
  border-radius: 4px;
  border-left: 2px solid var(--gold);
  position: relative;
}

.test-card .quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  line-height: 0.6;
  opacity: 0.4;
  position: absolute;
  top: 24px; right: 28px;
}

.test-card p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-author .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.test-author .name {
  font-weight: 600;
  font-size: 0.92rem;
}

.test-author .role {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ============ NEWSLETTER ============ */
.newsletter {
  padding: 80px 0;
  background: var(--cream-light);
  border-top: 1px solid var(--cream-dark);
  text-align: center;
}

.newsletter .container { max-width: 640px; }

.newsletter h2 {
  font-style: italic;
  margin-bottom: 12px;
}

.newsletter h2 em { font-style: normal; color: var(--gold); }

.newsletter p {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: 2px;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--white);
  outline: none;
  color: var(--ink);
}

.newsletter-form button {
  background: var(--ink);
  color: var(--cream-light);
  padding: 0 28px;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background .3s ease;
}

.newsletter-form button:hover { background: var(--gold); }

/* ============ FOOTER ============ */
footer {
  background: var(--ink);
  color: rgba(245, 239, 228, 0.7);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

footer .logo {
  color: var(--cream);
  margin-bottom: 18px;
}

footer .footer-about p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(245, 239, 228, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s ease;
  color: var(--cream);
}

.social-links a:hover {
  background: var(--gold);
  border-color: var(--gold);
}

footer h5 {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
  font-style: italic;
}

footer ul { list-style: none; }

footer ul li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

footer ul a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(245, 239, 228, 0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  gap: 20px;
  flex-wrap: wrap;
}

.payment-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.payment-icons span {
  background: rgba(245, 239, 228, 0.08);
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ============ DRAWER CARRITO ============ */
.cart-drawer {
  position: fixed;
  top: 0; right: -480px;
  width: 480px; max-width: 100%;
  height: 100vh;
  background: var(--cream-light);
  z-index: 1000;
  transition: right .4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,0.15);
}

.cart-drawer.open { right: 0; }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 25, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all .3s ease;
}

.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-header {
  padding: 28px;
  border-bottom: 1px solid var(--cream-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-style: italic;
  font-size: 1.5rem;
}

.cart-close {
  font-size: 1.5rem;
  color: var(--ink);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

.cart-empty .icon { font-size: 3rem; color: var(--gold); margin-bottom: 16px; opacity: 0.5; }

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--cream-dark);
  align-items: center;
}

.cart-item-img {
  width: 80px; height: 80px;
  background: var(--cream);
  border-radius: 2px;
  overflow: hidden;
}

.cart-item-info h5 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-item-info .brand {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cream-dark);
  border-radius: 2px;
}

.qty-control button {
  width: 28px; height: 28px;
  font-size: 1rem;
  color: var(--ink);
}

.qty-control span {
  padding: 0 10px;
  font-size: 0.9rem;
  min-width: 32px;
  text-align: center;
}

.cart-item-price {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  text-align: right;
}

.cart-item-remove {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-decoration: underline;
  margin-top: 6px;
  text-align: right;
}

.cart-footer {
  padding: 28px;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.cart-summary.total {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 16px 0 20px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-dark);
}

.cart-footer .btn-primary {
  width: 100%;
  text-align: center;
  display: block;
}

/* ============ PÁGINA PRODUCTOS ============ */
.page-header {
  padding: 80px 0 40px;
  text-align: center;
  background: var(--cream-light);
  border-bottom: 1px solid var(--cream-dark);
}

.page-header h1 {
  font-style: italic;
  font-weight: 400;
}

.page-header h1 em { font-style: normal; color: var(--gold); }

.breadcrumb {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  padding: 60px 0;
}

.filters h4 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream-dark);
}

.filter-group { margin-bottom: 32px; }

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 10px;
  cursor: pointer;
  color: var(--ink-soft);
  transition: color .2s ease;
}

.filter-group label:hover { color: var(--ink); }

.filter-group input[type="checkbox"] {
  accent-color: var(--gold);
}

/* ============ PÁGINA CARRITO ============ */
.cart-page {
  padding: 60px 0 100px;
}

.cart-page-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}

.cart-page-items .cart-item {
  background: var(--cream-light);
  padding: 24px;
  border-radius: 4px;
  margin-bottom: 16px;
  border-bottom: none;
}

.cart-summary-box {
  background: var(--cream-light);
  padding: 36px;
  border-radius: 4px;
  position: sticky;
  top: 100px;
  height: fit-content;
  border: 1px solid var(--gold);
}

.cart-summary-box h3 {
  font-style: italic;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--cream-dark);
}

/* ============ CHECKOUT ============ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  padding: 60px 0 100px;
}

.checkout-section { margin-bottom: 40px; }

.checkout-section h3 {
  font-style: italic;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: 2px;
  color: var(--ink);
  transition: border-color .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.payment-options {
  display: grid;
  gap: 12px;
}

.payment-option {
  border: 1px solid var(--cream-dark);
  padding: 18px 20px;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all .25s ease;
  background: var(--white);
}

.payment-option:hover { border-color: var(--gold); }
.payment-option.selected {
  border-color: var(--gold);
  background: var(--cream);
}

.payment-option input { accent-color: var(--gold); }

.order-summary {
  background: var(--cream-light);
  padding: 36px;
  border-radius: 4px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.order-summary h3 {
  font-style: italic;
  margin-bottom: 24px;
}

.order-line {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.9rem;
}

.order-line img,
.order-line .img-placeholder {
  width: 56px; height: 56px;
  background: var(--cream);
  border-radius: 2px;
  flex-shrink: 0;
}

.order-line .meta { flex: 1; }
.order-line .meta h6 { font-family: var(--font-display); font-style: italic; font-size: 0.98rem; }
.order-line .meta span { font-size: 0.78rem; color: var(--ink-soft); }
.order-line .price { font-family: var(--font-display); font-weight: 500; }

/* ============ CONTACTO ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  padding: 60px 0 100px;
}

.contact-info h3 {
  font-style: italic;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-item .icon {
  width: 48px; height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-item h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-form {
  background: var(--cream-light);
  padding: 40px;
  border-radius: 4px;
}

.contact-form h3 {
  font-style: italic;
  margin-bottom: 24px;
}

/* ============ NOTIFICACIÓN TOAST ============ */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  background: var(--ink);
  color: var(--cream-light);
  padding: 16px 24px;
  border-radius: 2px;
  font-size: 0.9rem;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all .35s ease;
  border-left: 3px solid var(--gold);
}

.toast.show { transform: translateY(0); opacity: 1; }

/* ============ ANIMACIONES ============ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-text > * { opacity: 0; animation: fade-up .8s ease forwards; }
.hero-text .eyebrow { animation-delay: .1s; }
.hero-text h1 { animation-delay: .2s; }
.hero-text p { animation-delay: .35s; }
.hero-text .hero-cta { animation-delay: .5s; }
.hero-visual { opacity: 0; animation: fade-up .8s ease .3s forwards; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero .container,
  .vet-banner .container { grid-template-columns: 1fr; gap: 48px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .trust-strip .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .top-bar .container { font-size: 0.7rem; gap: 8px; flex-wrap: wrap; justify-content: center; }
  nav.main-nav { display: none; }
  nav.main-nav.mobile-open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream-light);
    padding: 24px;
    border-bottom: 1px solid var(--cream-dark);
  }
  nav.main-nav.mobile-open ul { flex-direction: column; gap: 18px; }
  .mobile-toggle { display: inline-flex; }
  .hero { padding: 60px 0 80px; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .test-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .cart-page-grid,
  .checkout-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .cart-drawer { width: 100%; right: -100%; }
  .hero-badge { width: 120px; height: 120px; bottom: -20px; left: -20px; }
  .hero-badge .num { font-size: 1.8rem; }
  .categories, .products, .testimonials, .vet-banner { padding: 70px 0; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; display: block; }
  .newsletter-form { flex-direction: column; border: none; }
  .newsletter-form input,
  .newsletter-form button {
    border: 1px solid var(--ink);
    border-radius: 2px;
    width: 100%;
    padding: 14px 20px;
  }
}

/* Banner de cookies */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: #2b2218;
  color: #fff;
  border: 1px solid rgba(198, 151, 68, 0.35);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  border-radius: 18px;
  padding: 22px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
}
.cookie-banner.show { display: flex; }
.cookie-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
}
.cookie-banner strong {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}
.cookie-banner a { color: #d7ad63; text-decoration: underline; }
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  border: 1px solid #d7ad63;
  background: transparent;
  color: #fff;
  padding: 11px 16px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}
.cookie-btn.accept {
  background: #d7ad63;
  color: #241b12;
}
@media (max-width: 760px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-actions { width: 100%; }
  .cookie-btn { flex: 1; }
}

/* =========== CHAT IA =========== */
.ai-chat-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(184,146,74,.45);
  z-index: 1100;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.ai-chat-btn:hover {
  background: var(--gold-dark);
  transform: scale(1.07);
  box-shadow: 0 6px 24px rgba(184,146,74,.55);
}
.ai-chat-btn svg { width: 26px; height: 26px; }

.ai-chat-window {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 360px;
  max-height: 520px;
  background: var(--cream-light);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(44,36,25,.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.97);
  transition: opacity .22s ease, transform .22s ease;
}
.ai-chat-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.ai-chat-header {
  background: var(--ink);
  color: var(--cream-light);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.ai-chat-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ai-chat-header-avatar svg { width: 18px; height: 18px; }
.ai-chat-header-info { flex: 1; }
.ai-chat-header-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.ai-chat-header-status {
  font-size: .72rem;
  color: var(--gold-light);
  margin-top: 1px;
}
.ai-chat-close {
  background: none;
  border: none;
  color: var(--cream-light);
  cursor: pointer;
  opacity: .7;
  transition: opacity .15s;
  padding: 4px;
  display: flex;
}
.ai-chat-close:hover { opacity: 1; }
.ai-chat-close svg { width: 18px; height: 18px; }

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}
.ai-chat-messages::-webkit-scrollbar { width: 4px; }
.ai-chat-messages::-webkit-scrollbar-thumb {
  background: var(--cream-dark);
  border-radius: 4px;
}

.ai-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .88rem;
  line-height: 1.5;
  word-break: break-word;
}
.ai-msg.bot {
  background: #fff;
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(44,36,25,.07);
}
.ai-msg.user {
  background: var(--gold);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(44,36,25,.07);
}
.ai-typing span {
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: typing-dot .9s infinite;
}
.ai-typing span:nth-child(2) { animation-delay: .18s; }
.ai-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.ai-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream-light);
  flex-shrink: 0;
}
.ai-chat-input {
  flex: 1;
  border: 1.5px solid var(--cream-dark);
  border-radius: 22px;
  padding: 9px 14px;
  font-family: 'Inter Tight', sans-serif;
  font-size: .85rem;
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  resize: none;
  line-height: 1.4;
  max-height: 90px;
  overflow-y: auto;
}
.ai-chat-input:focus { border-color: var(--gold); }
.ai-chat-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-end;
  transition: background .2s;
}
.ai-chat-send:hover:not(:disabled) { background: var(--gold-dark); }
.ai-chat-send:disabled { opacity: .5; cursor: default; }
.ai-chat-send svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .ai-chat-window {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 88px;
  }
  .ai-chat-btn { bottom: 20px; right: 20px; }
}
