/* ===== Costura NY Studio -- estilos compartidos (index, alteraciones, tienda, clases-de-costura) ===== */

:root {
      --ink: #f7fbff;
      --muted: #a9b7c9;
      --bg: #070a12;
      --panel: rgba(12, 18, 32, .78);
      --line: rgba(142, 218, 255, .24);
      --cyan: #67e8f9;
      --lime: #c7ff6b;
      --rose: #ff6fbd;
      --gold: #f5c86b;
      --shadow: 0 24px 80px rgba(0, 0, 0, .42);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

.skip-link {
      position: fixed;
      top: 10px;
      left: 10px;
      z-index: 1000;
      padding: 10px 14px;
      border-radius: 8px;
      color: #05101a;
      background: var(--cyan);
      font-weight: 850;
      transform: translateY(-160%);
      transition: transform .18s ease;
    }

.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }

.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(18px);
      background: rgba(7, 10, 18, .72);
      border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 88px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 850; }

.mark {
      width: 320px;
      height: 78px;
      border: 1px solid var(--line);
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: rgba(255, 255, 255, .03);
      overflow: hidden;
    }

.mark svg { width: 28px; height: 28px; }

.mark img {
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

.navlinks { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 14px; }

.menu-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border: 1px solid rgba(255, 255, 255, .14);
      border-radius: 10px;
      background: rgba(255, 255, 255, .06);
      cursor: pointer;
      padding: 0;
      flex: 0 0 auto;
    }

.menu-toggle span {
      display: block;
      width: 20px;
      height: 2px;
      background: var(--ink);
      border-radius: 2px;
      position: relative;
      transition: transform .2s ease, opacity .2s ease;
    }

.menu-toggle span::before,
    .menu-toggle span::after {
      content: "";
      position: absolute;
      left: 0;
      width: 20px;
      height: 2px;
      background: var(--ink);
      border-radius: 2px;
      transition: transform .2s ease, top .2s ease;
    }

.menu-toggle span::before { top: -6px; }

.menu-toggle span::after { top: 6px; }

.menu-toggle[aria-expanded="true"] span { background: transparent; }

.menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }

.menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.lang {
      display: flex;
      gap: 6px;
      padding: 5px;
      border: 1px solid rgba(255, 255, 255, .12);
      border-radius: 999px;
      background: rgba(255, 255, 255, .05);
    }

.lang button, .lang a {
      border: 0;
      color: var(--muted);
      background: transparent;
      border-radius: 999px;
      padding: 8px 11px;
      cursor: pointer;
    }

.lang button.active, .lang a.active { color: #05101a; background: var(--cyan); font-weight: 800; }

.hero {
      min-height: calc(100vh - 88px);
      display: grid;
      align-items: center;
      overflow: hidden;
      border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 46px; align-items: center; padding: 70px 0 54px; }

.eyebrow {
      display: inline-flex;
      gap: 10px;
      align-items: center;
      color: var(--cyan);
      border: 1px solid rgba(103, 232, 249, .28);
      border-radius: 999px;
      padding: 9px 14px;
      background: rgba(103, 232, 249, .08);
      font-size: 13px;
      font-weight: 800;
    }

h1 { margin: 22px 0 18px; max-width: 780px; font-size: clamp(42px, 7vw, 86px); line-height: .95; }

.lead { max-width: 720px; color: #dbe7f7; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }

.btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 48px;
      border-radius: 12px;
      padding: 13px 18px;
      border: 1px solid rgba(255, 255, 255, .12);
      color: var(--ink);
      background: rgba(255, 255, 255, .07);
      font-weight: 850;
      cursor: pointer;
      transition: transform .18s ease, border-color .18s ease;
    }

.btn:hover { transform: translateY(-2px); border-color: rgba(103, 232, 249, .45); }

.btn.primary { color: #05101a; border-color: transparent; background: linear-gradient(135deg, var(--cyan), var(--lime)); box-shadow: 0 18px 50px rgba(103, 232, 249, .22); }

.btn.rose { background: linear-gradient(135deg, var(--rose), #ffc2e5); color: #180817; border-color: transparent; }

.btn.gold { background: linear-gradient(135deg, var(--gold), #fff1b3); color: #1a1204; border-color: transparent; }

.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; max-width: 760px; }

.stat { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .055); padding: 16px; border-radius: 8px; }

.stat strong { display: block; font-size: 24px; color: var(--cyan); }

.stat span { color: var(--muted); font-size: 13px; line-height: 1.35; display: block; margin-top: 5px; }

.fashion-orbit {
      position: relative;
      min-height: 560px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background:
        linear-gradient(rgba(103, 232, 249, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, .08) 1px, transparent 1px),
        rgba(255, 255, 255, .04);
      background-size: 34px 34px;
      box-shadow: var(--shadow), inset 0 0 80px rgba(103, 232, 249, .08);
      overflow: hidden;
    }

.hero-photo {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      z-index: 1;
    }

.fashion-orbit svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.floating-note {
      position: absolute;
      left: 24px;
      right: 24px;
      bottom: 22px;
      z-index: 2;
      padding: 18px;
      border: 1px solid rgba(255, 255, 255, .12);
      border-radius: 12px;
      background: rgba(7, 10, 18, .72);
      backdrop-filter: blur(14px);
    }

.floating-note b { color: var(--lime); }

.section { padding: 78px 0; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 28px; }

h2 { margin: 0; font-size: clamp(32px, 4.5vw, 54px); line-height: 1; }

.section-head p { max-width: 520px; color: var(--muted); line-height: 1.6; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

@media (min-width: 961px) {
  #servicios .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
      border: 1px solid rgba(255, 255, 255, .1);
      background: var(--panel);
      border-radius: 8px;
      padding: 22px;
      min-height: 250px;
      box-shadow: 0 16px 50px rgba(0, 0, 0, .18);
    }

.card .icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 20px; color: #07111d; background: var(--cyan); font-weight: 900; }

.card h3 { margin: 0 0 10px; font-size: 21px; }

.card p { margin: 0; color: var(--muted); line-height: 1.55; }

.price { margin-top: 18px; color: var(--gold); font-weight: 900; }

.seo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.search-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.search-tags span {
      border: 1px solid rgba(103, 232, 249, .22);
      border-radius: 999px;
      color: #dce8f7;
      background: rgba(103, 232, 249, .07);
      padding: 9px 12px;
      font-size: 13px;
      font-weight: 750;
    }

.faq-list { display: grid; gap: 12px; margin-top: 18px; }

.faq-item {
      border: 1px solid rgba(255, 255, 255, .1);
      border-radius: 10px;
      background: rgba(255, 255, 255, .05);
      padding: 16px;
    }

.faq-item h3 { margin: 0 0 8px; font-size: 18px; }

.faq-item p { margin: 0; color: var(--muted); line-height: 1.55; }

.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.video-card {
      border: 1px solid rgba(255, 255, 255, .1);
      background: var(--panel);
      border-radius: 8px;
      overflow: hidden;
      box-shadow: 0 16px 50px rgba(0, 0, 0, .18);
    }

.video-card h3 {
      margin: 0;
      padding: 14px 16px 16px;
      font-size: 17px;
    }

.student-video {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: #02060d;
      object-fit: cover;
    }

.video-card p {
      margin: -6px 0 0;
      padding: 0 16px 18px;
      color: var(--muted);
      line-height: 1.5;
      font-size: 14px;
    }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }

.panel {
      border: 1px solid var(--line);
      border-radius: 12px;
      background: rgba(12, 18, 32, .74);
      padding: 28px;
      box-shadow: var(--shadow);
    }

.list { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }

.list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: #dce8f7; line-height: 1.5; }

.check { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #06101a; background: var(--lime); font-weight: 950; }

.assistant { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: stretch; }

.quick { display: grid; gap: 10px; }

.quick button { width: 100%; text-align: left; border: 1px solid rgba(255, 255, 255, .1); color: var(--ink); background: rgba(255, 255, 255, .06); padding: 14px 15px; border-radius: 10px; cursor: pointer; }

.chatbox { display: flex; flex-direction: column; min-height: 410px; }

.messages { flex: 1; display: grid; align-content: start; gap: 12px; padding: 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: rgba(2, 6, 13, .38); overflow: auto; }

.bubble { max-width: 88%; padding: 13px 14px; border-radius: 14px; line-height: 1.45; }

.bot { background: rgba(103, 232, 249, .12); border: 1px solid rgba(103, 232, 249, .2); }

.bot.typing { color: var(--muted); font-weight: 800; letter-spacing: 2px; }

.user { justify-self: end; background: rgba(255, 111, 189, .16); border: 1px solid rgba(255, 111, 189, .24); }

.chat-input { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 12px; }

.chat-input input, .lead-form input, .lead-form select, .lead-form textarea {
      width: 100%;
      border: 1px solid rgba(255, 255, 255, .14);
      border-radius: 10px;
      color: var(--ink);
      background: rgba(255, 255, 255, .06);
      padding: 14px;
      outline: none;
    }

.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }

.lead-form textarea, .lead-form .full { grid-column: 1 / -1; }

.field-hint { grid-column: 1 / -1; margin-top: -6px; font-size: 12px; color: var(--muted); }

.field-hint.error { color: var(--rose); }

.lead-form input:invalid.touched { border-color: rgba(255, 111, 189, .6); }

textarea { min-height: 104px; resize: vertical; }

select option { background: #111827; color: white; }

.location-card {
      margin-top: 22px;
      border: 1px solid rgba(103, 232, 249, .24);
      border-radius: 12px;
      overflow: hidden;
      background: rgba(255, 255, 255, .04);
      box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
    }

.map-frame {
      width: 100%;
      aspect-ratio: 16 / 10;
      min-height: 240px;
      border: 0;
      display: block;
      filter: saturate(1.08) contrast(1.02);
    }

.location-copy {
      display: grid;
      gap: 12px;
      padding: 18px;
    }

.location-copy h3 {
      margin: 0;
      font-size: 18px;
    }

.location-copy p {
      margin: 0;
      color: var(--muted);
      line-height: 1.5;
    }

.location-copy .card-actions { margin-top: 2px; }

footer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 34px 0; color: var(--muted); }

.footer-grid { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }

.site-creator-credit {
  flex-basis: 100%;
  margin: 2px 0 0;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #9cabc0;
  font-size: .84rem;
  text-align: center;
}

.site-creator-credit a {
  color: #78eaf5;
  font-weight: 850;
  text-decoration: none;
}

.site-creator-credit a:hover,
.site-creator-credit a:focus-visible { color: #c7ff6b; text-decoration: underline; }

.graduate-network-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr);
  gap: 28px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(103, 232, 249, .32);
  border-radius: 26px;
  background:
    radial-gradient(circle at 95% 5%, rgba(255, 111, 189, .14), transparent 38%),
    linear-gradient(145deg, rgba(12, 28, 44, .97), rgba(10, 15, 29, .98));
  box-shadow: 0 24px 65px rgba(0, 0, 0, .28);
}

.graduate-network-card h2 { margin: 10px 0 14px; }
.graduate-network-card p { margin: 0 0 14px; color: #cbd7e7; }
.graduate-network-card strong { color: #f7fbff; }
.graduate-network-facts { display: grid; gap: 12px; align-content: center; }
.graduate-network-facts article { padding: 16px; border: 1px solid rgba(199,255,107,.22); border-radius: 16px; background: rgba(255,255,255,.045); }
.graduate-network-facts strong { display: block; color: #c7ff6b; font-size: 1.05rem; }
.graduate-network-facts span { display: block; margin-top: 5px; color: #b9c8dc; font-size: .9rem; }

@media (max-width: 760px) {
  .graduate-network-card { grid-template-columns: 1fr; }
}

.call-flag {
      --flag-delay: 0s;
      position: fixed;
      right: 0;
      top: 48%;
      z-index: 70;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 58px;
      width: 58px;
      padding: 0;
      color: #06101a;
      background: linear-gradient(135deg, var(--gold), #fff2b8);
      border: 1px solid rgba(255, 255, 255, .35);
      border-radius: 14px;
      box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
      font-weight: 900;
      overflow: hidden;
      isolation: isolate;
      transform: none;
      transition: width .2s ease, transform .2s ease, box-shadow .2s ease;
      animation: flag-invite-glow 6.4s ease-in-out infinite;
      animation-delay: var(--flag-delay);
    }

.call-flag::after {
      content: "";
      position: absolute;
      inset: -35% auto -35% -42%;
      z-index: 0;
      width: 28%;
      pointer-events: none;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
      transform: translateX(-240%) skewX(-18deg);
      animation: flag-invite-sheen 6.4s ease-in-out infinite;
      animation-delay: var(--flag-delay);
    }

@keyframes flag-invite-glow {
      0%, 67%, 88%, 100% { filter: brightness(1); }
      73% { filter: brightness(1.12) drop-shadow(0 0 7px rgba(255, 255, 255, .45)); }
      80% { filter: brightness(1.04) drop-shadow(0 0 3px rgba(255, 255, 255, .22)); }
    }

@keyframes flag-invite-sheen {
      0%, 68% { transform: translateX(-240%) skewX(-18deg); opacity: 0; }
      70% { opacity: .85; }
      82% { transform: translateX(650%) skewX(-18deg); opacity: 0; }
      100% { transform: translateX(650%) skewX(-18deg); opacity: 0; }
    }

@keyframes flag-icon-invite {
      0%, 68%, 86%, 100% { transform: translateX(0) rotate(0) scale(1); }
      72% { transform: translateX(-2px) rotate(-5deg) scale(1.05); }
      76% { transform: translateX(2px) rotate(5deg) scale(1.08); }
      80% { transform: translateX(-1px) rotate(-3deg) scale(1.04); }
      83% { transform: translateX(0) rotate(0) scale(1); }
    }

.call-flag:hover,
    .call-flag:focus-visible {
      animation-play-state: paused;
    }

.call-flag:hover::after,
    .call-flag:focus-visible::after,
    .call-flag:hover .call-flag-icon,
    .call-flag:focus-visible .call-flag-icon {
      animation-play-state: paused;
    }

@media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
      .call-flag { animation: none; }
      .call-flag::after, .call-flag-icon { animation: none !important; }
    }

.call-flag:hover,
    .call-flag:focus-visible {
      width: 154px;
      padding: 12px 14px;
      justify-content: flex-start;
      transform: translateX(-4px);
      box-shadow: 0 22px 55px rgba(245, 200, 107, .28);
      outline: none;
    }

.call-flag-icon {
      display: block;
      flex: 0 0 42px;
      width: 42px;
      height: 42px;
      object-fit: contain;
      position: relative;
      z-index: 1;
      transform-origin: center;
      animation: flag-icon-invite 6.4s ease-in-out infinite;
      animation-delay: var(--flag-delay);
    }

.call-flag-text {
      flex: 0 0 0;
      width: 0;
      color: inherit;
      opacity: 0;
      visibility: hidden;
      transform: translateX(8px);
      white-space: nowrap;
      transition: opacity .16s ease, transform .16s ease, visibility .16s ease, width .16s ease;
      position: relative;
      z-index: 1;
    }

.call-flag:hover .call-flag-text,
    .call-flag:focus-visible .call-flag-text {
      flex-basis: 82px;
      width: 82px;
      opacity: 1;
      visibility: visible;
      transform: translateX(0);
    }

.call-flag small { display: block; font-size: 11px; line-height: 1; opacity: .75; }

.call-flag span { display: block; line-height: 1.1; }

.alt-flag {
      --flag-delay: 1.15s;
      top: calc(48% + 74px);
      background: linear-gradient(135deg, var(--lime), #eaffc2);
    }

.store-flag,
    .price-flag,
    .home-flag { --flag-delay: 2.3s; }

.classes-flag { --flag-delay: 3.45s; }

body:not(.en) [data-en],
    body.en [data-es] { display: none !important; }

@media (max-width: 960px) {
      .menu-toggle { display: inline-flex; }

      .nav { justify-content: flex-start; }

      .lang { margin-left: auto; }

      .navlinks {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px;
        background: rgba(7, 10, 18, .97);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        box-shadow: 0 24px 40px rgba(0, 0, 0, .35);
      }

      .navlinks.open { display: flex; }

      .navlinks a {
        padding: 13px 12px;
        border-radius: 8px;
        color: var(--ink);
      }

      .navlinks a:active, .navlinks a:focus-visible { background: rgba(255, 255, 255, .07); }

      .nav { position: relative; flex-wrap: wrap; }

      .fashion-orbit { min-height: 460px; }
      .cards, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .section-head { display: grid; }
    }

@media (max-width: 640px) {
      body { padding-bottom: 88px; }
      .mark { width: 170px; height: 44px; }
      .nav { gap: 8px; min-height: 76px; }
      .lang { padding: 3px; gap: 3px; }
      .lang button, .lang a { padding: 6px 8px; font-size: 13px; }
      .menu-toggle { width: 38px; height: 38px; }
      .shell { width: min(100% - 22px, 1180px); }
      .hero-grid { padding-top: 42px; }
      .trust, .cards, .video-grid, .lead-form { grid-template-columns: 1fr; }
      .lead-form textarea, .lead-form .full { grid-column: auto; }
      .fashion-orbit { min-height: 430px; }
      .chat-input { grid-template-columns: 1fr; }
      .btn { width: 100%; }
      .call-flag-icon {
        flex: 0 0 30px;
        width: 30px;
        height: 30px;
      }
      .alt-flag .call-flag-text {
        white-space: normal;
        max-width: 130px;
        line-height: 1.15;
      }
      .section { padding: 56px 0; }
    }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1rem;
  margin-top: .7rem;
}

.footer-links a {
  color: #8feefa;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.footer-links .teacher-access-link {
  color: #a7b2c3;
  font-size: .78rem;
  opacity: .72;
}

.footer-links .teacher-access-link:hover,
.footer-links .teacher-access-link:focus-visible {
  color: #d8e3f1;
  opacity: 1;
}

.international-class-invite {
  position: fixed;
  z-index: 1200;
  left: 22px;
  bottom: 22px;
  width: min(430px, calc(100vw - 44px));
  padding: 22px;
  color: #f7fbff;
  background:
    radial-gradient(circle at 100% 0, rgba(177, 255, 93, .14), transparent 42%),
    linear-gradient(145deg, rgba(9, 29, 42, .98), rgba(18, 15, 36, .98));
  border: 1px solid rgba(99, 225, 237, .58);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .46);
  animation: international-invite-enter .38s ease-out both;
}

.international-class-invite h2 {
  margin: 3px 34px 8px 0;
  color: #fff;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  line-height: 1.08;
}

.international-class-eyebrow {
  margin: 0;
  color: #63e1ed;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.international-class-description {
  margin: 0 0 16px;
  color: #d7e4ee;
  line-height: 1.45;
}

.international-class-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  color: #071019;
  background: linear-gradient(100deg, #63e1ed, #b1ff5d);
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
}

.international-class-link:hover,
.international-class-link:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.international-class-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #dbe9f3;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  font: 400 1.55rem/1 sans-serif;
  cursor: pointer;
}

.international-class-close:hover,
.international-class-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

@keyframes international-invite-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .international-class-invite {
    left: 12px;
    bottom: 96px;
    width: calc(100vw - 24px);
    padding: 19px;
  }

  .international-class-link { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .international-class-invite { animation: none; }
  .international-class-link { transition: none; }
}

/* Mobile quick-access dock. Kept at the end so the versioned stylesheet can
   override older page-specific mobile rules still stored by installed apps. */
@media (max-width: 640px) {
  body { overflow-x: hidden; padding-bottom: 92px; }

  body > .call-flag {
    top: auto !important;
    right: auto !important;
    bottom: 10px !important;
    z-index: 1300;
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    width: 64px !important;
    min-height: 66px;
    padding: 5px 3px !important;
    border-radius: 16px !important;
    transform: none !important;
    overflow: hidden;
  }

  body > .call-flag:not(.alt-flag):not(.store-flag):not(.classes-flag) {
    left: calc(50% - 134px) !important;
  }

  body > .call-flag.alt-flag { left: calc(50% - 66px) !important; }
  body > .call-flag.store-flag { left: calc(50% + 2px) !important; }
  body > .call-flag.classes-flag { left: calc(50% + 70px) !important; }

  body > .call-flag .call-flag-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
  }

  body > .call-flag .call-flag-text,
  body > .call-flag:hover .call-flag-text,
  body > .call-flag:focus-visible .call-flag-text,
  body > .call-flag.is-open .call-flag-text {
    display: block;
    flex: 0 0 auto;
    width: 58px !important;
    max-width: 58px !important;
    color: #06101a;
    opacity: 1;
    visibility: visible;
    transform: none;
    white-space: normal !important;
    text-align: center;
    font-size: 8px;
    line-height: 1.05;
  }

  body > .call-flag .call-flag-text small { display: none; }
  body > .call-flag .call-flag-text span { line-height: 1.05; }

  .international-class-invite {
    bottom: 88px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}
