/* ============================================================
   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.
   ============================================================ */

html, body { overflow-x: hidden; }

/* ---------- 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: alto y posición de los textos de los slides (DC -> con espacio) */
  [style*="height: 760px"], [style*="height:760px"] { height: 600px !important; }
  [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: 160px"], [style*="bottom:160px"] { display: none !important; }

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