:root {
  --bg: #050505;
  --panel: #0c0c0c;
  --panel-2: #111111;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.48);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.16);
  --accent: #ff6300;
  --accent-soft: rgba(255, 99, 0, 0.12);
  --accent-line: rgba(255, 99, 0, 0.34);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-lg: 24px;
  --max: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.bg-glow {
  position: fixed;
  inset: -30% -15% auto -15%;
  height: 70vh;
  background:
    radial-gradient(closest-side, rgba(255, 99, 0, 0.22), rgba(255, 99, 0, 0) 72%),
    radial-gradient(closest-side, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 68%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0;
}

.section:first-of-type {
  padding-top: 42px;
}

.sectionHead {
  max-width: 760px;
}

.sectionHead h2 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 2vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.sectionHead p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.sectionHead--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.68);
  backdrop-filter: blur(14px);
  transition: transform 0.28s var(--ease), background 0.2s var(--ease);
}

.header--hidden {
  transform: translateY(-100%);
}

.header--mobileOnly {
  display: none;
}

/* =========================================================
   MOBILE HEADER / DROPDOWN — matched to centros educativos
   ========================================================= */
.header--mobileOnly .mobileHeaderRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header--mobileOnly .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  transform-origin: left center;
}

.header--mobileOnly .brandNameLogo {
  display: block;
  align-self: center;
}

.header--mobileOnly .brandTag {
  align-self: center;
}

.header--mobileOnly .iconBtn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.header--mobileOnly .iconBtn svg,
.header--mobileOnly .navToggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.header--mobileOnly a.headerCta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(255, 99, 0, 0.18);
}

.header--mobileOnly .mobileMenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(6, 6, 6, 0.96);
  backdrop-filter: blur(14px);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  z-index: 1001;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  visibility: visible;
  transition:
    max-height .35s var(--ease),
    opacity .22s var(--ease),
    transform .22s var(--ease);
}

.header--mobileOnly .mobileMenu::before {
  content: "";
  position: absolute;
  inset: -18px -18px auto -18px;
  height: 110px;
  background: radial-gradient(
    closest-side,
    rgba(255, 99, 0, 0.22),
    rgba(255, 99, 0, 0) 70%
  );
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.header--mobileOnly .mobileMenu::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 99, 0, 0),
    rgba(255, 99, 0, 0.9),
    rgba(255, 99, 0, 0)
  );
  box-shadow: 0 0 10px rgba(255, 99, 0, 0.45);
  pointer-events: none;
  z-index: 2;
}

.header--mobileOnly .mobileMenu.isOpen,
.header--mobileOnly.header--menuOpen .mobileMenu {
  max-height: 360px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header--mobileOnly .mobileMenu a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  color: #ffffff;
  font-size: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition:
    transform .15s var(--ease),
    background .2s var(--ease),
    border-color .2s var(--ease),
    box-shadow .2s var(--ease);
}

.header--mobileOnly .mobileMenu a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 99, 0, 0);
  margin-right: 8px;
  flex-shrink: 0;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}

.header--mobileOnly .mobileMenu a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 99, 0, 0.35);
  box-shadow: 0 0 0 6px rgba(255, 99, 0, 0.10);
  transform: translateY(-1px);
}

.header--mobileOnly .mobileMenu a:hover::before {
  background: rgba(255, 99, 0, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 99, 0, 0.18);
}

.header--mobileOnly .mobileMenu a:active {
  transform: translateY(0);
  background: rgba(255, 99, 0, 0.14);
  border-color: rgba(255, 99, 0, 0.45);
}

.header--mobileOnly .mobileMenu a:focus-visible {
  outline: none;
  color: #ffffff;
  box-shadow: 0 0 0 6px rgba(255, 99, 0, 0.18);
  border-color: rgba(255, 99, 0, 0.45);
}

/* First item: subtle accent cue (eye entry point) */
.header--mobileOnly .mobileMenu a:first-child {
  border-color: rgba(255, 99, 0, 0.28);
  background: rgba(255, 99, 0, 0.06);
  font-weight: 700;
}

/* First item hover: slightly stronger */
.header--mobileOnly .mobileMenu a:first-child:hover {
  background: rgba(255, 99, 0, 0.14);
  box-shadow: 0 0 0 6px rgba(255, 99, 0, 0.14);
}

.header--mobileOnly .mobileMenu .divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 6px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brandMark {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(255, 99, 0, 0.12);
}

.brandName {
  min-width: 0;
}

.brandNameLogo {
  height: 28px;
  width: auto;
}

.brandTag {
  font-size: 10px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transition: transform 0.16s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.btn.primary {
  background: linear-gradient(180deg, rgba(255, 99, 0, 0.95), rgba(255, 99, 0, 0.78));
  border-color: rgba(255, 99, 0, 0.7);
  box-shadow: 0 18px 40px rgba(255, 99, 0, 0.16);
}

.btn.primary:hover {
  box-shadow: 0 20px 50px rgba(255, 99, 0, 0.22);
}

.headerCta {
  font-weight: 700;
  color: #fff !important;
}

.mobileHeaderRight {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iconBtn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.iconBtn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-2);
}

.filtersBar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
  gap: 14px;
  margin-top: 22px;
}

.searchField,
.selectField {
  display: block;
}

.searchField input,
.selectField select {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  padding: 0 44px 0 16px;
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
}

.searchField input::placeholder {
  color: var(--muted-2);
}

.searchField input:focus,
.selectField select:focus {
  border-color: rgba(255, 99, 0, 0.55);
  box-shadow: 0 0 0 6px rgba(255, 99, 0, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.selectField {
  position: relative;
}

.selectField::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
  font-size: 13px;
}

.selectField select option {
  background: #0c0c0c;
  color: #ffffff;
}

.selectField select option:checked,
.selectField select option:hover,
.selectField select option:focus,
.selectField select option:active {
  background: linear-gradient(#ff6300, #ff6300);
  background-color: #ff6300;
  color: #ffffff;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badgeOutline {
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.postsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.postCard {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.postCard:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 99, 0, 0.34);
  background: rgba(255, 99, 0, 0.04);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.3);
}

.postMedia {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(180deg, rgba(255, 99, 0, 0.12), rgba(255, 99, 0, 0.02)),
    linear-gradient(135deg, #111111, #1a1a1a);
  overflow: hidden;
}

.postMediaFallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.88);
}

.postMediaOverlay {
  position: absolute;
  inset: 14px 14px auto 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.postBody {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  flex: 1;
}

.postMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.postCategory {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.postDate {
  color: var(--muted-2);
  text-align: right;
}

.postTitle {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.postExcerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

.postTags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.postTag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
}

.postFooter {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.postLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
}

.postArrow {
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}

.postCard:hover .postArrow {
  transform: translateX(3px);
}

.readingTime {
  color: var(--muted-2);
  font-size: 12px;
  text-align: right;
}

.emptyState {
  margin-top: 24px;
}

.emptyStateCard {
  max-width: 620px;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow);
}

.emptyStateCard h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.emptyStateCard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.iconRing {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.isHidden {
  display: none !important;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.on {
  opacity: 1;
  transform: translateY(0);
}

.postLogoBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(8px);
}

.postLogoBadgeImg {
  height: 0px;
  width: auto;
  display: block;
}

/* Cover image only */
.postMedia > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Logo container */
.postLogoBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 5, 5, 0.55);
  backdrop-filter: blur(8px);
  max-width: fit-content;
}

/* Small logo */
.postLogoBadgeImg {
  width: 65px;
  height: auto;
  display: block;
  max-width: none;
}

/* Large tablets */
@media (max-width: 1100px) {
  .postsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filtersBar {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 0.7fr) minmax(200px, 0.7fr);
  }
}

/* Tablets */
@media (max-width: 820px) {
  .header {
    display: none;
  }

  .header--mobileOnly {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .section {
    width: min(var(--max), calc(100% - 28px));
    padding: 28px 0;
  }

  .section:first-of-type {
    padding-top: 28px;
  }

  .sectionHead--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .filtersBar {
    grid-template-columns: 1fr;
  }

  .postsGrid {
    grid-template-columns: 1fr;
  }

  .emptyStateCard {
    padding: 24px 18px;
  }
}

/* Mobile */
@media (max-width: 560px) {
  .header--mobileOnly {
    padding: 12px 14px;
  }

  .backToBlog {
    width: fit-content;
    font-size: 13px;
    padding: 9px 12px;
    margin-bottom: 16px;
  }

  .header--mobileOnly .mobileMenu {
    left: 10px;
    right: 10px;
  }

  .brandTag {
    display: none;
  }

  .brandNameLogo {
    height: 24px;
  }

  .section {
    width: calc(100% - 22px);
  }

  .sectionHead h2 {
    font-size: 1.55rem;
  }

  .searchField input,
  .selectField select {
    height: 50px;
    border-radius: 14px;
    padding: 0 14px;
  }

  .postBody {
    padding: 16px;
  }

  .postMeta {
    flex-direction: column;
    align-items: flex-start;
  }

  .postDate {
    text-align: left;
  }

  .postFooter {
    flex-direction: column;
    align-items: flex-start;
  }

  .readingTime {
    text-align: left;
  }

}


@media (max-width: 380px) and (max-height: 585px) {
  .header--mobileOnly a.headerCta {
    font-size: 10px;
    padding: 0 8px;
  }

  .header--mobileOnly .mobileMenu {
    left: 50%;
    right: auto;
    width: calc(100vw - 20px);
    transform: translateX(-50%) translateY(-6px);
  }

  .header--mobileOnly .mobileMenu.isOpen,
  .header--mobileOnly.header--menuOpen .mobileMenu {
    transform: translateX(-50%) translateY(0);
  }
}


.postPage {
  max-width: 860px;
  margin: 0 auto;
}

.backToBlog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.16s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.backToBlog:hover {
  transform: translateY(-1px);
  background: rgba(255, 99, 0, 0.08);
  border-color: rgba(255, 99, 0, 0.35);
  box-shadow: 0 0 0 6px rgba(255, 99, 0, 0.10);
}

.postHero {
  margin-bottom: 28px;
}

.postHeroMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-2);
  font-size: 14px;
  margin: 0 0 14px;
}

.postHero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.postHeroExcerpt {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.postHeroCover {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.postContent {
  color: var(--text);
  line-height: 1.8;
  font-size: 1.02rem;
}

.postContent h2,
.postContent h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.postContent p,
.postContent ul,
.postContent ol,
.postContent blockquote {
  margin: 0 0 18px;
}

.postContent blockquote {
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  color: var(--muted);
}

.postContent img {
  width: 100%;
  border-radius: 20px;
  margin: 22px 0;
}

.postFooterNote {
  color: var(--muted-2);
  text-align: center;
  margin: 30px 0 10px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.paginationBtn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.paginationBtn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

.paginationBtn.isActive {
  background: linear-gradient(180deg, rgba(255, 99, 0, 0.95), rgba(255, 99, 0, 0.78));
  border-color: rgba(255, 99, 0, 0.7);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 99, 0, 0.18);
}

.paginationBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.paginationDots {
  color: var(--muted-2);
  padding: 0 4px;
}

@media (max-width: 560px) {
  .pagination {
    gap: 6px;
  }

  .paginationBtn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
}


/* Footer */
.footer{
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.footerInner{
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start; /* 👈 key change */
  gap: 48px;                  /* spacing between logo + links */
}
.brandLine{ display:flex; align-items:center; gap:10px; }
.smallText{ font-size: 12px; }
.footerLinks{ display:flex; gap: 14px; align-items:center; flex-wrap:wrap; }
.footerLinks a, .linkBtn{
  color: var(--muted);
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
}
.footerLinks a:hover, .linkBtn:hover{
  color:#fff;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
}

.brandNameLogo_footer {
  height: 18px;     /* adjust if needed */
  width: auto;
  display: block;
}

.footerLinksRows{
  display:flex;
  flex-direction:column;
  gap: 20px;
}

/* ===== Footer: lock layout + typography (final) ===== */

/* Ensure the rows container isn't affected by .footerLinks (center + wrap) */
.footerLinks.footerLinksRows{
  align-items: stretch;
  flex-wrap: nowrap;
}

/* Stable 2-column row: Title | Content */
.footerRow{
  display: grid;
  grid-template-columns: 101px 1fr;  /* try 140–160px */
  gap: 1px;                          /* optional fine tuning */
  align-items: center;              /* vertical alignment title <-> content */
}

/* Title style (restore the "site style") */
.footerTitle{
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted2);
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
}

/* Content containers */
.footerRowLinks,
.footerRowText{
  margin: 0;
  padding: 0;
  line-height: 1.2;
}

/* Keep your pill links, but ensure consistent start */
.footerRowLinks a{
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  line-height: 1.2;
}

/* Contact text aligned like the links (same box model) */
.footerRowText{
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
}

.footerRowText{
  font-size: 13px;   /* same as .footerLinks a */
  font-weight: 400;  /* match link weight */
}

/* --- Footer dual row: Social + Contact --- */
.footerRowDual{
  grid-template-columns: 110px 1fr;
  align-items: center;
}

.footerRowDualContent{
  display: flex;
  align-items: center;
  gap: 24px; /* space between socials and contact */
  flex-wrap: wrap;
}

.footerRowContact{
  display: flex;
  align-items: center;
  gap: 10px;
}

.footerTitleInline{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted2);
  text-transform: uppercase;
  color: #fff;
}

/* Separators ONLY for "Sobre la empresa" links */
.footerRowLinksSeparated{
  display: flex;
  align-items: center;
}

.footerRowLinksSeparated .linkSep{
  width: 1.5px;
  height: 20px;
  background: var(--line2);
  margin: 0 10px;
  flex-shrink: 0;
}

/* Footer social icons */
.footerSocialIcons{
  display:flex;
  align-items:center;
  gap: 16px;
  flex-wrap: wrap;
}

.footerSocialIcons .socialIcon{
  border: 1.5px solid var(--accent) !important;
  border-color: rgba(255,99,0,.85);
}

/* Tight circle hugging the icon */
.footerSocialIcons .socialIcon{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px;                 /* 👈 controls how tight the circle is */
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: transparent;

  width: auto;                  /* 👈 remove fixed box */
  height: auto;
}

.footerSocialIcons .socialIcon svg{
  width: 16px;                  /* keep icon readable */
  height: 16px;
  color: #fff
}

/* Uniformly scale social icons */
.footerSocialIcons{
  transform: scale(0.85);   /* try 0.8 – 0.9 */
  transform-origin: left center;
}

/* === Footer social icons: hover scale + orange icon === */
.footerSocialIcons .socialIcon{
  transition:
    transform .2s var(--ease),
    background .2s var(--ease),
    box-shadow .2s var(--ease),
    color .2s var(--ease);
}

.footerSocialIcons .socialIcon:hover{
  transform: scale(1.15);              /* 👈 grow, don’t move */
  background: rgba(255,99,0,.12);
  box-shadow: 0 0 0 6px rgba(255,99,0,.14);
}

.footerSocialIcons .socialIcon:hover svg{
  color: #ff6300;                      /* 👈 icon turns orange */
}


/* Footer contact items (phone + email) */
.footerContactItem{
  display:inline-flex;
  align-items:center;
  gap: 6px;

  color: var(--muted);
  font-size: 13px;
  padding: 6px 8px;
  border-radius: 999px;

  transition: color .2s var(--ease), background .2s var(--ease);
}

.footerContactItem svg{
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.footerContactItem:hover{
  color: #fff;
  background: rgba(255,255,255,.05);
}

/* Make ONLY the email icon a bit bigger */
.footerContactItem svg{
  width: 14px;
  height: 14px;
}

/* Email icon slightly larger */
.footerContactItem[href^="mailto"] svg{
  width: 16px;
  height: 16px;
}

.footer .brandNameLogo {
  height: 24px; /* try 16–20px */
}

/*---------- PUSH ALL THE LINKS AND EVERYTHING TO THE RIGHT ----------- */
.footerLinks.footerLinksRows{
  margin-left: 3%;   /* try 2% / 3% / 4% / 5% */
}

/* =========================================================
   FOOTER RESPONSIVE OVERRIDES — ONLY 1024px AND BELOW
   Desktop / large screens remain untouched
   ========================================================= */

@media (max-width: 1024px) {
  .footerInner {
    width: min(var(--max), calc(100% - 32px));
    gap: 32px;
    align-items: flex-start;
  }

  .footerLeft {
    flex: 0 0 auto;
    min-width: 200px;
  }

  .footerLinks.footerLinksRows {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    gap: 18px;
  }

  .footerRow,
  .footerRowDual {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .footerRowDualContent {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
  }

  .footerRowLinks,
  .footerRowContact,
  .footerRowLinksSeparated {
    flex-wrap: wrap;
    min-width: 0;
  }

  .footerRowLinksSeparated {
    gap: 10px 0;
  }

  .footerRowLinksSeparated .linkSep {
    display: none;
  }

  .footerSocialIcons {
    transform: none;
    gap: 12px;
  }

  .footerContactItem {
    max-width: 100%;
  }

  .footerContactItem span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 820px) {
  .footer {
    padding: 28px 0;
  }

  .footerInner {
    width: calc(100% - 28px);
    flex-direction: column;
    gap: 24px;
  }

  .footerLeft,
  .footerLinks.footerLinksRows {
    width: 100%;
    min-width: 0;
  }

  .footerLinks.footerLinksRows {
    margin-left: 0;
  }

  .footerRow,
  .footerRowDual {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footerTitle,
  .footerTitleInline {
    display: block;
    margin-bottom: 2px;
  }

  .footerRowLinks a,
  .footerContactItem,
  .footerRowText {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .footer {
    padding: 24px 0;
  }

  .footerInner {
    width: calc(100% - 22px);
    gap: 20px;
  }

  .footerLinks.footerLinksRows {
    gap: 16px;
  }

  .footerRowLinks {
    gap: 8px;
  }

  .footerRowLinks a,
  .footerContactItem,
  .footerRowText {
    font-size: 12px;
    padding: 8px 10px;
  }

  .footerRowContact {
    gap: 8px;
  }

  .footerSocialIcons {
    gap: 10px;
  }

  .footerSocialIcons .socialIcon {
    padding: 5px;
  }

  .footerSocialIcons .socialIcon svg {
    width: 15px;
    height: 15px;
  }

  .footer .brandNameLogo {
    height: 22px;
  }

  .smallText {
    line-height: 1.6;
  }
}

@media (max-width: 380px) {
  .footerInner {
    width: calc(100% - 18px);
  }

  .footerRowLinks a,
  .footerContactItem,
  .footerRowText {
    width: 100%;
    justify-content: flex-start;
  }

  .footerRowContact {
    flex-direction: column;
    align-items: stretch;
  }
}


/* =========================================================
   1024px range: keep content centered, but footer full-bleed
   ========================================================= */
@media (max-width: 1200px) and (min-width: 901px) {

  main{
    width: 100%;
    max-width: none;
    margin: 0;

    /* ⬅️ Keep comfortable left padding */
    padding-left: clamp(24px, 4vw, 48px);

    /* ➡️ MUCH smaller right padding */
    padding-right: clamp(8px, .9vw, 8px);
  }

  /* Let hero use all the space available */
  .hero{
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Optional: give the right column more real estate */
  .hero{
    grid-template-columns: 1fr 1.05fr;  /* more room for the phone */
    gap: clamp(26px, 3vw, 52px);
  }

  /* Stop horizontal overflow from affecting layout / header */
  html, body{
    overflow-x: clip; /* better than hidden (doesn't create scrolling quirks) */
  }

  /* DO NOT clip the hero column */
  .heroRight{
    overflow: visible;
  }

  /* Give the phone room so it isn't clipped */
  .miniDash.imageDash{
    overflow: visible;                 /* let it breathe */
    padding-right: clamp(18px, 2vw, 36px);
  }

  /* (Optional) keep nice rounded clipping if needed */
  .miniDash.imageDash{
    border-radius: 18px;
  }

  /* Center all sections (content) */
  main > section{
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* ✅ Footer: full viewport width (break out of main padding) */
  main > footer.footer{
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  /* Keep footer content aligned with the page padding */
  .footerInner{
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-left: clamp(24px, 4vw, 48px);
    padding-right: clamp(24px, 4vw, 48px);
  }
}


/* 1024px (901–1200): Footer = 2 columns (brand left, links right)
   Right column contains 2 rows (like your 2nd screenshot) */
@media (max-width: 1200px) and (min-width: 901px) {

  /* Footer content uses full available width */
  .footerInner{
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;

    padding-left: clamp(24px, 4vw, 48px) !important;
    padding-right: clamp(24px, 4vw, 48px) !important;

    /* ✅ This is the key: 2 columns, not 1 */
    display: grid !important;
    grid-template-columns: minmax(260px, 360px) 1fr !important;
    column-gap: clamp(28px, 4vw, 64px);
    align-items: start;
  }

  /* Left column: brand stays left */
  .footerLeft{
    grid-column: 1;
    grid-row: 1;
  }

  /* Right column: everything else stays to the right (two rows inside) */
  .footerLinks.footerLinksRows{
    grid-column: 2;
    grid-row: 1;
    margin-left: 0 !important; /* cancels your old push-right rule */
  }

  /* Keep Row 1 (social + contact) on one line */
  .footerRowDualContent{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: clamp(16px, 2vw, 28px);
  }

  /* If contact row is too tight, allow ONLY the contact to wrap */
  .footerRowContact{
    flex-wrap: wrap;
    row-gap: 8px;
  }

  /* Row 2 links can wrap naturally if needed */
  .footerRowLinksSeparated{
    flex-wrap: wrap;
    row-gap: 10px;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {

  /* 1) Make the left column narrower so the right content moves left */
  .footerInner{
    grid-template-columns: minmax(100px, 180px) 1fr !important; /* was 260–360 */
    column-gap: clamp(18px, 2.6vw, 40px) !important;           /* slightly tighter */
  }

  /* 2) Remove any "push to the right" from earlier rules */
  .footerLinks.footerLinksRows{
    margin-left: 0 !important;
    padding-left: 0 !important;
    justify-self: start;  /* makes sure it hugs the left of column 2 */
  }

  /* Optional: if you still want it even more left */
  .footerLinks.footerLinksRows{
    transform: translateX(-14px);
  }
}

@media (max-width: 1200px) and (min-width: 901px) {

  .dashboardImage{
    width: 170%;          /* ⬅️ percentage-based scaling */
    max-width: none;      /* allow it to exceed container */
    height: auto;
    transform: translate(20px, -40px);
  }
}
