/* =============================================================
   HA MAKOR V1.3 — PANEL DE AJUSTES MANUALES (VISUAL STUDIO CODE)
   Modifica solamente los valores de esta sección.
   Guarda con Ctrl+S y Live Server actualizará la vista.
   No borres las reglas originales de styles.css.
   ============================================================= */

:root {
  /* 01 — BARRA SUPERIOR: altura y espacio lateral */
  --editar-altura-barra: 70px;
  --editar-margen-barra: 12.2%;
  /* 02 — LOGOTIPO PEQUEÑO DE LA BARRA */
  --editar-logo-barra: 58px;
  --editar-nombre-barra: 16px;
  /* 03 — ENLACES: Inicio, Nosotros, Servicios, etc. */
  --editar-letra-menu: 18px;
  --editar-separacion-menu: 25px;
  /* 04 — PORTADA: imagen de fondo (reemplaza el archivo en assets) */
  --editar-fondo-portada: url('assets/hero-clean.webp');
  /* 05 — LOGO GRANDE DE LA PORTADA */
  --editar-logo-portada-arriba: 235px;
  --editar-logo-portada-tamano: 420px;
  --editar-nombre-portada-arriba: 300px;
  --editar-nombre-portada-ancho: 290px;
  /* 06 — ESLOGAN Y DESCRIPCIÓN */
  --editar-eslogan-tamano: clamp(33px,4.2vw,67px);
  --editar-eslogan-grosor: 400;
  --editar-descripcion-tamano: clamp(19px,1.65vw,25px);
  --editar-textos-portada-arriba: 775px;
  /* 07 — THE BOWL */
  --editar-bowl-ancho: 100%;
  /* 08 — TARJETAS DE ANTES / DESPUÉS */
  --editar-espacio-comparaciones: 30px;
  --editar-titulo-comparacion: 22px;
}

/* BARRA SUPERIOR — aplicado a todas las páginas */
.nav {height:var(--editar-altura-barra);padding-left:var(--editar-margen-barra);padding-right:var(--editar-margen-barra)}
.nav .brand img {width:var(--editar-logo-barra);height:var(--editar-logo-barra)}
.nav .brand {font-size:var(--editar-nombre-barra)}
.nav .navlinks {gap:var(--editar-separacion-menu)}
.nav .navlinks a {font-size:var(--editar-letra-menu)}

/* PORTADA — logo, nombre y textos */
.hero-revised .hero-art {background-image:var(--editar-fondo-portada)}
.hero-revised .hero-identity {top:var(--editar-logo-portada-arriba)}
.hero-revised .hero-spin-logo {width:var(--editar-logo-portada-tamano);height:var(--editar-logo-portada-tamano);margin-left:calc(var(--editar-logo-portada-tamano) / -2)}
.hero-revised .hero-name-logo {top:var(--editar-nombre-portada-arriba);width:var(--editar-nombre-portada-ancho);top:125%;scale:150%;left:0%;transform:translateX(-50%)}
.hero-revised .hero-content {padding-top:var(--editar-textos-portada-arriba)}
.hero-revised h1 {font-size:var(--editar-eslogan-tamano);font-weight:var(--editar-eslogan-grosor)}
.hero-revised .hero-content>p {font-size:var(--editar-descripcion-tamano)}

/* THE BOWL — imagen de la sección */
.bowl-visual img {width:var(--editar-bowl-ancho)}

/* ANTES / DESPUÉS — distribución de tarjetas */
.hm-comparison-grid {gap:var(--editar-espacio-comparaciones)}
.hm-comparison h3 {font-size:var(--editar-titulo-comparacion)}

/* MÓVIL: los enlaces se abren con el botón de menú */
@media(max-width:900px){
  .nav {height:70px}
  .nav .navlinks {gap:12px}
  .nav .navlinks a {font-size:17px}
  .hero-revised .hero-identity {top:110px}
  .hero-revised .hero-spin-logo {width:225px;height:225px;margin-left:-112.5px}
  .hero-revised .hero-name-logo {top:225px;width:240px}
  .hero-revised .hero-content {padding-top:430px}
  .hero-revised h1 {font-size:clamp(29px,7vw,42px)}
  .hero-revised .hero-content>p {font-size:19px}
}

/* Videos del portafolio se editan desde WordPress > Portafolio Ha Makor */


/* ==========================================
   HA MAKOR - MENÚ RESPONSIVE
   Adaptación automática según resolución
   ========================================== */

/* 01 - Pantallas medianas y laptops */
@media (min-width: 1367px) and (max-width: 1500px) {

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
  }

  .brand {
    flex-shrink: 0;
    min-width: 0;
  }

  .navlinks {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(10px, 1.4vw, 22px);
    min-width: 0;
  }

  .navlinks a {
    font-size: clamp(12px, 1.1vw, 17px);
    white-space: nowrap;
  }

  .brand span {
    font-size: 13px;
  }

  .brand small {
    font-size: 8px;
  }
}

/* 02 - Tablets y pantallas pequeñas */
@media (max-width: 1366px) {

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
  }

  .brand {
    flex-shrink: 0;
    max-width: calc(100% - 65px);
  }

  .navlinks {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
  }

  /* Mostrar enlaces al abrir el menú */
  .navlinks.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .navlinks.open a {
    white-space: normal;
    font-size: 16px;
  }
}

/* 03 - Teléfonos */
@media (max-width: 600px) {

  .nav {
    min-height: 65px;
    padding: 10px 16px;
  }

  .brand img {
    max-height: 40px;
    width: auto;
  }

  .brand span {
    font-size: 13px;
    line-height: 1.2;
  }

  .brand small {
    font-size: 8px;
  }
}


/* =========================================
   HA MAKOR - SEPARACIÓN LOGO Y MENÚ
   ========================================= */

@media (min-width: 1367px) {

  /* Reservar espacio para el logotipo */
  .nav .brand {
    flex: 0 0 220px;
    min-width: 220px;
  }

  /* Separar los enlaces del logotipo */
  .nav .navlinks {
    margin-left: 50px;
    gap: clamp(12px, 1.5vw, 25px);
  }

  /* Evitar que los nombres se dividan */
  .nav .navlinks a {
    white-space: nowrap;
  }
}

/* HA MAKOR - CORRECCIÓN RESPONSIVE DEL MENÚ */

/* Barra principal */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

/* Espacio reservado para el logotipo */
.nav .brand {
  flex: 0 0 auto;
  min-width: 195px;
  position: relative;
  z-index: 2;
}

/* Menú alineado a la derecha */
.nav .navlinks {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(12px, 1.5vw, 29px);
}

.nav .navlinks a {
  white-space: nowrap;
}

/* Pantallas medianas y pequeñas */
@media (max-width: 1350px) {
  .nav .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding: 22px 6%;
    background: #0c0b13;
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .nav .navlinks.open {
    display: flex;
  }

  .nav .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav .brand {
    min-width: 0;
  }
}
