/* ============= /GLOBAL ================== */

@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-weight: 100 700;
  font-display: fallback;       
  src: url(../assets/fonts/Kantumruy-Pro.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{

  --font-body: 'Kantumruy Pro', sans-serif;  
  --text:#282828; --text-wh:#fff;

  --orange:#EE9C00; --orange-hover:#DA8C00; 
  --white:#FCFCFC; --black:#282828; 
  --gray:#ECECEC; --gray-dark: #CFCFCF;

  --color-bg: #f6f3efe4;
  --color-nav: #fdfdfdf0;
  --color-nav-ov: #fdfdfd;
  --color-text: #282828;

  --radius: 16px; 
  --radius-btn: 80px; 
  --container-max: 1150px;  --container-width:80%;

  --header-h: 75px;     /* ≥1025 */
  --header-h-m: 65px;   /* ≤1024 */
  --header-h-s: 60px;   /* ≤769 */

  --nav-gap: 28px;
  --nav-gap-m: 20px;
  --overlay-z: 999;

}

    @media (max-width: 960px){ :root{ --container-max:768px;  --container-width:85%; } }
    @media (max-width: 768px){ :root{ --container-max:560px;  --container-width:90%; } }

html { -webkit-text-size-adjust: 100%;  }
body {
  margin: 0; padding: 0; font-family: var(--font-body); color: var(--text); user-select: none; background-color: var(--white);}

  h1 {
    font-family: var(--font-body);
    font-size: clamp(38px, 6.96vw, 80px); 
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-wh);
    padding: 0;
    margin: 0;
  }
  
  h2 {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.74vw, 20px); 
    line-height: 1;
    font-weight: 500;
    color: var(--orange);
    padding: 0 0 24px 0;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  h3 {
    font-family: var(--font-body);
    font-size: clamp(24px, 3.30vw, 38px);
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
    padding: 0;
    margin: 0;
  }
  
  h4 {
    font-family: var(--font-body);
    font-size: clamp(18px, 1.83vw, 21px); 
    line-height: 1.2;
    font-weight: 300;
    color: var(--text);
    padding: 0;
    margin: 0;
  }
  
  .h4strong {
    font-weight: 600;
    color: var(--text-wh);
  }
  
  p {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.57vw, 18px);
    line-height: 1.4; 
    font-weight: 300;
    color: var(--text);
    padding: 0;
    margin: 0;
  }
  
  span {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.83vw, 21px); 
    line-height: 1.2;
    font-weight: 500;
    color: var(--text);
    padding: 0;
    margin: 0;
    letter-spacing: 0.02em;
  }
  
  h5 {
    font-family: var(--font-body);
    font-size: clamp(20px, 2.09vw, 24px); 
    line-height: 1.2;
    font-weight: 600;
    color: var(--text);
    padding: 0;
    margin: 0;
  }

  strong {
    font-weight: 600;
    letter-spacing: 0.02em;
  }

/* ============================
  BOTONES GLOBALES
============================= */

button {
background-color: var(--orange);
color: var(--text-wh);
font-family: var(--font-body);
font-size: clamp(16px, 1.54vw, 18px);
font-weight: 500;
letter-spacing: 0.12em;
border: none;
border-radius: var(--radius-btn);
width: clamp(180px, 20vw, 230px); /* ancho flexible */
padding: clamp(14px, 2vw, 20px) clamp(20px, 3vw, 30px); /* vertical / horizontal */
cursor: pointer;
transition: background-color 0.3s ease;
text-transform: capitalize;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

button:hover {
transform: scale(1.02);
background-color: var(--orange-hover);
}  

/* ============================
  ESPACIADORES
============================= */

.space-sm {  height: 35px; }
.space-md { height: 70px; }
.space-lg { height: 125px; }

@media (max-width: 769px){ 
  .space-sm {  height: 30px; }
  .space-md { height: 55px; }
  .space-lg { height: 100px; }
}
@media (max-width: 560px){ 
  .space-md { height: 50px; }
  .space-lg { height: 80px; }
}


/* ============================
  NAV
============================= */

* { box-sizing: border-box; }
.sr-only-nav { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* HEADER sticky + animación show/hide */
.header{
  position: sticky;
  top: 0;
  z-index: var(--overlay-z);
  background: var(--color-nav);
  color: var(--color-text);
  transition: transform .25s ease, background-color .25s ease;
  will-change: transform;
  height: var(--header-h);
}

    @media (max-width: 1024px){ .header{ height: var(--header-h-m); } }
    @media (max-width: 768px){ .header{ height: var(--header-h-s); } }

.header.show-nav { transform: translateY(0); }
.header.hide-nav { transform: translateY(-100%); }

/* Contenedor interno */
.nav__container{
  height: 100%;
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 0;
  display: flex;                 /* 👈 FLEX en lugar de grid */
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.nav__logo{
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transform-origin: center;
}

.nav__logo img{
  max-height: calc(100% - 12px); /* margen dentro del header */
  max-width: clamp(160px, 17.39vw, 200px);
  object-fit: contain;
  display:block;
}

/* Cuando el menú está abierto, ocultamos la hamburguesa */
  .menu-open .nav-toggle{
      opacity: 0;
      pointer-events: none;
  }

/* Botón hamburguesa (≤768)*/
.nav-toggle{
  margin-left: auto;
  display: none; align-items: center; justify-content: center;
  padding: 0;                 /* 👈 evita desplazamientos raros */
  line-height: 0;             /* 👈 asegura centrado vertical del contenido */
  flex: 0 0 42px;

  background: var(--orange);
  color: inherit; cursor: pointer;
  transform-origin: center;
  transition: transform .2s ease;
  position: relative;
  z-index: 10002;
  width: 42px; height: 42px;
}
.nav-toggle:hover{ transform: scale(1.06);   background: var(--orange-hover);
}

.nav-toggle__bar{
  display: block;             /* 👈 asegúrate de que es un bloque */
  position: relative;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  margin: 0 auto;             /* 👈 centra horizontalmente */
}

.nav-toggle__bar::before,
.nav-toggle__bar::after{
content: "";
position: absolute; left: 0;
width: 24px; height: 2px;
background: var(--white);
border-radius: 2px;
}

.nav-toggle__bar::before{ top:-7px; }
.nav-toggle__bar::after{ top: 7px; }

@media (max-width: 768px){ .nav-toggle{ display: inline-flex; } }

/* Menú desktop */
.nav__menu{
  height: 100%;
  margin-left: auto;          
}
.nav__links{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--nav-gap);
  height: 100%;
}



@media (max-width: 1024px){
  .nav__links{ gap: var(--nav-gap-m); }
}
.nav__links a{
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; /* asegura área clicable constante */
  padding: 0 0px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-title-medium);
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: .12em;
  font-weight: 500;
  text-transform: uppercase;
  transition: transform .12s ease;
  will-change: transform;
}
.nav__links a:hover{ transform: scale(1.03);  font-weight: 600;}

/* Reducimos separación y un pelín la tracking en el rango 768–1024 */
@media (min-width: 769px) and (max-width: 1024px){
  .nav__links{ gap: 14px; }
  .nav__links a{ letter-spacing: .10em; }
}

/* Redes solo iconos */
.nav__social{
  display: inline-flex; align-items: center; gap: 14px;
  margin-left: 4px; margin-top: 8px; margin-bottom: 8px;
}

.nav__social a button{
  width: 54px; height: 54px; border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  margin: 0; 
  padding: 0;
}

.nav__social a button img{
  width: 26px; height: 26px; 
}

/* Ocultar menú en mobile: usamos overlay aparte */
@media (max-width: 768px){
  .nav__menu{ display:none; }
}

/* PANEL MOVIL (OVERLAY) -----------------------------------------------------*/
.nav__overlay{
  position: fixed; inset: 0;         
  background: var(--color-nav-ov);
  z-index: 10001;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-2%);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}
.nav__overlay.is-open{
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(0);
}
.nav__overlay[hidden]{ display: none !important; }

.nav__overlay-container{
  height: 100%;
  width: var(--container-width);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 0px;
}

/* Botón cerrar en overlay */
.nav-close{
  position: absolute;
  top: 10px; right: 0px;   
  z-index: 10002;
  width: 42px; height: 42px;
  padding: 0;
  line-height: 0;
  border-radius: 25px;
  background: var(--orange);
}
.nav-close:hover{
  background: var(--orange-hover); transform: scale(1.06);
}
    @media (max-width: 768px){ .nav-close{ right: calc((100vw - var(--container-width)) / 2); } }
    @media (max-width: 480px){ .nav-close{ right: 20px; } }

/* La "X" */
.nav-close__x{
position: relative;
width: 20px; height: 20px;
display: block;
}

  .nav-close__x::before,
  .nav-close__x::after{
  content: "";
  position: absolute;
  top: 9px; left: 8px;
  width: 25px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  }

  .nav-close__x::before{ transform: rotate(45deg); }
  .nav-close__x::after{  transform: rotate(-45deg); }


/* UL del overlay: verdaderamente centrado y sin bullets */
.overlay__links{
  position: relative;
  display: grid;
  place-content: center;     
  justify-items: center;    
  width: 100%; height: 100%;
  padding: 24px;
  margin: 0;
  list-style: none;
  text-align: center;
}

.overlay__links li{ list-style: none; } 

.overlay__links a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-title-medium);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .12s ease;
}
  .overlay__links a:hover{ 
    transform: scale(1.06);   
    font-weight: 700; 
  }

/* Redes en el overlay */
.overlay__social{
  padding-top: 20px;
  display: flex; gap: 18px; justify-content: center;
}

.overlay__social a button{
  width: 116px; height: 56px; border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.overlay__social a button img{
  width: 26px; height: 26px; 
}

@media (min-width: 481px) and (max-width: 768px){
  .overlay__links,
  .overlay__social{
    position: relative;
    left: 50%;
    transform: translateX(-50%); /* centro real, sin usar margin:auto */
    width: 100%;   
    max-width: 100vw;
    margin: 0;                    /* ¡importante! nada de auto aquí */
    padding-left: 0;              /* evita desalinear hacia la derecha */
    padding-right: 0;
  }
}

/* ≤480 px: el body ya es 100vw */
@media (max-width: 480px){
  .overlay__links,
  .overlay__social{
    width: 100%;
    margin: 0;
    left: 0;
    transform: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .header, .nav__overlay, .nav__links a, .social__link, .nav-toggle, .nav-close, .overlay__links a {
    transition: none !important;
  }
  .nav__links a:hover,
  .overlay__links a:hover,
  .nav-toggle:hover,
  .nav-close:hover,
  .social__link:hover { transform: none !important; }
}


/* ============================
   FOOTER
============================= */
  
  .footer{
    width: 100%;
    height: auto;
    background: var(--black);
    color: var(--text);
  }

  .footer__box{
    width: var(--container-width);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 30px 0;
    display: grid;
    grid-template-columns: max-content auto max-content;
    gap: clamp(4%, calc(4% + (4 * ((100vw - 1024px) / 226))), 8%);
    align-items: end;
  }

  .footer__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

  .footer__brand p{
    color: var(--gray-dark);
    font-size: 14px;
    font-weight: 200;
    letter-spacing: 0.01em;
    margin-top: 20px;
  }

  .footer__brand img {
    width: 250px; 
    max-width: 100%; 
    height: auto; 
    display: block;
    margin: 0;
    padding: 0;
    object-fit: contain;
    transform: none; 
}

  .footer__list{
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 240px;
  }

  .footer__item{
    display: grid;
    grid-template-columns: 19px auto;
    align-items: center;
    gap: 8px;
  }

  .footer__item img{
    transform: translateY(-2px);
  }

  .footer__item a, .footer__item span{ 
    color: inherit; 
    text-decoration: none;     
    font-size: 14px;
    font-weight: 200;
    color: var(--gray-dark);
  }
  .footer__item a:hover{ text-decoration: underline; }
  .icon{ width: auto; max-height: 16px; display:block; opacity: 0.6; transform: translateY(3px);}
  
  .footer__social{
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: right; display: inline-flex;
  }

  .footer__social button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    width: 62px;
    height: 62px;
  }
  .icon--btn{ max-width: 28px; height: 28x; display:block; }

      @media (max-width: 980px){
        .footer__box{ grid-template-columns: 1fr; gap: 40px; padding: 18px 0; }
        .footer__social{ justify-content: flex-start; }
        .footer__social button{ width: 58px; height: 58px; }
        .icon--btn{ max-width: 26px; height: 26px; }
      }
      @media (max-width: 520px){
        .footer__social button{ width: 52px; height: 52px; }
        .icon--btn{ max-width: 24px; height: 24x; }
      }

  /* ------- DESIGN BY ------- */
  .design{
    width: 100%;
    background: var(--black);
    color: var(--text-wh);
  }
  .design__box{
    width: var(--container-width);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 10px 0;
    text-align: center;
    border-top: 1px solid #deddda9d;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
  }
  .design__box p{
    color: var(--gray-dark);
    font-size: 14px;
    font-weight: 200;
  }
  .design__box a{
    color: var(--gray-dark);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
  }
  .design__box a:hover{
    text-decoration: underline;
  }
  
/* ------- POPUP COOKIES ------- */

.privacy-link {
  cursor:pointer;
}

/* Puedes ajustar colores según tu paleta */
.privacy-link {
  color: #ffffff;
}
.privacy-link:hover {
  opacity: 0.8;
}

/* Overlay del modal */
.privacy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;              /* oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Estado visible (se añade desde JS) */
.privacy-modal-overlay.is-visible {
  display: flex;
}

/* Caja del modal */
.privacy-modal {
  max-width: 600px;
  width: 90%;
  background: var(--color-nav-ov);
  color: var(--black);
  padding: 2rem 2.5rem;
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Tipografía básica dentro del modal (ajusta a tus estilos globales) */
.privacy-modal h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.privacy-modal h2 {
  color: var(--black); font-weight: 600;
}

.privacy-modal p {
  margin-bottom: 0.9rem;
  line-height: 1.5;
  font-size: 0.95rem;
}

.privacy-modal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Botón cerrar (X) */
.privacy-modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: var(--orange);
  border: none;
  border-radius: 999px;
  color: var(--white);
  font-size: 38px;
  font-weight: 300;
  padding: 0; margin: 0; padding-left: 2px;
  cursor: pointer;
  line-height: 1;
  width: 50px; height: 50px;
}

.privacy-modal__close:hover {
  opacity: 0.8; background: var(--orange-hover);

}

/* Responsive simple */
@media (max-width: 480px) {
  .privacy-modal {
    padding: 1.5rem;
  }
  .privacy-modal h2 {
    font-size: 1.2rem;
  }
  .privacy-modal p {
    font-size: 0.9rem;
  }
}