:root {
    --ember: #FF6A1A;
    --ember-soft: #FF8A3D;
    --ember-deep: #E25410;
    --ember-glow: rgba(255, 106, 26, 0.4);
    --ink: #0A0807;
    --ink-soft: #14110F;
    --ink-card: #18140F;
    --line: rgba(255, 255, 255, 0.08);
  }

  * { -webkit-font-smoothing: antialiased; box-sizing: border-box; }

  html { scroll-behavior: smooth; }

  html, body {
    margin: 0;
    padding: 0;
    background: var(--ink);
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
  }

  .font-display {
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.005em;
  }

  /* ============== LIQUID GLASS ============== */
  .liquid-glass {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  .liquid-glass:hover { background: rgba(255, 255, 255, 0.04); }
  .liquid-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  /* ============== EMBER GLASS ============== */
  .ember-glass {
    background: linear-gradient(180deg, var(--ember) 0%, var(--ember-deep) 100%);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 8px 30px -8px rgba(255,106,26,0.5), 0 0 60px -10px rgba(255,106,26,0.3);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .ember-glass:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 12px 40px -8px rgba(255,106,26,0.65), 0 0 80px -10px rgba(255,106,26,0.45);
  }

  /* ============== BOTTOM BLUR HERO ============== */
  .bottom-blur {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
    -webkit-mask-image: linear-gradient(to top, black 0%, transparent 45%);
    mask-image: linear-gradient(to top, black 0%, transparent 45%);
  }

  .side-vignette {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 90% 70% at 50% 100%, rgba(10,8,7,0.55) 0%, rgba(10,8,7,0) 60%);
  }

  /* ============== BLUR FADE UP ============== */
  @keyframes blurFadeUp {
    from { opacity: 0; filter: blur(20px); transform: translateY(40px); }
    to { opacity: 1; filter: blur(0); transform: translateY(0); }
  }
  .animate-blur-fade-up { opacity: 0; animation: blurFadeUp 1s ease-out forwards; }

  /* ============== REVEAL ON SCROLL ============== */
  .reveal {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }

  /* ============== EMBER PULSE ============== */
  @keyframes emberPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255,106,26,0.6); }
    50% { opacity: 0.85; box-shadow: 0 0 0 6px rgba(255,106,26,0); }
  }
  .ember-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ember);
    animation: emberPulse 2.4s ease-out infinite;
  }

  /* Brand mark */
  .brand-mark {
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.12em;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 0.15em;
  }
  .brand-mark .dot { color: var(--ember); }

  .ribbon {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,106,26,0.08);
    border: 1px solid rgba(255,106,26,0.25);
    color: var(--ember-soft);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
  }

  /* Video bg */
  .bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }
  video { user-select: none; pointer-events: none; }

  .forge-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 60% 40% at 50% 60%, #FF6A1A 0%, #B83A08 25%, #3a1404 55%, #0A0807 85%);
  }

  /* ============== NAVBAR FIXED ============== */
  .navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.4s ease;
    padding: 1.25rem 1rem;
  }
  @media (min-width: 640px) { .navbar-fixed { padding: 1.25rem 1.5rem; } }
  @media (min-width: 768px) { .navbar-fixed { padding: 1.5rem 3rem; } }

  .navbar-fixed.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background: rgba(10, 8, 7, 0.75);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--line);
  }
  @media (min-width: 768px) {
    .navbar-fixed.scrolled { padding-top: 1rem; padding-bottom: 1rem; }
  }

  /* ============== SECTION DIVIDER (cinematográfico) ============== */
  .ember-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,106,26,0.4) 50%, transparent 100%);
    position: relative;
  }
  .ember-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 20px var(--ember), 0 0 40px rgba(255,106,26,0.5);
  }

  /* ============== CAPACITIES CARD ============== */
  .cap-card {
    position: relative;
    background: linear-gradient(180deg, var(--ink-card) 0%, #0F0C09 100%);
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    padding: 2rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,106,26,0.6), transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
  }
  .cap-card:hover {
    border-color: rgba(255, 106, 26, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px -20px rgba(255, 106, 26, 0.25);
  }
  .cap-card:hover::before { transform: translateX(100%); }

  .cap-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(255,106,26,0.15) 0%, rgba(255,106,26,0.05) 100%);
    border: 1px solid rgba(255,106,26,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ember);
    margin-bottom: 1.25rem;
    transition: all 0.4s ease;
  }
  .cap-card:hover .cap-icon-wrap {
    background: linear-gradient(135deg, rgba(255,106,26,0.25) 0%, rgba(255,106,26,0.1) 100%);
    transform: scale(1.05) rotate(-3deg);
  }

  /* ============== ALLOY CARDS ============== */
  .alloy-card {
    position: relative;
    background: var(--ink-card);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 2rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
  }
  .alloy-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, rgba(255,106,26,0) 50%, rgba(255,106,26,0.4) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
  }
  .alloy-card:hover { transform: translateY(-6px); background: #1E1812; }
  .alloy-card:hover::after { opacity: 1; }

  .alloy-grade {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--ember);
    margin-bottom: 0.25rem;
  }

  /* ============== TIMELINE PROCESS ============== */
  .timeline-step {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 3rem;
  }
  .timeline-step:last-child { padding-bottom: 0; }
  .timeline-step::before {
    content: '';
    position: absolute;
    left: 0.7rem;
    top: 0.5rem;
    bottom: -0.5rem;
    width: 1px;
    background: linear-gradient(180deg, var(--ember) 0%, rgba(255,106,26,0.1) 100%);
  }
  .timeline-step:last-child::before { display: none; }
  .timeline-step::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 0 4px rgba(255,106,26,0.15), 0 0 30px rgba(255,106,26,0.6);
  }
  .timeline-step .step-number {
    position: absolute;
    left: 0.3rem;
    top: 0.5rem;
    width: 0.9rem;
    height: 0.9rem;
    font-family: 'Anton', sans-serif;
    font-size: 0.65rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  /* ============== SECTOR CARDS ============== */
  .sector-card {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 1.25rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--ink-card);
  }
  .sector-card-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sector-card:hover .sector-card-bg { transform: scale(1.08); }
  .sector-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,8,7,0.1) 0%, rgba(10,8,7,0.3) 40%, rgba(10,8,7,0.95) 100%);
  }
  .sector-card-content {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 2;
  }

  /* Iron texture bg (cuando no hay imagen real) */
  .iron-tex {
    background:
      radial-gradient(circle at 20% 30%, rgba(255,106,26,0.3) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(255,106,26,0.15) 0%, transparent 60%),
      linear-gradient(135deg, #2a1810 0%, #0a0807 100%);
  }
  .iron-tex-2 {
    background:
      radial-gradient(circle at 70% 40%, rgba(255,106,26,0.35) 0%, transparent 55%),
      linear-gradient(135deg, #1a0f08 0%, #0a0807 70%);
  }
  .iron-tex-3 {
    background:
      radial-gradient(circle at 30% 70%, rgba(255,106,26,0.25) 0%, transparent 50%),
      linear-gradient(225deg, #221510 0%, #0a0807 80%);
  }
  .iron-tex-4 {
    background:
      radial-gradient(circle at 50% 50%, rgba(255,106,26,0.2) 0%, transparent 60%),
      linear-gradient(160deg, #1f1410 0%, #0a0807 100%);
  }

  /* ============== STATS BIG NUMBERS ============== */
  .stat-number {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  .stat-number.ember-fill {
    background: linear-gradient(180deg, var(--ember-soft) 0%, var(--ember-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  /* ============== MARQUEE (clientes/sectores) ============== */
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .marquee {
    display: flex;
    gap: 4rem;
    animation: marquee 40s linear infinite;
    width: max-content;
  }
  .marquee-item {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    transition: color 0.3s ease;
  }
  .marquee-item:hover { color: var(--ember); }
  .marquee-mask {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  }

  /* ============== CONTACT FORM ============== */
  .form-input, .form-textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.9rem 1rem;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
  }
  .form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--ember);
    background: rgba(255,106,26,0.05);
    box-shadow: 0 0 0 3px rgba(255,106,26,0.1);
  }
  .form-input::placeholder, .form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }
  .form-textarea { resize: vertical; min-height: 120px; }
  .form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
  }

  /* ============== SPARK PARTICLES ============== */
  @keyframes sparkFloat {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-100vh) translateX(20px); opacity: 0; }
  }
  .spark {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--ember);
    box-shadow: 0 0 6px var(--ember), 0 0 12px rgba(255,106,26,0.5);
    pointer-events: none;
  }

  /* ============== SCROLL TO TOP ============== */
  .scroll-top {
    position: fixed;
    bottom: 5rem;
    right: 1.5rem;
    z-index: 40;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--ember);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px -10px rgba(255,106,26,0.6), 0 0 0 1px rgba(255,255,255,0.1) inset;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
  }
  .scroll-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .scroll-top:hover { transform: translateY(-2px) scale(1.05); }

  /* Sticky CTA móvil */
  .sticky-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(10,8,7,0) 0%, rgba(10,8,7,0.95) 60%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
  @media (min-width: 768px) { .sticky-cta { display: none; } }

  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: var(--ink); }
  ::-webkit-scrollbar-thumb { background: rgba(255,106,26,0.3); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--ember); }

  /* Loading skeleton for video sections */
  .heat-bg {
    background:
      radial-gradient(ellipse at 50% 100%, rgba(255,106,26,0.15) 0%, transparent 60%),
      var(--ink);
  }
  /* =====================================================================
     LINGOTES DE INGENIERÍA — botón destacado en navbar
     ===================================================================== */
  .ingot-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(180deg, rgba(255,106,26,0.18) 0%, rgba(255,106,26,0.06) 100%);
    border: 1px solid rgba(255,106,26,0.55);
    box-shadow: 0 0 24px -6px rgba(255,106,26,0.55);
    white-space: nowrap;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  }
  .ingot-btn:hover {
    background: linear-gradient(180deg, rgba(255,106,26,0.32) 0%, rgba(255,106,26,0.12) 100%);
    border-color: var(--ember);
    transform: translateY(-1px);
  }
  .ingot-btn i { color: var(--ember-soft); }
  .ingot-btn-dot {
    position: absolute;
    top: -2px; right: -2px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--ember);
    animation: emberPulse 2.4s ease-out infinite;
  }
  @media (min-width: 640px) { .ingot-btn { font-size: 0.875rem; padding: 0.5rem 1.1rem; } }

  /* Chip de anuncio en hero */
  .hero-chip {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
    border-radius: 999px;
    background: rgba(10,8,7,0.55);
    border: 1px solid rgba(255,255,255,0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    transition: border-color 0.3s ease, background 0.3s ease;
  }
  .hero-chip:hover { border-color: rgba(255,106,26,0.5); background: rgba(10,8,7,0.75); }
  .hero-chip-new {
    background: var(--ember);
    color: #fff;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
  }
  .hero-chip-event { align-items: center; gap: 0.3rem; }
  @media (max-width: 639px) { .hero-chip-event.hidden { display: none; } }
  .hero-chip-event i { color: var(--ember-soft); }

  /* =====================================================================
     SECCIÓN LINGOTES
     ===================================================================== */
  .ingot-bg {
    background:
      radial-gradient(ellipse 60% 50% at 80% 30%, rgba(255,106,26,0.18) 0%, transparent 60%),
      radial-gradient(ellipse 50% 40% at 10% 90%, rgba(120,140,170,0.10) 0%, transparent 60%),
      linear-gradient(180deg, #0d0b0a 0%, var(--ink) 100%);
  }
  .event-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .ingot-figure {
    position: relative;
    margin: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px -30px rgba(255,106,26,0.35);
    background: #111;
  }
  .ingot-figure img { display: block; width: 100%; height: auto; }
  .ingot-figure::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10,8,7,0.65) 100%);
    pointer-events: none;
  }
  .ingot-figure-cap {
    position: absolute;
    left: 1rem; bottom: 0.9rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .flag-cl {
    width: 22px; height: 15px;
    border-radius: 2px;
    background:
      linear-gradient(90deg, #0039A6 0 36%, transparent 36%) top/100% 50% no-repeat,
      linear-gradient(180deg, #fff 0 50%, #D52B1E 50% 100%);
    position: relative;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
  }
  .flag-cl::after {
    content: '★';
    position: absolute;
    left: 1px; top: -3px;
    font-size: 7px;
    color: #fff;
  }
  .ingot-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
  }
  .ingot-specs > div { background: var(--ink-card); padding: 1rem 0.9rem; }
  .ingot-spec-value {
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    line-height: 1;
    color: var(--ember);
  }
  .ingot-spec-label {
    margin-top: 0.4rem;
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
  }

  .benefit {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.4rem;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, var(--ink-card) 0%, #0F0C09 100%);
    border: 1px solid var(--line);
    transition: border-color 0.4s ease, transform 0.4s ease;
  }
  .benefit:hover { border-color: rgba(255,106,26,0.3); transform: translateY(-3px); }
  .benefit-icon {
    flex: none;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--ember);
    border: 2px solid rgba(255,106,26,0.55);
    background: rgba(255,106,26,0.08);
  }
  .benefit-title {
    font-family: 'Anton', sans-serif;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.3rem;
  }
  .benefit-body { font-size: 0.875rem; line-height: 1.55; color: rgba(255,255,255,0.62); margin: 0; }

  .ideal-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1.1rem;
    background: linear-gradient(90deg, rgba(255,106,26,0.14) 0%, rgba(255,106,26,0.03) 100%);
    border: 1px solid rgba(255,106,26,0.25);
  }
  .ideal-label {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: 'Anton', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ember);
  }
  .ideal-items { display: flex; flex-wrap: wrap; gap: 0.6rem 1.75rem; }
  .ideal-item { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.95rem; }
  .ideal-item i { color: var(--ember-soft); }
  .ideal-tagline { margin-left: auto; font-size: 0.85rem; color: rgba(255,255,255,0.55); font-style: italic; }
  @media (max-width: 767px) { .ideal-tagline { margin-left: 0; width: 100%; } }

  /* =====================================================================
     CATÁLOGO DE ALEACIONES (tabs + fichas)
     ===================================================================== */
  .norm-chip {
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    padding: 0.2rem 0.65rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.85);
  }
  .alloy-tabs { position: relative; margin-bottom: 1.25rem; }
  .alloy-chips { display: none; }
  @media (min-width: 1024px) {
    .alloy-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
    .alloy-dd { display: none; }
  }

  /* ---- Desplegable de familias (móvil / tablet) ---- */
  .alloy-dd { position: relative; z-index: 20; }
  .alloy-dd-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin: 0 0 0.5rem 0.25rem;
  }
  .alloy-dd-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
    background: linear-gradient(180deg, var(--ember) 0%, var(--ember-deep) 100%);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 10px 30px -10px rgba(255,106,26,0.7);
    cursor: pointer;
  }
  .alloy-dd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .alloy-dd-trigger .alloy-tab-count { background: rgba(0,0,0,0.2); }
  .alloy-dd-chevron { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
  .alloy-dd.open .alloy-dd-chevron { transform: rotate(180deg); }

  .alloy-dd-menu {
    position: absolute;
    left: 0; right: 0;
    top: calc(100% + 0.5rem);
    padding: 0.4rem;
    border-radius: 1rem;
    background: rgba(18,14,11,0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,106,26,0.25);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.8), 0 0 40px -20px rgba(255,106,26,0.4);
    max-height: min(70vh, 520px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
  }
  .alloy-dd.open .alloy-dd-menu { opacity: 1; visibility: visible; transform: none; }
  .alloy-dd-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: 0.7rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .alloy-dd-item + .alloy-dd-item { margin-top: 2px; }
  .alloy-dd-item:hover { background: rgba(255,255,255,0.05); }
  .alloy-dd-item.active { background: rgba(255,106,26,0.14); color: #fff; }
  .alloy-dd-icon {
    flex: none;
    width: 32px; height: 32px;
    border-radius: 0.6rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--ember);
    background: rgba(255,106,26,0.1);
    border: 1px solid rgba(255,106,26,0.22);
  }
  .alloy-dd-item.active .alloy-dd-icon { background: var(--ember); color: #fff; border-color: transparent; }
  .alloy-dd-item-name { flex: 1; min-width: 0; }
  .alloy-tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line);
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    min-width: 0;
    transition: all 0.3s ease;
  }

  .alloy-tab:hover { border-color: rgba(255,106,26,0.35); color: #fff; }
  .alloy-tab.active {
    background: linear-gradient(180deg, var(--ember) 0%, var(--ember-deep) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 24px -10px rgba(255,106,26,0.7);
  }
  .alloy-tab-count {
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
  }
  .alloy-tab.active .alloy-tab-count { background: rgba(0,0,0,0.2); }

  .alloy-panel {
    background: var(--ink-card);
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 1.1rem;
    min-height: 420px;
    scroll-margin-top: 84px;
  }
  @media (max-width: 639px) {
    .alloy-panel .grade-plate { padding: 0.8rem 0.95rem 0.75rem; }
    .alloy-panel .grade-plate-name { font-size: 1.25rem; }
    .alloy-panel .comp-table td { padding: 0.36rem 0.95rem; }
    .alloy-panel .comp-table th { padding: 0.45rem 0.95rem; }
  }
  @media (min-width: 768px) { .alloy-panel { padding: 2.25rem; } }
  @keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  .alloy-panel-inner.fade-in { animation: panelIn 0.45s cubic-bezier(0.16, 1, 0.3, 1); }

  .ingot-badge {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ember-soft);
    background: rgba(255,106,26,0.08);
    border: 1px solid rgba(255,106,26,0.25);
  }

  .grade-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
  @media (min-width: 640px) { .grade-grid-2, .grade-grid-3 { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1024px) {
    .grade-grid-1 { grid-template-columns: minmax(0, 420px); }
    .grade-grid-3 { grid-template-columns: repeat(3, 1fr); }
  }
  .grade-card {
    background: #0F0C09;
    border: 1px solid var(--line);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  /* Placa metálica tipo lingote */
  .grade-plate {
    position: relative;
    padding: 1rem 1.1rem 0.9rem;
    color: #1d1d1f;
    background:
      linear-gradient(115deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.55) 45%, rgba(255,255,255,0) 60%),
      linear-gradient(180deg, #d9dce1 0%, #a9aeb6 55%, #8d939c 100%);
    border-bottom: 1px solid rgba(0,0,0,0.35);
  }
  .grade-plate-brand {
    font-family: 'Anton', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    opacity: 0.55;
  }
  .grade-plate-name {
    font-family: 'Anton', sans-serif;
    font-size: 1.45rem;
    letter-spacing: 0.03em;
    line-height: 1.1;
    text-shadow: 0 1px 0 rgba(255,255,255,0.55);
  }
  .grade-plate-uns { font-size: 0.78rem; font-weight: 600; opacity: 0.7; margin-top: 0.1rem; }
  .grade-plate-cert {
    display: inline-flex; align-items: center; gap: 0.3rem;
    margin-top: 0.6rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #fff;
    color: #111;
    padding: 0.2rem 0.45rem;
    border-radius: 0.25rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.25);
  }
  .grade-note { font-size: 0.8rem; color: rgba(255,255,255,0.6); padding: 0.85rem 1.1rem 0; margin: 0; line-height: 1.5; }
  .comp-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin: 0.5rem 0 0.4rem; }
  .comp-table th {
    text-align: left;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    padding: 0.5rem 1.1rem;
  }
  .comp-table th:last-child, .comp-table td:last-child { text-align: right; }
  .comp-table td { padding: 0.42rem 1.1rem; border-top: 1px solid rgba(255,255,255,0.05); font-variant-numeric: tabular-nums; }
  .comp-table td:first-child { font-family: 'Anton', sans-serif; letter-spacing: 0.06em; color: var(--ember-soft); width: 3.5rem; }
  .comp-table td.muted { color: rgba(255,255,255,0.3); }
  .comp-table tbody tr:hover td { background: rgba(255,106,26,0.05); }

  /* El display de .brand-mark pisaba la clase "hidden" de Tailwind en móvil */
  @media (max-width: 639px) { .brand-mark.hidden { display: none; } }

  /* Fotos en tarjetas de sectores (el degradado iron-tex queda como respaldo) */
  .sector-card-bg img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.55) sepia(0.25) brightness(0.62) contrast(1.1);
    transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sector-card:hover .sector-card-bg img { filter: grayscale(0) sepia(0.1) brightness(0.8) contrast(1.05); }
  .sector-card-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(255,106,26,0.22) 0%, rgba(255,106,26,0) 55%);
    mix-blend-mode: overlay;
    pointer-events: none;
  }
  .sector-card-overlay {
    background: linear-gradient(180deg, rgba(10,8,7,0) 0%, rgba(10,8,7,0.25) 45%, rgba(10,8,7,0.92) 100%);
  }
  .sector-card { border: 1px solid var(--line); transition: border-color 0.5s ease, box-shadow 0.5s ease; }
  .sector-card:hover { border-color: rgba(255,106,26,0.35); box-shadow: 0 24px 60px -24px rgba(255,106,26,0.35); }

  /* =====================================================================
     PROCESO — fondo dinámico por etapa
     ===================================================================== */
  #proceso { clip-path: inset(0); background: #070605; }
  .proc-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
  .proc-scene {
    position: absolute; inset: 0;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.1s ease, transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .proc-scene.active { opacity: 1; transform: scale(1); }
  #proceso:not(.in-view) .proc-scene * { animation-play-state: paused !important; }

  /* 01 · Ingeniería: plano técnico */
  .ps-1 {
    color: rgba(120, 180, 235, 0.32);
    background:
      linear-gradient(rgba(110,170,230,0.07) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(90deg, rgba(110,170,230,0.07) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(rgba(110,170,230,0.12) 1px, transparent 1px) 0 0 / 200px 200px,
      linear-gradient(90deg, rgba(110,170,230,0.12) 1px, transparent 1px) 0 0 / 200px 200px,
      radial-gradient(ellipse 70% 60% at 70% 50%, #0d2236 0%, #060b12 75%);
  }
  .ps-blueprint {
    position: absolute;
    width: min(90vh, 900px); height: min(90vh, 900px);
    right: -8vw; top: 50%;
    margin-top: calc(min(90vh, 900px) / -2);
    animation: psSpin 90s linear infinite;
  }
  @keyframes psSpin { to { transform: rotate(360deg); } }

  /* 02 · Moldeo en arena: textura granulada */
  .ps-2 {
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.85 0 0 0 0 0.68 0 0 0 0 0.45 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
      radial-gradient(ellipse 60% 50% at 70% 40%, rgba(196,150,96,0.35) 0%, transparent 70%),
      radial-gradient(ellipse 50% 40% at 20% 80%, rgba(120,84,48,0.35) 0%, transparent 70%),
      linear-gradient(160deg, #2a1d12 0%, #120c07 100%);
    background-size: 220px 220px, auto, auto, auto;
  }
  .ps-2::after {
    content: '';
    position: absolute;
    width: 46vh; height: 46vh;
    right: 8vw; top: 50%;
    transform: translateY(-50%);
    border-radius: 1.5rem;
    border: 2px solid rgba(230,190,140,0.18);
    box-shadow: inset 0 0 0 28px rgba(0,0,0,0.25), inset 0 0 80px rgba(0,0,0,0.6);
  }

  /* 03 · Fusión: video de metal fundido */
  .ps-3 { background: #120502; }
  .ps-3 video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2) brightness(0.75); }
  .ps-3::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 60% at 70% 55%, rgba(255,106,26,0.35) 0%, transparent 70%);
    mix-blend-mode: screen;
    animation: psHeat 3.5s ease-in-out infinite;
  }
  @keyframes psHeat { 0%,100% { opacity: 0.6; } 50% { opacity: 1; } }

  /* 04 · Colada y solidificación: barras al rojo enfriándose sobre rodillos */
  .ps-4 { background: radial-gradient(ellipse 70% 60% at 70% 55%, #2a1208 0%, #0a0605 75%); overflow: hidden; }
  .ps-mill {
    position: absolute;
    left: 20%; right: -30%; top: -10%; bottom: -10%;
    transform: rotate(-16deg);
    transform-origin: 30% 50%;
  }
  .ps-bar {
    position: absolute;
    left: 0; right: 0;
    top: var(--top);
    height: var(--h);
    border-radius: 999px;
    background: linear-gradient(90deg,
      #fffbe6 0%, #ffe9a0 10%, #ffc04a 24%, #ff8a1e 42%, #e2470c 60%, #8e2306 78%, #3a1308 92%, #1d0c07 100%);
    background-size: 100% 100%;
    box-shadow:
      0 0 18px 2px rgba(255,170,60,0.55),
      0 0 60px 10px rgba(255,100,20,0.35);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 100%);
    animation: psCool 6s ease-in-out var(--d) infinite;
  }
  .ps-bar::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.08) 30%, rgba(0,0,0,0) 55%, rgba(60,10,0,0.55) 100%);
  }
  .ps-bar::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 2px, transparent 2px 60px);
    animation: psFlow 2.4s linear infinite;
    mix-blend-mode: overlay;
  }
  @keyframes psFlow { to { background-position: 60px 0; } }
  @keyframes psCool {
    0%, 100% { filter: brightness(1.08) saturate(1.1); }
    50% { filter: brightness(0.82) saturate(1.25); }
  }
  .ps-roll {
    position: absolute;
    top: 8%; bottom: 8%;
    left: var(--left);
    width: 2.2vw; min-width: 16px;
    background: linear-gradient(90deg, #0d0c0b 0%, #2c2621 45%, #0d0c0b 100%);
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    border-radius: 4px;
    opacity: 0.85;
  }
  .ps-steam span {
    position: absolute;
    left: var(--x); bottom: -10%;
    width: var(--s); height: var(--s);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,220,190,0.22) 0%, rgba(255,200,160,0) 70%);
    filter: blur(10px);
    animation: psSteam 12s linear var(--d) infinite;
  }
  @keyframes psSteam {
    0% { transform: translate(0,0) scale(0.6); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translate(-6vw,-110vh) scale(1.6); opacity: 0; }
  }
  .ps-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 40% 35% at 45% 45%, rgba(255,150,50,0.18) 0%, transparent 70%);
    animation: psHeat 4s ease-in-out infinite;
  }

  /* 05 · Desmoldeo y granallado: chorro abrasivo con nubes de polvo */
  .ps-5 { background: #1c1e21; }
  .ps-blast2 { position: absolute; inset: 0; width: 100%; height: 100%; }
  #proceso:not(.in-view) .ps-blast2 { visibility: hidden; }

  /* 06 · Control de calidad: regla y línea de escaneo */
  .ps-6 {
    background:
      linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 100% 64px,
      radial-gradient(ellipse 60% 55% at 70% 50%, #1f2a2e 0%, #0a0d0f 72%);
  }
  .ps-6 .ps-ruler {
    position: absolute;
    right: 6vw; top: 12%; bottom: 12%;
    width: 70px;
    background:
      repeating-linear-gradient(180deg, rgba(255,255,255,0.35) 0 1px, transparent 1px 10px) right / 18px 100% no-repeat,
      repeating-linear-gradient(180deg, rgba(255,255,255,0.55) 0 2px, transparent 2px 50px) right / 36px 100% no-repeat;
    border-right: 2px solid rgba(255,255,255,0.35);
  }
  .ps-6 .ps-scan {
    position: absolute;
    left: 35%; right: 0;
    height: 2px;
    top: 15%;
    background: linear-gradient(90deg, transparent, rgba(255,138,61,0.9) 40%, rgba(255,255,255,0.9) 70%, transparent);
    box-shadow: 0 0 24px 4px rgba(255,106,26,0.45);
    animation: psScan 4.5s ease-in-out infinite alternate;
  }
  @keyframes psScan { to { top: 85%; } }

  /* Velo para legibilidad y número de etapa */
  .proc-veil {
    position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(7,6,5,0.85) 0%, rgba(7,6,5,0.55) 45%, rgba(7,6,5,0.15) 100%),
      linear-gradient(180deg, rgba(7,6,5,0.6) 0%, transparent 25%, transparent 75%, rgba(7,6,5,0.7) 100%);
  }
  @media (max-width: 767px) {
    .proc-veil { background: rgba(7,6,5,0.62); }
    .ps-blueprint { right: -40vw; opacity: 0.7; }
  }
  .proc-num {
    position: absolute;
    right: 7rem; bottom: 6vh;
    display: flex; align-items: baseline; gap: 0.4rem;
    font-family: 'Anton', sans-serif;
    line-height: 1;
  }
  #procNum {
    font-size: clamp(6rem, 18vw, 16rem);
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255,138,61,0.55);
    transition: opacity 0.4s ease;
  }
  #procNum.swap { opacity: 0; }
  .proc-num-total { font-size: clamp(1.25rem, 3vw, 2rem); color: rgba(255,255,255,0.3); }
  @media (max-width: 767px) { .proc-num { right: 1rem; top: 5rem; bottom: auto; } #procNum { font-size: 4.5rem; -webkit-text-stroke-width: 1px; } .proc-num-total { font-size: 1rem; } }

  /* Línea de tiempo con progreso y etapa activa */
  .proc-timeline { position: relative; }
  .proc-progress {
    position: absolute;
    left: calc(0.7rem - 0.5px); top: 0.9rem; bottom: 0.9rem;
    width: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
  }
  .proc-progress-fill {
    width: 100%;
    height: var(--proc-progress, 0%);
    background: linear-gradient(180deg, var(--ember-soft), var(--ember));
    box-shadow: 0 0 12px rgba(255,106,26,0.7);
    border-radius: 2px;
    transition: height 0.15s linear;
  }
  .proc-timeline .timeline-step::before { display: none; }
  .proc-timeline .timeline-step::after {
    background: #1c1714;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
    transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  }
  .proc-timeline .timeline-step.done::after { background: var(--ember-deep); box-shadow: 0 0 0 2px rgba(255,106,26,0.35); }
  .proc-timeline .timeline-step.current::after {
    background: var(--ember);
    box-shadow: 0 0 0 5px rgba(255,106,26,0.2), 0 0 30px rgba(255,106,26,0.8);
    transform: scale(1.15);
  }
  .proc-timeline .timeline-step.reveal.visible { opacity: 0.45; transition: opacity 0.5s ease, filter 0.9s, transform 0.9s; }
  .proc-timeline .timeline-step.reveal.visible.current,
  .proc-timeline .timeline-step.reveal.visible.done { opacity: 1; }
  .proc-timeline .timeline-step.current { opacity: 1; }

  @media (prefers-reduced-motion: reduce) {
    .proc-scene, .proc-scene * { animation: none !important; transition: opacity 0.3s ease !important; transform: none !important; }
  }

  /* Fotos reales en etapas 4 (colada) y 5 (granallado) sobre la escena animada de respaldo */
  .ps-photo {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 65% 50%;
    transform: scale(1.12);
    transition: transform 9s ease-out;
  }
  .proc-scene.active .ps-photo { transform: scale(1.0); }
  .ps-4 .ps-photo { filter: saturate(1.15) contrast(1.05) brightness(0.85); }
  /* Granallado: imagen en espejo (chorro a la derecha), filtro acero cálido */
  .ps-5 .ps-photo {
    object-position: 34% 70%;
    transform: scaleX(-1) scale(1.12);
    filter: grayscale(1) contrast(1.2) brightness(0.88) blur(0.4px);
  }
  .proc-scene.ps-5.active .ps-photo { transform: scaleX(-1) scale(1.0); }
  .ps-5 .ps-tint {
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 45% 55% at 72% 55%, rgba(255,138,61,0.28) 0%, transparent 70%),
      linear-gradient(160deg, rgba(40,28,20,0.35) 0%, rgba(10,8,7,0.55) 100%);
    mix-blend-mode: multiply;
  }
  .ps-5 .ps-tint::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 35% 40% at 70% 60%, rgba(255,150,80,0.22) 0%, transparent 70%);
    mix-blend-mode: screen;
  }
  .ps-4 .ps-steam, .ps-4 .ps-glow { z-index: 1; }
  .ps-dust {
    position: absolute; inset: -10%;
    z-index: 1;
    background:
      radial-gradient(ellipse 40% 30% at 60% 60%, rgba(220,222,225,0.22) 0%, transparent 70%),
      radial-gradient(ellipse 35% 25% at 80% 35%, rgba(220,222,225,0.16) 0%, transparent 70%);
    filter: blur(20px);
    animation: psDust 10s ease-in-out infinite alternate;
  }
  @keyframes psDust { from { transform: translate(-3%, 2%) scale(1); } to { transform: translate(4%, -3%) scale(1.12); } }

  /* Lista de equipos en tarjeta de espectrometría */
  .cap-list { margin: 0.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
  .cap-list li { position: relative; padding-left: 1rem; font-size: 0.8rem; line-height: 1.45; }
  .cap-list li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
  .cap-list b { color: #fff; font-weight: 600; }

  /* Clases / grados de norma en el catálogo */
  .alloy-classes { margin-top: 1rem; }
  .alloy-classes-label { font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 0.45rem; }
  .alloy-classes-items { display: flex; flex-wrap: wrap; gap: 0.35rem; }
  .alloy-classes-items span {
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    padding: 0.2rem 0.6rem;
    border-radius: 0.4rem;
    color: var(--ember-soft);
    background: rgba(255,106,26,0.08);
    border: 1px solid rgba(255,106,26,0.25);
  }


  /* =====================================================================
     AJUSTE SEGÚN RESOLUCIÓN (alto de pantalla)
     Títulos, hero y márgenes escalan también con la altura visible,
     para que cada sección quepa mejor en 1080p, 900p y 768p.
     ===================================================================== */
  @media (min-width: 1024px) {
    section[id]:not(#hero) {
      padding-top: clamp(3.5rem, 10vh, 8rem);
      padding-bottom: clamp(3.5rem, 10vh, 8rem);
    }
    section[id]:not(#hero) h2.font-display {
      font-size: clamp(2.5rem, 6.6vh, 4.5rem);
      line-height: 0.95;
    }
    section[id]:not(#hero) .text-center.mb-16,
    section[id]:not(#hero) .mb-16 { margin-bottom: clamp(2rem, 5vh, 4rem); }
    #hero h1 { font-size: clamp(3.25rem, 10.5vh, 6rem); }
    #lingotes h2.font-display { font-size: clamp(2.75rem, 7.5vh, 4.5rem); }
    .stat-number { font-size: clamp(3rem, 8vh, 6rem); }
  }
  @media (min-width: 1024px) and (max-height: 820px) {
    .cap-card { padding: 1.5rem; }
    .benefit { padding: 1.1rem; }
    .alloy-tab { padding: 0.5rem 0.85rem; font-size: 0.8rem; }
    .navbar-fixed { padding-top: 0.9rem; padding-bottom: 0.9rem; }
  }

  /* ---- Aleaciones: ficha en dos columnas en escritorio ---- */
  #aleaciones .grid.md\:grid-cols-12.mb-12 { margin-bottom: clamp(1.5rem, 4vh, 3rem); }
  .alloy-title { font-size: clamp(1.75rem, 4.5vh, 2.25rem); }
  .alloy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 1.5rem 0 1.75rem; }
  @media (min-width: 1024px) {
    .alloy-layout {
      display: grid;
      grid-template-columns: minmax(280px, 4fr) 8fr;
      gap: 2.25rem;
      align-items: start;
    }
    .alloy-info { position: sticky; top: 96px; }
    .alloy-actions { flex-direction: column; align-items: flex-start; margin-bottom: 0; }
    .alloy-desc { font-size: 0.95rem; }
    .alloy-panel .grade-grid-1 { grid-template-columns: minmax(0, 420px); }
    .alloy-panel .grade-grid-2,
    .alloy-panel .grade-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .alloy-panel .grade-plate { padding: 0.8rem 1rem 0.7rem; }
    .alloy-panel .grade-plate-name { font-size: 1.3rem; }
    .alloy-panel .grade-plate-cert { margin-top: 0.45rem; }
    .alloy-panel .comp-table td { padding: 0.3rem 1rem; }
    .alloy-panel .comp-table th { padding: 0.4rem 1rem; }
    .alloy-panel .comp-table { font-size: 0.82rem; }
    .alloy-panel { min-height: 0; }
  }
  @media (min-width: 1536px) {
    .alloy-panel .grade-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }

  /* Pantallas anchas (≥1536px): aprovechar mejor el ancho */
  @media (min-width: 1536px) {
    section .max-w-7xl, footer .max-w-7xl { max-width: 88rem; }
    section .max-w-6xl { max-width: 80rem; }
  }

  /* Credenciales del hero (Codelco + capacidad) */
  .hero-proof {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.1rem 1.2rem;
    border-radius: 1.1rem;
    background: rgba(10,8,7,0.55);
    border: 1px solid rgba(255,255,255,0.10);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.7);
  }
  @media (min-width: 768px) { .hero-proof { width: 330px; } }
  .hero-proof-item { display: flex; align-items: center; gap: 0.85rem; }
  .hero-proof-icon {
    flex: none;
    width: 42px; height: 42px;
    border-radius: 0.75rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--ember);
    background: rgba(255,106,26,0.12);
    border: 1px solid rgba(255,106,26,0.3);
  }
  .hero-proof-key {
    font-family: 'Anton', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 0.06em;
    line-height: 1.1;
    color: var(--ember);
  }
  .hero-proof-text { font-size: 0.78rem; line-height: 1.4; color: rgba(255,255,255,0.7); }
  .hero-proof-sep { height: 1px; background: rgba(255,255,255,0.08); }
  .hero-proof-big {
    flex: none;
    width: 42px;
    text-align: center;
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    line-height: 1;
    color: #fff;
  }

  /* Nosotros: foto de la planta como detalle de fondo */
  .plant-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
  .plant-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 60% 55%;
    filter: grayscale(1) sepia(0.35) brightness(0.32) contrast(1.15);
    opacity: 0.55;
  }
  .plant-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
      linear-gradient(90deg, rgba(10,8,7,0.35) 0%, rgba(10,8,7,0.75) 55%, rgba(10,8,7,0.9) 100%),
      linear-gradient(180deg, var(--ink) 0%, transparent 18%, transparent 80%, var(--ink) 100%);
  }
  @media (max-width: 767px) { .plant-bg img { opacity: 0.4; } }

  /* =====================================================================
     VERSIÓN 2 — ritmo, contraste y jerarquía
     ===================================================================== */

  /* Contraste de textos pequeños (legibilidad en notebooks) */
  body .text-white\/40 { color: rgba(255,255,255,0.58); }
  body .text-white\/45 { color: rgba(255,255,255,0.6); }
  body .text-white\/50 { color: rgba(255,255,255,0.64); }
  body .text-white\/60 { color: rgba(255,255,255,0.72); }
  body .text-white\/65 { color: rgba(255,255,255,0.76); }
  .ribbon { color: #ffa064; }

  /* Secciones alternas con superficie más clara para romper la monotonía */
  .surface-alt { background: #15110e; }
  .surface-alt .heat-bg, .surface-alt .iron-tex { opacity: 0.5; }
  .surface-alt .cap-card { background: linear-gradient(180deg, #1d1814 0%, #16120f 100%); }

  /* Capacidades: título fijo a la izquierda, tarjetas a la derecha */
  .split-section { display: grid; gap: 2.5rem; }
  .split-head { margin-bottom: 0.5rem; }
  @media (min-width: 1024px) {
    .split-section { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
    .split-head { position: sticky; top: 120px; }
    .split-head h2.font-display { font-size: clamp(2.5rem, 6vh, 4rem) !important; }
  }

  /* Productos: índice tipográfico en vez de íconos genéricos */
  .prod-list {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
  }
  @media (min-width: 640px) { .prod-list { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
  @media (min-width: 1024px) { .prod-list { grid-template-columns: repeat(3, 1fr); } }
  .prod-item {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    padding: 1.15rem 0.25rem;
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease, padding 0.3s ease;
  }
  .prod-item:hover { background: linear-gradient(90deg, rgba(255,106,26,0.08), transparent); padding-left: 0.75rem; }
  .prod-num {
    font-family: 'Anton', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--ember);
    min-width: 1.8rem;
  }
  .prod-name {
    flex: 1;
    font-family: 'Anton', sans-serif;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.1;
  }
  .prod-arrow { color: rgba(255,255,255,0.25); transition: color 0.3s ease, transform 0.3s ease; align-self: center; }
  .prod-item:hover .prod-arrow { color: var(--ember); transform: translate(2px,-2px); }
  .prod-item-hi .prod-name { color: var(--ember-soft); }
  .prod-item-hi .prod-arrow { color: var(--ember); }

  /* Imágenes de sectores con el mismo tratamiento que el resto */
  .sector-card-bg img { filter: grayscale(1) sepia(0.35) brightness(0.55) contrast(1.15); }

  /* Capacidades: tarjetas de igual alto, etiqueta al pie */
  #capacidades .grid { align-items: stretch; }
  #capacidades .cap-card { display: flex; flex-direction: column; height: 100%; }
  #capacidades .cap-card > .text-xs:last-child { margin-top: auto; }
  .cap-more { margin: -0.25rem 0 1rem; }
  .cap-more summary {
    list-style: none;
    display: inline-flex; align-items: center; gap: 0.35rem;
    cursor: pointer;
    font-size: 0.8rem; font-weight: 600;
    color: #fff;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: border-color 0.3s ease, background 0.3s ease;
  }
  .cap-more summary::-webkit-details-marker { display: none; }
  .cap-more summary:hover { border-color: rgba(255,106,26,0.5); background: rgba(255,106,26,0.08); }
  .cap-more summary svg { transition: transform 0.3s ease; }
  .cap-more[open] summary svg { transform: rotate(180deg); }
  .cap-more .cap-more-close, .cap-more[open] .cap-more-open { display: none; }
  .cap-more[open] .cap-more-close { display: inline; }
  .cap-more[open] > div { animation: panelIn 0.35s ease; }
  .cap-more .cap-list { margin-top: 0.85rem; }

  /* Contacto: mapa con filtro oscuro */
  .map-card {
    position: relative;
    margin-top: 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--line);
    height: 230px;
    background: var(--ink-card);
  }
  .map-card iframe {
    width: 100%; height: 100%; border: 0; display: block;
    filter: invert(0.92) hue-rotate(180deg) grayscale(0.4) sepia(0.25) brightness(0.85) contrast(0.95);
  }
  .map-link {
    position: absolute; right: 0.75rem; bottom: 0.75rem;
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 600; color: #fff;
    background: linear-gradient(180deg, var(--ember) 0%, var(--ember-deep) 100%);
    box-shadow: 0 8px 20px -8px rgba(255,106,26,0.7);
  }
  /* Teléfonos de contacto con tamaño uniforme */
  #contacto a[href^="tel:"].font-display { font-size: clamp(1.4rem, 2.2vw, 1.9rem) !important; color: #fff !important; }

  /* =====================================================================
     Capacidades — acordeón técnico + video
     ===================================================================== */
  .cap-media {
    position: relative;
    margin: 2rem 0 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(255,106,26,0.25);
    background: #120502;
  }
  .cap-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; display: block; filter: saturate(1.05) brightness(0.9); transform: scale(1.06); transition: transform 8s ease-out; }
  .cap-media.visible img, .reveal.visible .cap-media img { transform: scale(1); }
  .cap-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10,8,7,0.85) 100%);
    pointer-events: none;
  }
  .cap-media figcaption {
    position: absolute; left: 1rem; bottom: 0.9rem; z-index: 1;
    display: inline-flex; align-items: center; gap: 0.55rem;
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  }
  /* esquinas: marcas tipo visor */
  .cap-media::before {
    content: '';
    position: absolute; inset: 10px; z-index: 1; pointer-events: none;
    background:
      linear-gradient(var(--ember),var(--ember)) top left / 18px 2px no-repeat,
      linear-gradient(var(--ember),var(--ember)) top left / 2px 18px no-repeat,
      linear-gradient(var(--ember),var(--ember)) top right / 18px 2px no-repeat,
      linear-gradient(var(--ember),var(--ember)) top right / 2px 18px no-repeat;
  }
  @media (max-width: 1023px) { .cap-media { aspect-ratio: 16 / 9; } }

  .cap-acc { border-top: 1px solid var(--line); }
  .cap-row { border-bottom: 1px solid var(--line); transition: background 0.4s ease; }
  .cap-row[open] { background: linear-gradient(90deg, rgba(255,106,26,0.07), transparent 70%); }
  .cap-row summary {
    list-style: none;
    display: grid;
    grid-template-columns: 2.2rem 2.75rem 1fr auto 2rem;
    align-items: center;
    gap: 0.9rem;
    padding: 1.35rem 0.5rem;
    cursor: pointer;
  }
  .cap-row summary::-webkit-details-marker { display: none; }
  .cap-row-num { font-family: 'Anton', sans-serif; color: var(--ember); letter-spacing: 0.08em; }
  .cap-row-icon {
    width: 2.75rem; height: 2.75rem;
    display: flex; align-items: center; justify-content: center;
    color: var(--ember);
    border: 1px solid rgba(255,106,26,0.25);
    background: rgba(255,106,26,0.06);
    transition: background 0.3s ease, color 0.3s ease;
  }
  .cap-row[open] .cap-row-icon { background: var(--ember); color: #fff; border-color: transparent; }
  .cap-row-title { font-family: 'Anton', sans-serif; font-size: clamp(1.35rem, 2.4vw, 1.9rem); letter-spacing: 0.03em; line-height: 1; }
  .cap-row-tag { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember-soft); font-weight: 600; white-space: nowrap; }
  .cap-row-toggle {
    width: 2rem; height: 2rem;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
  }
  .cap-row summary:hover .cap-row-toggle { border-color: var(--ember); color: var(--ember); }
  .cap-row-toggle svg { transition: transform 0.35s ease; }
  .cap-row[open] .cap-row-toggle { border-color: var(--ember); color: var(--ember); background: rgba(255,106,26,0.1); }
  .cap-row[open] .cap-row-toggle svg { transform: rotate(45deg); }
  .cap-row-body {
    padding: 0 0.5rem 1.6rem calc(2.2rem + 2.75rem + 1.8rem + 0.5rem);
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 1.65;
    max-width: 46rem;
    animation: panelIn 0.4s ease;
  }
  .cap-row-extra .cap-list { margin-top: 0.9rem; }
  .cap-row-extra .cap-list li { font-size: 0.875rem; }
  @media (max-width: 639px) {
    .cap-row summary { grid-template-columns: 1.8rem 1fr 2rem; gap: 0.75rem; padding: 1.1rem 0.25rem; }
    .cap-row-icon, .cap-row-tag { display: none; }
    .cap-row-body { padding: 0 0.25rem 1.3rem 2.55rem; }
  }

  /* =====================================================================
     Contacto — mapa a todo el ancho, esquinas rectas
     ===================================================================== */
  .map-band {
    position: relative;
    margin-top: clamp(3.5rem, 8vh, 6rem);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: clamp(300px, 42vh, 460px);
    border-top: 1px solid rgba(255,106,26,0.3);
    background: var(--ink-card);
  }
  .map-band iframe {
    width: 100%; height: 100%; border: 0; display: block;
    filter: invert(0.92) hue-rotate(180deg) grayscale(0.4) sepia(0.25) brightness(0.85) contrast(0.95);
  }
  .map-band::after {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(10,8,7,0.55) 0%, transparent 18%, transparent 85%, rgba(10,8,7,0.6) 100%);
  }
  .map-band-label {
    position: absolute; left: clamp(1rem, 3vw, 3rem); bottom: 1.25rem; z-index: 1;
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem; font-weight: 600;
    background: rgba(10,8,7,0.8);
    border: 1px solid rgba(255,255,255,0.12);
  }
  .map-band-label i, .map-band-label svg { color: var(--ember); }
  .map-band .map-link { right: clamp(1rem, 3vw, 3rem); bottom: 1.25rem; z-index: 1; border-radius: 0; padding: 0.6rem 1.1rem; }
  @media (max-width: 639px) { .map-band-label { display: none; } }

  /* Mapa pegado al footer */
  section#contacto { padding-bottom: 0 !important; }
  #contacto .map-band { margin-bottom: 0; }
  #contacto + footer, #contacto ~ footer { border-top: 1px solid rgba(255,106,26,0.3); }

  /* =====================================================================
     PROCESO anclado: la sección queda fija y solo avanza la línea
     ===================================================================== */
  #proceso.pinned {
    height: calc(100vh + 6 * 70vh);
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: clip;
  }
  #proceso.pinned .proc-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px; /* alto del menú */
  }
  #proceso.pinned .proc-sticky > div { width: 100%; }
  #proceso.pinned .text-center.mb-16 { margin-bottom: clamp(1.25rem, 3.5vh, 2.5rem) !important; }
  #proceso.pinned h2.font-display { font-size: clamp(2.25rem, 6vh, 4rem) !important; margin-bottom: 0.75rem; }
  #proceso.pinned .text-center.mb-16 p { font-size: 1rem; }
  #proceso.pinned .text-center.mb-16 .ribbon { margin-bottom: 0.9rem; }

  /* Etapas compactas: solo la activa muestra su descripción */
  #proceso.pinned .timeline-step { padding-bottom: clamp(0.9rem, 2.2vh, 1.4rem); transition: opacity 0.4s ease; }
  #proceso.pinned .timeline-step.reveal { opacity: 0.4; filter: none; transform: none; }
  #proceso.pinned .timeline-step.done { opacity: 0.7; }
  #proceso.pinned .timeline-step.current { opacity: 1; }
  #proceso.pinned .timeline-step h3 { margin-bottom: 0 !important; font-size: clamp(1.25rem, 3vh, 1.75rem) !important; transition: color 0.3s ease; }
  #proceso.pinned .timeline-step > div:first-child { margin-bottom: 0.2rem !important; }
  #proceso.pinned .timeline-step p {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.4s ease;
  }
  #proceso.pinned .timeline-step.current p { max-height: 8rem; opacity: 1; margin-top: 0.6rem; }
  #proceso.pinned .proc-progress-fill { height: var(--proc-progress, 0px); transition: height 0.12s linear; }

  /* overflow-x:hidden en body rompía el "sticky"; clip evita el scroll lateral sin crear contenedor de scroll */
  html, body { overflow-x: clip; }
  #proceso.pinned { overflow: visible; clip-path: inset(0); }

  /* Pantallas bajas: compactar el encabezado para que el modo anclado quepa */
  @media (max-height: 800px) {
    #proceso.pinned .text-center.mb-16 .ribbon,
    #proceso.pinned .text-center.mb-16 p { display: none; }
    #proceso.pinned h2.font-display { font-size: clamp(1.9rem, 5.5vh, 2.75rem) !important; margin-bottom: 0; }
    #proceso.pinned .timeline-step { padding-bottom: 0.55rem; }
    #proceso.pinned .timeline-step h3 { font-size: 1.15rem !important; }
    #proceso.pinned .timeline-step > div:first-child { font-size: 0.6rem; margin-bottom: 0 !important; }
    #proceso.pinned .timeline-step.current p { margin-top: 0.35rem; font-size: 0.9rem; }
    #proceso.pinned .timeline-step::after { width: 1.15rem; height: 1.15rem; }
  }

  /* =====================================================================
     HERO — legibilidad en celular
     ===================================================================== */
  /* Safari iOS puede dejar el texto rasterizado borroso tras animar filter:blur.
     En pantallas táctiles/chicas la entrada usa solo opacidad + desplazamiento. */
  @keyframes fadeUpNoBlur {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
  }
  @media (max-width: 1023px), (hover: none) {
    .animate-blur-fade-up { animation-name: fadeUpNoBlur; filter: none !important; }
    .reveal { filter: none !important; }
  }
  .animate-blur-fade-up { will-change: auto; }

  /* Velo oscuro detrás del texto del hero */
  #hero .hero-shade {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(10,8,7,0.7) 0%, rgba(10,8,7,0.35) 55%, rgba(10,8,7,0) 100%),
      linear-gradient(0deg, rgba(10,8,7,0.65) 0%, rgba(10,8,7,0) 60%);
  }
  #hero h1, #hero p, #hero .text-white\/85 span { text-shadow: 0 2px 18px rgba(0,0,0,0.55); }
  @media (max-width: 767px) {
    #hero .hero-shade {
      background:
        linear-gradient(180deg, rgba(10,8,7,0.55) 0%, rgba(10,8,7,0.72) 35%, rgba(10,8,7,0.8) 70%, rgba(10,8,7,0.9) 100%);
    }
    #hero .bottom-blur { display: none; }
    #hero p { color: rgba(255,255,255,0.92); }
  }

  /* Formulario: campo trampa anti-spam (oculto para personas) */
  .hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
  #contactForm { position: relative; }
  #contactForm button[disabled] { opacity: 0.7; cursor: wait; }

  /* =====================================================================
     ESPECTROMETRÍA EN TERRENO
     ===================================================================== */
  .terreno-bg {
    background:
      radial-gradient(ellipse 55% 45% at 15% 20%, rgba(255,106,26,0.16) 0%, transparent 65%),
      radial-gradient(ellipse 50% 40% at 90% 80%, rgba(90,140,200,0.10) 0%, transparent 65%),
      linear-gradient(180deg, #0c0a09 0%, var(--ink) 100%);
  }
  .ingot-btn-alt { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.22); box-shadow: none; }
  .ingot-btn-alt:hover { border-color: var(--ember); background: rgba(255,106,26,0.12); }
  .hero-chip-2 .hero-chip-new { background: #fff; color: #0A0807; }
  .terreno-stats { margin-top: 0; }

  /* Tarjeta de equipo */
  .eq-card {
    display: grid;
    grid-template-columns: 1fr;
    background: linear-gradient(180deg, var(--ink-card) 0%, #0F0C09 100%);
    border: 1px solid var(--line);
    overflow: hidden;
    transition: border-color 0.4s ease;
  }
  .eq-card:hover { border-color: rgba(255,106,26,0.35); }
  @media (min-width: 640px) and (max-width: 1023px), (min-width: 1280px) {
    .eq-card { grid-template-columns: 5fr 7fr; }
  }
  .eq-media { position: relative; background: #0b0908; min-height: 320px; }
  .eq-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease; }
  .eq-media::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(10,8,7,0.15) 0%, transparent 35%, rgba(10,8,7,0.75) 100%);
  }
  .eq-badge {
    position: absolute; top: 0.9rem; left: 0.9rem; z-index: 1;
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    font-family: 'Anton', sans-serif; letter-spacing: 0.12em; font-size: 0.8rem;
    background: var(--ember); color: #fff;
  }
  .eq-thumbs { position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.9rem; z-index: 1; display: flex; gap: 0.5rem; }
  .eq-thumb {
    width: 52px; height: 52px; padding: 0; overflow: hidden; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.25); background: #000; opacity: 0.65;
    transition: opacity 0.25s ease, border-color 0.25s ease;
  }
  .eq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .eq-thumb:hover, .eq-thumb.active { opacity: 1; border-color: var(--ember); }
  .eq-body { padding: 1.6rem 1.5rem 1.75rem; }
  .eq-kicker { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ember-soft); font-weight: 600; margin-bottom: 0.5rem; }
  .eq-name { font-family: 'Anton', sans-serif; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: 0.02em; line-height: 1.05; margin: 0; }
  .eq-type { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 0.35rem; }
  .eq-desc { font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 0.9rem 0 1.1rem; }
  .eq-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
  .eq-kpis > div { padding: 0.75rem 0.25rem; }
  .eq-kpis > div + div { border-left: 1px solid var(--line); padding-left: 0.75rem; }
  .eq-kpis b { display: block; font-family: 'Anton', sans-serif; font-weight: 400; font-size: 1.35rem; color: var(--ember); line-height: 1; }
  .eq-kpis span { display: block; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 0.3rem; }
  .eq-more summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
    color: rgba(255,255,255,0.7); padding: 0.35rem 0;
  }
  .eq-more summary::-webkit-details-marker { display: none; }
  .eq-more summary svg { transition: transform 0.3s ease; }
  .eq-more[open] summary svg { transform: rotate(180deg); }
  .eq-specs { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin: 0.4rem 0 1rem; }
  .eq-specs th { text-align: left; font-weight: 500; color: rgba(255,255,255,0.6); padding: 0.4rem 0.75rem 0.4rem 0; width: 38%; vertical-align: top; }
  .eq-specs td { padding: 0.4rem 0; color: #fff; }
  .eq-specs tr + tr th, .eq-specs tr + tr td { border-top: 1px solid rgba(255,255,255,0.06); }
  .eq-apps-title { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.7); margin-bottom: 0.55rem; }
  .eq-apps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
  .eq-apps li { position: relative; padding-left: 1.1rem; font-size: 0.86rem; color: rgba(255,255,255,0.82); line-height: 1.45; }
  .eq-apps li::before { content: ''; position: absolute; left: 0; top: 0.5em; width: 7px; height: 7px; background: var(--ember); }
  @media (max-width: 639px) { .eq-media { min-height: 0; aspect-ratio: 4 / 4.2; } }

  /* Incluye */
  .terreno-incl {
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
    padding: 1.15rem 1.4rem; margin-bottom: 1.5rem;
    background: linear-gradient(90deg, rgba(255,106,26,0.14) 0%, rgba(255,106,26,0.03) 100%);
    border: 1px solid rgba(255,106,26,0.25);
  }
  .terreno-incl-title { display: inline-flex; align-items: center; gap: 0.5rem; font-family: 'Anton', sans-serif; font-size: 1.15rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ember); }
  .terreno-incl-items { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
  .terreno-incl-items > div { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; font-weight: 500; }
  .terreno-incl-items svg { color: var(--ember-soft); flex: none; }

  /* Laboratorio en planta (equipo propio) */
  .lab-card {
    display: grid; grid-template-columns: 1fr; gap: 0;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
  }
  @media (min-width: 768px) { .lab-card { grid-template-columns: 5fr 7fr; } }
  .lab-media { display: grid; grid-template-columns: 1fr 1fr; min-height: 220px; }
  .lab-media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.85) brightness(0.9); }
  .lab-body { padding: 1.5rem; display: flex; flex-direction: column; justify-content: center; }
  .lab-feats { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .lab-feats span { font-size: 0.75rem; padding: 0.3rem 0.65rem; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); }

  /* Menú compacto entre 1280 y 1535 px (dos botones destacados) */
  @media (min-width: 1280px) and (max-width: 1535px) {
    #navbar > div.xl\:flex { gap: 1.15rem !important; margin: 0 1rem; }
    #navbar > div.xl\:flex a { font-size: 0.8rem; }
    #navbar .ingot-btn { padding: 0.45rem 0.8rem; font-size: 0.8rem; }
    #navbar .brand-mark { font-size: 1.3rem; }
  }

  /* Terreno: evitar desbordes en celular */
  #terreno .grid > * { min-width: 0; }
  @media (max-width: 639px) {
    .terreno-stats .ingot-spec-value { font-size: 1.45rem; }
    .terreno-stats .ingot-spec-label { font-size: 0.58rem; letter-spacing: 0.1em; }
    .terreno-stats > div { padding: 0.85rem 0.6rem; }
    .eq-kpis b { font-size: 1.15rem; }
  }
  /* .ingot-btn define display; respetar "hidden" en celular */
  @media (max-width: 639px) { .ingot-btn.hidden { display: none; } }

  /* =====================================================================
     TERRENO v2 — vitrina de equipos
     ===================================================================== */
  .terreno-grid {
    position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
    background:
      linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 56px 56px,
      linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 0%, transparent 80%);
  }
  .terreno-stats2 { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 2px solid var(--ember); }
  .terreno-stats2 > div { padding: 0.25rem 1rem; }
  .terreno-stats2 > div + div { border-left: 1px solid var(--line); }
  .terreno-stats2 b { display: block; font-family: 'Anton', sans-serif; font-weight: 400; font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1; color: #fff; }
  .terreno-stats2 > div:last-child b { color: var(--ember); }
  .terreno-stats2 span { display: block; margin-top: 0.45rem; font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.62); line-height: 1.35; }

  .showcase { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(24,20,15,0.92), rgba(12,10,9,0.92)); margin-bottom: clamp(3rem, 7vh, 5rem); }
  .sc-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
  .sc-tab {
    display: flex; align-items: center; gap: 0.9rem; text-align: left;
    padding: 1.1rem 1.4rem; cursor: pointer; color: rgba(255,255,255,0.55);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  }
  .sc-tab + .sc-tab { border-left: 1px solid var(--line); }
  .sc-tab:hover { color: #fff; background: rgba(255,255,255,0.02); }
  .sc-tab.active { color: #fff; border-bottom-color: var(--ember); background: linear-gradient(180deg, rgba(255,106,26,0.10), transparent); }
  .sc-tab-badge {
    flex: none; font-family: 'Anton', sans-serif; letter-spacing: 0.12em; font-size: 0.85rem;
    padding: 0.4rem 0.65rem; border: 1px solid rgba(255,255,255,0.2);
  }
  .sc-tab.active .sc-tab-badge { background: var(--ember); border-color: var(--ember); color: #fff; }
  .sc-tab-txt b { display: block; font-family: 'Anton', sans-serif; font-weight: 400; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: 0.03em; line-height: 1.05; }
  .sc-tab-txt small { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.25rem; opacity: 0.8; }

  .sc-panel { display: none; grid-template-columns: 1fr; }
  .sc-panel.active { display: grid; animation: panelIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
  @media (min-width: 1024px) { .sc-panel.active { grid-template-columns: 6fr 6fr; } }
  .sc-media { padding: 1.25rem; }
  .sc-frame { position: relative; aspect-ratio: 4 / 4.3; overflow: hidden; background: #0b0908; }
  @media (min-width: 1024px) { .sc-frame { aspect-ratio: 4 / 4.1; } }
  .sc-frame .eq-main { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s ease; filter: saturate(0.82) contrast(1.08) brightness(0.88); }
  .sc-tint { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 80% 70% at 50% 40%, transparent 40%, rgba(10,8,7,0.65) 100%), linear-gradient(180deg, transparent 45%, rgba(10,8,7,0.9) 100%);
  }
  .sc-scan {
    position: absolute; left: 0; right: 0; height: 2px; top: 10%; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255,138,61,0.95) 30%, #fff 50%, rgba(255,138,61,0.95) 70%, transparent);
    box-shadow: 0 0 22px 4px rgba(255,106,26,0.45);
    animation: scScan 4.2s ease-in-out infinite alternate;
  }
  @keyframes scScan { from { top: 8%; } to { top: 62%; } }
  .sc-corner { position: absolute; width: 22px; height: 22px; border-color: var(--ember); border-style: solid; border-width: 0; pointer-events: none; }
  .sc-corner.tl { top: 12px; left: 12px; border-top-width: 2px; border-left-width: 2px; }
  .sc-corner.tr { top: 12px; right: 12px; border-top-width: 2px; border-right-width: 2px; }
  .sc-corner.bl { bottom: 12px; left: 12px; border-bottom-width: 2px; border-left-width: 2px; }
  .sc-corner.br { bottom: 12px; right: 12px; border-bottom-width: 2px; border-right-width: 2px; }
  .sc-readout {
    position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem;
    padding: 0.75rem 0.9rem 0.7rem;
    background: rgba(10,8,7,0.72); border: 1px solid rgba(255,255,255,0.1);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .sc-readout-head { display: flex; align-items: center; gap: 0.45rem; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.75); font-weight: 600; }
  .sc-live { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; animation: emberPulse 1.8s ease-out infinite; }
  .sc-spectrum { width: 100%; height: 46px; margin: 0.45rem 0 0.4rem; display: block; }
  .sc-spectrum polyline { fill: none; stroke: var(--ember); stroke-width: 1.6; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(255,106,26,0.7));
    stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: scDraw 2.4s ease-out forwards; }
  .sc-panel.active .sc-spectrum polyline { animation: scDraw 2.4s ease-out forwards; }
  @keyframes scDraw { to { stroke-dashoffset: 0; } }
  .sc-els { display: flex; flex-wrap: wrap; gap: 0.3rem; }
  .sc-els span { font-family: 'Anton', sans-serif; font-size: 0.78rem; letter-spacing: 0.06em; padding: 0.1rem 0.45rem; border: 1px solid rgba(255,138,61,0.35); color: var(--ember-soft); }
  .sc-thumbs { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
  .sc-thumbs .eq-thumb { width: 64px; height: 64px; }

  .sc-info { padding: 1.6rem 1.5rem 1.8rem; display: flex; flex-direction: column; }
  @media (min-width: 1024px) { .sc-info { padding: 2.25rem 2.25rem 2.25rem 1rem; } }
  .sc-name { font-family: 'Anton', sans-serif; font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: 0.01em; line-height: 1; margin: 0; }
  .sc-desc { font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,0.8); margin: 1rem 0 1.4rem; max-width: 34rem; }
  .sc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.5rem; }
  .sc-kpis > div { padding: 0.9rem 0.85rem; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-top: 2px solid var(--ember); }
  .sc-kpis b { display: block; font-family: 'Anton', sans-serif; font-weight: 400; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1; }
  .sc-kpis span { display: block; margin-top: 0.4rem; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
  .sc-apps { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
  .sc-apps li { font-size: 0.82rem; padding: 0.45rem 0.75rem; border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.88); background: rgba(255,255,255,0.02); }
  .sc-sheet { margin-top: auto; border-top: 1px solid var(--line); padding-top: 0.9rem; }
  .sc-sheet summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--ember-soft); }
  .sc-sheet summary::-webkit-details-marker { display: none; }
  .sc-sheet summary:hover { color: var(--ember); }
  .sc-sheet .c, .sc-sheet[open] .o { display: none; }
  .sc-sheet[open] .c { display: inline; }
  .sc-sheet .chev { transition: transform 0.3s ease; }
  .sc-sheet[open] .chev { transform: rotate(180deg); }
  .sc-sheet[open] .eq-specs { animation: panelIn 0.35s ease; }
  @media (max-width: 639px) {
    .sc-tab { padding: 0.9rem 0.8rem; gap: 0.55rem; }
    .sc-tab-badge { font-size: 0.7rem; padding: 0.3rem 0.45rem; }
    .sc-tab-txt small { display: none; }
    .sc-media { padding: 0.9rem; }
    .sc-kpis > div { padding: 0.75rem 0.6rem; }
    .terreno-stats2 > div { padding: 0.25rem 0.65rem; }
  }

  /* Cómo funciona */
  .how { margin-bottom: clamp(3rem, 7vh, 5rem); }
  .how-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.75rem; }
  .how-head h3 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); margin: 0; letter-spacing: 0.01em; }
  .how-head p { color: rgba(255,255,255,0.7); margin: 0; }
  .how-steps { position: relative; display: grid; grid-template-columns: 1fr; gap: 1rem; }
  @media (min-width: 768px) { .how-steps { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1024px) {
    .how-steps { grid-template-columns: repeat(4, 1fr); gap: 0; }
    .how-steps::before { content: ''; position: absolute; left: 2.6rem; right: 2.6rem; top: 2.15rem; height: 1px; background: linear-gradient(90deg, var(--ember), rgba(255,106,26,0.15)); }
  }
  .how-step { position: relative; padding: 1.1rem 1.4rem 1.3rem; }
  @media (max-width: 1023px) { .how-step { border: 1px solid var(--line); background: rgba(255,255,255,0.02); } }
  .how-num { position: absolute; top: 0.9rem; right: 1.1rem; font-family: 'Anton', sans-serif; font-size: 2.6rem; line-height: 1; color: rgba(255,255,255,0.06); }
  .how-icon {
    position: relative; z-index: 1; width: 2.6rem; height: 2.6rem; margin-bottom: 1rem;
    display: flex; align-items: center; justify-content: center;
    background: #120e0b; border: 1px solid var(--ember); color: var(--ember);
    box-shadow: 0 0 0 6px #0c0a09;
  }
  .how-step:first-child .how-icon { background: var(--ember); color: #fff; }
  .how-step h4 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 1.3rem; letter-spacing: 0.03em; margin: 0 0 0.4rem; text-transform: uppercase; }
  .how-step p { font-size: 0.88rem; line-height: 1.55; color: rgba(255,255,255,0.7); margin: 0; }
  .how-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
  .how-incl { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
  .how-incl svg { color: var(--ember-soft); }

  /* Laboratorio en planta — franja compacta */
  .lab-strip { display: grid; grid-template-columns: 1fr; align-items: center; border: 1px solid var(--line); background: rgba(255,255,255,0.015); }
  @media (min-width: 900px) { .lab-strip { grid-template-columns: 220px 1fr auto; } }
  .lab-strip-img { height: 100%; min-height: 160px; }
  .lab-strip-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.75) brightness(0.85); }
  .lab-strip-body { padding: 1.3rem 1.5rem; }
  .lab-strip-name { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 1.45rem; letter-spacing: 0.02em; margin: 0 0 0.45rem; }
  .lab-strip-name span { display: block; font-family: 'Inter', sans-serif; font-size: 0.8rem; letter-spacing: 0; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }
  .lab-strip-body p { font-size: 0.88rem; line-height: 1.55; color: rgba(255,255,255,0.72); margin: 0; max-width: 46rem; }
  .lab-strip .lab-feats { padding: 0 1.5rem 1.3rem; flex-direction: column; align-items: flex-start; }
  @media (min-width: 900px) { .lab-strip .lab-feats { padding: 1.3rem 1.5rem 1.3rem 0; } }
  .sc-incl { margin-bottom: 1.4rem; }
  .sc-incl ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0.55rem 1.25rem; }
  @media (min-width: 640px) { .sc-incl ul { grid-template-columns: 1fr 1fr; } }
  .sc-incl li { display: flex; align-items: center; gap: 0.55rem; font-size: 0.86rem; color: rgba(255,255,255,0.85); }
  .sc-incl svg { flex: none; color: var(--ember); }
  @media (max-width: 639px) {
    .terreno-stats2 b { font-size: 1.35rem; white-space: nowrap; }
    .terreno-stats2 span { font-size: 0.56rem; letter-spacing: 0.08em; }
    .terreno-stats2 > div { padding: 0.2rem 0.55rem; min-width: 0; }
    .lab-strip-img { height: 190px; min-height: 0; }
    .sc-readout { left: 0.7rem; right: 0.7rem; bottom: 0.7rem; padding: 0.55rem 0.65rem; }
    .sc-spectrum { height: 34px; }
    .sc-els span:nth-child(n+7) { display: none; }
  }

  /* =====================================================================
     TERRENO v3 — minimalista: 3 tarjetas + fichas emergentes
     ===================================================================== */
  section#terreno { padding-top: clamp(3.5rem, 9vh, 6.5rem) !important; padding-bottom: clamp(3.5rem, 9vh, 6.5rem) !important; }
  .tr-head { display: grid; gap: 1rem 3rem; align-items: end; margin-bottom: clamp(1.5rem, 4vh, 2.5rem); }
  @media (min-width: 1024px) { .tr-head { grid-template-columns: auto 1fr; } }
  .tr-title { font-size: clamp(2.4rem, 6.2vh, 4rem) !important; line-height: 0.95; margin: 0; }
  .tr-lead { margin: 0; font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.75); max-width: 36rem; justify-self: end; }
  @media (max-width: 1023px) { .tr-lead { justify-self: start; } }

  .mc-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
  @media (min-width: 640px) { .mc-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1024px) { .mc-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
  .mc { display: flex; flex-direction: column; border: 1px solid var(--line); background: linear-gradient(180deg, var(--ink-card) 0%, #0F0C09 100%); transition: border-color 0.35s ease, transform 0.35s ease; }
  .mc:hover { border-color: rgba(255,106,26,0.4); transform: translateY(-3px); }
  .mc-media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; padding: 0; border: 0; cursor: pointer; background: #0b0908; }
  @media (min-width: 1024px) { .mc-media { aspect-ratio: auto; height: clamp(160px, 26vh, 250px); } }
  .mc-media img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.82) contrast(1.06) brightness(0.86); transition: transform 0.8s cubic-bezier(0.16,1,0.3,1); }
  .mc:hover .mc-media img { transform: scale(1.05); }
  .mc-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,8,7,0.85) 100%); pointer-events: none; }
  .mc-badge { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1; font-family: 'Anton', sans-serif; letter-spacing: 0.12em; font-size: 0.78rem; padding: 0.3rem 0.6rem; background: var(--ember); color: #fff; }
  .mc-tag { position: absolute; left: 0.75rem; bottom: 0.7rem; z-index: 1; display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: #fff; }
  .mc-tag svg { color: var(--ember); }
  .mc-tag-lab svg { color: #7fb4ff; }
  .mc-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
  .mc-name { font-family: 'Anton', sans-serif; font-weight: 400; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: 0.02em; line-height: 1.1; margin: 0; }
  .mc-type { font-size: 0.78rem; color: rgba(255,255,255,0.62); margin-top: 0.25rem; }
  .mc-kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0.9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .mc-kpis > div { padding: 0.6rem 0.2rem; min-width: 0; }
  .mc-kpis > div + div { border-left: 1px solid var(--line); padding-left: 0.6rem; }
  .mc-kpis b { display: block; font-family: 'Anton', sans-serif; font-weight: 400; font-size: 1.15rem; line-height: 1; color: var(--ember); white-space: nowrap; }
  .mc-kpis span { display: block; margin-top: 0.3rem; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
  .mc-open { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.82rem; font-weight: 600; color: #fff; padding: 0.5rem 0.9rem; border: 1px solid rgba(255,255,255,0.18); background: transparent; cursor: pointer; transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease; }
  .mc-open:hover { border-color: var(--ember); background: rgba(255,106,26,0.1); color: var(--ember-soft); }

  /* Cómo funciona — franja */
  .how-strip { display: grid; grid-template-columns: 1fr; gap: 1rem 1.5rem; align-items: center; padding: 1rem 1.25rem; border: 1px solid rgba(255,106,26,0.25); background: linear-gradient(90deg, rgba(255,106,26,0.1), rgba(255,106,26,0.02)); }
  @media (min-width: 1024px) { .how-strip { grid-template-columns: auto 1fr auto; } }
  .hs-title { display: inline-flex; align-items: center; gap: 0.45rem; font-family: 'Anton', sans-serif; font-size: 1.1rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ember); white-space: nowrap; }
  .hs-steps { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
  @media (min-width: 640px) { .hs-steps { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 1280px) { .hs-steps { grid-template-columns: repeat(4, 1fr); } }
  .hs { display: flex; gap: 0.6rem; align-items: flex-start; }
  .hs-n { font-family: 'Anton', sans-serif; font-size: 0.85rem; color: var(--ember); padding-top: 0.05rem; }
  .hs b { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; }
  .hs span:not(.hs-n) { display: block; font-size: 0.74rem; line-height: 1.4; color: rgba(255,255,255,0.65); margin-top: 0.1rem; }
  @media (min-width: 1280px) and (max-height: 900px) { .hs span:not(.hs-n) { display: none; } }

  /* Ficha emergente */
  .eq-dialog { padding: 0; border: 1px solid rgba(255,106,26,0.3); background: #120f0c; color: #fff; width: min(980px, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); overflow: auto; }
  .eq-dialog::backdrop { background: rgba(5,4,3,0.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .eq-dialog[open] { animation: panelIn 0.35s cubic-bezier(0.16,1,0.3,1); }
  html.dlg-lock { overflow: hidden; }
  .dlg-inner { position: relative; display: grid; grid-template-columns: 1fr; }
  @media (min-width: 820px) { .dlg-inner { grid-template-columns: 5fr 6fr; } }
  .dlg-close { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 3; width: 2.4rem; height: 2.4rem; display: flex; align-items: center; justify-content: center; background: rgba(10,8,7,0.8); border: 1px solid rgba(255,255,255,0.18); color: #fff; cursor: pointer; }
  .dlg-close:hover { border-color: var(--ember); color: var(--ember); }
  .dlg-media { padding: 1rem; }
  .dlg-frame { position: relative; aspect-ratio: 4 / 4.4; overflow: hidden; background: #0b0908; }
  @media (max-width: 819px) { .dlg-frame { aspect-ratio: 16 / 11; } }
  .dlg-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.25s ease; filter: saturate(0.85) contrast(1.05); }
  .dlg-body { padding: 1.5rem 1.5rem 1.75rem 0.75rem; }
  @media (max-width: 819px) { .dlg-body { padding: 0.25rem 1.25rem 1.5rem; } }
  .dlg-name { font-family: 'Anton', sans-serif; font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; margin: 0; padding-right: 2.5rem; }
  .dlg-desc { font-size: 0.92rem; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 0.8rem 0 1.1rem; }
  .dlg-body .eq-specs { margin-bottom: 1.1rem; }
  .dlg-incl { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-top: 1rem; font-size: 0.8rem; color: rgba(255,255,255,0.7); }
  .dlg-incl svg { color: var(--ember); }
  @media (min-width: 1024px) and (max-height: 800px) {
    section#terreno { padding-top: 5rem !important; padding-bottom: 2rem !important; }
    #terreno .tr-head { margin-bottom: 1rem; }
    #terreno .tr-head .ribbon, #terreno .tr-head .event-tag { padding-top: 0.25rem; padding-bottom: 0.25rem; }
    #terreno .tr-head .mb-4 { margin-bottom: 0.6rem; }
    .tr-title { font-size: 2.3rem !important; }
    .mc-media { height: 140px; }
    .mc-body { padding: 0.75rem 1rem 0.85rem; }
    .mc-kpis { margin: 0.6rem 0; }
    .mc-kpis > div { padding: 0.45rem 0.2rem; }
    .mc-open { padding: 0.4rem 0.8rem; }
    .how-strip { padding: 0.7rem 1rem; }
    .hs span:not(.hs-n) { display: none; }
  }
  .mc-kpis span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Miniaturas de equipos: equipo completo y centrado sobre su propia foto desenfocada */
  .mc-media img.mc-bg { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(18px) brightness(0.45) saturate(0.8); transform: none !important; }
  .mc-media img.mc-fg { position: relative; z-index: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; filter: saturate(0.9) contrast(1.05); }
  .mc:hover .mc-media img.mc-fg { transform: scale(1.04); }
  .mc-media::after { z-index: 0; }

  /* Ficha emergente: botón cerrar siempre visible (fijo al hacer scroll) y más fácil de tocar */
  .dlg-inner > .dlg-close {
    position: sticky; top: 0.75rem;
    grid-column: 1 / -1; justify-self: end;
    margin: 0.75rem 0.75rem -3.5rem 0;
    width: 2.9rem; height: 2.9rem;
    background: rgba(10,8,7,0.92);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  }
  @media (max-width: 819px) {
    .eq-dialog { margin-top: max(4.5rem, env(safe-area-inset-top)); max-height: calc(100dvh - 6rem); width: calc(100vw - 1.5rem); }
    .dlg-inner > .dlg-close { top: 0.6rem; margin: 0.6rem 0.6rem -3.5rem 0; width: 3rem; height: 3rem; }
  }
  .ts-wrap { display: flex; justify-content: center; min-height: 65px; }

  /* Formulario: lista desplegable legible (Windows/Chrome muestra la lista nativa en claro) */
  .form-input, select.form-input { color-scheme: dark; }
  select.form-input option,
  select.form-input optgroup { background-color: #18140f; color: #fff; }
  select.form-input option:checked { background-color: var(--ember-deep); color: #fff; }

  /* Autocompletado del navegador: evitar el fondo celeste con texto ilegible */
  .form-input:-webkit-autofill,
  .form-input:-webkit-autofill:hover,
  .form-input:-webkit-autofill:focus,
  .form-textarea:-webkit-autofill {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #221b15 inset;
    box-shadow: 0 0 0 1000px #221b15 inset;
    border-color: rgba(255,106,26,0.35);
    transition: background-color 9999s ease-out 0s;
  }
