@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2238FF;
  --bg-white: #ffffff;
  --bg-soft: #f8f9fa;
  --text-dark: #121212;
  --text-gray: #4a4a4a;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --section-padding: 100px 5%;
}

.bg-blue-gradient {
  background: linear-gradient(135deg, #2238FF 0%, #5F76FF 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background-color: #0a0e2e !important; /* Dark Navy to hide gaps */
  color: var(--text-dark);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow: hidden; /* Lock global scroll for SPA */
}

#main-content {
  background-color: transparent !important;
  width: 100%;
  height: 100vh;
  position: relative;
}

/* --- Hide Scrollbars (Full Immersion) --- */
::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none; /* IE/Edge */
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

/* --- Utilities --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1a2eca 100%);
  color: white;
  box-shadow: 0 10px 20px rgba(34, 56, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(34, 56, 255, 0.25);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-white:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--primary); /* Solid Brand Color at the top */
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

nav.nav-scrolled {
  background: rgba(34, 56, 255, 0.45); /* Elegant Glassmorphism when scrolling */
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  padding: 12px 5%; /* Shrink for focus */
}

#nav-buy-btn {
  padding: 12px 28px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 15px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 10px;
}

.lang-btn {
  background: none;
  border: none;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
  padding: 2px 4px;
}

.lang-btn.active {
  opacity: 1;
  text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.lang-btn:hover:not(.active) {
  opacity: 0.8;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  font-weight: 300;
}

.logo img {
  height: 38px;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  opacity: 0.85;
}

.nav-links a:hover {
  color: white;
  opacity: 1;
  text-shadow: 0 0 15px rgba(255,255,255,0.4);
}

/* --- Sections --- */
section {
  padding: var(--section-padding);
}

.section-blue {
  background-color: var(--primary);
  color: white;
}

/* --- SPA View System --- */
#main-content {
  position: relative;
  width: 100%;
  height: 100vh;
}

.view-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
              filter 1s ease;
  transform: scale(1.05) translateY(30px);
  filter: blur(20px);
  overflow-y: auto;
  overflow-x: hidden;
  background-color: var(--bg); /* Use the CSS variable instead of hardcoded white */
}

.view-section.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* Ensure Home video doesn't have white background */
#inicio.view-section {
  background: black;
}

.hero-video {
  position: fixed; /* Keep video background static within the view */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  transform: scale(1.05);
}

.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(34, 56, 255, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 0;
}

.header-main-content {
  position: relative;
  z-index: 5;
  padding-top: 60vh; /* Push intro text down to reveal video first */
  padding-bottom: 100px;
}

/* Specific adjustments for internal sections */
.view-section section {
  padding: 120px 5%;
}

/* Adjust scroll indicator for new system */
.scroll-indicator {
  position: absolute;
  top: 10vh; /* Floating at the top of the content area */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: white;
  z-index: 10;
  opacity: 0.8;
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: var(--transition);
}

.scroll-indicator p {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 10px;
}

.mouse {
  width: 20px;
  height: 35px;
  border: 2px solid white;
  border-radius: 20px;
  margin: 0 auto;
  position: relative;
}

.mouse::before {
  content: '';
  width: 4px;
  height: 4px;
  background: white;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) scale(1.1);
}

.intro-content h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.intro-content p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.5;
}



/* --- Product Scrubbing System --- */
.product-scrub-container {
  display: block; /* bg-layer and product-columns stack vertically */
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #2238FF 0%, #1a2fd0 40%, #264fdd 70%, #1530c8 100%) !important;
  /* NO overflow:hidden — breaks sticky children */
}

/* Full-width sticky background: covers 100% width behind BOTH columns */
.product-bg-layer {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  margin-bottom: -100vh; /* Zero layout space — columns render on top */
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Columns flex wrapper — sits above the bg layer */
.product-columns {
  display: flex;
  width: 100%;
  min-height: 380vh;  /* Drives total scroll height for scrubbing */
  padding-top: 120px;
  position: relative;
  z-index: 1;
}

.video-sticky-side, .content-scroll-side {
  background: transparent !important;
}

.video-sticky-side {
  position: sticky;
  top: 120px;
  width: 45%;
  height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start; /* Required for sticky inside flex container */
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Brand logo — sticky behind the CARDS column (right 55%) */
.product-brand-logo {
  position: absolute;
  top: 50%;
  left: 73%;              /* Center of cards column: 45% + 55%/2 = 72.5% */
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: none;
  opacity: 0.8;
  pointer-events: none;
  z-index: 2;
  display: block;
  filter: brightness(0) invert(1);
  mix-blend-mode: screen;
}

#scrub-canvas {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
  display: block;
  position: relative;
  /* PNG alpha is preserved — background shows through */
}

/* ============================================
   PRODUCT SECTION — DARK OCEAN ATMOSPHERE
   ============================================ */

/* Main dark background for the whole view */
#view-producto {
  background: #020c1b !important;
}

/* Scroll-reactive radial glow orb — now full-width (covers both columns) */
.product-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 1100px;  /* Wide enough to span the full section */
  height: 750px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 130, 255, 0.50) 0%,
    rgba(34, 56, 255, 0.20) 35%,
    rgba(10, 40, 120, 0.08) 65%,
    transparent 80%
  );
  filter: blur(70px);
  pointer-events: none;
  z-index: 1;
  animation: glow-breathe 5s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes glow-breathe {
  0%   { opacity: 0.6; transform: translate(-50%, -50%) scale(0.85); }
  100% { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* Floating bubbles container — full width within bg-layer */
.bubbles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* Individual bubble particle */
.bubble {
  position: absolute;
  border-radius: 50%;
  animation: bubble-rise linear infinite;
  will-change: transform, opacity;
}

/* Fixed: -100vh sends bubbles the full viewport height upward */
@keyframes bubble-rise {
  0%   { transform: translateY(0);       opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 0.55; }
  100% { transform: translateY(-100vh);  opacity: 0; }
}

/* --- PNG Sequence Loader --- */
.seq-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background: transparent;
}

.seq-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.seq-loader-bar-track {
  width: 160px;
  height: 4px;
  background: rgba(34, 56, 255, 0.15);
  border-radius: 100px;
  overflow: hidden;
}

.seq-loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2238FF, #5F76FF);
  border-radius: 100px;
  transition: width 0.2s ease;
}

.seq-loader-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(150, 200, 255, 0.9);
  letter-spacing: 0.05em;
  margin: 0;
}

/* Fix loader bar track on dark bg */
.seq-loader-bar-track {
  width: 160px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
}

.content-scroll-side {
  width: 55%;
  padding: 0 4%;
  position: relative;
  z-index: 10;
}

.info-module {
  min-height: 32vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 35px 45px;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* Premium glass — highly translucent */
  background: rgba(38, 79, 221, 0.10);
  backdrop-filter: blur(36px) saturate(200%);
  -webkit-backdrop-filter: blur(36px) saturate(200%);
  border-radius: 20px;
  border: 1px solid rgba(150, 180, 255, 0.22);
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),  /* Strong top highlight edge */
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 0 60px rgba(38, 79, 221, 0.08);
  margin: 25px 0;
  margin-left: -4%;
  color: white;
  overflow: hidden;
  position: relative;
}

.info-module h2, .info-module h3 {
    font-size: 1.9rem; /* Restored for high-impact single line */
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Responsive Video Embed (Vimeo) --- */
.video-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    margin: 15px 0;
}

.video-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Brand Infinite Tickers (Values) --- */
.brand-ticker-section {
  padding: 60px 0;
  background: transparent; /* Let the ocean background show through */
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 5;
}

.brand-ticker-section.active {
    opacity: 1;
    transform: translateY(0);
}

.ticker-row {
  width: 100%;
  display: flex;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  gap: 4px;
  padding: 4px 0;
}

/* Image carousel track overrides */
.img-track {
  gap: 10px;
  padding: 6px 0;
  align-items: center;
  width: max-content;   /* Prevents line-wrapping = seamless infinite loop */
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Individual carousel photo */
.carousel-img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.carousel-img:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 30px rgba(34, 79, 221, 0.4);
}

/* Slightly taller rows for image carousel */
.img-carousel-section {
  gap: 10px;
  padding: 40px 0;
}


/* Card Styling: Uniform Minimalist Aesthetic */
.val-card {
  width: 190px; /* Fixed Uniform Size */
  padding: 14px 0;
  text-align: center;
  background: linear-gradient(135deg, #2238FF 0%, #5F76FF 100%);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 12px;
  box-shadow: none; /* Shadow removed as requested */
  flex-shrink: 0;
  cursor: default;
  transition: transform 0.3s ease;
}

.val-card:hover {
  transform: scale(1.05);
}

/* Animations (Non-stop flow) */
.row-to-right .ticker-track {
  animation: scroll-right 45s linear infinite;
}

.row-to-left .ticker-track {
  animation: scroll-left 45s linear infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } 
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

/* --- Document Resources Styles --- */
.resource-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.doc-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.doc-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.doc-icon {
    font-size: 1.8rem;
    opacity: 0.9;
}

.doc-name h4 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.doc-name p {
    font-size: 0.8rem;
    opacity: 0.6;
}

.doc-actions {
    display: flex;
    gap: 10px;
}

.doc-btn {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.doc-btn.view {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.doc-btn.view:hover {
    background: white;
    color: var(--primary);
}

.doc-btn.download {
    background: white;
    color: var(--primary);
}

.doc-btn.download:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.info-module::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, #5F76FF 0%, transparent 40%);
  z-index: -1;
  animation: orbital-rotate 8s linear infinite;
  opacity: 0.8;
}

@keyframes orbital-rotate {
  0% { transform: rotate(0deg) translate(10%, 10%); }
  50% { transform: rotate(180deg) translate(-10%, -10%); }
  100% { transform: rotate(360deg) translate(10%, 10%); }
}

.info-module.active {
  opacity: 1;
  transform: translateY(0);
}

.module-tag {
  color: #c9d2ff; /* Lighter white-blue for tag */
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin-bottom: 25px;
  display: block;
}

.info-module h2, .info-module h3 {
  color: white;
  text-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.info-module p {
  color: rgba(255, 255, 255, 0.8);
}

.info-module h2 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 25px;
}

.info-module h3 {
  font-size: 2.2rem;
  margin-bottom: 25px;
}

/* --- Modular Card Internals --- */
.main-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.14); /* Semi-translucent Glass */
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
}

.fact-item .dot {
    width: 8px;
    height: 8px;
    background: #ffffff; /* Solid White Dot */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Formula Pills */
.formula-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.spec-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
}

.spec-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.spec-pill span {
    font-size: 0.7rem;
    font-weight: 800;
    background: white;
    color: var(--primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.spec-pill p {
    font-size: 0.85rem;
    margin: 0;
    color: white;
}

/* Quality Highlights */
.quality-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.q-item {
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
}

.q-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.q-item p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Minimalist Benefits Grid */
.minimal-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.b-mini {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 20px;
    transition: var(--transition);
}

.b-mini:hover {
    background: rgba(255, 255, 255, 0.12);
}

.b-mini span {
    font-size: 1.5rem;
}

.b-mini p {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Restoring wide internal layouts */
.formula-specs, .minimal-benefits-grid, .quality-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.final-composition {
    display: flex;
    gap: 30px;
    align-items: center;
}

.composition-mockup {
    flex: 0.8;
}

/* Responsive Reset */
@media (max-width: 1200px) {
    .content-scroll-side {
        padding: 0 3%;
    }
    .info-module {
        min-height: 50vh;
        padding: 30px;
    }
    .formula-specs, .minimal-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.floating-mockup {
    width: 100%;
    filter: drop-shadow(0 30px 50px rgba(0,0,0,0.2));
    animation: float-mockup 4s ease-in-out infinite;
}

@keyframes float-mockup {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.module-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.module-header .module-icon {
    margin-bottom: 0;
}

.benefits-list .icon {
  font-size: 1.5rem;
  background: white;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.final-product-display {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--bg-soft);
  padding: 40px;
  border-radius: 30px;
}

.mini-mockup {
  height: 200px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
}

/* --- About Us --- */
.about-split {
  display: flex;
  gap: 80px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-visual {
  flex: 1;
  background: var(--bg-soft);
  border-radius: 40px;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Store CTA --- */
.store-section {
  text-align: center;
  border-radius: 60px;
  margin: 50px 5%;
  padding: 100px 5%;
}

.store-section h2 {
  font-size: 3.5rem;
  margin-bottom: 30px;
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 968px) {
  .intro-content h1 { font-size: 3rem; }
  .intro-content p { font-size: 1.1rem; }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .about-split { flex-direction: column-reverse; }
  .nav-links { display: none; }
}

/* --- Premium Footer --- */
.main-footer {
  background-color: #2238FF;
  padding: 60px 20px;
  color: white;
  text-align: center;
  margin-top: 0; /* FIXED: Removed gap that showed black background */
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.footer-logo {
  height: 40px;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.social-link img {
  width: 20px;
  height: 20px;
}

.footer-copy {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  opacity: 0.8;
  margin-top: 5px;
}

/* --- Immersive About Section --- */
.split-about-immersive {
  background: linear-gradient(135deg, #2238FF 0%, #5F76FF 100%);
  color: white;
  min-height: 100vh;
  padding-top: 100px;
}

.about-hero {
  padding: 80px 0;
}

.narrativo-about {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
}

.history-block {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 100px;
}

.history-block .tagline {
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.legacy-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 30px;
  line-height: 1.1;
  text-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.history-text {
  font-size: 1.25rem;
  line-height: 1.7;
  opacity: 0.9;
  font-weight: 300;
}

/* Interactive Cards Logic */
.interactive-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  transform: scale(1.1);
  transition: opacity 0.6s ease, transform 1.2s ease;
}

.card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The magic: when hovering the grid, non-hovered cards fade to their photo */
.interactive-grid:hover .interactive-card:not(:hover) {
  border-color: rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.3);
}

.interactive-grid:hover .interactive-card:not(:hover) .card-bg {
  opacity: 0.95;
  transform: scale(1);
}

.interactive-grid:hover .interactive-card:not(:hover) .card-content {
  opacity: 0;
  transform: translateY(15px);
  filter: blur(8px);
}

/* --- Focus Mode: Custom Images based on Hovered Card --- */

/* 1. When Hovering MISION -> Vision shows Mision 1, Valores shows Mision 2 */
.interactive-grid .card-mision:hover ~ .card-vision .card-bg { background-image: url('VALORES/MISION 1.jpg'); }
.interactive-grid .card-mision:hover ~ .card-valores .card-bg { background-image: url('VALORES/MISION 2.jpg'); }

/* 2. When Hovering VISION -> Mision shows Vision 1, Valores shows Vision 2 */
.interactive-grid:has(.card-vision:hover) .card-mision .card-bg { background-image: url('VALORES/VISION 1.jpg'); }
.interactive-grid .card-vision:hover ~ .card-valores .card-bg { background-image: url('VALORES/VISION 2.jpg'); }

/* 3. When Hovering VALORES -> Mision shows Valores 1, Vision shows Valores 2 */
.interactive-grid:has(.card-valores:hover) .card-mision .card-bg { background-image: url('VALORES/VALORES 1.jpg'); }
.interactive-grid:has(.card-valores:hover) .card-vision .card-bg { background-image: url('VALORES/VALORES 2.jpg'); }

/* The hovered card stays clean and emphasized */
.interactive-card:hover .card-content {
  transform: scale(1.05);
}

/* About Grid & Glass Cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  padding: 45px 35px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.card-icon img {
  width: 35px;
  height: 35px;
}

.glass-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.glass-card p {
  font-size: 1.05rem;
  line-height: 1.5;
  opacity: 0.85;
}

.values-list {
  list-style: none;
  padding: 0;
  text-align: center;
  width: 100%;
}

.values-list li {
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.values-list li:last-child {
  border-bottom: none;
}

/* Responsiveness for About Grid */
@media (max-width: 968px) {
  .legacy-title { font-size: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .history-block { margin-bottom: 60px; }
  .split-about-immersive { padding-top: 80px; }
}

/* --- Home Overhaul V2 (Feedback-Driven) --- */
.hero-video-container {
  height: 70vh !important; /* Reduced height based on feedback */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: transparent;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* --- Dynamic Health Ticker (Ribbon) --- */
.ticker-section {
  background: #2238FF;
  color: white;
  padding: 5px 0; /* Significantly thinner as requested */
  overflow: hidden;
  z-index: 5;
  position: relative;
  box-shadow: 0 5px 15px rgba(34, 56, 255, 0.1);
}

.ticker-wrap {
  display: flex;
  white-space: nowrap;
  overflow: hidden;
}

.ticker-item {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem; /* Minimalist size */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-right: 0;
  animation: tickerScroll 40s linear infinite;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.33%); } /* Matches 3x text repetitions */
}

.hero-header-content {
  display: none !important; /* Hidden to prioritize video pureness */
}

/* Intro Brand Section (White) */
.intro-new-clean {
  background: #ffffff;
  padding: 120px 5%;
  text-align: center;
}

.intro-new-clean h2 {
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
  color: #333; /* Grey as requested */
  margin: 0;
  text-shadow: none;
  letter-spacing: -0.02em;
}

.intro-new-clean .blue-text {
  color: #2238FF; /* Kezanix Blue */
}

.intro-new-clean p {
  font-size: 1.4rem;
  color: #666; /* Softer grey */
  max-width: 850px;
  margin: 40px auto 0;
  line-height: 1.6;
  font-weight: 300;
}

/* Alternating Color Utilities */
.bg-blue-gradient {
  background: linear-gradient(135deg, #2238FF 0%, #5F76FF 100%);
  color: white !important;
}

.bg-white {
  background: #ffffff !important;
  color: #333 !important;
}

.teaser-section {
  padding: 60px 0;
  overflow: hidden;
}

.product-teaser {
  padding: 20px 0 !important;
}

.teaser-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.teaser-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pouch-mockup {
  width: 80%;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.15));
  transition: transform 0.5s ease;
}

.pouch-mockup:hover {
  transform: scale(1.05) rotate(2deg);
}

.teaser-text .tag {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 20px;
  display: block;
}

.bg-white .tag { color: #2238FF; }
.bg-blue-gradient .tag { color: rgba(255, 255, 255, 0.7); }

.teaser-text h2 {
  font-size: 3.5rem;
  margin-bottom: 30px;
  line-height: 1.1;
  font-weight: 800;
  color: #333; /* Unified grey */
}

.bg-blue-gradient .teaser-text h2 { color: white; }

.teaser-text p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0.9;
}

.bg-white .teaser-text p { color: #555; }

/* Testimonials on Blue Gradient */
.testimonials-section.bg-blue-gradient {
  background: linear-gradient(135deg, #2238FF 0%, #5F76FF 100%);
}

.testimonials-section.bg-blue-gradient .testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 25px 25px; /* Smaller card */
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.testimonio-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.testimonio-avatar {
  width: 55px; /* Circular image very small */
  height: 55px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.testimonio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonio-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonio-meta .stars {
  margin-bottom: 0;
  gap: 3px;
}

.testimonio-meta .stars img {
  width: 14px;
}

.testimonials-section.bg-blue-gradient .testimonial-card p.quote {
  font-size: 0.95rem;
  line-height: 1.45;
  margin-bottom: 20px;
  flex-grow: 1; /* Pushes button to bottom */
}

.testimonials-section.bg-blue-gradient .testimonial-card .user-name {
  color: white !important;
  font-size: 0.9rem;
  font-weight: 700;
}

.btn-testimonio {
  display: block;
  text-align: center;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 0;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-testimonio:hover {
  background: white;
  color: #2238FF;
}

.section-header-center h2 {
  font-size: 3.5rem;
  font-weight: 800;
  color: inherit;
}

.bg-white .section-header-center h2 { color: #333; }

.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 30px;
}

.testimonial-card {
  min-width: calc(33.333% - 20px);
}

.stars {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.stars img {
  width: 18px;
  height: 18px;
}

/* Carousel Buttons for Blue Background */
.bg-blue-gradient .c-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.bg-blue-gradient .c-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

/* Visual Mockup Container */
.legacy-visual-v2 {
  background: #f8faff;
  border-radius: 50px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 30px 60px rgba(34, 56, 255, 0.05);
}

/* --- Orbit Animation (Visual Energy) --- */
.orbit-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 140%;
  height: 140%;
  z-index: 0;
  pointer-events: none;
  opacity: 0; /* LATENT: Hidden until hover */
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.interactive-mockup-wrapper:hover .orbit-container {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.ring-1 {
  width: 100%;
  padding-bottom: 100%;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: orbitRotate 15s linear infinite;
}

.ring-2 {
  width: 80%;
  padding-bottom: 80%;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: orbitRotate 25s linear infinite reverse;
}

.orbit-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 15px white, 0 0 30px #2238FF;
  opacity: 0.6;
}

.p1 { top: 0; left: 50%; transform: translateX(-50%); }
.p2 { bottom: 0; left: 50%; transform: translateX(-50%); }

@keyframes orbitRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* --- Interactive Product Mockup (Refined Scale) --- */
.interactive-mockup-wrapper {
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative; /* Anchor for orbit */
  min-height: 300px;
}

#interactive-pouch {
  width: 48%; /* Even smaller to avoid clipping HUD */
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.18));
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  animation: pouchFloat 6s ease-in-out infinite;
  z-index: 2;
  position: relative;
}

@keyframes pouchFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-20px) rotate(0.5deg); }
}

/* Ensure the teaser section allows for slight overflow and 3D depth */
.product-teaser, .teaser-image {
  overflow: visible !important;
}

/* --- HUD Benefit Indicators --- */
.hud-indicator {
  position: absolute;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.hud-box {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hud-icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
}

.hud-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.3;
}

.hud-line {
  height: 1px;
  background: white;
  width: 0;
  position: relative;
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.hud-line::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: white;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease 0.8s;
}

/* Alignment Specifics */
.hud-indicator.left-top, .hud-indicator.left-bottom {
  flex-direction: row; 
  left: 0%; /* Inward to avoid edge cut */
  transform: translateX(-40px);
}

.hud-indicator.right-top, .hud-indicator.right-bottom {
  flex-direction: row-reverse;
  right: 0%; /* Inward to avoid edge cut */
  transform: translateX(40px);
}

.hud-indicator.left-top { top: 10%; }
.hud-indicator.left-bottom { bottom: 10%; }
.hud-indicator.right-top { top: 10%; }
.hud-indicator.right-bottom { bottom: 10%; }

/* Line Endings */
.hud-indicator.left-top .hud-line::after, .hud-indicator.left-bottom .hud-line::after {
  right: -2px;
}

.hud-indicator.right-top .hud-line::after, .hud-indicator.right-bottom .hud-line::after {
  left: -2px;
}

/* Hover States */
.interactive-mockup-wrapper:hover .hud-indicator {
  opacity: 1;
  transform: translateX(0);
}

.interactive-mockup-wrapper:hover .hud-line {
  width: 40px; /* Shorter to keep it tight */
}

.interactive-mockup-wrapper:hover .hud-line::after {
  opacity: 1;
}

/* Responsive HUD */
/* --- Bienestar Section (Blog & Recipes) --- */
#view-bienestar {
  background: #0a0e2e !important;
  color: #ffffff;
}

.bienestar-hero {
  position: relative;
  width: 100%;
  display: block; /* The img tags inside will dictate height */
  overflow: visible;
  padding: 75px 0 0 0 !important; /* Top padding = nav height, so image starts below the fixed nav */
  margin: 0;
}

.header-bg-fusion {
  width: 100%;
  position: relative;
  display: block; /* block so the img stretches to its natural aspect ratio */
  line-height: 0; /* Remove inline-block gap under image */
}

.hero-bg-img {
  width: 100%;
  height: auto;       /* Let the image dictate its own height naturally */
  display: none;
  object-fit: contain; /* Never stretch — show the full image */
  vertical-align: top; /* Prevent descender gap */
}

/* Toggle visibility via the parent's classes */
#view-bienestar.focus-blogs .hero-bg-img.blogs-img {
  display: block;
}
#view-bienestar.focus-recipes .hero-bg-img.recipes-img {
  display: block;
}

/* Absolute container for text */
.container.hero-content-absolute {
  position: absolute;
  top: 75px; /* Offset by nav height so text overlays the image, not the padding gap */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: calc(100% - 75px); /* Match the actual image area */
  display: flex;
  align-items: center; /* Center text vertically within the image bounds */
  pointer-events: none; /* Let clicks pass through except on interactive children */
  z-index: 2;
}

.hero-dynamic-content {
  pointer-events: auto;
}

/* Overlay removed to respect image purity */

/* Blog Focus State (Background removals since it's an img now) */
#view-bienestar.focus-blogs .blogs-header {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  display: flex;
}
#view-bienestar.focus-blogs .recipes-header {
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  display: none;
}
#view-bienestar.focus-blogs .hero-dynamic-content {
  justify-content: flex-end;
  text-align: right;
  padding-right: 8%;
}

/* Recipe Focus State */
#view-bienestar.focus-recipes .recipes-header {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  display: flex;
}
#view-bienestar.focus-recipes .blogs-header {
  opacity: 0;
  transform: translateX(-30px);
  pointer-events: none;
  display: none;
}
#view-bienestar.focus-recipes .hero-dynamic-content {
  justify-content: flex-start;
  text-align: left;
  padding-left: 8%;
}

#view-bienestar.focus-recipes .hero-dynamic-content {
  justify-content: flex-start;
  text-align: left;
  padding-left: 8%;
}

.hero-dynamic-content {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 150px;
  display: flex;
  align-items: center;
}

.hero-text-block {
  position: absolute; /* Overlap blocks for cross-fade */
  display: flex;
  flex-direction: column;
  max-width: 400px;
}

.hero-text-block h2 {
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  margin-bottom: 2px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-text-block p {
  font-size: clamp(0.85rem, 1.5vw, 1.2rem);
  margin-top: 1px !important;
  opacity: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Floating Switcher - Centered on boundary */
.tab-switcher-wrapper.floating-switcher {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%); /* Center on the edge */
  z-index: 100;
  margin: 0 !important;
  display: flex;
  justify-content: center;
  pointer-events: auto; /* Override parent pointer-events: none so buttons are clickable */
}

.tab-switcher {
  background: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.1);
  opacity: 1 !important;
  backdrop-filter: none !important;
}

.focus-blogs .blogs-header { align-items: flex-end; }
.focus-recipes .recipes-header { align-items: flex-start; }

.bienestar-content-area {
  padding: 60px 0 100px;
  position: relative;
}

.tab-switcher-wrapper {
  display: flex;
  margin-top: 40px;
}

.tab-switcher {
  background: rgba(34, 56, 255, 0.05);
  padding: 6px;
  border-radius: 100px;
  display: flex;
  gap: 5px;
  border: 1px solid rgba(34, 56, 255, 0.1);
}

.tab-btn {
  padding: 12px 30px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: #666;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: #2238FF;
  color: white;
  box-shadow: 0 5px 15px rgba(34, 56, 255, 0.2);
}

.bienestar-grid {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.bienestar-grid.active {
  display: grid;
}

/* Unified Squared Resource Cards - Cleaner Look */
.resource-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: none; /* Removed border */
}

.resource-card:hover {
  transform: translateY(-5px);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  opacity: 1; /* Full clarity */
}

.resource-card:hover .card-bg {
  transform: scale(1.1);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px 15px 15px; /* Added more top padding for the gradient spread */
  /* Drastic dark gradient: very opaque at the bottom, spreading higher */
  background: linear-gradient(to top, 
    rgba(0,0,0,1) 0%, 
    rgba(0,0,0,0.8) 40%, 
    rgba(0,0,0,0) 100%
  );
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card-overlay h3 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  /* Multi-layered shadow for maximum contrast */
  text-shadow: 0 1px 4px rgba(0,0,0,1), 0 0 10px rgba(0,0,0,0.5);
}

.card-tag {
  color: #9ab4ff; /* Lighter, high-contrast blue for the dark background */
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: inline-block;
  text-shadow: 0 1px 3px rgba(0,0,0,1);
}

/* New Top Badge Positioning */
.recipe-badge-top {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  z-index: 3;
  border: 1px solid rgba(255,255,255,0.1);
}

.card-body p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 25px;
}

.read-more {
  font-weight: 700;
  color: #2238FF;
}

/* Recipe Teaser (Image Background) */
.recipe-teaser-card {
  height: 400px;
  position: relative;
}

.recipe-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}

.resource-card:hover .recipe-bg {
  transform: scale(1.1);
}

.recipe-overlay-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  color: white;
}

.recipe-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.recipe-badge {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(5px);
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.75rem;
  font-weight: 600;
}

.recipe-overlay-content h3 {
  font-size: 1.8rem;
  color: white;
}

/* Modal Styling */
.rm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 90000; /* Increased to be above everything */
  display: none;
  align-items: flex-start; /* Changed from center to prevent top cut-off */
  justify-content: center;
  padding: 20px;
  overflow-y: auto; /* Allow scrolling the modal container */
}

.rm-modal.active {
  display: flex;
}

.rm-overlay {
  position: fixed; /* Fixed to cover whole screen even when scrolling modal */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 46, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.rm-window {
  position: relative;
  background: white;
  width: 100%;
  max-width: 900px;
  margin-top: 100px; /* Space for the navbar */
  margin-bottom: 50px;
  border-radius: 30px;
  overflow: hidden; /* Content scrolls with the modal container now for better visibility */
  z-index: 2010;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.rm-modal.active .rm-window {
  opacity: 1;
  transform: translateY(0);
}

.rm-close {
  position: absolute;
  top: 20px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: rgba(0,0,0,0.1);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 2020;
  transition: var(--transition);
}

.rm-close:hover {
  background: #2238FF;
  color: white;
}

/* Detail Content Styling */
.detail-header-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.detail-body {
  padding: 50px;
}

.detail-body h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: #121212;
}

.detail-meta-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #999;
    font-weight: 700;
}

.meta-item .val {
    font-size: 1.1rem;
    font-weight: 600;
}

.detail-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.detail-section-title {
    font-size: 1.4rem;
    margin: 40px 0 20px;
    color: #2238FF;
}

.ingredients-list {
    background: #f8faff;
    padding: 30px;
    border-radius: 20px;
    list-style: none;
}

.ingredients-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.ingredients-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2238FF;
    font-weight: 900;
}

.preparation-steps {
    padding-left: 0;
}

.step-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.step-num {
    background: #2238FF;
    color: white;
    width: 35px;
    height: 35px;
    min-width: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}




/* --- Bienestar Section Grid --- */
.bienestar-grid {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.bienestar-grid.active {
  display: grid;
}

/* Detail Modal Fixed Proportions */
.rm-window {
  position: relative;
  background: white;
  width: 100%;
  max-width: 900px;
  margin-top: 100px;
  margin-bottom: 50px;
  border-radius: 30px;
  overflow: hidden;
  z-index: 2010;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* --- Parallax Floating Images in Intro (Restored Golden State) --- */
.intro-new-clean {
    position: relative;
    overflow: hidden;
    padding: 160px 5%;
    background: #0a0e2e;
    color: white;
}

.intro-new-clean h2 {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
}

.intro-new-clean p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.intro-new-clean .container.relative-z {
    position: relative;
    z-index: 10;
    text-align: center;
}

.parallax-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.p-img {
    position: absolute;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    object-fit: cover;
    animation: float-parallax 7s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes float-parallax {
    0% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
    100% { transform: translateY(-30px) rotate(var(--rot, 0deg)); }
}

/* Dynamic Edge Distribution (Refined Lateral Layout) */
.p-img.p5 { top: 15%; left: 4%; width: 160px; animation-duration: 9s; --rot: 12deg; z-index: 5; }
.p-img.p6 { top: 15%; right: 4%; width: 160px; animation-duration: 9s; animation-delay: -4.5s; --rot: -12deg; z-index: 5; }

.p-img.p9 { top: 48%; left: 2%; width: 110px; animation-duration: 11s; animation-delay: -2s; --rot: -8deg; z-index: 5; }
.p-img.p10 { top: 48%; right: 2%; width: 110px; animation-duration: 11s; animation-delay: -3s; --rot: 8deg; z-index: 5; }

.p-img.p7 { bottom: 8%; left: 8%; width: 140px; animation-duration: 13s; animation-delay: -7s; filter: blur(4px); opacity: 0.75; --rot: -8deg; z-index: 1; }
.p-img.p8 { bottom: 8%; right: 8%; width: 140px; animation-duration: 13s; animation-delay: -6.5s; filter: blur(4px); opacity: 0.75; --rot: 8deg; z-index: 1; }

@media (max-width: 768px) {
    .intro-new-clean { padding: 100px 5%; }
    .intro-new-clean h2 { font-size: 2.2rem; }
    .p-img { width: 80px !important; } /* Uniform smaller size for mobile */
}

/* --- Bienestar Section Responsive Grid --- */
.bienestar-grid {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.bienestar-grid.active {
  display: grid;
}

@media (max-width: 1200px) {
  .bienestar-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .bienestar-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* --- Nosotrs Infinite Posts Gallery --- */
.posts-marquee {
  display: flex;
  gap: 20px;
  width: max-content;
}

.posts-track {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
  animation: scrollPosts 20s linear infinite;
}

.posts-track img {
  height: 280px;
  width: auto;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

@keyframes scrollPosts {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 20px)); }
}

/* ============================================
   MOBILE OVERHAUL & RESPONSIVITY
   ============================================ */

/* Mobile Menu Elements */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn img {
  width: 28px;
  height: 28px;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(2, 12, 27, 0.95) 0%, rgba(34, 56, 255, 0.92) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.1);
}

.mobile-nav-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('RECURSO LOGO TRANS.png');
    background-repeat: no-repeat;
    background-size: 80%;
    background-position: center;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.close-mobile-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.close-mobile-menu:active {
    background: #2238FF;
    transform: scale(0.9);
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  padding: 0;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.mobile-nav-links li {
  margin-bottom: 25px;
  overflow: hidden;
}

.mobile-nav-links a {
  color: white;
  text-decoration: none;
  font-size: 2.2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  display: block;
  letter-spacing: -0.02em;
  transition: all 0.4s ease;
  position: relative;
}

.mobile-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0%;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.mobile-nav-overlay.active .mobile-nav-links a:active::after {
    width: 40%;
}

.mobile-lang-switcher {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* --- Global Mobile Queries (max-width: 768px) --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 5%;
  }

  body {
      overflow-y: hidden !important; /* Keep SPA lock even on mobile for consistency */
  }

  .view-section {
      height: 100vh !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
  }

  /* Navbar Adjustments */
  nav {
    padding: 15px 5% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .nav-links, .lang-divider {
    display: none !important;
  }

  .logo {
      margin-left: -50px !important; /* Move logo closer to the left menu button */
  }

  .logo img {
    height: 30px !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    padding: 10px;
    background: transparent;
    border: none;
  }

  .mobile-menu-btn img {
      width: 24px !important;
  }

  .nav-container {
      display: flex !important;
      align-items: center !important;
      gap: 15px !important;
  }

  /* Compact Language: Flag only */
  .lang-switcher {
      margin-left: 0 !important;
      background: rgba(255,255,255,0.1) !important;
      padding: 5px 10px !important;
      border-radius: 20px !important;
  }

  .lang-text {
      display: none !important; /* Hide ES / EN text */
  }

  .lang-btn {
      padding: 0 !important;
  }

  /* Compact Buy: Cart Icon only */
  #nav-buy-btn {
    display: flex !important;
    padding: 8px 12px !important;
    border-radius: 50% !important;
    aspect-ratio: 1/1 !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
  }

  .buy-text {
    display: none !important; /* Hide "Comprar Ahora" text */
  }

  #nav-buy-btn img {
      width: 18px !important;
      margin: 0 !important;
  }

  /* Typography Scale */
  .intro-new-clean h2 {
    font-size: 2.2rem !important;
    line-height: 1.1;
  }

  .intro-new-clean p {
    font-size: 0.95rem !important;
    margin-top: 15px !important;
    line-height: 1.5;
  }

  /* Clean Intro Mobile */
  .intro-new-clean {
      padding: 60px 5% !important; /* Thinner section */
  }

  /* Parallax Mobile Fix - Remove ALL floating images */
  .p-img, .p-img.p5, .p-img.p6 {
    display: none !important;
  }

  /* --- MISSION TEASER MOBILE CLEANUP --- */
  .about-teaser {
    background-color: #ffffff !important;
    padding: 60px 0 !important;
  }
  .about-teaser .fused-bg {
    display: none !important; /* Remove interfering image on mobile */
  }
  .about-teaser .teaser-text {
    text-align: center !important;
    align-items: center !important;
    padding: 0 8% !important;
  }
  .about-teaser .teaser-image {
    display: none !important; /* Hide extra space div */
  }



  .legacy-title {
    font-size: 1.8rem !important; /* Smaller titles for small screens */
    padding: 0 5%;
  }
  
  h2 {
      font-size: 1.8rem !important;
      line-height: 1.2 !important;
  }

  /* Teaser Split Sections */
  .teaser-split {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .teaser-text h2 {
    font-size: 2rem !important;
  }

  .teaser-image {
    order: -1; /* Image on top */
  }

  .pouch-mockup {
    width: 60%; /* Smaller to avoid "tapa todo" */
  }

  /* Hide HUD on mobile teaser to avoid mess */
  .hud-indicator {
      display: none !important;
  }

  /* --- PRODUCT SECTION MOBILE OPTIMIZATION (Consolidated) --- */
  .product-columns {
    flex-direction: column !important;
    padding-top: 0;
    min-height: 320vh !important; /* Total space for spin + cards */
    position: relative;
    background: #020c1b;
  }

  #view-producto {
      background: #020c1b !important;
      height: 100vh !important;
      overflow-y: auto !important;
  }

  .video-sticky-side {
    position: sticky !important;
    top: 100px !important; /* More space from top */
    width: 100%;
    height: 380px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    background: transparent !important;
    pointer-events: none;
  }

  #scrub-canvas {
      width: 90% !important;
      max-width: 320px;
      margin: 0 auto;
      display: block;
      filter: drop-shadow(0 20px 50px rgba(0,0,0,0.5));
  }

  .product-bg-layer {
      position: absolute !important;
      top: 0;
      left: 0;
      width: 100% !important;
      height: 100% !important;
      margin-bottom: 0 !important;
      z-index: 0;
  }

  .content-scroll-side {
      width: 100%;
      padding: 0 5% 120px 5%;
      margin-top: 220vh; /* Absolute delay: Cards only appear AFTER full spin */
      position: relative;
      z-index: 50; /* On top of product */
  }

  .info-module {
      margin-left: 0;
      background: #0a0e2e; /* Solid background to prevent see-through overlap */
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 20px;
      padding: 35px 25px;
      margin-bottom: 40px;
      box-shadow: 0 -50px 80px rgba(0,0,0,0.9);
  }

  .info-module h2, .final-composition h3 {
      font-size: 1.5rem !important;
      white-space: normal;
  }

  .info-module p {
      font-size: 0.95rem !important;
  }

  .product-brand-logo {
      display: none !important;
  }

  /* Tickers Adjustments */
  .val-card {
    width: 130px;
    font-size: 0.85rem;
    padding: 8px 0;
  }

  .carousel-img {
    width: 100px;
    height: 75px;
  }

  /* Footer */
  .footer-content {
      gap: 15px;
  }

  /* Bienestar Modal Mobile Fix */
  .rm-modal {
      align-items: flex-start !important;
      padding: 0 !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch;
  }

  .rm-window {
      margin-top: 0 !important;
      border-radius: 0 !important;
      height: auto !important; /* Allow it to grow with content */
      min-height: 100% !important;
      width: 100% !important;
      max-width: 100% !important;
      overflow-y: visible !important; /* Let the parent .rm-modal handle the scroll */
  }

  .detail-header-img {
      height: 250px !important;
  }

  .detail-body {
      padding: 30px 8% !important; /* increased side margins */
      padding-bottom: 80px !important;
  }

  .detail-body h2 {
      font-size: 1.5rem !important; /* Slightly smaller title */
      line-height: 1.2 !important;
  }

  .detail-text {
      font-size: 0.9rem !important; /* Slightly smaller body text */
      line-height: 1.6 !important;
  }

  .meta-item .label {
      font-size: 0.65rem !important;
  }

  .meta-item .val {
      font-size: 0.95rem !important;
  }

  .container.hero-content-absolute {
      top: 100px !important;
      height: auto !important;
      position: relative !important;
      transform: none !important;
      left: 0 !important;
      padding: 40px 5% !important;
  }

  .bienestar-hero {
      padding-top: 70px !important;
      display: flex !important;
      flex-direction: column !important;
      height: auto !important;
      min-height: auto !important;
  }

  .header-bg-fusion {
      display: grid !important;
      grid-template-areas: "overlay";
      height: auto !important;
      width: 100% !important;
      background: transparent;
      overflow: hidden;
  }

  .hero-bg-img {
      grid-area: overlay;
      position: relative !important;
      height: auto !important;
      width: 100% !important;
      object-fit: contain;
      display: block;
  }

  .container.hero-content-absolute {
      position: relative !important;
      top: 0 !important;
      left: 0 !important;
      transform: none !important;
      padding: 10px 5% !important; /* Minimized padding to close the gap */
      width: 100% !important;
      height: auto !important;
      display: block !important;
  }

  .hero-dynamic-content {
      min-height: auto !important;
      display: grid !important;
      grid-template-areas: "stack";
      width: 100% !important;
      padding: 0 5% !important;
      margin-bottom: 20px !important; /* Proper air between text and button area */
  }

  .hero-text-block {
      grid-area: stack;
      position: relative !important;
      max-width: 100% !important;
      display: flex !important;
      flex-direction: column !important;
      text-align: left !important;
      align-items: flex-start !important;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s ease;
  }

  /* Force display of only the active header in the exact same spot */
  .focus-blogs .blogs-header, 
  .focus-recipes .recipes-header {
      opacity: 1 !important;
      pointer-events: auto !important;
  }

  .hero-text-block h2 {
      font-size: 1.8rem !important;
      margin-bottom: 5px !important;
      line-height: 1.2 !important;
  }

  .hero-text-block p {
      font-size: 0.92rem !important;
      width: 100% !important;
  }

  .tab-switcher-wrapper.floating-switcher {
      position: relative !important;
      top: 0 !important;
      left: 0 !important;
      transform: none !important;
      margin: 0px auto 30px 5% !important; /* Aligned left with text */
      width: auto !important;
      display: inline-flex !important;
  }

  .tab-switcher {
      scale: 0.9; /* Slightly smaller for mobile */
  }

  /* About Immersive */
  .about-hero {
      background-position: center !important; /* Center the subject of FOTO NOSOTROS */
      padding: 100px 0 60px 0 !important;
      position: relative;
  }

  #nosotros-history::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(2, 12, 27, 0.6) !important; /* Full dark wash for mobile legibility */
      z-index: 0;
  }

  .history-block {
      text-align: center !important;
      margin: 0 auto !important;
      max-width: 100% !important;
      padding: 0 10px;
  }

  .history-text {
      font-size: 0.95rem !important;
      line-height: 1.6 !important;
  }

  .glass-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(0,0,0,0.3); /* Darker overlay for text legibility */
      z-index: -1;
  }

  .about-grid {
      grid-template-columns: 1fr;
      gap: 20px;
  }

  .glass-card {
      padding: 30px 20px !important;
  }

  .legacy-title {
      font-size: 1.8rem !important;
  }

  /* --- Testimonials Mobile Logic --- */
  .testimonials-section {
    padding: 60px 0 !important;
  }
  
  .testimonial-card {
    min-width: 100% !important; /* Full width on mobile */
    padding: 20px !important;
  }

  .carousel-container {
    padding: 0 10px;
  }

  .quote {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
  }

  .user-name {
    font-size: 0.85rem !important;
  }

  .btn-testimonio {
      padding: 10px 20px !important;
      font-size: 0.8rem !important;
  }

  .c-btn {
    width: 45px !important;
    height: 45px !important;
  }

  /* Bienestar Sections */
  .hero-text-block.blogs-header h2, 
  .hero-text-block.recipes-header h2 {
      font-size: 1.6rem !important;
  }

  .detail-header-img {
      height: 220px !important;
  }

  .detail-body {
      padding: 30px 20px !important;
  }

  .detail-body h2 {
      font-size: 1.6rem !important;
  }

  .detail-meta-row {
      flex-direction: column;
      gap: 15px;
  }

  /* --- Bienestar Cards Mobile Fix --- */
  .bienestar-grid {
      grid-template-columns: 1fr !important;
      gap: 25px !important;
      padding: 0 5% 40px 5% !important;
  }

  .resource-card {
      width: 100% !important;
      height: 250px !important;
  }
}

/* Tablet Adjustments (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .teaser-split {
      gap: 40px;
  }
  .teaser-text h2 {
      font-size: 2.8rem;
  }
  .about-grid {
      grid-template-columns: repeat(2, 1fr);
  }
  .intro-new-clean h2 {
      font-size: 4rem !important;
  }
}

