/* Digitalis Dental - Production Stylesheet */

:root {
    --ink: #1a2633;
    --steel: #5b7b9d;
    --steel-dark: #3a5066;
    --steel-deep: #2b3f54;
    --steel-pale: #91c2f6;
    --sky-tint: #eaf2fb;
    --sky-tint-2: #dce8f7;
    --paper: #f4f6f8;
    --paper-dim: #e9edf2;
    --ivory: #ffffff;
    --line: #d3dee9;
    --line-dark: rgba(255, 255, 255, 0.12);
    --text: #2c3a47;
    --text-dim: #596c7e;
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --radius-full: 9999px;
    --maxw: 1240px;
    --apple-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(255, 255, 255, 0.76);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 20px 40px rgba(26, 38, 51, 0.08);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

  h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 800;
  }

  a { color: inherit; text-decoration: none; }
  img { max-width: 100%; height: auto; display: block; }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

  .label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 11px;
  }

  .eyebrow {
    display: inline-block;
    color: var(--steel-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 12px;
  }
  .contact .eyebrow, .hero .eyebrow {
    color: var(--steel-pale);
  }

  section { padding: 96px 0; position: relative; }
  @media(max-width: 768px) { section { padding: 64px 0; } }

  /* ---------- Apple Floating Glass Navigation Bar ---------- */
  header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: var(--maxw);
    z-index: 1000;
    border-radius: var(--radius-full);
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 32px rgba(26, 38, 51, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: all 0.4s var(--apple-ease);
  }
  header.scrolled {
    top: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 44px rgba(26, 38, 51, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-color: rgba(255, 255, 255, 0.95);
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px 10px 18px;
    max-width: var(--maxw);
    margin: 0 auto;
    gap: 20px;
    position: relative;
    transition: padding 0.4s var(--apple-ease);
  }
  @media(min-width: 901px) {
    .nav {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
    }
    .brand { justify-self: start; }
    .navlinks { justify-self: center; }
    .navcta { justify-self: end; }
  }
  header.scrolled .nav { padding: 8px 20px 8px 16px; }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--ink);
    flex: none;
    transition: transform 0.3s ease;
  }
  .brand:hover { transform: scale(1.02); }
  .brand .mark {
    height: 44px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    background: transparent;
    border-radius: 12px;
    padding: 2px;
  }
  .brand .mark img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08)); }

  .brand-text { display: flex; flex-direction: column; line-height: 1.1; }
  .brand-title { font-weight: 800; letter-spacing: -0.02em; font-size: 18px; color: var(--ink); }
  
  .status-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: #059669;
    letter-spacing: 0.06em;
    margin-top: 2px;
  }
  .status-indicator .dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
    display: inline-block;
  }
  .status-indicator .dot::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    background-color: #10b981;
    animation: pulse 2s infinite var(--apple-ease);
  }
  @keyframes pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.8); opacity: 0; } }

  .navlinks {
    display: flex;
    gap: 18px;
    align-items: center;
    background: rgba(26, 38, 51, 0.04);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 0, 0, 0.04);
  }
  .navlinks a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
    white-space: nowrap;
  }
  .navlinks a:hover, .navlinks a.active {
    color: var(--ink);
    background: var(--ivory);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .navcta { display: flex; align-items: center; gap: 12px; flex: none; }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 13.5px;
    padding: 12px 22px;
    min-height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.35s var(--apple-ease);
    text-align: center;
    white-space: nowrap;
  }
  .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(43, 63, 84, 0.15);
  }
  .btn:active { transform: translateY(0) scale(0.98); }

  .btn-primary {
    background: linear-gradient(135deg, var(--steel-deep) 0%, var(--ink) 100%);
    color: var(--ivory);
    box-shadow: 0 4px 14px rgba(26, 38, 51, 0.18);
  }
  .btn-primary:hover {
    background: linear-gradient(135deg, var(--ink) 0%, #0d151e 100%);
    color: var(--ivory);
  }

  /* Custom Apple Style Button in #91c2f6 with Shiny Border */
  .btn-sky {
    background: linear-gradient(135deg, #91c2f6 0%, #7db5f5 100%);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 18px rgba(145, 194, 246, 0.38), inset 0 1px 1.5px rgba(255, 255, 255, 0.9);
  }
  .btn-sky:hover {
    background: linear-gradient(135deg, #a4cefc 0%, #89bdfa 100%);
    color: var(--ink);
    box-shadow: 0 8px 28px rgba(145, 194, 246, 0.55), 0 0 16px rgba(145, 194, 246, 0.45);
    border-color: #ffffff;
  }

  /* WhatsApp Buttons Styled in #91c2f6 with Shiny Apple Border */
  .btn-whatsapp {
    background: linear-gradient(135deg, #91c2f6 0%, #7db5f5 100%);
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 4px 18px rgba(145, 194, 246, 0.38), inset 0 1px 1.5px rgba(255, 255, 255, 0.9);
  }
  .btn-whatsapp:hover {
    background: linear-gradient(135deg, #a4cefc 0%, #89bdfa 100%);
    color: var(--ink);
    box-shadow: 0 8px 28px rgba(145, 194, 246, 0.55), 0 0 16px rgba(145, 194, 246, 0.45);
    border-color: #ffffff;
  }

  .btn-outline {
    border-color: rgba(43, 63, 84, 0.2);
    color: var(--steel-deep);
    background: rgba(255, 255, 255, 0.5);
  }
  .btn-outline:hover {
    background: var(--steel-deep);
    color: var(--ivory);
    border-color: var(--steel-deep);
  }

  .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--ivory);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
  }
  .btn-outline-light:hover {
    background: var(--ivory);
    color: var(--ink);
    border-color: var(--ivory);
  }

  .navtoggle {
    display: none;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-full);
    cursor: pointer;
    padding: 10px;
    flex: none;
  }
  .navtoggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  @media(max-width: 1040px) {
    .navlinks { display: none; }
    .navtoggle { display: block; }
  }
  @media(max-width: 768px) {
    .navcta .btn { display: none; }
  }



  /* ---------- Option A: Interactive CAD/CAM Studio Hero ---------- */
  .hero {
    position: relative;
    background: linear-gradient(160deg, var(--ink) 0%, #111a24 45%, var(--steel-deep) 100%);
    color: var(--ivory);
    padding: 160px 0 100px;
    overflow: hidden;
    isolation: isolate;
  }
  
  .hero-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
  }
  .hero-glow span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    animation: floatGlow 22s ease-in-out infinite alternate;
  }
  .hero-glow span.g1 { width: 620px; height: 620px; background: var(--steel); top: -220px; left: -120px; }
  .hero-glow span.g2 { width: 500px; height: 500px; background: #3b82f6; bottom: -200px; right: -80px; animation-duration: 28s; animation-delay: -5s; opacity: 0.25; }
  .hero-glow span.g3 { width: 380px; height: 380px; background: var(--steel-pale); top: 30%; right: 20%; opacity: 0.15; }

  @keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.1); }
  }

  .hero-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 48px;
  }
  .hero-header .eyebrow {
    color: var(--steel-pale);
    background: none;
  }
  .hero-header h1 {
    font-size: clamp(32px, 4.8vw, 56px);
    color: var(--ivory);
    margin-top: 12px;
    letter-spacing: -0.03em;
  }
  .hero-header p.lead {
    margin-top: 18px;
    font-size: 18px;
    color: #c0ceda;
    line-height: 1.6;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Apple Studio Controls (Tabs Bar) */
  .studio-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 36px auto 0;
    background: rgba(0, 0, 0, 0.35);
    padding: 6px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    width: fit-content;
    max-width: 100%;
    backdrop-filter: blur(16px);
  }
  .tab-text-mobile { display: none; }
  .tab-text-desktop { display: inline; }

  .tab-btn {
    background: transparent;
    border: none;
    color: var(--steel-pale);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: color 0.3s var(--apple-ease);
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  .tab-btn:hover { color: var(--ivory); }
  .tab-btn.active {
    color: var(--ivory);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  .tab-btn.active::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.25);
    z-index: -1;
    border-radius: var(--radius-full);
    animation: tabProgress 5s linear forwards;
  }
  @keyframes tabProgress { 0% { width: 0%; } 100% { width: 100%; } }

  /* Pause progress bar animation ONLY when hovering inside #studioStage (via .paused class) */
  .studio-tabs.paused .tab-btn.active::before {
    animation-play-state: paused !important;
  }
  .tab-btn svg { width: 16px; height: 16px; transition: stroke 0.3s; position: relative; z-index: 2; }

  /* Studio Stage Container */
  .studio-stage {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    overflow: hidden;
    margin-top: 40px;
    transition: all 0.5s var(--apple-ease);
  }

  .studio-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 0;
    align-items: center;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  .studio-grid.switching {
    opacity: 0.25;
    transform: translateY(4px) scale(0.995);
  }
  @media(max-width: 960px) { .studio-grid { grid-template-columns: 1fr; } }

  .studio-info {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  @media(max-width: 600px) { .studio-info { padding: 28px; } }

  .studio-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--steel-pale);
    margin-bottom: 16px;
  }
  .studio-info h2 {
    color: var(--ivory);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
    margin-bottom: 16px;
  }
  .studio-info p {
    color: #b3c3d1;
    font-size: 15.5px;
    line-height: 1.65;
    margin-bottom: 28px;
  }

  /* Precision Specs Grid */
  .specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
  }
  .spec-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
  }
  .spec-item .value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--ivory);
    display: block;
  }
  .spec-item .label {
    font-size: 10.5px;
    color: var(--steel-pale);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
    display: block;
  }

  .studio-actions { display: flex; gap: 14px; flex-wrap: nowrap; align-items: center; }
  .studio-actions .btn { flex: 1; justify-content: center; }

  /* Studio Visual Area */
  .studio-visual {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 28px;
    gap: 16px;
  }
  @media(max-width: 600px) { .studio-visual { padding: 20px; } }

  .studio-visual-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .studio-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border-radius: var(--radius);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  /* Caption Badge — now placed below the image instead of overlapping it */
  .visual-overlay-badge {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .visual-overlay-badge span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ivory);
  }
  .visual-overlay-badge .tech-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--steel-pale);
    background: rgba(91, 123, 157, 0.25);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(145, 194, 246, 0.3);
  }

  /* Hero Bottom Quick Stats Bar */
  .hero-bottom-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line-dark);
  }
  @media(max-width: 860px) { .hero-bottom-stats { grid-template-columns: repeat(2, 1fr); } }
  @media(max-width: 480px) { .hero-bottom-stats { grid-template-columns: 1fr; } }

  .b-stat { display: flex; flex-direction: column; gap: 4px; }
  .b-stat b {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--ivory);
  }
  .b-stat span {
    font-size: 12px;
    color: var(--steel-pale);
    font-weight: 600;
  }

  /* ---------- Partner Marquee ---------- */
  .partners {
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    padding: 48px 0;
  }
  .partners-head { text-align: center; margin-bottom: 24px; }
  .partners-head h2 { font-size: 22px; color: var(--ink); }

  .marquee {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  }
  .marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marqueeScroll 15s linear infinite;
  }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  .partner-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    border-right: 1px solid var(--line);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--steel-dark);
    opacity: 0.65;
    transition: all 0.25s ease;
    white-space: nowrap;
  }
  .partner-item:hover { opacity: 1; color: var(--ink); transform: scale(1.05); }

  /* ---------- High Contrast Apple Style Visit Laboratory Card ---------- */
  .visit-lab-card {
    background: var(--ivory);
    border: 1px solid rgba(91, 123, 157, 0.2);
    border-radius: var(--radius);
    padding: 26px 30px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(43, 63, 84, 0.06);
    transition: all 0.35s var(--apple-ease);
  }
  .visit-lab-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(43, 63, 84, 0.12);
    border-color: var(--steel);
  }
  .visit-lab-card .icon-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--sky-tint) 0%, var(--sky-tint-2) 100%);
    color: var(--steel-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    border: 1px solid rgba(91, 123, 157, 0.25);
    box-shadow: 0 4px 14px rgba(91, 123, 157, 0.12);
  }
  .visit-lab-card h4 { color: var(--ink); font-size: 17.5px; margin-bottom: 6px; font-weight: 800; }
  .visit-lab-card p { color: var(--text-dim); font-size: 14px; margin: 0; line-height: 1.55; }
  .visit-lab-card .btn-visit-link {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--steel-dark);
    transition: color 0.25s ease;
  }
  .visit-lab-card .btn-visit-link:hover { color: var(--ink); }

  @media(max-width: 640px) {
    .visit-lab-card { flex-direction: column; text-align: center; padding: 22px; }
    .visit-lab-card .icon-box { margin: 0 auto; }
  }

  /* ---------- Apple Style Tech Features Banner ( Plazos, Garantías) ---------- */
  .tech-banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
  }
  @media(max-width: 960px) { .tech-banner-grid { grid-template-columns: 1fr; } }

  .tech-banner-card {
    background: var(--ivory);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 30px 26px;
    box-shadow: 0 8px 24px rgba(26, 38, 51, 0.04);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--apple-ease);
  }
  .tech-banner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(43, 63, 84, 0.1);
    border-color: rgba(91, 123, 157, 0.3);
  }
  .tech-banner-card .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--steel-dark);
    background: var(--sky-tint);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    width: fit-content;
    margin-bottom: 16px;
    border: 1px solid var(--sky-tint-2);
  }
  .tech-banner-card h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.25; }
  .tech-banner-card p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; margin: 0 0 16px; flex: 1; }
  
  .tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: var(--ink);
    font-weight: 600;
  }
  .tech-list li {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .tech-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--sky-tint-2);
    color: var(--steel-deep);
    font-size: 11px;
    font-weight: 800;
    flex: none;
  }

  /* ---------- Process Section Pipeline ---------- */
  .sec-head { max-width: 680px; margin-bottom: 48px; }
  .sec-head h2 { font-size: clamp(26px, 3.2vw, 38px); }
  .sec-head p { margin-top: 14px; color: var(--text-dim); font-size: 16.5px; }
  .sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

  .process-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
  }
  @media(max-width: 960px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
  @media(max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

  .process-step {
    position: relative;
    padding: 32px 26px 28px;
    background: var(--ivory);
    border-radius: var(--radius);
    border: 1px solid rgba(91, 123, 157, 0.16);
    box-shadow: 0 6px 24px rgba(26, 38, 51, 0.03);
    transition: all 0.4s var(--apple-ease);
    display: flex;
    flex-direction: column;
  }
  .process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(43, 63, 84, 0.12);
    border-color: rgba(145, 194, 246, 0.8);
  }
  .process-step .step-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }
  .process-step .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--steel-deep) 0%, var(--ink) 100%);
    color: var(--steel-pale);
    font-weight: 800;
    font-size: 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 6px 16px rgba(26, 38, 51, 0.18);
    margin-bottom: 0;
  }
  .process-step .time-tag {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--steel-dark);
    background: var(--sky-tint);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--sky-tint-2);
  }
  .process-step h3 { font-size: 18.5px; margin-bottom: 10px; color: var(--ink); line-height: 1.25; font-weight: 800; }
  .process-step p { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; margin: 0 0 16px; flex: 1; }
  .process-step .step-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--steel-dark);
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .process-pipeline-banner {
    margin-top: 36px;
    background: linear-gradient(135deg, var(--ink) 0%, var(--steel-deep) 100%);
    border-radius: var(--radius);
    padding: 22px 30px;
    color: var(--ivory);
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 18px;
    box-shadow: 0 16px 40px rgba(26, 38, 51, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  .process-pipeline-banner .p-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ivory);
  }
  .process-pipeline-banner .p-feat svg {
    width: 20px;
    height: 20px;
    color: var(--steel-pale);
    flex: none;
  }

  /* ---------- Services Grid ---------- */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  @media(max-width: 1040px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
  @media(max-width: 580px) { .services-grid { grid-template-columns: 1fr; } }

  .service-card {
    background: var(--ivory);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    transition: all 0.4s var(--apple-ease);
  }
  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(43, 63, 84, 0.12);
    border-color: rgba(91, 123, 157, 0.25);
  }
  .service-card .card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #08111f;
  }
  .service-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.6s var(--apple-ease);
  }
  .service-card:hover .card-media img { transform: scale(1.04); }
  
  .service-card .body {
    padding: 28px 24px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .service-code {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 11px;
    color: var(--steel-dark);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    text-transform: uppercase;
  }
  .service-card h3 { font-size: 19px; margin-bottom: 10px; }
  .service-card p { color: var(--text-dim); font-size: 14.5px; margin: 0; flex: 1; line-height: 1.6; }
  .service-card .tag {
    margin-top: 20px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--steel-dark);
    background: var(--sky-tint);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    width: fit-content;
    border: 1px solid var(--sky-tint-2);
  }

  /* ---------- Interactive Calculator Section ---------- */
  .calc-box {
    background: var(--ivory);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
    padding: 48px;
    margin-top: 40px;
  }
  @media(max-width: 768px) { .calc-box { padding: 28px; } }

  .calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }
  @media(max-width: 860px) { .calc-grid { grid-template-columns: 1fr; gap: 28px; } }

  .calc-option-group { margin-bottom: 24px; }
  .calc-option-group label {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--steel-dark);
    margin-bottom: 10px;
  }
  .calc-select {
    width: 100%;
    padding: 14px 40px 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background-color: var(--paper);
    background-image: url('data:image/svg+xml;utf8,<svg fill="%231a2633" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  .calc-select:hover { border-color: var(--steel-dark); }
  .calc-select:focus { border-color: var(--steel); box-shadow: 0 0 0 3px rgba(91, 123, 157, 0.15); }

  .calc-result-card {
    background: linear-gradient(135deg, var(--steel-deep) 0%, var(--ink) 100%);
    color: var(--ivory);
    border-radius: var(--radius);
    padding: 36px;
    box-shadow: 0 12px 32px rgba(26, 38, 51, 0.2);
  }
  .calc-result-card h4 { color: var(--steel-pale); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
  .calc-result-card .res-title { font-size: 24px; color: var(--ivory); margin-bottom: 16px; font-weight: 800; }
  .calc-result-card .res-time { font-size: 32px; font-weight: 800; color: var(--steel-pale); margin-bottom: 16px; font-family: 'Plus Jakarta Sans', sans-serif; }
  .calc-result-card p { color: rgba(255, 255, 255, 0.75); font-size: 14px; margin-bottom: 24px; }

  /* ---------- Cases Section ---------- */
  .cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  @media(max-width: 920px) { .cases-grid { grid-template-columns: 1fr; } }

  .case-card {
    background: var(--ink);
    color: var(--ivory);
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.4s var(--apple-ease);
  }
  .case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    border-color: rgba(145, 194, 246, 0.3);
  }
  .case-card .card-media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: #08111f; }
  .case-card .card-media img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; transition: transform 0.6s var(--apple-ease); }
  .case-card:hover .card-media img { transform: scale(1.06); }

  .case-card .body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
  .case-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
  .case-card .tags span {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid var(--line-dark);
    padding: 4px 10px;
    color: var(--steel-pale);
    text-transform: uppercase;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
  }
  .case-card h3 { color: var(--ivory); font-size: 20px; margin-bottom: 10px; }
  .case-card p { color: #aab6bc; font-size: 14px; margin: 0; line-height: 1.6; flex: 1; }
  .case-card .more {
    margin-top: 20px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--steel-pale);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease;
  }
  .case-card:hover .more { color: var(--ivory); }

  /* ---------- Reviews Section (Infinite Marquee Ticker) ---------- */
  .reviews-marquee {
    overflow: hidden;
    position: relative;
    padding: 24px 0 36px;
    mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  }
  .reviews-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: reviewsMarqueeScroll 45s linear infinite;
  }
  .reviews-marquee:hover .reviews-marquee-track { animation-play-state: paused; }
  @keyframes reviewsMarqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  .review-card {
    width: 380px;
    max-width: 85vw;
    background: var(--ivory);
    border: 1px solid rgba(91, 123, 157, 0.16);
    padding: 30px;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 6px 24px rgba(26, 38, 51, 0.04);
    transition: all 0.4s var(--apple-ease);
    flex-shrink: 0;
  }
  .review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(43, 63, 84, 0.1);
    border-color: rgba(145, 194, 246, 0.8);
  }
  .review-card .stars { display: flex; gap: 4px; color: #f59e0b; }
  .review-card .stars svg { width: 18px; height: 18px; fill: currentColor; }
  .review-card p.quote { font-size: 14.5px; color: var(--text); font-style: italic; margin: 0; line-height: 1.65; flex: 1; }
  .review-card .author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }
  .review-card .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky-tint) 0%, var(--sky-tint-2) 100%);
    color: var(--steel-deep);
    border: 1px solid rgba(91, 123, 157, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 14px;
    flex: none;
  }
  .review-card .author b { display: block; font-size: 14px; color: var(--ink); }
  .review-card .author span { font-size: 12.5px; color: var(--text-dim); }

  /* ---------- Google Maps Card in Contact ---------- */
  .contact-map-wrapper {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    transition: all 0.35s var(--apple-ease);
  }
  .contact-map-wrapper:hover {
    border-color: rgba(145, 194, 246, 0.6);
    transform: translateY(-3px);
  }
  .contact-map-image-box {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    background: #0f1722;
  }
  .contact-map-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--apple-ease);
  }
  .contact-map-wrapper:hover .contact-map-image-box img {
    transform: scale(1.04);
  }
  .contact-map-overlay-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(26, 38, 51, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--ivory);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .contact-map-overlay-badge .dot {
    width: 8px; height: 8px; background: #38bdf8; border-radius: 50%; box-shadow: 0 0 8px #38bdf8;
  }
  .contact-map-info-bar {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(17, 26, 36, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .contact-map-info-bar h4 {
    font-size: 15px;
    color: var(--ivory);
    margin-bottom: 3px;
    font-weight: 800;
  }
  .contact-map-info-bar p {
    font-size: 13px;
    color: var(--steel-pale);
    margin: 0;
  }

  /* ---------- Training / About Split ---------- */
  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }
  @media(max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }

  .split .panel {
    background: linear-gradient(145deg, var(--ink) 0%, var(--steel-deep) 100%);
    color: var(--ivory);
    padding: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(26, 38, 51, 0.15);
  }
  .split .panel h3 { color: var(--ivory); font-size: 26px; margin-bottom: 16px; }
  .split .panel p { color: rgba(255, 255, 255, 0.75); font-size: 15.5px; line-height: 1.65; }

  .fundae-badge {
    margin-top: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--steel-pale);
    border-top: 1px solid var(--line-dark);
    padding-top: 20px;
    line-height: 1.5;
  }

  .stat-row {
    display: flex;
    gap: 40px;
    margin-top: 32px;
    flex-wrap: wrap;
  }
  .stat-row .stat b { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 28px; color: var(--ink); }
  .stat-row .stat span { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); font-weight: 700; }

  /* ---------- Mini carrusel instalaciones laboratorio ---------- */
  .lab-carousel{margin-top:20px;}
  .lab-carousel-label{
    font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;
    color:var(--steel-dark);font-weight:700;margin-bottom:10px;
  }
  .lab-carousel-track{
    position:relative;border-radius:var(--radius);overflow:hidden;
    aspect-ratio:16/9;
    box-shadow:0 12px 36px rgba(0,0,0,0.14);
  }
  .lab-carousel-slide{
    position:absolute;inset:0;
  }
  .lab-carousel-slide img{
    width:100%;height:100%;object-fit:cover;display:block;
  }
  .lab-carousel-slide{
    opacity:0;visibility:hidden;transition:opacity .5s ease;
  }
  .lab-carousel-slide.active{opacity:1;visibility:visible;}
  .lab-carousel-slide .cap{
    position:absolute;left:0;right:0;bottom:0;
    padding:14px 16px 12px;
    background:linear-gradient(to top, rgba(0,0,0,0.55), transparent);
    color:#ffffff;font-size:12.5px;font-weight:600;
  }
  .lab-carousel-nav{
    position:absolute;top:50%;transform:translateY(-50%);
    width:32px;height:32px;border-radius:50%;
    background:rgba(0,0,0,0.35);border:1px solid rgba(255,255,255,0.3);
    color:#fff;display:flex;align-items:center;justify-content:center;
    cursor:pointer;transition:background .2s ease;z-index:3;
  }
  .lab-carousel-nav:hover{background:rgba(0,0,0,0.55);}
  .lab-carousel-nav.prev{left:10px;}
  .lab-carousel-nav.next{right:10px;}
  .lab-carousel-nav svg{width:15px;height:15px;}
  .lab-carousel-dots{
    position:absolute;top:12px;right:14px;
    display:flex;gap:6px;z-index:3;
  }
  .lab-carousel-dots button{
    width:6px;height:6px;border-radius:50%;border:none;padding:0;
    background:rgba(255,255,255,0.4);cursor:pointer;transition:background .2s ease,transform .2s ease;
  }
  .lab-carousel-dots button.active{background:#fff;transform:scale(1.25);}

  /* ---------- Contact Section ---------- */
  .contact { background-color: var(--ink); color: var(--ivory); }
  .contact .sec-head p { color: #b9c4ca; }
  .contact .sec-head h2 { color: var(--ivory); }

  .contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
  }
  @media(max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

  .field { margin-bottom: 20px; }
  .field label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--steel-pale);
    margin-bottom: 8px;
  }
  .field input, .field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    color: var(--ivory);
    font-family: inherit;
    font-size: 15px;
    padding: 14px 16px;
    transition: all 0.3s ease;
  }
  .field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--steel-pale);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(145, 194, 246, 0.2);
  }
  .field textarea { resize: vertical; min-height: 100px; }

  .form-actions {
    display: flex;
    gap: 12px;
    flex-direction: column;
    margin-top: 24px;
  }

  .contact-info {
    border-left: 1px solid var(--line-dark);
    padding-left: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  @media(max-width: 900px) {
    .contact-info { border-left: none; padding-left: 0; border-top: 1px solid var(--line-dark); padding-top: 36px; }
  }

  .contact-info .row { margin-bottom: 24px; }
  .contact-info .row span.label { color: var(--steel-pale); display: block; margin-bottom: 6px; font-weight: 700; }
  .contact-info .row a, .contact-info .row div.val { color: var(--ivory); font-size: 16px; font-weight: 500; }
  .contact-info .row a:hover { color: var(--steel-pale); }

  .socials { display: flex; gap: 14px; margin-top: 32px; }
  .socials a {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.04);
  }
  .socials a:hover { border-color: var(--steel-pale); background: rgba(145, 194, 246, 0.15); transform: translateY(-2px); }

  /* ---------- Footer ---------- */
  footer {
    background: #111a24;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    padding: 36px 0;
    font-size: 13.5px;
  }
  .foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
  .foot-row a { color: #b7c2c8; transition: color 0.25s ease; }
  .foot-row a:hover { color: var(--ivory); }

  /* ---------- Mobile Nav Panel (Apple Drawer Style) ---------- */
  .mobile-panel {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 38, 51, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 2000;
    padding: 48px 32px;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    transition: all 0.4s var(--apple-ease);
  }
  .mobile-panel.open { display: flex; }
  .mobile-panel a {
    color: var(--ivory);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    transition: color 0.2s ease;
  }
  .mobile-panel a:hover { color: var(--steel-pale); }
  .mobile-panel .close {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--ivory);
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ---------- Guaranteed Instant Display for All Page Elements ---------- */
  .reveal, .js .reveal,
  .stagger-parent .service-card,
  .stagger-parent .process-step,
  .stagger-parent .case-card,
  .stagger-parent .review-card,
  .stagger-parent .tech-banner-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .js .stagger-parent.in .service-card:nth-child(1),
  .js .stagger-parent.in .process-step:nth-child(1),
  .js .stagger-parent.in .case-card:nth-child(1),
  .js .stagger-parent.in .review-card:nth-child(1),
  .js .stagger-parent.in .tech-banner-card:nth-child(1) { opacity: 1; transform: none; filter: blur(0); transition-delay: 0.05s; }

  .js .stagger-parent.in .service-card:nth-child(2),
  .js .stagger-parent.in .process-step:nth-child(2),
  .js .stagger-parent.in .case-card:nth-child(2),
  .js .stagger-parent.in .review-card:nth-child(2),
  .js .stagger-parent.in .tech-banner-card:nth-child(2) { opacity: 1; transform: none; filter: blur(0); transition-delay: 0.18s; }

  .js .stagger-parent.in .service-card:nth-child(3),
  .js .stagger-parent.in .process-step:nth-child(3),
  .js .stagger-parent.in .case-card:nth-child(3),
  .js .stagger-parent.in .review-card:nth-child(3),
  .js .stagger-parent.in .tech-banner-card:nth-child(3) { opacity: 1; transform: none; filter: blur(0); transition-delay: 0.31s; }

  .js .stagger-parent.in .service-card:nth-child(4),
  .js .stagger-parent.in .process-step:nth-child(4) { opacity: 1; transform: none; filter: blur(0); transition-delay: 0.44s; }

  /* ====== MOBILE RESPONSIVE FIXES ====== */

  /* Studio tabs: scrollable on small screens */
  @media(max-width: 640px) {
    .tab-text-desktop { display: none !important; }
    .tab-text-mobile { display: inline !important; }

    /* Ultra-compact Segmented Control Bar on mobile */
    .studio-tabs {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 4px;
      padding: 4px;
      border-radius: 14px;
      background: rgba(0, 0, 0, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.1);
      width: 100%;
      box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
    }
    .tab-btn {
      width: 100%;
      justify-content: center;
      font-size: 11px;
      padding: 8px 2px;
      border-radius: 10px;
      white-space: nowrap;
      text-align: center;
      gap: 4px;
    }
    .tab-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
    .tab-btn.active::before {
      border-radius: 10px;
    }

    /* Hero padding fix & De-cluttering for small phones */
    .hero { padding: 90px 0 40px; }
    .hero-header { margin-bottom: 14px; text-align: center; }
    .hero-header .eyebrow { font-size: 10.5px; margin-bottom: 6px; letter-spacing: 0.04em; }
    .hero-header h1 { font-size: clamp(23px, 6.8vw, 27px); line-height: 1.22; font-weight: 800; margin-bottom: 8px; }
    .hero-header p.lead {
      display: block !important;
      font-size: 13.5px;
      line-height: 1.5;
      margin: 16px auto 18px;
      color: rgba(255, 255, 255, 0.88);
      text-align: center;
      max-width: 94%;
    }

    .studio-stage { margin-top: 14px; }
    .studio-grid { display: flex; flex-direction: column; padding: 18px 12px; }
    .studio-info { display: contents; }
    
    /* 1. TEXTO EXPLICATIVO */
    .studio-info h2 {
      order: 1;
      font-size: 21px;
      font-weight: 800;
      margin-bottom: 8px;
      text-align: left;
      width: 100%;
      padding: 0 4px;
    }
    #studioDesc {
      order: 2;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      font-size: 13.5px;
      line-height: 1.48;
      margin-bottom: 16px;
      color: rgba(255, 255, 255, 0.88);
      text-align: left;
      width: 100%;
      padding: 0 4px;
    }

    /* 2. FOTO DEL TRABAJO (Ancho total expandido al máximo de la tarjeta sin padding doble) */
    .studio-visual {
      order: 3;
      width: 100% !important;
      padding: 0 !important;
      margin: 0 0 16px 0 !important;
      border-radius: 14px;
      overflow: hidden;
    }
    .studio-visual-frame {
      width: 100% !important;
      border-radius: 14px !important;
    }
    .studio-visual img {
      width: 100% !important;
      border-radius: 14px !important;
    }
    .visual-overlay-badge {
      width: 100% !important;
      margin-top: 10px !important;
    }

    /* 3. 2 BOTONES PÍLDORA APILADOS DEBAJO */
    .studio-actions {
      order: 4;
      display: flex;
      flex-direction: column;
      gap: 12px;
      width: 100%;
      padding: 0 2px;
    }
    .studio-actions .btn {
      width: 100%;
      padding: 14px 20px;
      font-size: 14px;
      font-weight: 700;
      min-height: 48px;
      border-radius: 9999px;
      justify-content: center;
      box-shadow: 0 4px 20px rgba(145, 194, 246, 0.35);
    }

    /* Specs grid: single column on tiny screens */
    .specs-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .spec-item .value { font-size: 16px; }

    /* Cases / reviews: single column */
    .cases-grid, .reviews-grid { grid-template-columns: 1fr; }

    /* Foot row: stack on mobile */
    .foot-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .foot-row > div:last-child { flex-wrap: wrap; gap: 12px; }

    /* Visit card: compact */
    .visit-lab-card { padding: 18px; gap: 14px; }

    /* Calc box: tighter padding */
    .calc-box { padding: 20px 16px; }

    /* Tech banner single column */
    .tech-banner-grid { grid-template-columns: 1fr; }

    /* Stat row wraps nicely */
    .stat-row { gap: 24px; }
  }

  /* Tablet tweaks (641-900px) */
  @media(min-width: 641px) and (max-width: 900px) {
    .hero { padding: 140px 0 80px; }
    .tech-banner-grid { grid-template-columns: 1fr 1fr; }
    .tech-banner-grid .tech-banner-card:last-child { grid-column: span 2; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* Prevent horizontal overflow globally */
  @media(max-width: 768px) {
    .wrap { padding: 0 18px; }
    header { top: 14px; width: calc(100% - 28px); }
    header.scrolled { top: 10px; }
    .nav { padding: 8px 16px 8px 14px; }
    .brand .mark { height: 36px; }
    .brand-title { font-size: 15px; }
    section { padding: 56px 0; }
    .split { gap: 28px; }
    .split .panel { padding: 32px 24px; }
    .studio-info { padding: 24px; }
    .form-actions { gap: 10px; }
  }

  @media(prefers-reduced-motion: reduce) {
    .hero-glow span { animation: none; }
    .marquee-track { animation: none; }
    html { scroll-behavior: auto; }
    .js .reveal, .js .stagger-parent * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  }
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-decoration: none;
    animation: wa-enter 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
  }
  @keyframes wa-enter {
    from { opacity: 0; transform: translateY(20px) scale(0.8); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }
  .whatsapp-float .wa-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    background: #1a2633;
    color: #fff;
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  }
  .whatsapp-float:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
  }
  .whatsapp-float .wa-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    height: 32px;
    border-radius: 16px;
    white-space: nowrap;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #059669;
    padding: 0 14px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    overflow: hidden;
    max-height: 32px;
    order: 2;
  }
  .whatsapp-float .wa-status .dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
  }
  .whatsapp-float .wa-status .dot::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    background-color: #10b981;
    animation: wa-status-pulse 2s infinite;
  }
  @keyframes wa-status-pulse { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(2.8); opacity: 0; } }
  .whatsapp-float.wa-collapsed .wa-status {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border: none;
  }
  .whatsapp-float .wa-btn {
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
  }
  .whatsapp-float .wa-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: wa-pulse 2s ease-out infinite;
  }
  @keyframes wa-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
  }
  .whatsapp-float:hover .wa-btn {
    transform: scale(1.06);
  }
  .whatsapp-float .wa-btn svg {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    fill: #fff;
  }
  @media(max-width: 640px) {
    .whatsapp-float {
      bottom: 16px;
      right: 14px;
      opacity: 0 !important;
      pointer-events: none !important;
      transform: translateY(12px) scale(0.85) !important;
      transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .whatsapp-float .wa-btn { width: 48px; height: 48px; }
    .whatsapp-float .wa-btn svg { width: 24px; height: 24px; }

    /* NEVER show "Laboratorio Conectado" badge on mobile */
    .whatsapp-float .wa-status { display: none !important; }

    /* Show floating WhatsApp button ONLY when scrolled past Hero on mobile */
    .whatsapp-float.show-mobile-whatsapp {
      opacity: 1 !important;
      pointer-events: auto !important;
      transform: translateY(0) scale(1) !important;
    }
  }
