html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-overflow-scrolling: touch;
    color: rgba(41, 41, 41, 1);
   
    min-height: 100vh; 
}

/* Para centrar <main> */
main {
    max-width: 1920px; 
    width: 100%;
    margin: 0 auto; /* <-- AGREGAR: Centrar main */
    background: rgba(210, 210, 210, 1);
}

* {
    box-sizing: border-box;
}

.grid {
  width: 82%;
    display: grid;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 1);
    margin: 0 auto;
}

.grid.big {
    width: 91%;
}

.grid.full {
    width: 100%;
}

.grid-row {
  display: grid;
  width: 100%;
  margin-bottom: 1px;
}

.grid-row>article {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: start;
  padding: 0;
  position: relative;
}

h1,
h2,
h3 {
    line-height: .9;
}

h1 {
    font-size: 1rem;
    text-transform: lowercase;
    font-weight: 400;
}

h2 {
    font-size: 3.36rem;
    font-weight: 900;
    text-transform: uppercase;
    mix-blend-mode: normal;
    text-shadow: none;
}

h3 {
    font-size: 1.68rem;
    font-weight: 400;
}

a.btn {
	font-size: 1rem;
	font-weight: 600;
	padding: .3rem 2rem;
	background: rgb(106, 106, 106);
	cursor: pointer;
	color: rgb(255, 255, 255);
}
a.btn:hover {
	background: rgb(88, 88, 88);
}

p {
    margin-bottom: .7rem;
    font-weight: 400;
    text-transform: none;
    text-indent: 1em;
}

p:last-child {
    margin-bottom: 0;
}

p::first-letter {
    text-transform: uppercase;
}

blockquote{
  background: #6a7;
  padding: 1rem;
  border-left: 1px solid  #e55;
}

:root{
 --lines: 3;
 --lh: 1.4;
 --max-height: 6;
}

.colapse{
  box-sizing: border-box;
  overflow: hidden;
 max-height: calc(var(--lines) * var(--lh) * 1em);
 position: relative;
 width: 100% !important;
 color: rgba(52, 52, 52, 1);
 transition: max-height 1s ease;
}

.colapse.expanded{
  max-height: calc(var(--max-height) * var(--lh) * 1em);
  overflow-y: auto;
  transition: max-height 1s ease;
}

.colapse-toggle{
  cursor: pointer;
  text-decoration: underline;
  color: rgba(238, 117, 13, 1);
  display: none;
  width: 100%;
  margin-top: 0.5rem;
  text-align: left;
}
  
  .colapse-toggle::before{
    content:"Ver más css";
  }
  
  .colapse-toggle.is-expanded::before{
    content:"Ver menos css";
  }
  
  .color{
    color: #f00
  }
  
 .popup {
    display: none;
    position: fixed;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    padding: 2rem;
    background-color: #888;
    color: #000;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  
  .popup.activo {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  
  .popup.activo h2{
     color: #000;
   }  
   nav.popup-nav {
     display: flex;
     flex-direction: row;
     justify-content: center;
     align-items: center;
     flex-wrap: wrap; 
     gap: 1.5rem;
     padding: 2rem;
   }
   
   nav.popup-nav a {
     font-family: inherit;
     text-decoration: none;
     text-transform: uppercase;
     letter-spacing: 0.05em;
     color: inherit;
     transition: opacity 0.3s ease;
     pointer-events: auto; /* necesario si tu nav o parent tiene pointer-events:none */
   }
   
   nav.popup-nav a:hover {
     opacity: 0.6;
   }

figure {
    position: relative;
}

figure figcaption {
    position: absolute;
    bottom: 1%;
    left: 1%;
}

i,
figure figcaption {
    font-size: .7rem;
    font-style: italic;
    position: relative;
}

i:before,
figure figcaption:before {
    content: '*';
    margin-right: .25rem;
}

 figure img.responsive-img {
    width: 100%;
    height: auto; 
    object-fit: cover;
    object-position: center;
    display: block;
    aspect-ratio: 3 / 2;
}

video.responsive-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    aspect-ratio: 16 / 9;
}

.slider- {
   position: relative;
   width: 100%;
   height: 100%;
   overflow: hidden;
   display: flex;
   aspect-ratio: 16 / 9;
 }
 
 .slides-wrapper {
   position: relative;
   width: 100%;
   height: 100%;
   overflow: hidden;
   z-index: 1; 
   will-change: transform, opacity, filter;
 }
 
 .slider- ul {
   list-style: none;
   margin: 0;
   padding: 0;
   width: 100%;
   height: 100%;
   position: relative;
 }
 
 .slider- li {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
 }
 
 .slider- li figure {
   margin: 0;
   width: 100%;
   height: 100%;
   position: relative;
 }
 
 .slider- li img.responsive-img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   display: block;
   aspect-ratio: 16 / 9;
 }
 
 .slider- li figcaption {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   text-align: center;
   color: white;
   pointer-events: none;
 }
 
 /* Contador */
 .slider--counter {
   position: absolute;
   top: 75%;
   left: 50%;
   transform: translate(-50%, -50%);
   z-index: 100;
   will-change: transform, opacity;
 }
 
 /* Controles */
 .slider--controls {
   position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    will-change: transform, opacity;
   
 }
 
 .slider--controls a {
   display: inline-block;
   width: 2rem;
   height: 2rem;
   background: rgba(255, 255, 255, 0.2);
   border-radius: 50%;
   cursor: pointer;
   text-align: center;
   line-height: 2rem;
   color: #fff;
   font-weight: bold;
   font-size: 1rem;
 }
 
 .slider--controls a[hidden] {
   display: none;
 }
 
 .lounchpad- {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    width: 60%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 3rem 0;
    list-style: none;
  }
  
  .lounchpad- li {
    position: relative;
    flex: 1 1 calc(100% / 4);
    aspect-ratio: 1 / 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .lounchpad- li:hover {
    transform: scale(1.02);
  }
  
  .lounchpad- li > div {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }
  
  .lounchpad- li > div figure{
    width: 100%;
    height: 100%;
    opacity: 0.8;
  }
  .lounchpad- li > div figure img{
    width: auto;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.5s ease;
  }
  
  .lounchpad- li:hover > div figure  img{
    opacity: 1;
  }
  
  .lounchpad- li h2 {
    position: relative;
    z-index: 2;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    transition: transform 0.5s ease, opacity 0.5s ease;
  }
  
  .lounchpad- li:hover h2 {
    transform: translateY(-20px);
    opacity: 1;
  }
  
nav.menu {
    position: fixed;
    top: 10%;
    left: 0;
    width: 25%;
    height: 80%;
    background: #13f;
    color: #fff;
    z-index: 110;
    padding: 2rem;
    box-sizing: border-box;
    transform: translateX(-99%);
    transition: transform .8s ease;
    overflow-y: auto; /* scroll interno si el contenido crece */
  }
  
  nav.menu.opened {
    transform: translateX(0);
  }
  
  .openmenu,
  .closemenu {
    position: fixed;
    top: 66%;
    left: 66%;
    transform: translate(0, -50%);
    z-index: 120;
    cursor: pointer;
    color: #fff;
    background: #13f;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    user-select: none;
  }
  
  .closemenu {
    display: none;
  }
  
  nav.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  nav.menu li {
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 1.5rem;
    text-align: right;
  }
  
  /* flecha para cualquier li que tenga submenu directo */
  nav.menu li:has(> ul)::after {
    content: '\e901';
    font-family: 'icomoon';
    position: absolute;
    right: 0;
    top: 0.2rem;
    font-size: 1rem;
    transition: transform 0.3s ease;
  }
  
  /* flecha rotada cuando ese li está abierto */
  nav.menu li.open:has(> ul)::after {
    transform: rotate(90deg);
  }
  
  /* todos los submenús, cualquier nivel */
  nav.menu ul ul {
    display: none;         /* cerrado por defecto */
    padding-left: 1rem;
    margin-top: 0.25rem;
  }
  
  /* cuando el li está abierto, muestra su submenu directo */
  nav.menu li.open > ul {
    display: block;
  }
  
  nav.menu .closemenu {
    background: none;
  }
  nav.menu i {
    display: block;
    text-align: right;
  }
  
  /* nav.menu {
    position: fixed;
    top: 10%;
    left: 0;
    width: 25%;
    height: 80%;
    background: #13f;
    color: #fff;
    z-index: 110;
    padding: 2rem;
    box-sizing: border-box;
    transform: translateX(-99%); 
    transition: transform 0.8s ease;
  }
  
  nav.menu.opened {
   transform: translateX(0); 
  }
  
  .openmenu,
  .closemenu {
    position: fixed;
    top: 66%;
    left: 66%;
    transform: translate(0, -50%);
    z-index: 120;
    cursor: pointer;
    color: #fff;
    background: #13f;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    user-select: none;
  }
  
  .closemenu {
    display: none;
  }
  
  nav.menu ul ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 1rem;
  }
  
  nav.menu li {
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.5rem;
  }
  
  nav.menu li {
    position: relative;
    padding-right: 1.5rem;
    text-align: right;
  }
  
  nav.menu li::after {
    content: '\e901';
    font-family: 'icomoon';
    position: absolute;
    right: 0; 
    top: 0.2rem;
    font-size: 1rem;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
  }
  
  nav.menu li.has-submenu.open::after {
    transform: rotate(90deg);
  }
  
  nav.menu li {
    position: relative;
  }
  
  nav.menu li:has(> ul)::after {
    transform: rotate(90deg);
  }
  
  nav.menu li:has(> ul.visible)::after {
    transform: rotate(180deg);
  }
  
  nav.menu .closemenu{
    background: none;
  }  */
  header.main {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    z-index: 50;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  
  header.main img {
    width: 20%;
    height: auto;
    filter: invert(1);
    object-fit: contain;
  }
  header.main h2 {
    font-size: 1.25rem;
    font-weight: 400;
    text-transform: lowercase;
    line-height: 1.4;
  }
  header.main p {
    font-size: 1.75rem;
    font-weight: 600;
    text-transform: lowercase;
  }
  
  header.compact {
    position: fixed;
    width: 100%;
    height: 200px;
    top: 0;
    left: 0;
    background: none;
    transition: all 0.4s ease;
    z-index: 50;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  header.compact img {
    position: absolute;
    top: 50%;
    left: 12%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 50%;
    object-fit: contain;
  }
  
  header.compact p {
    position: absolute;
    top: 57%;
    left: 12%;
    transform: translate(-50%, -50%);
    font-size: .8rem;
    color: rgba(255, 255, 255, 1);
    text-align: center;
  }
  
  nav.main {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translate(0, -50%);
    z-index: 50;
    transition: opacity 1s ease;
    opacity: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rgba(255, 255, 255, 1);
  }
  
  nav.main a {
    font-family: "icomoon";
    font-size: 1.6rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 1rem;
    position: relative;
    color: rgba(247, 126, 9, 1)
  }
  
  nav.main a:nth-child(1)::before {
    content: "\e903";
  }
  
  nav.main a:nth-child(2)::before {
    content: "\e913";
  }
  
  nav.main a:nth-child(3)::before {
    content: "\e902";
  }
  .footer-trigger,
  .header-trigger {
    height: 1px;
    width: 100%;
  }
  
  .footer-trigger {
    margin-top: 47vh;
  }
  
  footer {
    position: absolute;
    top: 100%;
    left: 0;
    width: 25%;
    height: 50vh;
    transition: opacity .8s ease;
    pointer-events: none;
    opacity: 0;
  }
  
  footer.active {
    position: absolute;
    top: 50vh;
    pointer-events: none;
    opacity: 1;
    padding: 0;
    background: #6a7;
    width: 100%;
  }
  
  
 
/* MOV */
  @media (max-width: 767px) {
    html { font-size: 12px; }
    .grid-row {
      grid-template-columns: 1fr !important;
    }
    
    .grid-row > article {
      grid-column: span 1 !important;
      width: 100%;
    }
    nav.menu {
      width: 85%;
    }
  }
  
  /* TAB */
  @media (min-width: 768px) and (max-width: 1024px) {
    html { font-size: 13px; }
  }
  
  /* DESK (todo por encima de 1025 hasta el límite del layout) */
  @media (min-width: 1025px) and (max-width: 1279px) {
    html { font-size: 11px; }
  }
  
  @media (min-width: 1280px) and (max-width: 1439px) {
    html { font-size: 13px; }
  }
  
  @media (min-width: 1440px) and (max-width: 1919px) {
    html { font-size: 14px; }
  }
  
  /* >=1920px: mismo tamaño porque el layout ya está al máximo */
  @media (min-width: 1920px) {
    html { font-size: 14px; }
  }