@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-bg-page);
  color: var(--color-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  color: var(--color-text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 4vw + 0.5rem, 3.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

h4 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* Header & Navigation (Centered Logo Layout with generous spacing) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(243, 244, 246, 0.8);
}

.header-nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  height: 95px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-main);
  transition: color 0.15s ease;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-dark);
}

/* Nav Item Dropdown */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-main);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown-trigger.active,
.nav-item-dropdown:hover .nav-dropdown-trigger {
  color: var(--color-primary-dark);
}

.nav-dropdown-arrow {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.nav-item-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  min-width: 250px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1100;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-item:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

.nav-dropdown-item.active {
  color: var(--color-primary-dark);
  font-weight: 600;
  background: rgba(110, 181, 212, 0.08);
}

/* Badge Novedad */
.badge-novedad {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background-color: #fef3c7;
  color: #b45309;
  border-radius: var(--radius-full);
  margin-left: 0.5rem;
  line-height: 1;
}

/* Mobile subnav */
.mobile-subnav-list {
  list-style: none;
  padding: 0.4rem 0 0.6rem 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-subnav-link {
  font-size: 1.05rem;
  font-weight: 500;
  color: #4b5563;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  text-decoration: none;
}

.mobile-subnav-link:hover,
.mobile-subnav-link.active {
  color: var(--color-primary-dark);
}

.site-header-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.site-header-logo img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text-main);
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #ffffff;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.mobile-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--color-text-muted);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-main);
}

/* Footer (Matching Screenshot 4) */
.site-footer {
  background-color: #ffffff;
  padding-top: 5rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 4.5rem;
}

.footer-logo {
  height: 72px;
  width: auto;
  margin-bottom: 1.75rem;
}

.footer-text {
  max-width: 480px;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.footer-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  transition: transform 0.15s ease, color 0.15s ease;
}

.footer-social-icon:hover {
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.footer-social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-bottom-bar {
  background-color: var(--color-bg-footer-bar);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-bottom-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-self: start;
}

.footer-bottom-links a {
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.footer-bottom-links a:hover {
  color: var(--color-text-main);
}

.footer-bottom-copy {
  text-align: center;
  justify-self: center;
}

.footer-bottom-cookies {
  justify-self: end;
}

.cookies-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

/* Responsive */
@media (max-width: 860px) {
  .nav-group {
    display: none;
  }

  .header-nav-container {
    justify-content: space-between;
    height: 75px;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
}
