*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue-dark:    #003087;
  --blue-mid:     #0057b7;
  --blue-light:   #e8f0fb;
  --blue-nav:     #003087;
  --orange:       #f60;
  --yellow:       #ffcc00;
  --green:        #007a3d;
  --gray-light:   #f5f5f5;
  --gray-border:  #ddd;
  --text:         #ffffff;
  --text-muted:   #555;
  --white:        #fff;
  --font-main:    'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* CONTAINER */
.container {
   max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* ========================
   TOP BAR
======================== */
.top-links {
  display: flex;
  gap: 18px;
}
.top-links a {
  color: var(--blue-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity .2s;
}
.top-links a:hover { opacity: .7; }
.lang-switch {
  display: flex;
  gap: 10px;
  align-items: center;
}
.lang-switch a {
  font-weight: 700;
  font-size: .8rem;
  padding: 2px 6px;
  border-radius: 3px;
  transition: background .2s;
  cursor: pointer;
}
.lang-switch a.active,
.lang-switch a:hover {
  background: #B08A57;
  color: var(--white);
}

/* ========================
   HEADER
======================== */
.site-header {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-border);
  background: var(--white);
  background-color: #F4F1EC;
}
.header-inner {
  display: flex;
  margin: 0 auto;
  max-width: 980px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.logo-wrap a {
  display: flex;
  align-items: center;
  gap: 4px;
}
.logo-svg { display: none; } /* using text logo */
.logo-text {
  font-family: var(--font-main);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--blue-dark);
  letter-spacing: -1px;
  /* Styled like the brand: LO with a circle O */
  background: linear-gradient(135deg, var(--blue-dark) 60%, var(--blue-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Stylised LOTERÍA logo using CSS */
.logo-wrap .logo-text::before {
  content: '';
}

.logo-ircj{
  max-width: 100%;
  height: auto;
  width: 500px;
}

.search-bar {
  display: flex;
  border: 1px solid var(--gray-border);
  border-radius: 4px;
  overflow: hidden;
  max-width: 280px;
  width: 100%;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 7px 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--text);
}
.search-bar button {
  background: var(--blue-dark);
  border: none;
  color: white;
  padding: 0 14px;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}
.search-bar button:hover { background: var(--blue-mid); }

/* ========================
   NAVIGATION
======================== */
.main-nav {
  background-color: #8C6B3E;
  position: relative;
  z-index: 100;
  display: flex;
}
.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}
.nav-list {
  list-style: none;
  display: flex;
  width: 100%;
}
.nav-list > li {
  position: relative;
}
.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 16px 18px;
  letter-spacing: .04em;
  transition: background .2s;
  white-space: nowrap;
}
.nav-list > li > a:hover,
.nav-list > li.active > a {
  background: rgba(255,255,255,0.15);
}
.arrow { font-size: 0.7rem; }

/* Dropdown */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background:#1F2A36;
  border: 1px solid var(--gray-border);
  min-width: 200px;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  z-index: 200;
}
.dropdown li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.84rem;
  color: var(--text);
  font-family: var(--font-body);
  transition: background .15s;
}
.dropdown li a:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
}
.has-dropdown:hover .dropdown { display: block; }

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 12px 0;
  margin-left: auto;
}

/* ========================
   BREADCRUMB
======================== */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--gray-border);
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--blue-mid);
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ========================
   MAIN CONTENT
======================== */
.main-content {
  padding: 36px 10px 48px 10px;
  background-color: #3E4A56;
}

.page-title {
  font-family: var(--font-main);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -.01em;
}

.intro-text {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 860px;
}

/* CATALOG SECTION */
.catalogo {
  margin-bottom: 36px;
}
.catalogo h2,
.licencias h2,
.marcas h2 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.catalogo ul,
.licencias ul {
  list-style: disc;
  padding-left: 22px;
}
.catalogo ul li,
.licencias ul li {
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.6;
}

/* LICENCIAS SECTION */
.licencias {
  margin-bottom: 40px;
}

/* ========================
   BRANDS GRID
======================== */
.marcas h2 {
  font-size: 1.3rem;
  margin-bottom: 22px;
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.brand-card {
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
  cursor: pointer;
}
.brand-card:hover {
  transform: translateY(-5px);
}
.brand-card img {
  height: 100%;
  width: 200px;
  object-fit: contain;
  border-radius: 15px;
}
/* ========================
   QUICK LINKS
======================== */
.quick-links {
  background: #3E4A56;
  padding: 24px 0;
}
.quick-links-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color .2s;
  text-align: center;
}
.quick-link:hover { color: var(--blue-mid); }
.ql-icon {
  font-size: 1.6rem;
  display: block;
}

 
/* ========================
   FOOTER
======================== */
.footer {
  background-color: #3f4756;
  color: #fff;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: auto;
  flex-wrap: wrap;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  margin: 10px;
}

.footer-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.footer-item .icon {
  margin-right: 10px;
  font-size: 18px;
}

.footer-logos img {
  height: 40px;
  margin-right: 10px;
  opacity: 0.8;
}

.footer-center {
  text-align: center;
}

.footer-center .escudo {
  width: 80px;
  margin-bottom: 10px;
}

.footer-right {
  text-align: right;
}

.social-icons {
  margin: 10px 0;
}

.social-icons a {
  margin: 0 5px;
  font-size: 18px;
  text-decoration: none;
  color: white;
}

.footer-right ul {
  list-style: none;
  padding: 0;
}

.footer-right ul li {
  margin: 8px 0;
}

.footer-right ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-right ul li a:hover {
  text-decoration: underline;
}
/* ========================
   RESPONSIVE
======================== */

/* Tablet: 2 columns for brands */
@media (max-width: 900px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-center {
    grid-column: 1 / -1;
    order: -1;
  }
}

@media (max-width: 750px) {
  /* Header */
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }

  .nav-inner {
  margin: 0;
}
  /* Nav hamburger */
  .hamburger { display: block; }
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--blue-nav);
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
  }
  .nav-list.open { display: flex; }
  .nav-list > li > a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .dropdown {
    position: static;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    border: none;
  }
  .dropdown li a { color: rgba(255,255,255,.85); }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }

  /* Brands */
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer{
    display: flex;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .footer-right {
  text-align: center;
  }
  /* Quick links */
  .quick-links-inner {
    gap: 20px;
    justify-content: center;
  }

  /* Top bar */
  .top-links a span.icon { display: none; }

  .page-title { font-size: 1.5rem; }
}

@media (max-width: 420px) {
  .brands-grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }
  .brand-card { min-height: 70px; padding: 12px 6px; }
  .brand-text { font-size: 0.78rem; }

  .nav-list > li > a { font-size: 0.78rem; padding: 12px 16px; }

  .top-links { gap: 10px; font-size: 0.72rem; }
}