/* ============================================================
   IXKANUL — Responsive (teléfono y tablet)
   El layout está en estilos en LÍNEA. Se sobreescribe con !important
   por selectores de atributo. OJO: las páginas del motor de diseño
   (index, nosotros, galeria) normalizan el estilo con espacios tras ':'
   y ',', mientras que reservar/perfil (HTML plano) NO. Por eso muchos
   selectores se basan en el VALOR (independiente del ':') o incluyen
   las dos variantes.
   Breakpoints: <=1024 tablet, <=900 menú móvil, <=760 teléfono.
   ============================================================ */

/* 'clip' evita el scroll horizontal SIN romper el header sticky (a diferencia de 'hidden'). */
html, body { overflow-x: clip; }

/* ---------- Masonry SIN recorte de la galería (columnas tipo Pinterest) ---------- */
.ixk-masonry { display: block !important; grid-template-columns: none !important; grid-auto-rows: auto !important;
  column-count: 3; column-gap: 12px; }
@media (max-width: 760px) { .ixk-masonry { column-count: 2; } }
@media (max-width: 460px) { .ixk-masonry { column-count: 1; } }
.ixk-mtile { break-inside: avoid; -webkit-column-break-inside: avoid; margin: 0 0 12px; border-radius: 14px; overflow: hidden;
  background: #45001F; cursor: pointer; transition: transform .3s ease, filter .3s ease; }
.ixk-mtile:hover { transform: scale(1.01); filter: brightness(1.08); }
.ixk-mtile img { width: 100%; height: auto; display: block; }  /* aspecto natural: sin recorte */

/* Ocultar la barra superior (topbar). El toggle ES/EN pasa a un botón flotante. */
[style*="9px 48px"] { display: none !important; }

/* Botón flotante de idioma ES/EN (esquina inferior derecha) */
.ixk-lang-float {
  position: fixed !important; bottom: 18px; right: 18px; z-index: 60;
  display: flex; gap: 7px; align-items: center;
  background: rgba(28, 0, 11, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 233, 240, 0.22); border-radius: 999px;
  padding: 9px 15px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em;
  box-shadow: 0 8px 22px rgba(16, 0, 8, 0.55); transition: border-color .2s ease, transform .2s ease;
}
.ixk-lang-float:hover { border-color: #FF86AC; transform: translateY(-2px); }
@media (max-width: 760px) { .ixk-lang-float { bottom: 14px; right: 14px; padding: 8px 13px; } }
/* Entrada suave del botón flotante */
.ixk-lang-float { animation: ixkLangIn .45s cubic-bezier(.2,.8,.2,1) both; }
@keyframes ixkLangIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* Chips ES / EN: siempre visibles, el activo animado como pastilla */
.ixk-lang-float .ixk-lang-opt { padding: 4px 11px; border-radius: 999px; line-height: 1;
  transition: background-color .28s ease, color .28s ease, transform .18s ease; }
.ixk-lang-float .ixk-lang-opt:hover { transform: translateY(-1px); }
.ixk-lang-float .ixk-lang-on { box-shadow: 0 3px 12px rgba(255,134,172,0.45); }
/* Ocultar el separador "/" (era negro/invisible); los chips ya distinguen los idiomas */
.ixk-lang-float > div:not(.ixk-lang-opt) { display: none; }

/* ---------- Header compacto sobre el hero, que crece al bajar al contenido ---------- */
.ixk-hdr { transition: padding .35s ease, background-color .35s ease; }
.ixk-hdr img { transition: height .35s ease; }
.ixk-hdr.ixk-hdr-compact { padding-top: 9px !important; padding-bottom: 9px !important; background-color: rgba(43, 0, 17, 0.72) !important; }
.ixk-hdr.ixk-hdr-compact img { height: 30px !important; }

/* Letras del header: un poco más pequeñas, con peso (sin trazo delgado) y sombra para
   diferenciarlas del fondo (sobre todo cuando el header está sobre el hero). */
.ixk-hdr { text-shadow: 0 1px 9px rgba(28, 0, 11, 0.7); }
.ixk-navlink { font-size: 12px !important; font-weight: 700 !important; letter-spacing: 0.14em; }

/* ---------- Menú hamburguesa (oculto en desktop) ---------- */
.ixk-burger { display: none; }

.ixk-mobile-menu {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(28, 0, 11, 0.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .32s ease;
}
.ixk-mobile-menu.open { opacity: 1; pointer-events: auto; }
.ixk-mm-inner { display: flex; flex-direction: column; gap: 6px; text-align: center; }
.ixk-mm-item {
  font-family: 'Mukta Mahee', 'Archivo', sans-serif; font-weight: 800;
  font-size: 30px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #FFE9F0; text-decoration: none; padding: 14px 34px;
  opacity: 0; transform: translateY(18px); transition: color .2s ease;
}
.ixk-mobile-menu.open .ixk-mm-item { animation: ixkMM .45s cubic-bezier(.2,.8,.2,1) forwards; }
.ixk-mobile-menu.open .ixk-mm-item:nth-child(1) { animation-delay: .06s; }
.ixk-mobile-menu.open .ixk-mm-item:nth-child(2) { animation-delay: .12s; }
.ixk-mobile-menu.open .ixk-mm-item:nth-child(3) { animation-delay: .18s; }
.ixk-mobile-menu.open .ixk-mm-item:nth-child(4) { animation-delay: .24s; }
.ixk-mm-item:hover, .ixk-mm-item:active { color: #FF86AC; }
@keyframes ixkMM { to { opacity: 1; transform: none; } }

/* ============================================================
   TABLET  (<= 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  [style*=" 48px"] { padding-left: 32px !important; padding-right: 32px !important; }
  [style*="repeat(4,1fr)"], [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="repeat(3,1fr)"], [style*="repeat(3, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="repeat(6,1fr)"], [style*="repeat(6, 1fr)"] { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ============================================================
   MENÚ MÓVIL  (<= 900px): hamburguesa + ocultar nav central
   ============================================================ */
@media (max-width: 900px) {
  .ixk-navwrap { display: none !important; }
  #ixk-account { margin-left: auto !important; }
  .ixk-burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    position: relative; z-index: 9999; width: 44px; height: 40px; padding: 0 9px;
    background: none; border: 1px solid rgba(255, 233, 240, 0.28); border-radius: 10px; cursor: pointer;
    margin-left: 14px;
  }
  .ixk-burger span { display: block; height: 2px; background: #FFE9F0; border-radius: 2px; transition: transform .3s ease, opacity .2s ease; }
  .ixk-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .ixk-burger.open span:nth-child(2) { opacity: 0; }
  .ixk-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* tarjeta de reserva: dejar de ser sticky para que fluya */
  [style*="top:96px"], [style*="top: 96px"] { position: static !important; }
}

/* ============================================================
   TELÉFONO  (<= 760px)
   ============================================================ */
@media (max-width: 760px) {
  /* padding horizontal global (el ' 48px' aparece en ambos formatos) */
  [style*=" 48px"] { padding-left: 18px !important; padding-right: 18px !important; }
  [style*="padding: 48px"], [style*="padding:48px"] { padding: 24px !important; }
  [style*="0 -48px"] { margin-left: -18px !important; margin-right: -18px !important; }

  /* reducir grandes paddings verticales (valor, sin depender del ':') */
  [style*="110px 48px"] { padding-top: 56px !important; padding-bottom: 40px !important; }
  [style*="120px 48px"] { padding-top: 76px !important; padding-bottom: 40px !important; }
  [style*="60px 48px 110px"] { padding-top: 40px !important; padding-bottom: 60px !important; }
  [style*="92px 48px"] { padding-top: 50px !important; }
  [style*="96px 48px"] { padding-top: 54px !important; padding-bottom: 54px !important; }
  [style*="72px 48px"] { padding-top: 48px !important; padding-bottom: 48px !important; }

  /* grids -> 1 columna (selectores por VALOR, válidos con o sin espacio tras ':') */
  [style*="repeat(3,1fr)"], [style*="repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
  [style*="repeat(6,1fr)"], [style*="repeat(6, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  /* neutralizar los spans de las tiles del collage (hijos directos de la grilla) */
  [style*="repeat(6,1fr)"] > *, [style*="repeat(6, 1fr)"] > * { grid-column: auto !important; grid-row: auto !important; }
  [style*="1.2fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="1fr 1.1fr"] { grid-template-columns: 1fr !important; }
  [style*="1.55fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="1.6fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="1.4fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="130px 1fr"] { grid-template-columns: 1fr !important; gap: 6px !important; }

  /* títulos grandes: bajar tamaño */
  [style*="clamp(48px"] { font-size: 34px !important; }
  [style*="clamp(46px"] { font-size: 34px !important; }
  [style*="clamp(38px"] { font-size: 28px !important; }
  [style*="font-size: 38px"], [style*="font-size:38px"] { font-size: 30px !important; }

  /* hero index: el alto ya es relativo a la ventana (calc svh); no se fuerza aquí.
     Solo se reposicionan los textos de los slides (DC -> con espacio). */
  [style*="right: 420px"], [style*="right:420px"] { left: 18px !important; right: 18px !important; }
  [style*="left: 420px"], [style*="left:420px"] { left: 18px !important; right: 18px !important; top: 30% !important; }

  /* barra de reserva del hero */
  [style*="bottom: 28px"], [style*="bottom:28px"] { left: 12px !important; right: 12px !important; bottom: 14px !important; padding: 14px 16px !important; }
  /* flechas/contador del carrusel: el carrusel avanza solo, en teléfono se ocultan
     (cada slide posiciona el texto distinto y las flechas lo tapaban) */
  [style*="bottom: 32px"], [style*="bottom:32px"] { display: none !important; }

  /* topbar: que no se desborde */
  [style*="9px 48px"] { flex-wrap: wrap !important; gap: 6px 14px !important; font-size: 10px !important; }
}
