/* ============================================================
   ALLMA Lab — style.css
   Premium architecture & interior design studio — Cusco, Peru
   ============================================================ */

/* ---------------------------------------------------------
   0. Custom Properties
   --------------------------------------------------------- */
:root {
  color-scheme: light;

  --purple:    #3a1934;
  --rose:      #cf7784;
  --blush:     #f6d4d4;
  --red:       #af2226;
  --off-white: #faf7f5;
  --black:     #0d0b0e;
  --white:     #ffffff;

  --font-logo:  'Montserrat Alternates', sans-serif;
  --font-ui:    'Montserrat', sans-serif;
  --font-serif: 'Cormorant Garamond', serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);

  --radius-card: 15px;
  --radius-pill: 999px;
  --header-h:    72px;
  --container:   1200px;
  --gap:         2rem;
}

/* ---------------------------------------------------------
   1. Reset & Base
   --------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--off-white);
  overflow-x: hidden;
}

body {
  font-family: var(--font-ui);
  background: var(--off-white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
}

/* ---------------------------------------------------------
   2. Utility Classes
   --------------------------------------------------------- */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

.label {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.75rem;
}

.label--light {
  color: var(--blush);
  opacity: 0.8;
}

.serif {
  font-family: var(--font-serif);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease-out-expo);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-hero {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}
.btn-hero:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}
.btn-primary:hover {
  background: transparent;
  color: var(--purple);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--purple);
  border-color: var(--purple);
}
.btn-outline:hover {
  background: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--purple);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--rose);
  border: none;
  padding-left: 0;
  padding-right: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.btn-ghost::after {
  content: ' →';
}
.btn-ghost:hover {
  color: var(--purple);
  transform: translateX(4px);
}

/* ---------------------------------------------------------
   3. Reveal Animation (requires .js-ready on body)
   --------------------------------------------------------- */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.js-ready .reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.js-ready .reveal-delay-1 { transition-delay: 0.1s; }
.js-ready .reveal-delay-2 { transition-delay: 0.2s; }
.js-ready .reveal-delay-3 { transition-delay: 0.3s; }
.js-ready .reveal-delay-4 { transition-delay: 0.4s; }
.js-ready .reveal-delay-5 { transition-delay: 0.5s; }

/* ---------------------------------------------------------
   4. Header
   --------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding-inline: 2rem;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease,
              opacity 0.5s ease, transform 0.5s var(--ease-out-expo);
}

/* Hide header until scroll on homepage */
body.light-hero .site-header:not(.scrolled) {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
}
body.light-hero .site-header.scrolled {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: none; /* instant when returning to dark hero */
}

.site-header.scrolled .site-logo img {
  filter: none;
  transition: filter 0.35s ease; /* smooth only when scrolling down */
}

.site-header.scrolled {
  background: rgba(250, 247, 245, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  transition: color 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.12);
}

.site-header.scrolled .nav-link {
  color: var(--black);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: var(--purple);
  background: rgba(58,25,52,0.07);
}

.nav-link.has-dropdown::after {
  content: ' ▾';
  font-size: 0.6rem;
  opacity: 0.7;
}

/* Bridge: invisible hover area between link and dropdown to prevent gap dropout */
.nav-item::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.06);
  min-width: 200px;
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out-expo);
  z-index: 10;
}

.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--black);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown a:hover {
  background: var(--blush);
  color: var(--purple);
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.lang-toggle:hover { background: rgba(255,255,255,0.18); color: var(--white); }

.lang-flag { font-size: 0.9rem; line-height: 1; }
.lang-chevron { font-size: 0.5rem; opacity: 0.7; transition: transform 0.22s ease; }
.lang-toggle.open .lang-chevron { transform: rotate(180deg); }

.site-header.scrolled .lang-toggle {
  color: rgba(13,11,14,0.72);
  background: rgba(0,0,0,0.04);
  border-color: rgba(13,11,14,0.12);
}
.site-header.scrolled .lang-toggle:hover {
  background: rgba(58,25,52,0.07);
  color: var(--purple);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.06);
  padding: 0.4rem;
  min-width: 168px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s var(--ease-out-expo);
  z-index: 20;
}

.lang-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-transform: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.lang-btn:hover, .lang-btn.active {
  background: var(--blush);
  color: var(--purple);
}

/* Mobile lang toggle inside overlay */
.mobile-lang { margin-top: 1.5rem; position: relative; }
.mobile-lang .lang-toggle {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.88);
}
.mobile-lang .lang-toggle:hover { background: rgba(255,255,255,0.2); }
.mobile-lang .lang-dropdown {
  bottom: calc(100% + 6px);
  top: auto;
  right: auto;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 170px;
}
.mobile-lang .lang-dropdown.open {
  transform: translateX(-50%) translateY(0);
}

.nav-cta-btn {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--rose);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: background 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.nav-cta-btn:hover {
  background: var(--purple);
  transform: translateY(-1px);
}

.site-header.scrolled .nav-cta-btn {
  background: var(--rose);
}

.nav-shop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255,255,255,0.78);
  border: 1.5px solid rgba(255,255,255,0.22);
  background: transparent;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-shop-btn:hover {
  background: rgba(255,255,255,0.14);
  color: var(--white);
  transform: translateY(-1px);
}
.nav-shop-btn svg {
  width: 17px;
  height: 17px;
}
.site-header.scrolled .nav-shop-btn {
  color: var(--purple);
  border-color: rgba(58,25,52,0.22);
}
.site-header.scrolled .nav-shop-btn:hover {
  background: rgba(58,25,52,0.07);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.site-header.scrolled .hamburger span {
  background: var(--black);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250,247,245,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 6rem 2.5rem 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  overflow-y: auto;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  display: block;
}

.mobile-nav-label:first-child { margin-top: 0; }

.mobile-nav-overlay a {
  font-size: 1.45rem;
  font-family: var(--font-logo);
  font-weight: 600;
  color: var(--purple);
  letter-spacing: -0.01em;
  padding: 0.3rem 0;
  transition: color 0.2s ease;
  display: block;
}

.mobile-nav-overlay a:hover { color: var(--rose); }

.mobile-nav-sub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding-left: 1rem;
  border-left: 2px solid rgba(58,25,52,0.12);
  margin-bottom: 0.5rem;
}

.mobile-nav-sub a {
  font-size: 1.15rem !important;
  color: rgba(58,25,52,0.72) !important;
}

.mobile-nav-overlay .mobile-nav-cta {
  display: inline-block;
  margin-top: 2rem;
  background: var(--purple);
  color: var(--white) !important;
  padding: 0.75rem 1.8rem !important;
  border-radius: 100px;
  font-size: 0.78rem !important;
  font-family: var(--font-ui) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
}

.mobile-lang {
  margin-top: 1.5rem;
}

/* When mobile nav is open, show dark logo + hamburger on all pages */
body:has(.mobile-nav-overlay.open) .site-logo img { filter: none; }
body:has(.mobile-nav-overlay.open) .hamburger span { background: var(--purple); }
body:has(.mobile-nav-overlay.open) .lang-toggle {
  color: rgba(13,11,14,0.68);
  background: rgba(0,0,0,0.04);
  border-color: rgba(13,11,14,0.14);
}

/* ---------------------------------------------------------
   5. Hero (Full — index.html)
   --------------------------------------------------------- */
/* ── Hero (light cream background, crossfading renders) ── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--off-white);
}

/* Crossfading photo slides */
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroCrossfade 24s infinite;
  transform: scale(1.05);
}
.hero-slide:nth-child(1) { animation-delay: 0s;   background-image: url('assets/renders/amorem_render 1.webp'); }
.hero-slide:nth-child(2) { animation-delay: 6s;   background-image: url('assets/renders/yuro_render_1.webp'); }
.hero-slide:nth-child(3) { animation-delay: 12s;  background-image: url('assets/renders/aywi_render_1.webp'); }
.hero-slide:nth-child(4) { animation-delay: 18s;  background-image: url('assets/renders/alosilla_render_1.webp'); }

@keyframes heroCrossfade {
  0%, 4%   { opacity: 0;    transform: scale(1.05); }
  8%, 28%  { opacity: 0.28; transform: scale(1.02); }
  33%, 100%{ opacity: 0;    transform: scale(1); }
}

/* Light cream tint over the photos */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 247, 245, 0.70);
  z-index: 1;
}

/* Decorative ALLMA watermark behind content */
.hero-watermark {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}
.hero-watermark span {
  font-family: var(--font-logo);
  font-size: clamp(18rem, 50vw, 60rem);
  font-weight: 800;
  color: rgba(58, 25, 52, 0.035);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
  white-space: nowrap;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 840px;
  padding: 2rem;
}

.hero-eyebrow {
  display: none;
}

.hero-title {
  font-family: var(--font-logo);
  font-size: clamp(5rem, 15vw, 11.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--purple);
  margin-bottom: 1.5rem;
}

/* ── Hero logo — animated glow/illumination ── */
.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.75rem;
  line-height: 1;
}

.hero-logo-clipped {
  width: clamp(200px, 38vw, 460px);
  aspect-ratio: 1225 / 831;
  position: relative;
  overflow: hidden;
  mask-image: url('../assets/allma-logo-blanco.svg');
  -webkit-mask-image: url('../assets/allma-logo-blanco.svg');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  /* animated glow gradient */
  background: linear-gradient(
    125deg,
    #3a1934 0%,
    #6b2460 25%,
    #cf7784 48%,
    #6b2460 72%,
    #3a1934 100%
  );
  background-size: 300% 300%;
  animation: logoGlow 14s ease-in-out infinite;
  /* drop-shadow removed: filter + mask-image causes white box in Chromium */
}

@keyframes logoGlow {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

.hero-logo-mobile { display: none; }

.hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 400;
  color: rgba(58, 25, 52, 0.72);
  margin-bottom: 2.5rem;
  line-height: 1.45;
}

/* Header adapts to light hero */
body.light-hero .site-logo img       { filter: none; }
body.light-hero .nav-link            { color: rgba(13, 11, 14, 0.72); }
body.light-hero .nav-link:hover,
body.light-hero .nav-link.active     { color: var(--purple); background: rgba(58,25,52,0.06); }
body.light-hero .lang-toggle         { color: rgba(13,11,14,0.68); background: rgba(0,0,0,0.04); border-color: rgba(13,11,14,0.14); }
body.light-hero .lang-toggle:hover   { background: rgba(58,25,52,0.07); color: var(--purple); }
body.light-hero .hamburger span      { background: var(--purple); }
body.light-hero .nav-cta-btn         { background: var(--rose); color: var(--white); border-color: var(--rose); }
body.light-hero .nav-shop-btn        { color: var(--purple); border-color: rgba(58,25,52,0.22); }
body.light-hero .nav-shop-btn:hover  { background: rgba(58,25,52,0.06); }
body.light-hero .site-header.scrolled .site-logo img { filter: none; }

/* Remove the old hero-media / hero-media-img approach */
.hero-media { display: none; }

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: rgba(58, 25, 52, 0.5);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
}

.hero-scroll-line { display: none; }

.hero-scroll-arrow {
  width: 28px;
  height: 28px;
  border-right: 2px solid rgba(58,25,52,0.45);
  border-bottom: 2px solid rgba(58,25,52,0.45);
  transform: rotate(45deg);
  animation: scrollBounce 1.6s ease-in-out infinite;
  margin-bottom: 2px;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0);   opacity: 0.45; }
  50%       { transform: rotate(45deg) translateY(6px); opacity: 1; }
}

/* ---------------------------------------------------------
   6. Hero Partners Strip
   --------------------------------------------------------- */
.hero-partners {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(58,25,52,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.partners-track-wrap {
  overflow: hidden;
  width: 100%;
}

.partners-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
  will-change: transform;
  pointer-events: none;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.partners-track img {
  height: 40px;
  width: auto;
  margin: 0 1.5rem;
  object-fit: contain;
  opacity: 0.95;
  border-radius: 6px;
}

/* ---------------------------------------------------------
   7. Page Hero (.page-hero — sub-pages)
   --------------------------------------------------------- */
.page-hero {
  position: relative;
  height: clamp(420px, 60vh, 680px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #3a1934 0%, #5c1a50 50%, #3a1934 100%);
}

.page-hero .hero-overlay {
  background: linear-gradient(
    160deg,
    rgba(58,25,52,0.78) 0%,
    rgba(58,25,52,0.52) 50%,
    rgba(58,25,52,0.8) 100%
  );
}

.page-hero .hero-content {
  padding-top: var(--header-h);
}

.page-hero .hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--blush);
  opacity: 0.88;
  line-height: 1.5;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------------------------------------------------------
   8. Sections — General
   --------------------------------------------------------- */
.section {
  padding: 7rem 0;
}

.section-sm {
  padding: 4rem 0;
}

.section--dark {
  background: var(--purple);
  color: var(--white);
}

.section--blush {
  background: var(--blush);
}

.section--off-white {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--purple);
}

.section-header h2 em {
  color: var(--rose);
  font-style: italic;
}

.section-header p {
  max-width: 540px;
  margin: 1rem auto 0;
  color: rgba(13,11,14,0.62);
  font-size: 1rem;
  line-height: 1.65;
}

.section-header--light h2 {
  color: var(--white);
}

.section-header--light p {
  color: rgba(255,255,255,0.6);
}

/* ---------------------------------------------------------
   9. Manifesto / About Section
   --------------------------------------------------------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.manifesto-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--purple);
  margin-bottom: 1.5rem;
}

.manifesto-text h2 em {
  color: var(--rose);
  font-style: italic;
}

.manifesto-text p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(13,11,14,0.68);
  margin-bottom: 1.25rem;
}

.manifesto-image {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.manifesto-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s var(--ease-out-expo);
}

.manifesto-image:hover img {
  transform: scale(1.04);
}

/* ---------------------------------------------------------
   10. Projects Preview & Projects Page
   --------------------------------------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.projects-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--purple);
}

.projects-grid-2col .project-card {
  aspect-ratio: 4/3;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.07);
  opacity: 0.7;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(58,25,52,0.9) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  transform: translateY(8px);
  opacity: 0.85;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-card-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 0.4rem;
}

.project-card-name {
  font-family: var(--font-logo);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.9rem;
  line-height: 1.1;
}

.project-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blush);
  border: 1px solid rgba(246,212,212,0.4);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  background: none;
  font-family: var(--font-ui);
}

.project-card-cta:hover {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
}

/* ── Projects home carousel ── */
.projects-carousel {
  position: relative;
}

.projects-carousel-track {
  overflow: hidden;
}

.projects-carousel-track .project-card {
  display: none;
  aspect-ratio: 4 / 3;
}

.projects-carousel-track .project-card.active {
  display: block;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(58,25,52,0.25);
  background: transparent;
  color: var(--purple);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(58,25,52,0.2);
  transition: background 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--purple);
  transform: scale(1.35);
}

.projects-cta-wrap {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: -2rem;
}

/* ---------------------------------------------------------
   11. Units Section — 3-col row on desktop, 1-col on mobile
   --------------------------------------------------------- */
.units-section {
  background: var(--off-white);
  padding-top: 3.5rem;
}

.units-grid {
  display: flex;
  gap: 1rem;
  max-width: 960px;
  margin-inline: auto;
}

.unit-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 260px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  text-decoration: none;
  transition: flex 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s ease;
}

.units-grid:has(.unit-card:hover) .unit-card { flex: 0.85; }
.units-grid:has(.unit-card:hover) .unit-card:hover { flex: 1.3; }

/* texture bg per unit — CSS wallpaper patterns */
.unit-card[data-unit="diseno"]    { background: linear-gradient(135deg, #3a1934 0%, #6b2460 40%, #9b3a70 70%, #cf7784 100%); }
.unit-card[data-unit="desarrollo"]{ background: linear-gradient(135deg, #1a0f30 0%, #3a1934 45%, #5c1a50 80%, #8b2a5a 100%); }
.unit-card[data-unit="coleccion"] { background: linear-gradient(135deg, #3a1934 0%, #5c2050 45%, #7c3060 80%, #9b4070 100%); }
.unit-card[data-unit="respaldo"]  { background: linear-gradient(135deg, #1a0a20 0%, #3a1934 45%, #5a2550 80%, #6b3060 100%); }
.unit-card[data-unit="sinergia"]  { background: linear-gradient(135deg, #3a1934 0%, #8b2a5a 50%, #cf7784 100%); }

/* subtle pattern overlay */
.unit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 12px
  );
  pointer-events: none;
}

.unit-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.4rem;
}

.unit-card-icon {
  font-size: 2rem;
  display: block;
  line-height: 1;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.unit-card:hover .unit-card-icon {
  transform: translateY(-0.5rem);
}

.unit-card-overlay h3 {
  font-family: var(--font-logo);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
  margin: 0;
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}

.unit-card:hover .unit-card-overlay h3 {
  transform: translateY(-0.5rem);
}

.unit-card-overlay p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.5;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.25,0.46,0.45,0.94), opacity 0.4s ease 0.08s;
}

.unit-card:hover .unit-card-overlay p {
  max-height: 120px;
  opacity: 1;
}

.unit-enter-link {
  display: none;
}
.unit-enter-link::after { content: '→'; }
.unit-card:hover .unit-enter-link { gap: 0.6rem; color: var(--white); }

/* hide old row wrappers */
.units-row-top, .units-row-bottom { display: contents; }

/* ── Standalone Partners Section ── */
.partners-section {
  padding: 3rem 0;
  background: var(--off-white);
  overflow: hidden;
}

.partners-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.partners-section-header .label { color: var(--rose); }

.partners-section {
  pointer-events: none;
  user-select: none;
}

.partners-marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.partners-marquee {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 32s linear infinite !important;
  animation-play-state: running !important;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.partners-marquee img {
  height: 48px;
  width: auto;
  margin: 0 2.5rem;
  object-fit: contain;
  opacity: 0.82;
  background: transparent;
  border-radius: 0;
}

.unit-enter-link:hover {
  color: var(--purple);
}

.unit-enter-link:hover::after {
  transform: translateX(4px);
}

/* ---------------------------------------------------------
   12. Sinergia Strip
   --------------------------------------------------------- */
.sinergia-strip {
  background: var(--purple);
  padding: 5.5rem 0;
  text-align: center;
}

.sinergia-strip h2 {
  font-family: var(--font-logo);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.sinergia-strip p {
  color: rgba(255,255,255,0.62);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------
   13. Contact Section
   --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.contact-info h2 em {
  color: var(--rose);
  font-style: italic;
}

.contact-info p {
  color: rgba(13,11,14,0.62);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 0.98rem;
}

.contact-details {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(13,11,14,0.68);
}

.contact-detail .icon {
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(13,11,14,0.48);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.9rem 1.1rem;
  border: 1.5px solid rgba(13,11,14,0.11);
  border-radius: 10px;
  background: var(--white);
  font-size: 0.95rem;
  color: var(--black);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(207,119,132,0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* ---------------------------------------------------------
   14. Footer
   --------------------------------------------------------- */
.site-footer {
  background: var(--purple);
  color: rgba(255,255,255,0.72);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 52px;
  filter: none;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

.footer-col h4 {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.62);
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: var(--blush);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.33);
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
}

/* Contact section layout */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ALLMA Lab logo — centered below contact grid */
.contact-brand-wrap {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(13,11,14,0.07);
}

.contact-brand-logo {
  height: clamp(80px, 14vw, 160px);
  width: auto;
  filter: none;
  display: inline-block;
}

.contact-brand-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: rgba(13,11,14,0.5);
  margin-top: 0.75rem;
}

/* Social buttons */
.contact-social {
  margin-top: 2rem;
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.22s var(--ease-out-expo), box-shadow 0.22s ease;
}
.social-btn:hover { transform: translateY(-2px); }
.social-btn svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

.social-btn-ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--white);
  box-shadow: 0 3px 14px rgba(220,39,67,0.28);
}
.social-btn-ig:hover { box-shadow: 0 6px 22px rgba(220,39,67,0.4); }

.social-btn-tt {
  background: #010101;
  color: var(--white);
  box-shadow: 0 3px 14px rgba(0,0,0,0.18);
}
.social-btn-tt:hover { box-shadow: 0 6px 22px rgba(0,0,0,0.28); }

/* Maps link */
.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  text-decoration: none;
  margin-left: 0.6rem;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.maps-btn:hover { color: var(--purple); }

/* ── Footer simplificado — solo copyright y tagline ── */
.footer-grid { display: none !important; }

.site-footer { padding: 2rem 0; }

.footer-bottom {
  border-top: none;
  padding-top: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.footer-tagline { display: block !important; }

/* ── Page-hero title lighter color for sub-pages ── */
.page-hero .hero-title {
  color: var(--blush);
}


/* ---------------------------------------------------------
   15. WhatsApp Float Button
   --------------------------------------------------------- */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 22px rgba(37,211,102,0.38);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.52);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

.wa-float::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.38);
  animation: waPulse 2.6s ease-out infinite;
}

@keyframes waPulse {
  0%   { transform: scale(0.88); opacity: 0.9; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(0.88); opacity: 0; }
}

/* ---------------------------------------------------------
   16. Modals
   --------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(13,11,14,0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.24);
}

.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--blush); border-radius: 2px; }

.modal-top-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.25rem 0;
  background: var(--white);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13,11,14,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--black);
  transition: background 0.2s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.modal-close-btn:hover {
  background: rgba(13,11,14,0.14);
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.5rem 1.25rem 1.25rem;
}

.modal-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}

.modal-gallery img:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.modal-body {
  padding: 1.25rem 1.75rem 2rem;
}

.modal-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.4rem;
}

.modal-title {
  font-family: var(--font-logo);
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 1.25rem;
}

.modal-ficha {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--off-white);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.ficha-item label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(13,11,14,0.38);
  display: block;
  margin-bottom: 0.25rem;
}

.ficha-item span {
  font-size: 0.9rem;
  color: var(--purple);
  font-weight: 600;
}

.modal-body p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(13,11,14,0.68);
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------
   17. Store — Tabs & Grid
   --------------------------------------------------------- */
.store-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0;
  border-bottom: 1.5px solid rgba(13,11,14,0.1);
  padding-bottom: 0;
}

.tab-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(13,11,14,0.42);
  padding: 0.75rem 1.25rem;
  border-radius: 8px 8px 0 0;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  bottom: -1.5px;
  border: 1.5px solid transparent;
  border-bottom-color: transparent;
  cursor: pointer;
  background: none;
}

.tab-btn.active {
  color: var(--purple);
  background: var(--off-white);
  border-color: rgba(13,11,14,0.1);
  border-bottom-color: var(--off-white);
}

.tab-panel {
  display: none;
  padding-top: 2.5rem;
}

.tab-panel.active {
  display: block;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.product-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(58,25,52,0.1);
}

.product-img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
  background-size: cover;
  background-position: center;
}

.product-body {
  padding: 1.1rem 1.25rem 1.4rem;
}

.product-name {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.product-type {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.75rem;
}

.product-consult {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s ease, gap 0.2s ease;
  text-decoration: none;
}

.product-consult:hover {
  color: var(--purple);
  gap: 0.5rem;
}

/* ---------------------------------------------------------
   18. Unit Page — Content Layout
   --------------------------------------------------------- */
.unit-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 4rem;
}

.unit-content-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--purple);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.unit-content-text h2 em {
  color: var(--rose);
  font-style: italic;
}

.unit-content-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(13,11,14,0.67);
  margin-bottom: 1.1rem;
}

.unit-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.unit-img-grid img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-card);
  transition: transform 0.5s var(--ease-out-expo);
}

.unit-img-grid img:hover {
  transform: scale(1.03);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border: 1px solid rgba(13,11,14,0.05);
}

.service-icon {
  width: 36px;
  height: 36px;
  background: var(--blush);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.service-item span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple);
}

/* ---------------------------------------------------------
   19. Ecosystem Mini-Cards
   --------------------------------------------------------- */
.ecosystem-section {
  background: var(--off-white);
  padding: 5rem 0;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 200px));
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.eco-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, background 0.2s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.eco-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(58,25,52,0.1);
  background: var(--blush);
}

.eco-card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
  display: block;
}

.eco-card-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
}

.eco-card.active-eco {
  background: var(--purple);
  pointer-events: none;
  box-shadow: none;
}

.eco-card.active-eco .eco-card-name {
  color: var(--white);
}

.eco-card.active-eco .eco-card-icon {
  filter: brightness(0) invert(1);
}

/* ---------------------------------------------------------
   20. Sinergia Page Extras
   --------------------------------------------------------- */
.quote-section {
  background: var(--blush);
  padding: 5rem 0;
  text-align: center;
}

.quote-section blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--purple);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
  position: relative;
  padding: 0 1.5rem;
}

.quote-section blockquote::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--rose);
  opacity: 0.28;
  position: absolute;
  top: -1.75rem;
  left: 0;
  line-height: 1;
}

.sinergia-service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.sinergia-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
}

.sinergia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(58,25,52,0.11);
}

.sinergia-card-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.sinergia-card h3 {
  font-family: var(--font-logo);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.75rem;
}

.sinergia-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(13,11,14,0.6);
}

.community-photo {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16/7;
  margin-bottom: 0.5rem;
}

.community-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Brand partners grid — respaldo.html */
.brand-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
}

.brand-partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  text-decoration: none;
  opacity: 0.68;
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out-expo);
}

a.brand-partner-item:hover {
  opacity: 1;
  transform: scale(1.1);
}

.brand-partner-item img {
  max-width: 110px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-partner-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* CTA centered block */
.cta-block {
  text-align: center;
  padding: 5rem 0;
}

.cta-block h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--purple);
  margin-bottom: 1rem;
  font-weight: 600;
}

.cta-block h2 em {
  color: var(--rose);
  font-style: italic;
}

.cta-block p {
  color: rgba(13,11,14,0.6);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* ---------------------------------------------------------
   21. prefers-reduced-motion
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-media-img { opacity: 1; }
  .partners-track { animation: none; }
  .js-ready .reveal { opacity: 1; transform: none; }
  .hero-scroll-line { animation: none; }
  .wa-float::before { animation: none; }
}

/* ---------------------------------------------------------
   22. Responsive
   --------------------------------------------------------- */

/* Large tablet — ≤ 1024px */
@media (max-width: 1024px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .manifesto-image {
    aspect-ratio: 16/9;
    order: -1;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .store-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .unit-content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .ecosystem-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktop — ≥ 769px: carousel wider card, arrows visible */
@media (min-width: 769px) {
  .projects-carousel-track .project-card.active {
    aspect-ratio: 16/7;
  }
}

/* Mobile — ≤ 768px */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .site-header { padding-inline: 1.25rem; }

  .main-nav,
  .nav-right { display: none; }

  .hamburger { display: flex; }

  .mobile-nav-overlay { display: flex; }

  .section { padding: 5rem 0; }

  .hero-title { font-size: clamp(3.5rem, 18vw, 6rem); }

  .projects-grid { grid-template-columns: 1fr; }
  .projects-grid-2col { grid-template-columns: 1fr; }

  .units-grid { flex-direction: column; max-width: 420px; }
  .unit-card  { min-height: 200px; flex: none; }
  .units-grid:has(.unit-card:hover) .unit-card,
  .units-grid:has(.unit-card:hover) .unit-card:hover { flex: none; }
  /* Always show description text on mobile — no clip */
  .unit-card-overlay p { max-height: none; opacity: 1; }
  .unit-card:hover .unit-card-overlay h3 { transform: none; }
  .unit-card:hover .unit-card-icon { transform: none; }

  .hero-logo-mobile { display: none; }

  .units-row-top { grid-template-columns: 1fr; }
  .units-row-bottom { grid-template-columns: 1fr; max-width: 100%; }

  .sinergia-service-cards { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom { flex-direction: column; text-align: center; }

  .store-grid { grid-template-columns: 1fr 1fr; }

  .ecosystem-grid {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .ecosystem-grid::-webkit-scrollbar { display: none; }
  .eco-card { flex-shrink: 0; min-width: 110px; }

  .modal-gallery { grid-template-columns: 1fr; }
  .modal-gallery img:first-child { grid-column: span 1; aspect-ratio: 4/3; }
  .modal-ficha { grid-template-columns: 1fr 1fr; }

  .services-list { grid-template-columns: 1fr; }

  .brand-partners-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem 1.5rem; }

  .unit-img-grid { grid-template-columns: 1fr 1fr; }

  .hero-scroll { bottom: 5.5rem; }

  .hero-partners { padding: 0.7rem 0; }
}

/* Small mobile — ≤ 480px */
@media (max-width: 480px) {
  .section { padding: 4rem 0; }

  .store-grid { grid-template-columns: 1fr 1fr; }

  .brand-partners-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; }

  .modal-ficha { grid-template-columns: 1fr; }

  .sinergia-service-cards { gap: 1rem; }

  .contact-form,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-grid {
    padding-inline: 0;
  }
}
