/* ── CUSTOM PROPERTIES ── */
:root {
  --bg:                    #fdfbf7;
  --header-glass:          #fdfbf7;
  --features-bg:           #f5f2ed;
  --gold:                  #c69b7b;
  --gold-hover:            #b8896a;
  --dark-text:             #2a2421;
  --nav-text:              #6b6460;
  --mid-gray:              #7a746f;
  --light-gray:            #a09a96;
  --border:                #e8e2da;
  --footer-bg:             #2a2421;
  --footer-muted:          #b6aea5;
  --footer-link:           #f0e9e1;
}

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

body {
  font-family: 'Jost', sans-serif;
  background: var(--bg);
  color: var(--dark-text);
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-glass);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  transform: translateY(1px);
}

.logo-ring {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  margin: 0 1px;
  flex-shrink: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--nav-text);
  text-decoration: none;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a.active {
  color: var(--gold);
  font-weight: 600;
  border-bottom-color: var(--gold);
}

nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

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

.btn-ingresar {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--nav-text);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-registro {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-registro:hover {
  background: var(--gold-hover);
}

.cart-icon {
  width: 19px;
  height: 19px;
  color: var(--nav-text);
  cursor: pointer;
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-right: 8px;
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -12px;
  background: #e74c3c;
  color: white;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #fdfbf7;
  z-index: 10;
  pointer-events: none;
}

.cart-badge.hidden {
  display: none;
}

/* ── HERO ── */
.hero {
  text-align: center;
  padding: 72px 24px 48px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 2.6rem;
  color: var(--dark-text);
  margin-bottom: 16px;
}

.hero p {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--mid-gray);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.7;
}

.campaign-banner {
  max-width: 960px;
  margin: 0 auto 20px;
  padding: 24px 28px;
  border-radius: 10px;
  border: 1px solid #d6c7b9;
  background: linear-gradient(120deg, #f7efe7 0%, #f1e4d7 52%, #e9d8c8 100%);
  box-shadow: 0 14px 34px rgba(111, 79, 56, 0.12);
}

.campaign-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  background: rgba(122, 90, 69, 0.12);
  color: #6e4f3a;
  border: 1px solid rgba(122, 90, 69, 0.2);
}

.campaign-banner h2 {
  font-family: 'Playfair Display', serif;
  margin: 12px 0 8px;
  font-size: 1.8rem;
  font-weight: 500;
  color: #2f2420;
}

.campaign-banner p {
  margin: 0;
  color: #5f534b;
  max-width: 760px;
  line-height: 1.58;
}

.campaign-banner-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #7a5a45;
  color: #fff;
  text-decoration: none;
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid #7a5a45;
  padding: 10px 14px;
  transition: background-color 0.2s, border-color 0.2s;
}

.campaign-banner-cta:hover {
  background: #654a39;
  border-color: #654a39;
}

.campaign-filters {
  max-width: 960px;
  margin: 0 auto 20px;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.campaign-filter {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--mid-gray);
  padding: 7px 12px;
  font-size: 0.63rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.campaign-filter:hover {
  border-color: #c7ab91;
  color: #70543f;
}

.campaign-filter.active {
  background: #7a5a45;
  border-color: #7a5a45;
  color: #fff;
}

/* ── CARDS ── */
.cards-section {
  max-width: 960px;
  margin: 0 auto 52px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.offer-card {
  background: var(--features-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 26px 28px 34px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.offer-card:hover {
  box-shadow: 0 6px 24px rgba(42, 36, 33, 0.07);
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: #7a5a45;
  border: 1px solid #7a5a45;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.badge.popular {
  color: #fff;
  background: var(--gold);
  border-color: var(--gold);
}

.offer-card h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--dark-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.offer-card p {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--mid-gray);
  line-height: 1.6;
}

.offer-card-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.offer-validity {
  color: #8d817a;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.offer-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c8b09a;
  border-radius: 4px;
  background: #fff;
  color: #6d4f3a;
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  padding: 7px 10px;
  transition: all 0.2s ease;
}

.offer-card-cta:hover {
  background: #f6ece4;
  border-color: #7a5a45;
  color: #563e2e;
}

.badge.campaign-fecha {
  background: #7a5a45;
  border-color: #7a5a45;
}

.badge.campaign-categoria {
  background: #a87752;
  border-color: #a87752;
}

.badge.campaign-comportamiento {
  background: #4f6e86;
  border-color: #4f6e86;
}

.campaign-empty {
  max-width: 960px;
  margin: -8px auto 44px;
  padding: 0 32px;
  color: #8f8781;
  font-size: 0.88rem;
}

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--features-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 58px 24px;
  text-align: center;
}

.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 2rem;
  color: var(--dark-text);
  margin-bottom: 12px;
}

.newsletter > p {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--mid-gray);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  font-family: 'Jost', sans-serif;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--dark-text);
  background: #fff;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  padding: 11px 16px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder {
  color: var(--light-gray);
}

.newsletter-form input:focus {
  border-color: var(--gold);
}

.newsletter-form button {
  font-family: 'Jost', sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

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

.newsletter-msg {
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--gold);
  min-height: 20px;
}

/* ── SPACER ── */
.spacer {
  height: 52px;
}

/* ── FOOTER ── */
footer {
  background: var(--footer-bg);
  color: var(--footer-muted);
  padding: 48px 48px 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--footer-link);
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.footer-logo img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--footer-muted);
  line-height: 1.6;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--footer-link);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--footer-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--footer-link);
}

.footer-col p {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--footer-muted);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.social-icons a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.social-icons img {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header { padding: 0 16px; }
  nav { display: none; }
  .campaign-banner {
    margin: 0 16px 16px;
    padding: 18px 16px;
  }
  .campaign-banner h2 {
    font-size: 1.45rem;
  }
  .campaign-filters {
    padding: 0 16px;
    margin-bottom: 16px;
  }
  .cards-section { grid-template-columns: 1fr; padding: 0 16px; }
  .offer-card-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  .campaign-empty {
    padding: 0 16px;
  }
  .footer-top { grid-template-columns: 1fr; }
  footer { padding: 36px 20px 0; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input {
    border-right: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 8px;
  }
  .newsletter-form button { border-radius: 4px; }
}