section.header {padding-top: 0!important; padding-bottom: 0!important; border-bottom: 1px solid var(--surface-brand, #E0E0E0);}

.menu {
  position: relative;
  height: 80px;
}

.menu-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-56, 40px);
}
.menu-links a {
  color: var(--text-title, #333);
  text-decoration: none;
  transition: color 0.2s;
}

.cta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.row.align-center {
  align-items: center;
}

/* Centrar logo e icono en la cabecera */
.menu .row.align-center > .col-3:first-child {
  display: flex;
  align-items: center;
  justify-content: left;
  height: var(--spacing-80,80px);
}
.menu .logotipo {
  display: block;
  margin: 0 auto;
  width: 103px;
  height: 16px;
  object-fit: contain;
}

/* Utilidades para mostrar/ocultar en mobile/desktop */
.hide-mobile { display: flex; }
.only-mobile { display: none !important; }
@media (max-width: 900px) {
  .hide-mobile { display: none !important; }
  .only-mobile { display: flex !important; align-items: center; justify-content: space-between; width: 100% }
}

/* Burger icon styles */
.burger {
  background: none;
  border: none;
  padding: var(--spacing-8,8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
  width: 24px;
  height: 24px;
}
.burger-icon,
.burger-icon::before,
.burger-icon::after {
  display: none !important;
}
.burger img {
  width: 24px;
  height: 24px;
  display: block;
}

/* Dropdown mobile menu */
.menu-dropdown {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-40,40px);
  background: var(--surface-background,#fff);
  z-index: 100;
  position: fixed;
  top: 80px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 80px);
}
.menu-open .menu-dropdown {
  display: flex;
}
.menu-dropdown-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-64,40px);
  width: 100%;
  align-items: center;
}
.menu-dropdown-cta {
  margin-top: var(--spacing-56,56px);
}

@media (max-width: 900px) {
  .menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 200;
    background: var(--surface-background,#fff);
  }
  section.hero {
    min-height: calc(100vh - 80px);
    height: calc(100vh - 80px);
    box-sizing: border-box;
    margin-top: 0 !important;
  }
}

.menu .container > .row.align-center {
  align-items: center;
  min-height: 80px;
  height: 80px;
  display: flex;
}

section.hero {
  min-height: calc(100vh - 80px);
  height: calc(100vh - 80px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: relative;
  margin-top: 0;
}

.hero .container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.scroll {
  position: absolute;
  left: 0;
  bottom: var(--spacing-64, 64px);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.scroll img {
  filter: invert(1) brightness(2) !important;
}


.footer .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer .col-4 {
  display: flex;
  align-items: center;
}
.footer-links {
  justify-content: center;
  flex: 1 1 auto;
  text-align: center;
  gap: 32px;
}
.footer-scroll {
  justify-content: flex-end;
}
.copyright {
  justify-content: flex-start;
}

@media (max-width: 900px) {

  .footer-scroll {
    order: 1;
    justify-content: center;
    text-align: right;
    margin-bottom: 0;
  }
  .footer-links {
    order: 2;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
    padding-top: 32px!important;
    padding-bottom: 32px!important;
  }
  .copyright {
    order: 3;
    justify-content: center;
    text-align: left;
    margin-bottom: 0;
  }
}

/* Menú principal */
.menu {
  background: none;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 1000;
}
.menu-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  min-height: 56px;
  position: relative;
  z-index: 2001;
}
@media (max-width: 900px) {
  .menu-inner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    height: 56px;
    z-index: 3000;
    border-bottom: 1px solid;
  }
}
.menu-col {
  display: flex;
  align-items: center;
}
.menu-logo {
  width: 202px;
  justify-content: flex-start;
}
.menu-links {
  flex: 1;
  justify-content: center;
  gap: 56px;
}
.menu-links a {
  text-decoration: none;
  transition: color 0.2s;
}

.menu-cta {
  justify-content: flex-end;
}
.menu-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  margin-left: 16px;
  z-index: 2002;
}
.menu-burger span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.menu-burger.close span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.menu-burger.close span:nth-child(2) {
  opacity: 0;
}
.menu-burger.close span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}
.menu-dropdown {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100vw;
  min-width: 0;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  box-sizing: border-box;
  z-index: 2000;
}
.menu-dropdown-header {
  display: none;
}
@media (max-width: 900px) {
  .menu-inner {
    display: flex;
  }
  .menu-links-desktop,
  .menu-cta-desktop {
    display: none !important;
  }
  .menu-burger {
    display: flex;
    margin-left: auto;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    z-index: 3001;
  }
  .menu-dropdown {
    display: none;
  }
  body.menu-open .menu-dropdown {
    display: flex;
  }
  .menu-dropdown-links {
    padding: 2rem 1.5rem 0 1.5rem;
    gap: 24px;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
  }
  .menu-link-mobile {
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 32px;
    padding: 0;
    transition: color 0.2s;
    display: block;
    width: 100%;
  }
  .menu-dropdown-cta {
    padding: 1.5rem 1.5rem 2rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
  }
  .menu-dropdown-cta .button {
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
    white-space: normal;
  }
}

/* Footer styles */

.card {
  border-radius: var(--spacing-16, 16px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--surface-surface, #fff);
  padding: var(--spacing-32) var(--spacing-40) var(--spacing-56) var(--spacing-40);
  cursor: pointer;
}

.card-content {
    width: 100%;
    margin-top: var(--spacing-120);
}


/* Utilidades de altura para cards individuales */
.h-320 { height: 320px !important; }
.h-480 { height: 480px !important; }
.h-660 { height: 660px !important; }
.h-500 { height: 500px !important; }
.h-360 { height: 360px !important; }


/* LABS: Alineación vertical de columnas y cards con alturas individuales */
.labs-row {
  display: flex;
  align-items: center;
}

.labs-row > .col-4 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.labs-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.labs-card .card-content {
  margin-top: auto;
  justify-content: flex-end;
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .labs-row {
    flex-direction: column;
    align-items: stretch;
  }
  .labs-row > .col-4 {
    height: auto;
  }
  .labs-card {
    height: 320px !important;
  }
  .labs-row > .col-4:last-child {
    order: -1;
  }
  .labs-row > .col-4:last-child .labs-card {
    height: auto !important;
  }
}


section.links-section .card-content {
    margin-top: var(--spacing-32);
}



/* Botones: primario, secundario y circular (small y big) */
a.button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--spacing-999, 999px);
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border 0.2s;
  text-decoration: none;
  background: var(--button-background, transparent);
  color: var(--button-text, inherit);
  border-color: var(--button-border, transparent);
  /* Elimina font-size y font-weight directos, se aplican por utilidades en HTML */
}


a.button-secondary, .button-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  padding: 0px;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
  text-decoration: none;
  background: transparent !important;
  color: var(--button-background, inherit);
}
.button-secondary {
    height: 56px;
    min-height: 56px;
    box-sizing: border-box;
}


.button-big {
  /* paragraph para primary, h5 para secondary, se aplica por clase utilitaria en HTML */
  padding: var(--spacing-24, 24px) var(--spacing-40, 40px);
}
.button-small {
  /* caption bold, se aplica por clase utilitaria en HTML */
  padding: var(--spacing-8, 8px) var(--spacing-24, 24px);
}
.button-circular-big {
  width: 80px;
  height: 80px;
  border-radius: var(--spacing-999, 999px);
  border: none;
  padding: 0;
  justify-content: center;
}
.button-circular-small {
  width: 48px;
  height: 48px;
  border-radius: var(--spacing-999, 999px);
  border: none;
  padding: 0;
  justify-content: center;
}
.button .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--button-text, inherit);
}

.button-secondary .icon,
.button-secondary p {
  color: var(--button-background, inherit) !important;
}


.button-circular-big .icon {
  width: 48px;
  height: 48px;
}
.button-circular-small .icon {
  width: 24px;
  height: 24px;
}
.button:focus {
  outline: 2px solid;
  outline-offset: 2px;
}

/* Bullets: Rounded, Big, Plain, List */

.bullets, .bullets-plain {  
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: var(--spacing-32, 32px);
}

.bullets-plain {  
  justify-content: left;
}

.bullet-rounded {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-16, 16px);
  width: 110px;
  height: 144px;
}
.bullet-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-8, 8px);
  width: 110px;
  height: 104px;
}
.bullet-big-icon, .bullet-plain-icon {
  border-radius: var(--spacing-999, 999px);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bullet-big-icon > * {
  color: var(--tag-text, #222);
}
.bullet-big-icon img {
  width: 48px;
  height: 48px;
}
.bullet-plain {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-8, 16px);
  border-left: 1px var(--surface-accent, #222) solid;
  padding-left: var(--spacing-16, 16px);
  height: 88px;
  justify-content: center;
}
.bullet-plain-icon > * {
  color: var(--tag-text, #222);
}
.bullet-plain-icon img {
  width: 24px;
  height: 24px;
}
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16, 16px);
  align-items: flex-start;
}

/* Estilos para el botón scroll-top flotante */
.scroll-top-fixed {
  position: fixed;
  right: var(--spacing-48);
  bottom: var(--spacing-64);
  z-index: 1000;
  background: var(--surface-dark);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  opacity: 0;
  pointer-events: none;
}
.scroll-top-fixed.visible {
  opacity: 1;
  pointer-events: auto;
}
.scroll-top-fixed:hover {
  background: var(--button-background-hover, #444);
}
.scroll-top-fixed .icon img {
  filter: invert(1) brightness(2) !important;
}
@media (max-width: 767px) {
  .scroll-top-fixed {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-24, 24px);
}

/* Tag reusable component */
.tag {
  display: inline-block;
  align-items: center;
  justify-content: center;
  background: var(--tag-background, #f5f5f5);
  color: var(--tag-text, #1d1d1d);
  border: 1px solid var(--tag-stroke, #e8e8e8);
  border-radius: var(--spacing-8, 8px);
  white-space: nowrap;
  padding: var(--spacing-8, 8px) var(--spacing-16, 16px);
}

.links-section .button-circular-small .icon img {
    width: 32px !important;
    height: 32px !important;
    display: block;
    filter: none !important;
    background: none !important;
    color: var(--button-text, #fff) !important;
    /* Si el SVG es negro puro, prueba invertirlo como el scroll-top */
}

/* Si el SVG sigue sin verse, fuerza el mismo filtro que el scroll-top */
.button-circular-small .icon img[src$="plus.svg"] {
    filter: invert(1) brightness(2) !important;
}

.button-secondary .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    min-width: 18px;
    margin-right: 4px;
}
.button-secondary .icon img {
    display: block;
    width: 18px !important;
    height: 18px !important;
    object-fit: contain;
    filter: invert(1) brightness(2) !important;
}

.header .row.align-center > .col-6 {
    display: flex;
    align-items: center;
    height: 56px;
}

@media (max-width: 900px) {
  .hero {
    min-height: calc(100vh - 56px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding-top: 56px; /* para evitar que el contenido quede debajo del menú */
  }
}

.about img {
  max-width: 100%;
  height: auto;
}

body.no-scroll, html.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
  position: relative !important;
}
body.no-scroll * {
  overscroll-behavior: contain !important;
}
@media (max-width: 900px) {
  body.no-scroll {
    position: fixed !important;
    width: 100vw;
  }
}

#main-content {
  opacity: 0;
  transition: opacity 0.35s;
}
#main-content.fade-in {
  opacity: 1;
}
