/* ============================================================
   MR Industrial Alloys — Estilos principales
   Archivo: css/index.css
   Para cambiar colores edita los valores en :root {}
   ============================================================ */

:root {
      --forest:   #1A4229;
      --canopy:   #2D6A4F;
      --leaf:     #52B788;
      --lime:     #95D5B2;
      --mist:     #D8F3DC;
      --cream:    #F5F8F2;
      --earth:    #B5651D;
      --earth-lt: #E8A96A;
      --ink:      #1A2E1A;
      --stone:    #4A5E4A;
      --pebble:   #8FA88F;
      --white:    #FFFFFF;
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--ink); line-height: 1.65; overflow-x: hidden; }
    .display { font-family: 'Playfair Display', Georgia, serif; font-weight: 800; line-height: 1.05; }
    .eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--canopy); }
    h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(1.9rem, 3.5vw, 2.8rem); color: var(--forest); line-height: 1.15; }
    h3 { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--forest); margin-bottom: 0.4rem; }
    p { font-size: 0.95rem; color: var(--stone); }
    nav { position: sticky; top: 0; z-index: 200; background: var(--forest); display: flex; align-items: center; justify-content: space-between; padding: 0 5%; height: 90px; }

    .nav-logo-text { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; line-height: 1; }
    .logo-mark { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 2rem; color: var(--leaf); letter-spacing: -0.03em; }
    .logo-name { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.82rem; color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 0.08em; line-height: 1.3; display: flex; flex-direction: column; }
    .logo-name em { color: var(--leaf); font-style: normal; font-weight: 400; letter-spacing: 0.12em; }
    .nav-logo-img { height: 400px; width: auto; object-fit: contain; max-width: 400px; display: block; }
    .footer-logo-img { height: 400px; width: auto; object-fit: contain; max-width: 400px; display: block; filter: brightness(0) invert(1) ;margin-bottom: -60px; }
    .nav-links { display: flex; gap: 1.8rem; list-style: none; }
    .nav-links a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color .2s; }
    .nav-links a:hover { color: var(--leaf); }
    .nav-cta { background: var(--leaf); color: var(--forest); padding: 0.5rem 1.3rem; border-radius: 50px; font-weight: 600; font-size: 0.83rem; text-decoration: none; white-space: nowrap; transition: background .2s, transform .15s; }
    .nav-cta:hover { background: var(--lime); transform: translateY(-1px); }
    .hero { min-height: 90vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 6rem 5% 4rem; gap: 4rem; position: relative; background: linear-gradient(160deg, var(--cream) 55%, var(--mist) 100%); overflow: hidden; }
    .hero-wheel { position: absolute; right: -80px; top: 50%; transform: translateY(-50%); width: 600px; height: 600px; opacity: 0.07; animation: spin 60s linear infinite; }
    @keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
    @media (prefers-reduced-motion: reduce) { .hero-wheel { animation: none; } }
    .hero-content { position: relative; z-index: 1; }
    .hero-title { font-family: 'Playfair Display', serif; font-weight: 800; font-size: clamp(2.8rem, 5.5vw, 5rem); line-height: 1.0; color: var(--forest); margin: 0.8rem 0 1.4rem; }
    .hero-title .earth-word { color: var(--earth); font-style: italic; }
    .hero-title .green-word { color: var(--canopy); }
    .hero-desc { font-size: 1.05rem; color: var(--stone); max-width: 480px; margin-bottom: 2rem; line-height: 1.75; }
    .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
    .btn-primary { background: var(--canopy); color: var(--white); padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: background .2s, transform .15s; display: inline-block; }
    .btn-primary:hover { background: var(--forest); transform: translateY(-2px); }
    .btn-outline { border: 2px solid var(--canopy); color: var(--canopy); padding: 0.85rem 2rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all .2s; display: inline-block; }
    .btn-outline:hover { background: var(--canopy); color: var(--white); }
    .hero-creds { display: flex; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
    .cred-pill { display: flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 500; color: var(--stone); }
    .cred-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); flex-shrink: 0; }
    .hero-visual { position: relative; z-index: 1; }
    .circular-display { position: relative; width: 400px; height: 400px; margin: 0 auto; }
    .cd-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 130px; height: 130px; background: var(--forest); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 8px 32px rgba(26,66,41,0.25); }
    .cd-center-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf); margin-bottom: 2px; }
    .cd-center-text { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--white); line-height: 1.2; }
    .orbit-card { position: absolute; width: 110px; background: var(--white); border-radius: 16px; padding: 0.9rem; text-align: center; box-shadow: 0 4px 20px rgba(26,66,41,0.12); border: 1.5px solid var(--mist); transition: transform .2s, box-shadow .2s; }
    .orbit-card:hover { transform: scale(1.06); box-shadow: 0 8px 28px rgba(26,66,41,0.18); }
    .orbit-card.cu { top: 0; left: 50%; transform: translateX(-50%); }
    .orbit-card.br { top: 50%; right: 0; transform: translateY(-50%); }
    .orbit-card.fe { bottom: 0; left: 50%; transform: translateX(-50%); }
    .orbit-card.pb { top: 50%; left: 0; transform: translateY(-50%); }
    .orbit-icon { font-size: 1.6rem; margin-bottom: 0.3rem; }
    .orbit-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 0.88rem; color: var(--forest); }
    .orbit-sub { font-size: 0.65rem; color: var(--pebble); margin-top: 1px; }
    .orbit-tag { display: inline-block; margin-top: 0.4rem; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 50px; }
    .tag-buy { background: #E8F5ED; color: var(--canopy); }
    .tag-eors { background: #FEF0E3; color: var(--earth); }
    .orbit-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
    .wave { display: block; width: 100%; line-height: 0; }
    section { padding: 5rem 5%; }
    .section-mist { background: var(--mist); }
    .section-white { background: var(--white); }
    .section-header { margin-bottom: 3rem; }
    .section-header .eyebrow { display: block; margin-bottom: 0.7rem; }
    .section-header p { max-width: 580px; margin-top: 0.8rem; }
    .mat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
    .mat-card { background: var(--white); border-radius: 20px; padding: 1.8rem; border: 1.5px solid var(--mist); transition: transform .2s, box-shadow .2s, border-color .2s; }
    .mat-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(26,66,41,0.1); border-color: var(--leaf); }
    .mat-icon { font-size: 2rem; margin-bottom: 0.8rem; display: block; }
    .mat-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; color: var(--forest); margin-bottom: 0.4rem; }
    .mat-sub { font-size: 0.82rem; color: var(--pebble); margin-bottom: 0.8rem; }
    .mat-types { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; }
    .mat-types li { font-size: 0.82rem; color: var(--stone); display: flex; gap: 0.4rem; align-items: baseline; }
    .mat-types li::before { content: '·'; color: var(--leaf); font-size: 1.2rem; line-height: 0.9; }
    .mat-badge { display: inline-block; margin-top: 1rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.25rem 0.7rem; border-radius: 50px; }
    .badge-recycle { background: #E8F5ED; color: var(--canopy); }
    .badge-eors { background: #FEF0E3; color: var(--earth); }
    .services-split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .svc-group { background: var(--white); border-radius: 24px; padding: 2rem; border: 1.5px solid var(--mist); }
    .svc-group-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1.5px solid var(--mist); }
    .svc-group-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
    .svc-icon-green { background: #E8F5ED; }
    .svc-icon-earth { background: #FEF0E3; }
    .svc-group-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.05rem; color: var(--forest); }
    .svc-group-tag { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pebble); }
    .svc-list { display: flex; flex-direction: column; gap: 1rem; }
    .svc-item { display: flex; gap: 0.8rem; align-items: flex-start; }
    .svc-check { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
    .check-green { background: var(--leaf); color: var(--forest); }
    .check-earth { background: var(--earth-lt); color: var(--forest); }
    .svc-item h4 { font-size: 0.9rem; font-weight: 600; color: var(--forest); margin-bottom: 0.1rem; }
    .svc-item p { font-size: 0.82rem; color: var(--stone); }
    .cycle-section { background: var(--forest); color: var(--white); padding: 5rem 5%; }
    .cycle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
    .cycle-section h2 { color: var(--white); }
    .cycle-section .eyebrow { color: var(--leaf); }
    .cycle-section p { color: rgba(255,255,255,0.75); }
    .cycle-steps { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
    .cycle-step { display: flex; gap: 1.2rem; align-items: flex-start; }
    .cycle-num { min-width: 40px; height: 40px; border: 2px solid var(--leaf); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1rem; color: var(--leaf); flex-shrink: 0; }
    .cycle-step h4 { font-weight: 600; font-size: 0.95rem; color: var(--white); margin-bottom: 0.2rem; }
    .cycle-step p { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
    .cycle-tag-out { font-size: 0.72rem; font-weight: 600; color: var(--earth-lt); margin-top: 0.2rem; }
    .cycle-visual { display: flex; justify-content: center; align-items: center; }
    .cycle-svg-wrap { width: 360px; height: 360px; position: relative; }
    .cycle-inner-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
    .cycle-inner-num { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 3rem; color: var(--leaf); line-height: 1; }
    .cycle-inner-sub { font-size: 0.72rem; color: rgba(255,255,255,0.6); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.2rem; }
    .why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
    .why-card { background: var(--cream); border: 1.5px solid var(--mist); border-radius: 20px; padding: 1.8rem; transition: border-color .2s, transform .2s; }
    .why-card:hover { border-color: var(--leaf); transform: translateY(-4px); }
    .why-card-icon { font-size: 1.8rem; margin-bottom: 1rem; display: block; }
    .why-card h3 { font-size: 1rem; }
    .why-card p { font-size: 0.85rem; margin-top: 0.4rem; }
    .norm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
    .norm-list { display: flex; flex-direction: column; gap: 0.8rem; }
    .norm-item { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--white); border-radius: 12px; padding: 0.9rem 1.1rem; border: 1px solid var(--mist); }
    .norm-item::before { content: '→'; color: var(--leaf); font-weight: 700; flex-shrink: 0; }
    .norm-item p { font-size: 0.85rem; }
    .sectors-box { background: var(--canopy); border-radius: 20px; padding: 2rem; color: var(--white); }
    .sectors-box .eyebrow { color: var(--lime); margin-bottom: 1rem; display: block; }
    .sectors-box h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 1.2rem; font-family: 'Playfair Display', serif; }
    .sector-pills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
    .sector-pill { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); font-size: 0.78rem; font-weight: 500; padding: 0.35rem 0.9rem; border-radius: 50px; border: 1px solid rgba(255,255,255,0.2); }
    .contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: start; }
    .contact-info { display: flex; flex-direction: column; gap: 1.8rem; }
    .contact-item { display: flex; gap: 1rem; align-items: flex-start; }
    .contact-bubble { width: 44px; height: 44px; border-radius: 50%; background: var(--mist); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
    .contact-item h4 { font-weight: 600; color: var(--forest); font-size: 0.9rem; }
    .contact-item p, .contact-item a { font-size: 0.9rem; color: var(--stone); text-decoration: none; }
    .contact-item a:hover { color: var(--canopy); }
    .contact-form { background: var(--white); border-radius: 24px; padding: 2.5rem; border: 1.5px solid var(--mist); box-shadow: 0 8px 40px rgba(26,66,41,0.07); }
    .form-group { margin-bottom: 1.1rem; }
    .form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--stone); margin-bottom: 0.4rem; letter-spacing: 0.04em; text-transform: uppercase; }
    .form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--cream); border: 1.5px solid var(--mist); border-radius: 12px; color: var(--ink); padding: 0.75rem 1rem; font-size: 0.9rem; font-family: 'DM Sans', sans-serif; transition: border-color .2s; outline: none; }
    .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--leaf); background: var(--white); }
    .form-group textarea { resize: vertical; min-height: 100px; }
    .form-group select option { background: var(--white); }
    .form-submit { width: 100%; background: var(--canopy); color: var(--white); border: none; border-radius: 50px; padding: 1rem; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: background .2s, transform .15s; font-family: 'DM Sans', sans-serif; }
    .form-submit:hover { background: var(--forest); transform: translateY(-1px); }
    footer { background: var(--forest); color: rgba(255,255,255,0.7); padding: 2rem 5% 2rem; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
    .footer-brand p { font-size: 0.85rem; margin-top: 0.8rem; max-width: 280px; color: rgba(255,255,255,0.6); }

    .footer-logo-text { font-family: 'Playfair Display', serif; font-weight: 800; font-size: 1.4rem; color: var(--white); text-decoration: none; letter-spacing: -0.01em; }
    .footer-logo-text em { color: var(--leaf); font-style: normal; }
    .footer-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.2rem; }
    .fp { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 50px; }
    .fp-cu { background: rgba(200,117,51,0.25); color: #E8A96A; }
    .fp-br { background: rgba(205,160,50,0.2); color: #DFC878; }
    .fp-fe { background: rgba(140,180,140,0.2); color: #95D5B2; }
    .fp-pb { background: rgba(82,183,136,0.2); color: var(--leaf); }
    .footer-col h4 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf); margin-bottom: 1rem; }
    .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
    .footer-col a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; transition: color .2s; }
    .footer-col a:hover { color: var(--leaf); }
    .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.76rem; flex-wrap: wrap; gap: 0.5rem; }
    .footer-bottom .green { color: var(--leaf); }
    .fade-up { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
    .fade-up.visible { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; } }
    @media (max-width: 960px) {
      .hero { grid-template-columns: 1fr; min-height: auto; padding: 4rem 5% 3rem; gap: 3rem; }
      .hero-title { font-size: clamp(2.5rem, 9vw, 4rem); }
      .circular-display { width: 300px; height: 300px; }
      .services-split, .cycle-grid, .norm-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 640px) {
      nav { padding: 0 4%; }
      .nav-links { display: none; }
      .footer-grid { grid-template-columns: 1fr; }
      .hero-wheel { display: none; }
      .circular-display { width: 260px; height: 260px; }
    }