﻿:root {
  --brand-green: #007355;
  --brand-blue: #005b99;
  --brand-coral: #f79489;
  --gray-100: #f7f8f9;
  --gray-200: #e0e4e7;
  --gray-300: #c3c9cf;
  --text-dark: #2f373d;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  color: var(--text-dark);
  background: var(--gray-100);
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

header:not(.site-header),
main,
footer {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
}

header:not(.site-header) {
  padding-top: 1.5rem;
}

.hero {
  margin-top: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
}

.hero img {
  width: 100%;
  height: auto;
}

.hero--home {
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 30vh;
  background-image: url('../BANNER PAGINA INICIO.jpg');
  background-size: cover;
  background-position: center center;
  position: relative;
  overflow: visible;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1rem, 3vw, 2rem) clamp(1.5rem, 4vw, 3rem) clamp(2rem, 6vw, 3.5rem);
  background: transparent;
}

.site-header {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #1d1f24;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand-mark {
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.15rem;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  height: 2px;
  width: 100%;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-nav a:is(:hover, :focus-visible, .is-active)::after {
  transform: scaleX(1);
}

.nav-icon {
  border: none;
  background: transparent;
  color: inherit;
  display: flex;
  padding: 0.15rem;
  cursor: pointer;
}

.nav-toggle {
  border: 1px solid rgba(0, 0, 0, 0.35);
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  display: none;
  color: inherit;
}

.nav-toggle__bars {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: currentColor;
  border-radius: 999px;
}

.nav-toggle__bars::before {
  transform: translateY(-6px);
}

.nav-toggle__bars::after {
  transform: translateY(6px);
}

.hero-content {
  text-align: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 7vw, 4.2rem);
  font-weight: 500;
  margin: clamp(1rem, 3vw, 2rem) 0 0;
  color: #32373c;
}

.home-main {
  padding: 2.5rem 1.5rem 3rem;
}

.home-intro {
  text-align: center;
  font-size: 1.05rem;
  margin: 0 auto 2rem;
  color: #4a5056;
}

.brand-logo-section {
  background: white;
  border-radius: 28px;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
  flex-wrap: wrap;
}

.brand-logo {
  flex: 1 1 200px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  transition: transform 200ms ease;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  transform: translateY(-4px);
}

.brand-logo img {
  max-height: 150px;
  width: min(260px, 90%);
  object-fit: contain;
}

.brand-grid {
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.brand-card {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  border: 2px solid transparent;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.brand-card img {
  max-height: 90px;
  object-fit: contain;
}

.brand-card:focus-visible,
.brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.15);
  border-color: var(--gray-300);
}

.brand-highlight {
  margin: 1rem auto 3rem;
  background: white;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.08);
  min-height: 80px;
  line-height: 1.5;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.main-nav a.home-link {
  font-weight: 600;
  color: var(--brand-blue);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--gray-200);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 200ms ease, color 200ms ease;
}

.btn-back:hover {
  background: var(--brand-blue);
  color: white;
}

.brand-hero {
  margin-top: 1.5rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.18);
}

.brand-hero img {
  width: 100%;
  height: auto;
}

.promo-meta {
  margin: 1rem 0 1.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  font-size: 0.97rem;
  color: #4a5056;
}

.promo-date {
  font-weight: 700;
  color: var(--brand-blue);
}

.promo-note {
  font-style: italic;
}

.nav-footer {
  margin: 1.75rem 0 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.table-card {
  margin: 2.5rem auto 3rem;
  background: white;
  border-radius: 24px;
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.15);
  overflow: hidden;
}

.table-card__header {
  padding: 0.2rem 1rem;
  color: white;
}

.table-card--green .table-card__header { background: #C2D450; text-align: center;}
.table-card--blue .table-card__header { background: #E56A54; text-align: center;}
.table-card--blue1 .table-card__header { background: #9B2242; text-align: center;}
.table-card--blue2 .table-card__header { background: #250E62; text-align: center;}
.table-card--blue3 .table-card__header { background: #309B42; text-align: center;}
.table-card--blue4 .table-card__header { background: #00C7B1; text-align: center;}
.table-card--coral .table-card__header { background: #008C95; text-align: center; }
.table-card--coral1 .table-card__header { background: #49C5B1; text-align: center;}
.table-card--coral2 .table-card__header { background: #D185B7; text-align: center;}
.table-card--coral3 .table-card__header { background: #F7AD5E; text-align: center;}
.table-card--coral4 .table-card__header { background: #F18774; text-align: center;}
.table-card--coral5 .table-card__header { background: #005EB8; text-align: center;}
.table-card--coral6 .table-card__header { background: #575756; text-align: center;}
.table-card--coral7 .table-card__header { background: #F08100; text-align: center;}
.table-card--coral8 .table-card__header { background: #6A3500; text-align: center;}



.table-card__subtitle {
  margin-top: 1%;
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.category-block {
  padding: 1.75rem 2rem 0.75rem;
  /*border-bottom: 1px solid var(--gray-200);*/
}

.category-block:last-child {
  border-bottom: none;
  padding-bottom: 2rem;
}

.category-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  color: inherit;
  cursor: pointer;
}

.bottom-tight {
  margin-bottom: 1%;
}

.top-tight {
  margin-top: 1%;
}

.category-title::after {
  /*content: '\25bc';*/
  font-size: 0.75rem;
  transition: transform 200ms ease;
}

.category-block.collapsed .category-title::after {
  transform: rotate(-90deg);
}

.category-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.75rem;
  margin-top: 1rem;
}

.category-table td {
  background: var(--gray-100);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  vertical-align: middle;
}

.category-table td:first-child {
  width: 75%;
  border-radius: 12px 0 0 12px;
}

.category-table td:last-child {
  width: 25%;
  text-align: right;
  color: #d22;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 0 12px 12px 0;
}

.category-table strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.category-table em {
  font-style: normal;
  color: #5c636a;
}

.category-block.collapsed .category-table {
  display: none;
}

footer {
  padding: 1.5rem;
  margin-bottom: 2rem;
  color: #5c636a;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 200ms ease, transform 200ms ease;
    z-index: 10;
  }

  .site-nav[data-open='true'] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .brand-logo-section {
    padding: 1.5rem;
    justify-content: center;
  }

  .brand-logo {
    flex: 1 1 160px;
  }
}

@media (max-width: 600px) {
  header:not(.site-header),
  main,
  footer {
    padding: 0 1rem;
  }

  .table-card,
  .brand-highlight {
    border-radius: 18px;
  }

  .category-table {
    border-spacing: 0 0.65rem;
  }

  .category-table td {
    display: table-cell;
    width: auto;
    padding: 0.9rem 1rem;
  }

  .category-table td:first-child {
    width: 70%;
  }

  .category-table td:last-child {
    width: 30%;
    text-align: right;
  }

  .brand-logo-section {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
  }

  .brand-logo {
    flex: none;
    min-height: 120px;
  }

  .brand-logo img {
    max-height: 110px;
    margin: 0 auto;
    width: min(240px, 85%);
  }

  .promo-meta {
    margin: 0.75rem 0 1.25rem;
    padding: 0.85rem 1rem;
  }

  .nav-footer {
    justify-content: center;
  }
}
