/*
Theme Name: Mega Solution Industrials
Author: MSI
Description: Plantilla corporativa de alta precisión para MSI.
Version: 1.0
*/

:root {
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;
    --border: #E2E8F0;
    --text-main: #0F172A;
    --text-muted: #64748B;
    --slb-blue: #0014FF;
    --slb-blue-hover: #0010CC;
    --brand-dark: #0A0E17;
    --radius: 8px;
    --font-title: 'Manrope', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
  }
  
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { 
    background-color: var(--bg-white); 
    color: var(--text-main); 
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased; 
  }
  
  h1, h2, h3, h4, .font-title { font-family: var(--font-title); }
  
  /* Header Fijo */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 6%;
    height: 72px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }
  
  .logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
    margin-top: 6px; 
  }
  
  .logo-container:hover .logo-img { transform: scale(1.05); }
  
  .brand-text-group { display: flex; flex-direction: column; justify-content: center; }
  .brand-name {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
    line-height: 1;
  }
  .brand-name span { color: var(--slb-blue); }
  .brand-sub {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 3px;
  }
  
  nav { display: flex; gap: 2.5rem; align-items: center; }
  
  .btn-underline {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 4px 0;
    transition: transform 0.15s ease, color 0.2s ease;
  }
  
  .btn-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--slb-blue);
    transition: width .3s ease;
  }
  
  .btn-underline:hover { color: var(--slb-blue); }
  .btn-underline:hover::after { width: 100%; }
  
  .btn-slide {
    position: relative;
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.35s ease;
  }
  
  .btn-slide span { position: relative; z-index: 2; }
  .btn-slide::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left .35s ease;
    z-index: 1;
  }
  
  .btn-slide:hover::before { left: 0; }
  .btn-primary { background-color: var(--slb-blue); color: var(--bg-white); }
  .btn-primary::before { background-color: var(--brand-dark); }
  
  .btn-secondary { background-color: var(--bg-light); color: var(--text-main); border: 1px solid var(--border); }
  .btn-secondary::before { background-color: var(--slb-blue); }
  .btn-secondary:hover { color: var(--bg-white); border-color: var(--slb-blue); }
  
  /* Hero */
  .hero-wrapper { position: relative; overflow: hidden; }
  .hero {
    position: relative;
    padding: 5rem 6% 4rem;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 2;
  }
  
  .hero-gear-bg {
    position: absolute;
    left: -160px;
    bottom: -160px;
    width: 580px;
    height: 580px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.45;
    animation: rotateGear 40s linear infinite;
  }
  
  @keyframes rotateGear {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }
  
  .pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: #EEF2FF;
    border: 1px solid #C7D2FE;
    color: var(--slb-blue);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2rem;
  }
  
  h1 {
    font-size: clamp(2.5rem, 4.8vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.8px;
    color: var(--text-main);
    max-width: 1100px;
    margin-bottom: 2.5rem;
  }
  
  .hero-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 4rem;
    align-items: flex-end;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
  }
  
  p.hero-lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.6; }
  .hero-actions { display: flex; gap: 1rem; }
  
  /* Bento Grid */
  .bento-section {
    padding: 6rem 6%;
    position: relative;
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.88) 0%, rgba(10, 14, 23, 0.94) 100%), 
                url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?q=80&w=2000&auto=format&fit=crop') center/cover no-repeat fixed;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    color: var(--bg-white);
  }
  
  .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
  }
  
  .bento-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
  }
  
  .bento-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 270px;
    transition: all 0.3s ease;
    color: var(--text-main);
  }
  
  .bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--slb-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 20, 255, 0.2);
  }
  
  .bento-card.dark {
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(16px);
    color: var(--bg-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    grid-column: span 2;
  }
  
  .bento-card.dark p { color: #CBD5E1; }
  .card-num { font-size: 0.75rem; font-weight: 800; color: var(--slb-blue); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 1.25rem; }
  .bento-card.dark .card-num { color: #60A5FA; }
  
  .bento-card h3 { font-size: 1.45rem; font-weight: 700; margin-bottom: 0.75rem; letter-spacing: -0.4px; }
  .bento-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
  
  /* Careers */
  .careers-banner { max-width: 1400px; margin: 5rem auto; padding: 0 6%; }
  .careers-card {
    background: #F1F5F9;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
  }
  
  .careers-img-wrapper { position: relative; width: 100%; min-height: 380px; overflow: hidden; }
  .careers-img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; display: block; }
  
  .careers-content { padding: 3.5rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .careers-content h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.75rem; }
  .careers-content p { color: var(--text-muted); margin-bottom: 1.75rem; line-height: 1.5; }
  
  /* Footer */
  footer { background-color: var(--slb-blue); color: #FFFFFF; padding: 5rem 6% 2rem; }
  .footer-container { max-width: 1400px; margin: 0 auto; }
  .footer-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 3rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
  .footer-brand .footer-logo-img { height: 52px; width: auto; filter: brightness(0) invert(1); margin-bottom: 1.25rem; }
  .footer-brand p { color: rgba(255, 255, 255, 0.85); font-size: 0.9rem; line-height: 1.6; max-width: 320px; margin-bottom: 1.5rem; }
  
  .footer-email-box { display: flex; flex-direction: column; gap: 0.5rem; }
  .footer-email-box .email-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: rgba(255, 255, 255, 0.7); }
  .footer-email-box a { color: #FFFFFF; font-weight: 600; font-size: 0.88rem; text-decoration: none; transition: color 0.2s ease; }
  .footer-email-box a:hover { text-decoration: underline; color: #E0E7FF; }
  
  .footer-col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.5px; color: #FFFFFF; }
  .footer-col ul { list-style: none; }
  .footer-col ul li { margin-bottom: 0.75rem; }
  .footer-col ul li a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 0.88rem; transition: color 0.2s ease; }
  .footer-col ul li a:hover { color: #FFFFFF; padding-left: 4px; }
  
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.7); }
  .footer-bottom-links { display: flex; gap: 1.5rem; }
  .footer-bottom-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
  
  @media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card.dark { grid-column: span 1; }
    .careers-card { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
    nav { display: none; }
    .hero-gear-bg { width: 380px; height: 380px; left: -120px; bottom: -100px; }
  }