/* Misión Informática SAS — estilos del sitio */

html { scroll-behavior: smooth; }
body { margin: 0; background: #FAFBFC; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
.mi-root, .mm-root { overflow-x: hidden; }
.mi-root .mi-hero-slide, .mm-root .mm-hero-slide { height: 100%; }
.logo-link { display: inline-flex; align-items: center; line-height: 0; }
.logo-link:focus-visible { outline: 2px solid #1C9FDE; outline-offset: 4px; border-radius: 4px; }
#servicios, #catalogo, #contacto, #servicios-m, #catalogo-m, #contacto-m { scroll-margin-top: 16px; }

/* Desktop board above 1180px, mobile board below */
.mm-root { display: none; }
@media (max-width: 1179px) {
  .mi-root { display: none; }
  .mm-root { display: block; }
}
/* Narrower desktops: give the hero copy a bit less room */
@media (min-width: 1180px) and (max-width: 1359px) {
  .mi-root .mi-hero { gap: 40px !important; }
  .mi-root .mi-hero-copy { flex: 0 0 460px !important; }
  .mi-root .mi-hero-copy h1 { font-size: 40px !important; }
}
/* Tablet: keep the single-column layout readable */
@media (min-width: 600px) and (max-width: 1179px) {
  .mm-root > section, .mm-root > footer, .mm-root > header { padding-left: 40px !important; padding-right: 40px !important; }
  .mm-root h1 { font-size: 36px !important; }
}
/* Mobile menu */
.mm-menu summary { list-style: none; cursor: pointer; display: flex; padding: 4px; }
.mm-menu summary::-webkit-details-marker { display: none; }
.mm-menu nav { position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid #E7EEF3; box-shadow: 0 16px 28px -16px rgba(11,43,61,.35); display: flex; flex-direction: column; padding: 8px 20px 14px; }
.mm-menu nav a { font-family: 'Work Sans', sans-serif; font-weight: 500; font-size: 16px; color: #29414F; padding: 12px 0; border-bottom: 1px solid #EEF3F6; }
.mm-menu nav a:last-child { border-bottom: 0; }
/* Very small phones */
@media (max-width: 379px) {
  .mm-root .mm-hero-art { transform: scale(.86); transform-origin: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mi-marquee-track, .mm-marquee-track, .mi-hero-slide, .mm-hero-slide { animation: none !important; }
  .mi-hero-slide.f0, .mm-hero-slide.f0 { opacity: 1; }
  .mi-hero-slide:not(.f0), .mm-hero-slide:not(.f0) { opacity: 0; }
}
/* Inner WordPress pages (WooCommerce later) */
.mi-page-header { height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 64px; background: #fff; border-bottom: 1px solid #E7EEF3; font-family: 'Work Sans', system-ui, sans-serif; }
.mi-page-header img { height: 50px; width: auto; }
.mi-page-header a { color: #29414F; text-decoration: none; font-weight: 500; }
.mi-page-main { max-width: 1200px; margin: 0 auto; padding: 56px 24px; font-family: 'Work Sans', system-ui, sans-serif; color: #10202E; line-height: 1.6; }
.mi-page-main h1, .mi-page-main h2, .mi-page-main h3 { font-family: 'Sora', system-ui, sans-serif; color: #0B1B28; }
.mi-page-footer { padding: 28px 24px; text-align: center; font: 12.5px 'Work Sans', system-ui, sans-serif; color: #8398A6; border-top: 1px solid #E7EEF3; background: #fff; }
@media (max-width: 700px) { .mi-page-header { height: 64px; padding: 0 20px; } .mi-page-header img { height: 34px; } }

/* Brand banner: groups of logos that pause, then slide */
.brand-viewport { overflow: hidden; }
.brand-track { display: flex; gap: 16px; will-change: transform; }
.brand-track.ready { gap: 0; transition: transform .8s cubic-bezier(.65,0,.35,1); }
.brand-track.ready.instant { transition: none; }
.brand-page { flex: 0 0 100%; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 16px; }
.brand-card { flex: 0 0 170px; background: #fff; border: 1px solid #E7EEF3; border-radius: 14px; height: 88px; padding: 16px; display: flex; align-items: center; justify-content: center; }
.brand-card img { max-width: 100%; max-height: 48px; object-fit: contain; }
.mm-root .brand-track, .mm-root .brand-page { gap: 10px; }
.mm-root .brand-track.ready { gap: 0; }
.mm-root .brand-card { flex-basis: 100px; height: 64px; padding: 10px; }
.mm-root .brand-card img { max-height: 32px; }
.brand-dots { display: flex; justify-content: center; gap: 2px; margin-top: 18px; }
.brand-dots button { width: 28px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.brand-dots button::after { content: ""; width: 8px; height: 8px; border-radius: 4px; background: #CFDCE6; transition: width .3s, background .3s; }
.brand-dots button[aria-selected="true"]::after { width: 22px; background: #1C9FDE; }
.brand-dots button:focus-visible { outline: 2px solid #1C9FDE; outline-offset: 2px; border-radius: 6px; }

/* --- Escritorio --- */

  
  
  .mi-root {
    font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
    color: #10202E;
    background: #FAFBFC;
    width: 100%;
  }
  .mi-root h1, .mi-root h2, .mi-root h3 {
    font-family: 'Sora', system-ui, sans-serif;
    margin: 0;
    letter-spacing: -0.01em;
  }
  .mi-root a { text-decoration: none; }
  .mi-eyebrow {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .mi-btn-primary {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    padding: 14px 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .mi-btn-secondary {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #10202E;
    padding: 13px 26px;
    border-radius: 8px;
    border: 1.5px solid #D6E0E8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .mi-nav-link {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #29414F;
  }
  .mi-card {
    background: #fff;
    border: 1px solid #E7EEF3;
    border-radius: 14px;
  }
  .mi-icon-wrap {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  @keyframes mi-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .mi-marquee-wrap {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0, black 72px, black calc(100% - 72px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 72px, black calc(100% - 72px), transparent 100%);
  }
  .mi-marquee-track {
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    animation: mi-marquee-scroll 46s linear infinite;
  }
  .mi-marquee-wrap:hover .mi-marquee-track {
    animation-play-state: paused;
  }
  @keyframes mi-hero-fade-0 { 0%{opacity:0} 3%{opacity:1} 22%{opacity:1} 25%{opacity:0} 100%{opacity:0} }
  @keyframes mi-hero-fade-1 { 0%{opacity:0} 25%{opacity:0} 28%{opacity:1} 47%{opacity:1} 50%{opacity:0} 100%{opacity:0} }
  @keyframes mi-hero-fade-2 { 0%{opacity:0} 50%{opacity:0} 53%{opacity:1} 72%{opacity:1} 75%{opacity:0} 100%{opacity:0} }
  @keyframes mi-hero-fade-3 { 0%{opacity:0} 75%{opacity:0} 78%{opacity:1} 97%{opacity:1} 100%{opacity:0} }
  .mi-hero-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    animation-duration: 12s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
  }
  .mi-hero-slide.f0 { animation-name: mi-hero-fade-0; }
  .mi-hero-slide.f1 { animation-name: mi-hero-fade-1; }
  .mi-hero-slide.f2 { animation-name: mi-hero-fade-2; }
  .mi-hero-slide.f3 { animation-name: mi-hero-fade-3; }

/* --- Móvil --- */

  
  
  .mm-root {
    font-family: 'Work Sans', system-ui, -apple-system, sans-serif;
    color: #10202E;
    background: #FAFBFC;
    width: 100%;
  }
  .mm-root h1, .mm-root h2, .mm-root h3 {
    font-family: 'Sora', system-ui, sans-serif;
    margin: 0;
    letter-spacing: -0.01em;
  }
  .mm-root a { text-decoration: none; }
  .mm-eyebrow {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .mm-btn-primary {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    padding: 14px 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  .mm-btn-secondary {
    font-family: 'Work Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #10202E;
    padding: 13px 22px;
    border-radius: 8px;
    border: 1.5px solid #D6E0E8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }
  .mm-card {
    background: #fff;
    border: 1px solid #E7EEF3;
    border-radius: 14px;
  }
  .mm-icon-wrap {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  @keyframes mm-marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .mm-marquee-wrap {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 32px, black calc(100% - 32px), transparent 100%);
  }
  .mm-marquee-track {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    animation: mm-marquee-scroll 34s linear infinite;
  }
  @keyframes mm-hero-fade-0 { 0%{opacity:0} 3%{opacity:1} 22%{opacity:1} 25%{opacity:0} 100%{opacity:0} }
  @keyframes mm-hero-fade-1 { 0%{opacity:0} 25%{opacity:0} 28%{opacity:1} 47%{opacity:1} 50%{opacity:0} 100%{opacity:0} }
  @keyframes mm-hero-fade-2 { 0%{opacity:0} 50%{opacity:0} 53%{opacity:1} 72%{opacity:1} 75%{opacity:0} 100%{opacity:0} }
  @keyframes mm-hero-fade-3 { 0%{opacity:0} 75%{opacity:0} 78%{opacity:1} 97%{opacity:1} 100%{opacity:0} }
  .mm-hero-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover;
    animation-duration: 12s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
  }
  .mm-hero-slide.f0 { animation-name: mm-hero-fade-0; }
  .mm-hero-slide.f1 { animation-name: mm-hero-fade-1; }
  .mm-hero-slide.f2 { animation-name: mm-hero-fade-2; }
  .mm-hero-slide.f3 { animation-name: mm-hero-fade-3; }


/* ---------- Portada: un solo marco, rota cada 5 s ---------- */
.hero-art { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; min-height: 440px; }
.hero-glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(28,159,222,.13) 0%, rgba(28,159,222,0) 70%); }
.hero-frame { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1 / 1; }
.hero-photo { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; background: #E3EEF5; box-shadow: 0 28px 48px -18px rgba(11,43,61,.45); }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; opacity: 0; animation: hero-cycle 20s linear infinite; }
.hero-slide:nth-child(1) { animation-delay: -0.8s; }
.hero-slide:nth-child(2) { animation-delay: -15.8s; }
.hero-slide:nth-child(3) { animation-delay: -10.8s; }
.hero-slide:nth-child(4) { animation-delay: -5.8s; }
@keyframes hero-cycle { 0% { opacity: 0; } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; } 100% { opacity: 0; } }
.hero-badge { position: absolute; left: -26px; top: 34px; z-index: 2; background: #fff; border-radius: 16px; padding: 12px 18px; box-shadow: 0 16px 30px rgba(11,43,61,.2); display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: 'Work Sans', sans-serif; }
.hero-badge-num { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: #1C9FDE; }
.hero-badge-txt { font-size: 12px; font-weight: 600; color: #4C6474; line-height: 1.2; }
.hero-art-m { min-height: 0; margin: 30px 0 32px; }
.hero-art-m .hero-frame { max-width: 420px; aspect-ratio: 4 / 3; }
.hero-art-m .hero-photo { border-radius: 22px; }
.hero-art-m .hero-badge { left: auto; right: 12px; top: -16px; padding: 9px 14px; border-radius: 14px; }
.hero-art-m .hero-badge-num { font-size: 17px; }
.hero-art-m .hero-badge-txt { font-size: 10.5px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide:first-child { opacity: 1; }
}

/* ---------- Servicios con foto ---------- */
.svc-card { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.svc-photo { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #EAF4FA, #DCEBF4); overflow: hidden; }
.svc-photo-4 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #fff; }
.svc-photo img { width: 100%; height: 100% !important; object-fit: cover; display: block; }
.svc-photo .svc-ph { width: 100%; height: 100%; display: flex; }
.svc-photo-4 img, .svc-photo-4 .svc-ph { position: static; }
.svc-photo:not(.svc-photo-4) img, .svc-photo:not(.svc-photo-4) .svc-ph { position: absolute; inset: 0; }
.svc-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #EAF4FA, #D7E8F3); color: rgba(28,159,222,.45); }
.svc-ph svg { width: 34%; height: auto; max-width: 64px; }
.svc-photo-4 .svc-ph svg { max-width: 34px; }
.svc-body { position: relative; padding: 0 20px 24px; }
.svc-body .mi-icon-wrap { margin-top: -24px; border: 3px solid #fff; box-sizing: content-box; position: relative; }
.svc-body-m { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px 18px; }
.mm-root .svc-photo { aspect-ratio: 16 / 9; }
.mm-root .svc-photo-4 { aspect-ratio: 16 / 10; }

/* ---------- Logos de marcas más grandes ---------- */
.brand-card.brand-lg { padding: 8px 10px; }
.brand-card.brand-lg img { max-height: 70px; }
.mm-root .brand-card.brand-lg { padding: 6px; }
.mm-root .brand-card.brand-lg img { max-height: 50px; }

/* ---------- Formulario de contacto ---------- */
.contact-sec { background: #F1F6FA; padding: 88px 64px; font-family: 'Work Sans', system-ui, sans-serif; }
.contact-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; max-width: 1312px; margin: 0 auto; }
.contact-eyebrow { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #1C9FDE; }
.contact-intro h2 { font-family: 'Sora', sans-serif; font-size: 32px; font-weight: 700; color: #0B1B28; margin: 12px 0 0; letter-spacing: -.01em; }
.contact-intro p { font-size: 16px; line-height: 1.6; color: #4C6474; margin: 16px 0 0; max-width: 440px; }
.contact-mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; color: #0B1B28; font-weight: 600; font-size: 15px; text-decoration: none; }
.contact-mail svg { color: #1C9FDE; }
.contact-form { background: #fff; border: 1px solid #E7EEF3; border-radius: 16px; padding: 32px; box-shadow: 0 18px 40px -24px rgba(11,43,61,.25); }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-full { grid-column: 1 / -1; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-field span { font-size: 13.5px; font-weight: 600; color: #29414F; }
.cf-field em { color: #C2410C; font-style: normal; }
.cf-field input, .cf-field textarea { font: inherit; font-size: 15px; color: #10202E; background: #FAFBFC; border: 1.5px solid #D6E0E8; border-radius: 9px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.cf-field textarea { resize: vertical; min-height: 130px; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: #1C9FDE; box-shadow: 0 0 0 3px rgba(28,159,222,.18); background: #fff; }
.cf-submit { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; background: #1C9FDE; color: #fff; border: 0; border-radius: 8px; padding: 14px 26px; font: 600 15px 'Work Sans', sans-serif; cursor: pointer; transition: background .15s; }
.cf-submit:hover { background: #168BC4; }
.cf-submit:focus-visible { outline: 2px solid #0B1B28; outline-offset: 2px; }
.cf-note { font-size: 12.5px; color: #8398A6; margin: 12px 0 0; }
.cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cf-notice { border-radius: 10px; padding: 12px 16px; font-size: 14.5px; line-height: 1.5; margin-bottom: 20px; }
.cf-notice.ok { background: #EAF7EE; color: #1E6B3A; border: 1px solid #BFE3CB; }
.cf-notice.error { background: #FDF0EC; color: #9A3412; border: 1px solid #F5CDBF; }
.mm-root .contact-sec { padding: 44px 20px; }
.mm-root .contact-wrap { grid-template-columns: 1fr; gap: 26px; }
.mm-root .contact-eyebrow { font-size: 12px; }
.mm-root .contact-intro h2 { font-size: 24px; }
.mm-root .contact-intro p { font-size: 15px; }
.mm-root .contact-mail { margin-top: 18px; font-size: 14px; }
.mm-root .contact-form { padding: 20px; }
.mm-root .cf-grid { grid-template-columns: 1fr; gap: 14px; }
.mm-root .cf-submit { width: 100%; justify-content: center; }
@media (min-width: 600px) and (max-width: 1179px) {
  .mm-root .contact-sec { padding-left: 40px; padding-right: 40px; }
  .mm-root .cf-grid { grid-template-columns: 1fr 1fr; }
}
