/* ============================================
   Mom Maker — Premium Components Stylesheet
   ============================================ */

/* ── NAVBAR (Glassmorphic & Transparent Blend) ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-navbar);
  padding: var(--space-lg) 0;
  transition: all var(--dur-normal) var(--ease-out);
}

/* WordPress Admin Bar Compatibility */
.admin-bar .navbar {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .navbar {
    top: 46px;
  }
}

@media screen and (max-width: 600px) {
  #wpadminbar {
    position: fixed !important;
  }
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  line-height: 1;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: 0.02em;
  transition: color var(--dur-fast);
}

.logo-sub {
  font-family: var(--font-subheading);
  font-size: 0.65rem;
  font-weight: var(--fw-semibold);
  color: var(--accent-dark);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links, .nav-links ul {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link, .nav-links li a {
  position: relative;
  font-family: var(--font-subheading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: rgba(51, 37, 26, 0.72);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  padding: var(--space-xs) 0;
}

.nav-link::after, .nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; width: 0; height: 1.5px;
  background-color: var(--accent);
  transition: width var(--dur-normal) var(--ease-out);
}

.nav-link:hover, .nav-link.active, .nav-links li.current-menu-item a {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after, .nav-links li.current-menu-item a::after {
  width: 100%;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.cart-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  transition: all var(--dur-fast);
}

.cart-icon-btn:hover {
  background-color: var(--p-100);
}

.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background-color: var(--accent-terracotta);
  color: #ffffff;
  font-size: 9px;
  font-weight: var(--fw-bold);
  width: 16px; height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hamburger mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px; height: 28px;
  cursor: pointer;
  z-index: calc(var(--z-navbar) + 10);
}

.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background-color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--dur-normal) var(--ease-out);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: calc(var(--z-navbar) - 1);
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease-out);
}

.mobile-overlay.active { display: block; opacity: 1; }

@media (max-width: 991px) {
  .navbar {
    padding: var(--space-sm) 0 !important;
  }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    width: 100%;
    height: auto;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 var(--space-xl);
    transition: max-height var(--dur-normal) var(--ease-out), opacity var(--dur-normal) var(--ease-out), padding var(--dur-normal) var(--ease-out);
    z-index: var(--z-navbar);
    box-shadow: var(--shadow-lg);
    transform: none;
  }
  .nav-links ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding: 0;
    margin: 0;
  }
  .nav-links li {
    width: 100%;
    list-style: none;
  }
  .nav-links li a, .nav-link {
    display: block;
    width: 100%;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
  }
  .nav-links li:last-child a, .nav-link:last-child {
    border-bottom: none;
  }

  .nav-links.active {
    max-height: 400px;
    opacity: 1;
    padding: var(--space-md) var(--space-xl);
  }
  .hamburger { display: flex; }

  /* Fix white text on white mobile menu */
  .navbar.transparent-light .nav-link,
  .navbar.transparent-light .nav-links li a {
    color: var(--text-primary) !important;
  }
  .hamburger.active span { background-color: var(--text-primary) !important; }
}

/* ── HERO RESPONSIVE GRID ── */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
    padding-top: var(--space-2xl);
  }
  .hero-grid .hero-content {
    order: 1;
  }
  .hero-grid .hero-visual-mom {
    order: 2;
    margin: 0 auto;
  }
  .hero-actions {
    justify-content: center;
  }
}

.navbar.scrolled {
  background-color: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
  box-shadow: var(--shadow-sm);
}

/* Light text on transparent-light (e.g. Hero overlay) */
.navbar.transparent-light .logo-main,
.navbar.transparent-light .nav-link,
.navbar.transparent-light .nav-links li a,
.navbar.transparent-light .cart-icon-btn,
.navbar.transparent-light .hamburger span {
  color: #ffffff;
}

.navbar.transparent-light .hamburger span {
  background-color: #ffffff;
}

.navbar.scrolled.transparent-light .logo-main { color: var(--text-primary); }
.navbar.scrolled.transparent-light .nav-link,
.navbar.scrolled.transparent-light .nav-links li a { color: rgba(51, 37, 26, 0.72); }
.navbar.scrolled.transparent-light .cart-icon-btn { color: var(--text-primary); }
.navbar.scrolled.transparent-light .hamburger span { background-color: var(--text-primary); }

/* ── BUTTONS (WordPress & WooCommerce Ready) ── */
.btn, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.9rem 2.2rem;
  font-family: var(--font-subheading) !important;
  font-size: var(--fs-small) !important;
  font-weight: var(--fw-bold) !important;
  letter-spacing: var(--ls-wide) !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out) !important;
}

.btn-primary, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt {
  background-color: var(--accent) !important;
  color: #ffffff !important;
  border: 1px solid var(--accent) !important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce input.button.alt:hover {
  background-color: var(--accent-dark) !important;
  border-color: var(--accent-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #ffffff !important;
}

.btn-secondary, .woocommerce a.button:not(.alt), .woocommerce button.button:not(.alt) {
  background-color: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
}

.btn-secondary:hover, .woocommerce a.button:not(.alt):hover, .woocommerce button.button:not(.alt):hover {
  background-color: var(--accent) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background-color: var(--p-100);
  color: var(--text-primary);
}

.btn-sm { 
  padding: 0.55rem 1.4rem; 
  font-size: var(--fs-caption); 
}

/* ── EDITORIAL PREMIUM CARDS ── */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-normal) var(--ease-out);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.card-icon .material-symbols-outlined {
  font-size: 26px;
}

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.stat-item {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-normal) var(--ease-out);
}

.stat-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-subheading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-extrabold);
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-number.terracotta { color: var(--accent-terracotta); }

.stat-label {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
}

@media (max-width: 767px) {
  .stats-bar { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* ── TOAST FLOATING NOTIFICATIONS ── */
.toast {
  position: fixed;
  bottom: var(--space-xl); right: var(--space-xl);
  padding: var(--space-md) var(--space-xl);
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: var(--fs-small);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  transform: translateY(120%);
  transition: transform var(--dur-normal) var(--ease-spring);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.toast.show { transform: translateY(0); }
.toast.success { border-color: var(--accent-success); }
.toast.success .material-symbols-outlined { color: var(--accent-success); }

/* ── FOOTER (Sleek Editorial Layout) ── */
.footer {
  background: var(--gradient-footer);
  color: var(--p-100);
  padding: var(--space-4xl) 0 var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: var(--p-300);
  --text-tertiary: var(--p-500);
}

.footer .logo-sub {
  color: var(--accent-light) !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  font-size: var(--fs-small);
  color: var(--p-300);
  line-height: var(--lh-relaxed);
  margin-top: var(--space-md);
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-subheading);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: var(--fs-small);
  color: var(--p-400);
  display: inline-block;
  transition: all var(--dur-fast) var(--ease-out);
}

.footer-link:hover {
  color: var(--accent-light);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--p-400);
  margin-bottom: var(--space-sm);
}

.footer-contact-item .material-symbols-outlined {
  color: var(--accent-light);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: var(--fs-caption);
  color: var(--p-500);
}

@media (max-width: 991px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
}

@media (max-width: 575px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-bottom { flex-direction: column; gap: var(--space-md); text-align: center; }
}

/* ── CONTACT LAYOUT RESPONSIVE ── */
.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-top: var(--space-2xl);
}

@media (max-width: 991px) {
  .contacto-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

/* ── FOUNDATION PAGES ADDITIONAL COMPONENTS ── */

/* FAQ Accordion Styles */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--dur-fast) var(--ease-out);
}

.faq-item:hover, .faq-item.active {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.faq-trigger {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-subheading);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.faq-trigger span.material-symbols-outlined {
  transition: transform var(--dur-normal) var(--ease-out);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--space-lg);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  line-height: var(--lh-body);
  transition: all var(--dur-normal) var(--ease-out);
}

.faq-item.active .faq-content {
  max-height: 300px;
  padding: var(--space-xs) var(--space-lg) var(--space-lg);
}

.faq-item.active .faq-trigger span.material-symbols-outlined {
  transform: rotate(180deg);
}

/* Steps Timeline (Donativo Page) */
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.step-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-normal) var(--ease-out);
  position: relative;
}

.step-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.step-number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-lg);
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: var(--fw-bold);
  color: rgba(51, 37, 26, 0.05);
  line-height: 1;
}

/* Gallery of Hope */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-2xl) 0;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  transition: all var(--dur-normal) var(--ease-out);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* Taller Page Layout */
.taller-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.taller-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.taller-map {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.taller-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 991px) {
  .taller-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .taller-map {
    height: 350px;
  }
}

.mm-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  background-color: var(--p-100);
  border-radius: var(--radius-full);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mm-badge .dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-terracotta);
  border-radius: 50%;
}

/* ── CLIENT EXPERIENCE IMPROVEMENTS STYLES ── */

/* 1. Checkout Visual Cards Selector */
.donation-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-sm);
}

.donation-option-card {
  background-color: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  position: relative;
  transition: all var(--dur-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.donation-option-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--p-300);
}

.donation-option-card.active {
  border-color: var(--accent);
  background-color: var(--a-50);
  box-shadow: var(--shadow-glow);
}

.donation-option-card .card-check-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 20px;
  color: var(--accent);
  opacity: 0;
  transform: scale(0.6);
  transition: all var(--dur-fast) var(--ease-spring);
}

.donation-option-card.active .card-check-icon {
  opacity: 1;
  transform: scale(1);
}

/* 2. Interactive Size Assistant Modal */
.mm-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--bg-overlay);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-normal) var(--ease-out);
}

.mm-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mm-modal-content {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
  width: 90%;
  max-width: 460px;
  padding: var(--space-xl);
  position: relative;
  transform: scale(0.9);
  transition: transform var(--dur-normal) var(--ease-spring);
  text-align: center;
}

.mm-modal-overlay.active .mm-modal-content {
  transform: scale(1);
}

.mm-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--p-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  transition: all var(--dur-fast);
}

.mm-modal-close:hover {
  background-color: var(--accent-bg);
  color: var(--accent-dark);
}

.size-calculator-box {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background-color: var(--p-50);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: var(--space-md);
}

.size-result-box {
  display: none;
  padding: var(--space-md);
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background-color: var(--accent-bg);
  margin-top: var(--space-md);
  animation: fadeIn var(--dur-normal) var(--ease-out) forwards;
}

.mm-size-guide-link {
  transition: color var(--dur-fast);
}

.mm-size-guide-link:hover {
  color: var(--accent) !important;
}

/* ── Purpose Block (Impact Tracker Layout & Mobile Optimization) ── */
.purpose-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 991px) {
  .purpose-block {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 767px) {
  /* Give content more room by reducing container padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Reduce excessive padding inside the tracking details card on mobile */
  #tracker-results-box .card {
    padding: var(--space-md) !important;
  }
}

@media (max-width: 575px) {
  /* Prevent horizontal squeeze in search form by stacking input and button */
  #tracker-details-form {
    flex-direction: column;
    align-items: stretch;
  }
  #tracker-code-input {
    max-width: 100% !important;
    width: 100%;
  }
  #tracker-details-form .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Nosotros/Quiénes Somos Responsive Grid & Mobile Stacking ── */
.nosotros-layout {
  display: grid;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-4xl);
}
.nosotros-layout--left-text {
  grid-template-columns: 1.2fr 0.8fr;
}
.nosotros-layout--right-text {
  grid-template-columns: 0.8fr 1.2fr;
}
.nosotros-layout--equal-left-text,
.nosotros-layout--equal-right-text {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 991px) {
  .nosotros-layout--left-text,
  .nosotros-layout--right-text,
  .nosotros-layout--equal-left-text,
  .nosotros-layout--equal-right-text {
    grid-template-columns: 1fr !important;
    gap: var(--space-xl) !important;
    margin-bottom: var(--space-2xl) !important;
  }
  
  /* Stacks paragraph/text above image on mobile */
  .nosotros-layout .layout-text {
    order: 1 !important;
  }
  .nosotros-layout .layout-image {
    order: 2 !important;
  }
}

/* ── LANGUAGE SWITCH TOGGLE ── */
.lang-switch-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.lang-label {
  font-family: var(--font-subheading);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  color: rgba(51, 37, 26, 0.45);
  transition: color var(--dur-fast) var(--ease-out);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  user-select: none;
}

.lang-label.active {
  color: var(--text-primary);
}

/* Scrolled/Transparent navbar support */
.navbar.transparent-light .lang-label {
  color: rgba(255, 255, 255, 0.55);
}

.navbar.transparent-light .lang-label.active {
  color: #ffffff;
}

.navbar.scrolled.transparent-light .lang-label {
  color: rgba(51, 37, 26, 0.45);
}

.navbar.scrolled.transparent-light .lang-label.active {
  color: var(--text-primary);
}

.lang-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}

.lang-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lang-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--p-100);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  transition: all var(--dur-fast) var(--ease-out);
}

.navbar.transparent-light .lang-slider {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.navbar.scrolled.transparent-light .lang-slider {
  background-color: var(--p-100);
  border-color: var(--border);
}

.lang-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  transition: transform var(--dur-fast) var(--ease-out);
}

.navbar.transparent-light .lang-slider::before {
  background-color: rgba(255, 255, 255, 0.7);
}

.navbar.scrolled.transparent-light .lang-slider::before {
  background-color: var(--text-secondary);
}

.lang-switch input:checked + .lang-slider::before {
  transform: translateX(16px);
  background-color: #ffffff;
}

.navbar.transparent-light .lang-switch input:checked + .lang-slider::before {
  background-color: #ffffff;
}

.lang-switch input:checked + .lang-slider {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Custom Hero Title Premium Styling */
.hero-title-mom {
  font-family: var(--font-heading) !important;
  font-size: var(--fs-display) !important;
  font-weight: var(--fw-bold) !important;
  line-height: 1.15 !important;
  margin-bottom: var(--space-xl) !important;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
  letter-spacing: -0.01em !important;
  text-align: center !important;
}

.hero-title-mom span {
  display: block !important;
  font-family: var(--font-heading) !important;
  font-style: italic !important;
  font-weight: var(--fw-regular) !important;
  color: var(--p-300) !important; /* warm gold / arena suave */
  margin-top: var(--space-xs) !important;
  font-size: 0.9em !important;
}



