/* Moira - Figma update 2026-11-20 (both languages). Loaded after Oxygen's selectors.css.
   Desktop tweaks, button/link hover (laika.com reference), phone/tablet layout (<= 1023px). *//* ---------- Desktop: type ---------- */


html .mas-title-hero { letter-spacing: -3.2px; }
html .mas-hero-line2 { display: flex; justify-content: center; flex-wrap: wrap; column-gap: 0.25em; letter-spacing: -0.64px; }
html .mas-hero-line2 .mas-title-hero { display: inline; letter-spacing: -0.64px; }
html .mas-title-section { font-size: 90px; line-height: 90px; letter-spacing: -3.6px; }
html .mas-footer .mas-title-section { font-size: 60px; line-height: 60px; letter-spacing: -2.4px; }
html .mas-col-660 { gap: 40px; }
html .mas-amelia-info { gap: 0; }
html .mas-body { letter-spacing: -0.36px; }
html .mas-title-service { font-size: 79px; line-height: 79px; letter-spacing: -3.16px; }/* Orange service cards (Diseño Gráfico, Identidad Visual Musical) */


html #servicios-diseno, html #servicios-sonoro, html #services-design, html #services-sound { background-color: var(--mas-orange-forge, #EB9278); }
html #servicios-diseno .mas-service-name, html #servicios-sonoro .mas-service-name, html #services-design .mas-service-name, html #services-sound .mas-service-name { color: var(--mas-elf-green); }/* ---------- Header logos ---------- */


html .mas-header-icon-amelia { grid-area: 1/1; width: 44px; height: 44px; object-fit: contain; opacity: 0; transition: opacity 0.3s ease; }
html .header--amelia .mas-header-icon { opacity: 0; }
html .header--amelia .mas-header-icon-amelia { opacity: 1; }/* ---------- Links & buttons: pill + text colour fade (in 0.3s, out 0.4s) ---------- */


html .mas-header .mas-nav-link { position: relative; padding: 5px 18px; border-radius: 6px; border-bottom: 0;
  transition: background-color 0.4s ease, color 0.4s ease; }
html .mas-header .mas-nav-link::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: calc(100% - 6px); height: 1px;
  background: var(--mas-ethereal-sand); transform: translateX(-50%); opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
html .mas-header .mas-nav-link:hover, html .mas-header .mas-nav-link:focus-visible, html .header--hero .mas-nav-link:hover, html .header--amelia .mas-nav-link:hover {
  color: var(--mas-off-white); background-color: var(--mas-ember-dragon); transition-duration: 0.3s; outline: none; }
html .mas-header .mas-nav-link:hover::after, html .mas-header .mas-nav-link:focus-visible::after { opacity: 1; transition-duration: 0.3s; }
html .mas-header .mas-nav-link.is-current { color: var(--mas-off-white); background-color: var(--mas-ember-dragon); }

html .mas-lang-opt { transition: background-color 0.4s ease, color 0.4s ease; }
html .mas-lang-opt:not(.is-current):hover, html .mas-lang-opt:not(.is-current):focus-visible {
  color: var(--mas-off-white); background-color: var(--mas-ember-dragon); transition-duration: 0.3s; outline: none; }

html .mas-news-more { align-self: flex-start; display: inline-block; padding: 5px 18px; margin: -5px -18px; border-radius: 6px;
  transition: background-color 0.4s ease, color 0.4s ease; }
html .mas-news-more:hover, html .mas-news-more:focus-visible { color: var(--mas-off-white); background-color: var(--mas-ember-dragon);
  text-decoration: none; transition-duration: 0.3s; outline: none; }
html .mas-news-more * { color: inherit; }

html .mas-post-nav-link, html .mas-lightbox-btn { padding: 5px 18px; margin: -5px -18px; border-radius: 6px;
  transition: background-color 0.4s ease, color 0.4s ease, opacity 0.2s ease; }
html .mas-post-nav-link:hover, html .mas-post-nav-link:focus-visible, html .mas-lightbox-btn:not(:disabled):hover, html .mas-lightbox-btn:not(:disabled):focus-visible {
  color: var(--mas-off-white); background-color: var(--mas-ember-dragon); transition-duration: 0.3s; outline: none; }
html .mas-lightbox-close { transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease; }
html .mas-lightbox-close:hover, html .mas-lightbox-close:focus-visible { color: var(--mas-off-white); background-color: var(--mas-ember-dragon);
  border-color: var(--mas-ember-dragon); transition-duration: 0.3s; outline: none; }

html .mas-footer-email { padding: 5px 18px; margin: -5px -18px; border-radius: 6px; transition: background-color 0.4s ease, color 0.4s ease; }
html .mas-footer-email:hover, html .mas-footer-email:focus-visible { color: var(--mas-off-white); background-color: var(--mas-ember-dragon);
  text-decoration: none; transition-duration: 0.3s; outline: none; }
html .mas-footer-social { border-radius: 50%; transition: opacity 0.4s ease, box-shadow 0.4s ease; }
html .mas-footer-social:hover, html .mas-footer-social:focus-visible { opacity: 1; box-shadow: 0 0 0 3px var(--mas-ember-dragon); transition-duration: 0.3s; outline: none; }

html .mas-to-top svg rect:first-of-type { transition: fill 0.4s ease; }
html .mas-to-top:hover svg rect:first-of-type, html .mas-to-top:focus-visible svg rect:first-of-type { fill: var(--mas-ember-dragon); transition-duration: 0.3s; }/* Menu button (phones/tablets only) */


html .mas-menu-btn { display: none; align-items: center; justify-content: center; padding: 5px 18px; border-radius: 6px; cursor: pointer;
  font-family: var(--mas-font-ui); font-weight: 400; font-size: 12px; line-height: normal; text-decoration: none;
  color: var(--mas-feywild-bloom); background-color: transparent; user-select: none;
  transition: background-color 0.4s ease, color 0.4s ease; }
html .header--hero .mas-menu-btn, html .header--amelia .mas-menu-btn, html .mas-header.is-menu-open .mas-menu-btn { color: var(--mas-off-white); }
html .mas-menu-btn:hover, html .mas-menu-btn:focus-visible { color: var(--mas-off-white); background-color: var(--mas-ember-dragon); transition-duration: 0.3s; outline: none; }/* Phone-only elements and the menu panel are off on desktop */


html .mas-mobile-only, html .mas-mmenu { display: none; }/* ======================= Phones & tablets (<= 1023px) ======================= */


@media (max-width: 1023px) {
  html .mas-mobile-only { display: block; }/* Header: full-width bar, logo + Menu */

  
  html .mas-header { top: var(--wp-admin--admin-bar--height, 0px); left: 0; width: 100%; transform: none; padding: 6px 20px; min-height: 61px; }
  html .mas-header .mas-nav, html .mas-header-right .mas-lang { display: none; }
  html .mas-header-logo { width: auto; min-width: 44px; }
  html .mas-menu-btn { display: inline-flex; }
  html .mas-header.is-menu-open { background-color: transparent; }
  html .mas-header.is-menu-open.header--none { visibility: visible; opacity: 1; pointer-events: auto; }/* Full-screen menu, slides in from the right */

  
  html .mas-mmenu { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px;
    position: fixed; inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0; z-index: 890; overflow-y: auto;
    padding: 80px 28px 40px; background-color: #000; visibility: hidden; transform: translate3d(100%, 0, 0);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 0.35s; }
  html .mas-mmenu.is-open { visibility: visible; transform: none; transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), visibility 0s; }
  html .mas-mmenu-nav { display: flex; flex-direction: column; width: min(333px, 100%); padding: 12px; }
  html .mas-mmenu-link { padding: 20px 18px; border-radius: 6px; font-family: var(--mas-font-ui); font-weight: 800; font-size: 40px;
    line-height: normal; letter-spacing: -0.8px; color: var(--mas-off-white); text-decoration: none;
    transition: background-color 0.4s ease, color 0.4s ease; }
  html .mas-mmenu-link:hover, html .mas-mmenu-link:focus-visible { background-color: var(--mas-ember-dragon); transition-duration: 0.3s; outline: none; }
  html .mas-mmenu-lang { display: flex; justify-content: flex-end; width: min(333px, 100%); }
  html .mas-mmenu-news { display: none; }/* EN News is hidden until there are English posts */ 
  html.mas-menu-open, html.mas-menu-open body { overflow: hidden; }/* Cards */

  
  html .mas-card { min-height: 100vh; min-height: 100svh; justify-content: flex-start; padding: 112px 29px 60px; }
  html .mas-card--image, html .mas-card--amelia-intro, html .mas-card--gallery { display: none; }/* merged into Nosotros / Amelia on phones */ 
  html .mas-title-section { font-size: 50px; line-height: 50px; letter-spacing: -1px; }
  html .mas-body { font-size: 12px; letter-spacing: 0; }
  html .mas-prose { gap: 18px; }
  html .mas-col-660 { gap: 16px; max-width: 333px; }/* Hero */

  
  html .mas-card--hero { justify-content: center; padding: 61px 29px 0; }
  html .mas-hero-title { width: 100%; max-width: 333px; }
  html .mas-title-hero { font-size: 36px; line-height: 36px; letter-spacing: 0; }
  html .mas-hero-line2, html .mas-hero-line2 .mas-title-hero { letter-spacing: 0; }/* Nosotros + team photo at the bottom */

  
  html .mas-card:has(> .mas-about-team) { padding-bottom: 0; }
  html .mas-about-team { width: calc(100% + 58px); max-width: none; height: 262px; object-fit: cover; margin: auto -29px 0; padding-top: 24px; flex-shrink: 0; }/* Amelia: one card (image, logo, text, gallery strip) */

  
  html .mas-card--dark { padding: 104px 29px 35px; }
  html .mas-card--dark > .mas-card-bg { display: none; }
  html .mas-amelia-m-top { position: absolute; top: 0; left: 0; z-index: 0; width: 100%; height: 479px; object-fit: cover; object-position: 50% 0;
    -webkit-mask-image: linear-gradient(#000 45%, transparent 100%); mask-image: linear-gradient(#000 45%, transparent 100%); }
  html .mas-amelia-info-logo { width: 167px; height: 167px; }
  html .mas-amelia-m-gallery { position: relative; z-index: 1; width: calc(100% + 58px); margin: auto -29px 0; padding-top: 24px; overflow: hidden; }
  html .mas-amelia-m-gallery .mas-gallery-track { gap: 10.5px; margin-left: 0; }
  html .mas-amelia-m-gallery .mas-gallery-pic { width: 196px; height: 146px; }/* Services */

  
  html .mas-card:has(.mas-service) { justify-content: center; padding-top: 81px; }
  html .mas-service { gap: 30px; max-width: 333px; }
  html .mas-service-row { flex-direction: column; gap: 20px; }
  html .mas-service-name { flex-basis: auto; width: 100%; }
  html .mas-title-service { font-size: 40px; line-height: 40px; letter-spacing: -1px; }
  html .mas-service-text { font-size: 14px; }/* News */

  
  html .mas-news { gap: 51px; align-items: stretch; }
  html .mas-news-viewport { width: calc(100% + 29px); margin-right: -29px; }
  html .mas-news-track { gap: 32px; }
  html .mas-news-card { flex-basis: 280px; width: 280px; gap: 21px; }
  html .mas-news-cover { height: 280px; }
  html .mas-news-body { gap: 16px; }
  html .mas-news-title { font-size: 26px; line-height: 26px; }
  html .mas-news-excerpt { font-size: 12px; line-height: 17px; max-height: 102px; -webkit-line-clamp: 6; line-clamp: 6; }
  html .mas-news-more { font-size: 12px; }/* Footer: stacked */

  
  html .mas-footer { height: auto; min-height: 665px; padding: 33px 45px; }
  html .mas-footer-inner { flex-direction: column; align-items: center; gap: 30px; width: 100%; max-width: 300px; }
  html .mas-footer-brand { width: 100%; }
  html .mas-footer-icon { width: 210px; height: 209px; }
  html .mas-footer-contact, html .mas-footer-details { width: 100%; }
  html .mas-footer .mas-title-section.mas-footer-title { font-size: 40px; line-height: 60px; letter-spacing: -0.8px; }
  html .mas-footer-email { font-size: 14px; }
  html .mas-footer-copy { font-size: 10px; }
  html .mas-to-top { right: 21px; }/* News post page */

  
  html .mas-single { padding-top: 80px; }
  html .mas-single::before { height: calc(var(--wp-admin--admin-bar--height, 0px) + 61px); }
  html .mas-post { width: calc(100% - 90px); padding-bottom: 60px; }
  html .mas-post-cover { height: 244px; }
  html .mas-post-body { width: 100%; gap: 16px; }
  html .mas-post-title { font-size: 30px; line-height: 30px; }
  html .mas-post-intro { font-size: 14px; }
  html .mas-post-content { font-size: 12px; }
  html .mas-post-nav-link { font-size: 14px; }
}

/* Fixes after first phone check (2026-11-20) */
html .mas-menu-btn { border: 0; margin: 0; background-color: transparent; -webkit-appearance: none; appearance: none; }
html .mas-menu-btn:hover, html .mas-menu-btn:focus-visible { background-color: var(--mas-ember-dragon); }
@media (max-width: 1023px) {
  html .mas-card--hero { padding: 61px 20px 0; }
  html .mas-hero-title { max-width: 350px; }
  html .mas-hero-line2 { display: block; text-align: center; }
  html .mas-hero-line2 .mas-title-hero { display: inline; }
}
@media (min-width: 1024px) {
  html .mas-title-hero { font-size: clamp(56px, 6.2vw, 80px); line-height: 1; }
}

/* Logged-in phones: header/menu/sand bar follow the scrolling admin bar (--moira-bar set by moira-menu.js) */
@media (max-width: 1023px) {
  html .mas-header { top: var(--moira-bar, var(--wp-admin--admin-bar--height, 0px)); }
  html .mas-mmenu { top: var(--moira-bar, var(--wp-admin--admin-bar--height, 0px)); }
  html .mas-single::before { height: calc(var(--moira-bar, var(--wp-admin--admin-bar--height, 0px)) + 61px); }
}
