/* ============================================================
   ARIA BY SUNTOUCH — Shared Stylesheet
   Covers: reset, announcement bar, nav, footer, buttons,
           page layout utilities, responsive breakpoints
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ── DESIGN TOKENS — derived from logo color extraction ── */
:root {
  /* Primary colors (from logo pixel analysis) */
  --caramel:    #b47850;   /* blob principal del logo */
  --caramel-lt: #c8956c;   /* caramelo claro — hover, acentos */
  --brown:      #3d1e0a;   /* marrón oscuro — fondos, footer */
  --brown-mid:  #643c28;   /* marrón texto del logo */

  /* Neutrals */
  --cream:      #f5f0e8;
  --beige:      #f0e8da;
  --white:      #ffffff;
  --text:       #3c2010;   /* texto principal */
  --text-light: #7a5230;   /* texto secundario */

  --nav-height: 72px;
  --max-width:  1400px;
  --transition: 0.25s ease;
}

/* ── 1. RESET + BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ── 2. ANNOUNCEMENT BAR ── */
.announcement {
  background: var(--brown);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  padding: 9px 20px;
  width: 100%;
}

/* ── 3. NAV ── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid rgba(61, 26, 14, 0.08);
  box-shadow: 0 1px 8px rgba(61, 26, 14, 0.06);
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo — imagen real del logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  height: var(--nav-height);
  padding: 8px 0;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brown);
  transition: width var(--transition);
}

.nav-links a:hover {
  color: var(--brown);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--brown);
}

/* Nav icons (cart, search, wishlist…) */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Cart badge */
.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  background: var(--caramel);
  color: var(--white);
  font-size: 9px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.cart-badge[data-count="0"],
.cart-badge:empty {
  display: none;
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--brown);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
  color: var(--brown);
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--caramel);
}

.mobile-menu__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: var(--brown);
  line-height: 1;
}

/* ── 4. FOOTER ── */
footer {
  background: var(--brown);
  color: var(--white);
  padding: 60px 40px 0;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--caramel);
  margin-bottom: 20px;
}

.footer-col p,
.footer-col address {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  font-style: normal;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--white);
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.social-icon:hover {
  border-color: var(--caramel);
  color: var(--white);
  background: rgba(180, 120, 80, 0.2);
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--white);
  font-family: inherit;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.newsletter-form button {
  background: var(--caramel);
  border: none;
  color: var(--white);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.newsletter-form button:hover {
  background: var(--white);
  color: var(--brown);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 0;
  text-align: center;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.4);
}

/* ── 5. BUTTONS ── */
.btn-primary {
  display: block;
  width: 100%;
  background: var(--brown);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 24px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), color var(--transition);
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--caramel);
  color: var(--white);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--brown);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 14px 24px;
  border: 1px solid var(--brown);
  border-radius: 0;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  font-family: inherit;
}

.btn-outline:hover {
  background: var(--brown);
  color: var(--white);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  transition: color var(--transition);
  font-family: inherit;
}

.btn-icon:hover {
  color: var(--brown);
}

/* ── 6. PAGE LAYOUT UTILITIES ── */
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
  color: var(--brown);
  line-height: 1.25;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-light);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--brown);
}

.breadcrumb .separator {
  color: var(--text-light);
  opacity: 0.5;
}

/* Misc shared utilities */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── 7. RESPONSIVE ── */
@media (max-width: 768px) {
  .page-container {
    padding: 0 20px;
  }

  /* Nav */
  nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Footer */
  footer {
    padding: 48px 20px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 26px;
  }
}
