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

:root {
  --teal: #2fb5d2;
  --teal-dark: #2592a9;
  --text: #363a42;
  --muted: #7a7a7a;
  --bg: #ffffff;
  --bg-alt: #f7f7f9;
  --border: #dddddd;
  --font-h: 'Nunito', sans-serif;
  --font-b: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ── HEADER ─────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  transition: opacity .2s;
}

.logo:hover {
  opacity: .8;
}

.logo__img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.btn-ig {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}

.btn-ig:hover {
  opacity: .85;
}

.btn-ig svg {
  width: 16px;
  height: 16px;
}

/* ── CAROUSEL ───────────────────────────────────────── */
.carousel {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
}

.slide {
  display: none;
}

.slide.active {
  display: block;
}

.slide__link {
  display: block;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* fade entre slides */
.slide {
  opacity: 0;
  transition: opacity .45s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.c-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s;
  backdrop-filter: blur(4px);
}

.c-arrow:hover {
  background: rgba(0, 0, 0, .32);
}

.c-arrow--prev {
  left: 16px;
}

.c-arrow--next {
  right: 16px;
}

.c-arrow svg {
  width: 20px;
  height: 20px;
}

.c-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
}

.c-dot {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  border: none;
  cursor: pointer;
  transition: width .3s, background .3s;
  width: 10px;
}

.c-dot.active {
  width: 28px;
  background: var(--teal);
}

/* ── SECCIONES ──────────────────────────────────────── */
.section {
  padding: 72px 24px;
}

.section--alt {
  background: var(--bg-alt);
}

.inner {
  max-width: 1000px;
  margin: 0 auto;
}

.inner--sm {
  max-width: 820px;
  margin: 0 auto;
}

.sec-hdr {
  text-align: center;
  margin-bottom: 52px;
}

.sec-hdr h2 {
  font-family: var(--font-h);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
}

.sec-hdr p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--muted);
}

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.rule__line {
  width: 60px;
  height: 1px;
  background: var(--border);
}

.rule__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

/* ── COMERCIOS ──────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
  transition: box-shadow .22s, border-color .22s, transform .22s;
}

.card:hover {
  box-shadow: 0 4px 18px rgba(47, 181, 210, .18);
  border-color: var(--teal);
  transform: translateY(-3px);
}

.card__logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 16px;
  transition: transform .25s;
}

.card:hover .card__logo {
  transform: scale(1.05);
}

.card__cat {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* Estilos antiguos comentados - ya no se usan */
/*
.logo-mark {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h); font-size: 1.15rem; font-weight: 800;
  transition: transform .25s;
}
.card:hover .logo-mark { transform: scale(1.1); }

.card__name { font-size: 13px; font-weight: 600; color: var(--text); text-align: center; line-height: 1.3; }
.card__ig   { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--teal); opacity: 0; transition: opacity .2s; }
.card:hover .card__ig { opacity: 1; }
.card__ig svg { width: 12px; height: 12px; }
*/

/* ── BOLETÍN ────────────────────────────────────────── */
.boletin-link {
  display: block;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0, 0, 0, .12);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
}

.boletin-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.boletin-link:hover img {
  transform: scale(1.05);
}

.boletin-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .38) 50%, rgba(0, 0, 0, .08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.boletin-link:hover .boletin-hover {
  opacity: 1;
}

.boletin-hover span {
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
}

.b-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .38) 50%, rgba(0, 0, 0, .08) 100%);
}

.b-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 32px;
}

.b-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  width: fit-content;
}

.b-badge svg {
  width: 14px;
  height: 14px;
}

.b-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 10px;
}

.b-title {
  font-family: var(--font-h);
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 18px;
}

.b-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  transition: opacity .2s, gap .2s;
}

.boletin-link:hover .b-cta {
  opacity: .9;
  gap: 12px;
}

.b-cta svg {
  width: 14px;
  height: 14px;
}

.b-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.b-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

.b-pill::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ── FOOTER ─────────────────────────────────────────── */
.footer {
  background: #363a42;
  color: #fff;
  padding: 60px 24px;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.f-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.f-brand {
  margin-bottom: 16px;
}

.f-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.f-desc {
  font-size: 13px;
  opacity: .55;
  line-height: 1.7;
}

.f-col-title {
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 18px;
}

.f-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.f-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  opacity: .7;
}

.f-item svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
  flex-shrink: 0;
}

.f-item a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.f-ig {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  transition: opacity .2s;
}

.f-ig:hover {
  opacity: .8;
}

.f-ig-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.f-ig-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.f-ig-handle {
  font-size: 14px;
  font-weight: 600;
}

.f-ig-label {
  font-size: 11px;
  opacity: .45;
}

.f-hashtag {
  font-size: 13px;
  opacity: .45;
  line-height: 1.6;
}

.f-hashtag strong {
  color: var(--teal);
}

.f-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  opacity: .32;
}

.f-bottom a {
  text-decoration: underline;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 700px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .f-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .card__logo {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 640px) {
  .b-body {
    padding: 18px 20px;
  }

  .b-title {
    font-size: 1.2rem;
  }

  .card__logo {
    width: 80px;
    height: 80px;
  }
}