:root {
  --color-guinda: #691C32;
  --color-guinda-dark: #4E1224;
  --color-guinda-light: #832742;
  --color-guinda-50: #FBF4F6;
  
  --color-dorado: #BC955C;
  --color-dorado-dark: #97723E;
  --color-dorado-light: #D8B681;
  --color-dorado-50: #FAF6EE;

  --color-bg: #F8F9FA;
  --color-card-bg: #FFFFFF;
  --color-text-main: #1F2937;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;

  --font-base: 16px;
}


html {
  font-size: var(--font-base);
  scroll-behavior: smooth;
  box-sizing: border-box;
}

body.text-large {
  --font-base: 18px;
}

body.text-xlarge {
  --font-base: 20px;
}

*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}


.topbar {
  background-color: #1A1A1A;
  color: #D1D5DB;
  font-size: 0.8125rem;
  border-bottom: 2px solid var(--color-dorado);
  padding: 0.5rem 0;
}

.topbar-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.topbar-weather {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-weather .city {
  font-weight: 600;
  color: #FFFFFF;
}

.topbar-weather .temp {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.topbar-weather .temp svg {
  width: 1rem;
  height: 1rem;
  stroke: var(--color-dorado);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.accessibility-controls {
  display: flex;
  align-items: center;
  background-color: #262626;
  border: 1px solid #404040;
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  gap: 0.4rem;
}

.accessibility-controls span {
  font-size: 0.7rem;
  font-weight: 600;
}

.accessibility-controls button {
  background: transparent;
  border: none;
  color: #D1D5DB;
  font-weight: bold;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.accessibility-controls button:hover {
  background-color: #404040;
}

.btn-a-plus {
  color: var(--color-dorado) !important;
}

.btn-a-xplus {
  color: var(--color-dorado-light) !important;
}

.topbar-link {
  color: #D1D5DB;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s;
}

.topbar-link:hover {
  color: var(--color-dorado);
}

.topbar-link svg {
  width: 0.9rem;
  height: 0.9rem;
}


.navbar {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  
}

/* Limitar tamaño del contenedor del logotipo */
.brand-logo-container {
  width: 3.5rem;          /* ~56px de ancho */
  height: 3.5rem;         /* ~56px de alto */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Forzar a que la imagen se ajuste perfectamente sin deformarse ni desbordarse */
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (min-width: 640px) {
  .navbar-content {
    padding: 0.75rem 1.5rem;
  }
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-badge {
  width: 3rem;
  height: 3rem;
  background-color: var(--color-guinda);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 8px;
  border: 2px solid var(--color-dorado);
}

.brand-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-guinda);
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand-subtitle {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-dorado-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .nav-links-desktop {
    display: flex;
  }
}

.nav-item {
  color: #4B5563;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s;
}

.nav-item:hover, .nav-item.active {
  color: var(--color-guinda);
}

.nav-item.active {
  border-bottom: 2px solid var(--color-guinda);
  padding-bottom: 0.2rem;
}

.btn-emergency {
  background-color: #B91C1C;
  color: #FFFFFF !important;
  font-weight: 800;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: background-color 0.2s;
}

.btn-emergency:hover {
  background-color: #991B1B;
}

.btn-emergency svg {
  width: 1rem;
  height: 1rem;
}

.btn-menu-mobile {
  display: block;
  background: transparent;
  border: none;
  color: #374151;
  cursor: pointer;
  padding: 0.5rem;
}

.btn-menu-mobile svg {
  width: 1.75rem;
  height: 1.75rem;
}

@media (min-width: 1024px) {
  .btn-menu-mobile {
    display: none;
  }
}

.mobile-menu-drawer {
  display: none;
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-drawer.open {
  display: flex;
}

.mobile-nav-link {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  padding: 0.5rem 0;
  border-bottom: 1px solid #F3F4F6;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-link.active {
  color: var(--color-guinda);
  font-weight: 800;
}


.section-header {
  background: linear-gradient(135deg, var(--color-guinda), var(--color-guinda-dark));
  color: #FFFFFF;
  padding: 3rem 1rem;
  text-align: center;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-dorado-light);
  margin-bottom: 0.75rem;
}

.breadcrumb a {
  color: var(--color-dorado-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-description {
  font-size: 0.95rem;
  color: #E5E7EB;
  max-width: 42rem;
  margin: 0 auto 2rem auto;
  font-weight: 300;
}

.search-box-wrapper {
  max-width: 36rem;
  margin: 0 auto;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 9999px;
  border: 3px solid var(--color-dorado);
  padding: 0.25rem 0.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  border-radius: 9999px;
  color: #111827;
}

.search-bar .search-icon {
  color: var(--color-guinda);
  padding: 0.5rem;
  display: flex;
  align-items: center;
}

.search-bar .search-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}


.main-content {
  padding: 3rem 0;
  flex: 1;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


.category-card {
  background-color: var(--color-card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--color-border);
  border-top-width: 5px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}


.border-guinda {
  border-top-color: var(--color-guinda);
}

.border-dorado {
  border-top-color: var(--color-dorado);
}

.border-pizarra {
  border-top-color: #374151;
}

.border-vino-light {
  border-top-color: var(--color-guinda-light);
}

.border-dorado-dark {
  border-top-color: var(--color-dorado-dark);
}


.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #F3F4F6;
}

.card-icon-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-guinda {
  background-color: var(--color-guinda-50);
  color: var(--color-guinda);
}

.badge-dorado {
  background-color: var(--color-dorado-50);
  color: var(--color-dorado-dark);
}

.badge-pizarra {
  background-color: #F3F4F6;
  color: #374151;
}

.badge-vino-light {
  background-color: var(--color-guinda-50);
  color: var(--color-guinda-light);
}

.card-icon-badge svg {
  width: 1.25rem;
  height: 1.25rem;
}

.card-title-group h2 {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.2;
}

.title-guinda {
  color: var(--color-guinda);
}

.title-dorado {
  color: var(--color-dorado-dark);
}

.title-pizarra {
  color: #374151;
}

.title-vino-light {
  color: var(--color-guinda-light);
}

.card-title-group p {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}


.card-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.link-item a {
  text-decoration: none;
  font-size: 0.875rem;
  color: #374151;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.35;
  transition: color 0.15s, transform 0.15s;
}

.link-bullet {
  font-weight: 900;
}

.bullet-guinda {
  color: var(--color-guinda);
}

.bullet-dorado {
  color: var(--color-dorado);
}

.bullet-pizarra {
  color: #4B5563;
}

.link-item a:hover {
  color: var(--color-guinda);
  transform: translateX(3px);
  text-decoration: underline;
}


.empty-state {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: #FFFFFF;
  border-radius: 1rem;
  border: 1px solid var(--color-border);
  margin-bottom: 2rem;
}

.empty-state.visible {
  display: block;
}

.empty-state svg {
  width: 3rem;
  height: 3rem;
  color: #9CA3AF;
  margin: 0 auto 0.75rem auto;
}

.empty-state h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1F2937;
}

.empty-state p {
  font-size: 0.875rem;
  color: #6B7280;
  margin-top: 0.25rem;
}


.site-footer {
  background-color: var(--color-guinda-dark);
  color: #FFFFFF;
  border-top: 4px solid var(--color-dorado);
  padding: 2.5rem 0 1.5rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-brand .brand-badge {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #FFFFFF;
  color: var(--color-guinda);
}

.footer-brand span {
  font-size: 1rem;
  font-weight: 800;
}

.footer-text {
  font-size: 0.8rem;
  color: #E5E7EB;
  line-height: 1.4;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-dorado);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-contact p {
  font-size: 0.8rem;
  color: #E5E7EB;
  margin-bottom: 0.25rem;
}

.footer-contact strong {
  color: #FFFFFF;
  font-size: 0.95rem;
}

.footer-action {
  display: flex;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .footer-action {
    justify-content: flex-end;
  }
}

.btn-portal {
  background-color: var(--color-guinda);
  border: 1px solid rgba(188, 149, 92, 0.4);
  color: var(--color-dorado-light);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 0.75rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background-color 0.2s;
}

.btn-portal:hover {
  background-color: var(--color-guinda-light);
}

.btn-portal svg {
  width: 1rem;
  height: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--color-guinda-light);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: #9CA3AF;
}


.btn-whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #25D366;
  color: #FFFFFF;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  border: 2px solid #FFFFFF;
  z-index: 50;
  text-decoration: none;
  transition: transform 0.2s;
}

.btn-whatsapp-float:hover {
  transform: scale(1.1);
}

.btn-whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
}