/* ============================================================
   MC Automat — styles.css
   Tokens → base → componentes → secciones
   ============================================================ */
:root {
  --navy: #0D0A4A;
  --navy-700: #15106B;
  --ink: #0B0D12;
  --ink-800: #12151D;
  --orange: #F5A21B;
  --orange-600: #DB8A07;
  --paper: #FFFFFF;
  --soft: #F4F6FA;
  --line: #E3E7EF;
  --text: #1B1F2A;
  --muted: #566074;
  --on-dark: #C9CFDC;

  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(13, 10, 74, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 96px;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--text);
  --bs-link-color: var(--navy);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: var(--font-body); color: var(--text); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; font-family: var(--font-head); letter-spacing: -.02em; line-height: 1.12; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 2000; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Botones ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .65rem 1.4rem; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s; }
.btn-lg { padding: .9rem 1.9rem; font-size: 1rem; }
.btn-brand { background: var(--orange); color: #14120A; border: 0; }
.btn-brand:hover, .btn-brand:focus { background: var(--orange-600); color: #14120A; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245, 162, 27, .35); }
.btn-brand:disabled, .btn-brand.disabled, .formWhats:disabled {
  --bs-btn-disabled-bg: #D5DAE6; --bs-btn-disabled-color: #4A5266; --bs-btn-disabled-border-color: #D5DAE6; --bs-btn-disabled-opacity: 1;
  background: #D5DAE6; color: #4A5266; border-color: #D5DAE6; opacity: 1; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* ---------- Navbar ---------- */
.site-nav { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); min-height: var(--nav-h); border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s; }
.site-nav.scrolled { box-shadow: 0 6px 24px rgba(13, 10, 74, .1); border-color: var(--line); }
.site-nav .navbar-brand { padding: 0; margin-right: 1rem; }
.site-nav .navbar-brand img { height: 76px; width: auto; display: block; }
.site-nav .nav-link { font-weight: 500; color: var(--text); padding: .6rem .9rem; border-radius: 8px; position: relative; }
.site-nav .nav-link:hover { color: var(--navy); }
@media (min-width: 992px) {
  .site-nav .nav-link::after { content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
  .site-nav .nav-link:hover::after { transform: scaleX(1); }
}
@media (max-width: 991.98px) {
  :root { --nav-h: 84px; }
  .site-nav .navbar-brand img { height: 64px; }
  .site-nav .navbar-collapse { padding: 1rem 0 1.25rem; }
  .site-nav .btn-brand { display: block; text-align: center; }
}
.navbar-toggler { border: 0; padding: .5rem; }
.navbar-toggler:focus { box-shadow: none; outline: 3px solid var(--orange); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 3rem) 0 5rem; background: var(--ink) url('../img/robot-humanoide.png') center right / cover no-repeat; overflow: hidden; color: #fff; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 13, 18, .92) 0%, rgba(11, 13, 18, .72) 42%, rgba(11, 13, 18, .15) 100%), linear-gradient(0deg, rgba(11, 13, 18, .6) 0%, transparent 35%); }
@media (max-width: 767.98px) { .hero-overlay { background: linear-gradient(180deg, rgba(11, 13, 18, .8) 0%, rgba(11, 13, 18, .72) 100%); } }
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 700; margin: 1rem 0 1.25rem; color: #fff; }
.text-accent { color: var(--orange); }
.hero-lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--on-dark); max-width: 34rem; margin-bottom: 2rem; }
.hero-scroll { position: absolute; z-index: 2; left: 50%; bottom: 1.25rem; transform: translateX(-50%); color: #fff; font-size: 1.5rem; opacity: .8; animation: bob 2.2s ease-in-out infinite; }
@media (max-width: 767.98px) { .hero-scroll { display: none; } }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-soft { background: var(--soft); }
.section-video { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); min-height: 520px; padding-bottom: clamp(5rem, 9vw, 7.5rem); display: flex; align-items: center; }
.bg-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.video-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 13, 18, .88) 0%, rgba(11, 13, 18, .62) 55%, rgba(11, 13, 18, .25) 100%); }
@media (max-width: 767.98px) { .video-overlay { background: rgba(11, 13, 18, .75); } }
.section-video .container { width: 100%; }
.section-navy { background: var(--navy); background-image: radial-gradient(circle at 85% 10%, rgba(245, 162, 27, .12), transparent 45%); }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-bottom: .9rem; padding-left: 2.2rem; position: relative; }
.eyebrow::before { content: ''; position: absolute; left: 0; top: 50%; width: 1.6rem; height: 2px; background: var(--orange); }
.eyebrow-light { color: var(--orange); }
.section-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; margin-bottom: 1.25rem; color: var(--navy); }
.lead-text { font-size: 1.125rem; color: var(--muted); }
.text-on-dark { color: var(--on-dark); }
.narrow { max-width: 38rem; }

/* ---------- Media ---------- */
.media-frame { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img, .media-frame video { display: block; width: 100%; height: auto; }
.media-glass { border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.media-dark { background: var(--ink); box-shadow: 0 24px 60px rgba(11, 13, 18, .25); }

/* ---------- Pilares ---------- */
.pillar { height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.pillar-icon, .mv-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--orange); font-size: 1.5rem; margin-bottom: 1.25rem; }
.pillar h3 { font-size: 1.35rem; color: var(--navy); margin-bottom: .5rem; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Misión / Visión ---------- */
.section-mv { position: relative; background: var(--navy) url('../img/mano-robotica.png') center / cover no-repeat; isolation: isolate; }
.section-mv::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 10, 74, .9), rgba(13, 10, 74, .82)); }
.mv-card { height: 100%; padding: 2.25rem; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; }
.mv-icon { background: var(--orange); color: #14120A; }
.mv-card h3 { font-size: 1.6rem; margin-bottom: .75rem; }
.mv-card p { color: #E4E8F2; margin: 0; font-size: 1.05rem; }

/* ---------- Marcas ---------- */
.brand-card { height: 110px; display: grid; place-items: center; padding: 1.25rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.brand-card img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--orange); }
.brand-card:hover img { filter: none; opacity: 1; }
@media (max-width: 575.98px) { .brand-card { height: 92px; padding: 1rem; } .brand-card img { max-height: 42px; } }
@media (hover: none) { .brand-card img { filter: none; opacity: 1; } }

/* ---------- Contacto ---------- */
.contact-points li { display: flex; gap: .65rem; align-items: center; color: #fff; padding: .35rem 0; }
.contact-points i { color: var(--orange); font-size: 1.2rem; }
.form-card { background: var(--paper); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--text); margin-bottom: .35rem; }
.form-control { min-height: 48px; border-radius: var(--radius-sm); border-color: #CBD2DF; padding: .65rem .9rem; }
.form-control:focus { border-color: var(--navy); box-shadow: 0 0 0 .22rem rgba(245, 162, 27, .35); }
.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }
.form-check-input:focus { box-shadow: 0 0 0 .22rem rgba(245, 162, 27, .35); border-color: var(--navy); }
#enviar.btn-brand { cursor: pointer; }
@media (min-width: 576px) { .w-sm-auto { width: auto !important; min-width: 200px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding: 3.5rem 0 1.75rem; }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: .06em; color: #fff; margin-bottom: .5rem; }
.footer-brand i { color: var(--orange); margin-right: .35rem; }
.footer-text { max-width: 24rem; }
.footer-links a { color: var(--on-dark); text-decoration: none; padding: .35rem .5rem; display: inline-block; transition: color .2s; }
.footer-links a:hover { color: var(--orange); }
.footer-rule { border-color: rgba(255, 255, 255, .12); margin: 2rem 0 1.25rem; opacity: 1; }
.footer-copy { font-size: .875rem; color: #9AA3B5; }
.footer-copy a { color: #C9CFDC; }
.footer-copy a:hover { color: var(--orange); }
.form-check-label a { color: var(--navy); font-weight: 600; }

.cosmos-credit { background: #fff; width: 100%; padding: 8px 0; color: #333; }
.cosmos-credit img { max-height: 20px; width: auto; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .brand-grid .reveal:nth-child(4n+2) { transition-delay: .06s; }
.js .brand-grid .reveal:nth-child(4n+3) { transition-delay: .12s; }
.js .brand-grid .reveal:nth-child(4n+4) { transition-delay: .18s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Páginas internas (aviso, gracias) ---------- */
.page-head { background: var(--navy); background-image: radial-gradient(circle at 85% 0%, rgba(245, 162, 27, .14), transparent 50%); padding: calc(var(--nav-h) + 3rem) 0 3rem; color: #fff; }
.page-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; color: #fff; margin-bottom: .5rem; }
.page-meta { color: var(--on-dark); }
.legal-body { max-width: 46rem; margin: 0 auto; color: var(--text); }
.legal-body h2 { font-size: 1.35rem; color: var(--navy); margin: 2.25rem 0 .75rem; }
.legal-body p, .legal-body li { color: #3A4254; }
.legal-body li { margin-bottom: .35rem; }
.legal-body a { color: var(--navy); font-weight: 600; }

.thanks { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 2rem) 0 4rem; background: var(--ink) url('../img/brazo-robotico.png') center right / cover no-repeat; color: #fff; isolation: isolate; }
.thanks-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 13, 18, .92), rgba(11, 13, 18, .7)); }
.thanks-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--orange); color: #14120A; font-size: 2.6rem; margin-bottom: 1.75rem; box-shadow: 0 0 0 10px rgba(245, 162, 27, .18); }
.thanks-title { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.thanks-lead { max-width: 34rem; font-size: 1.15rem; color: var(--on-dark); margin-bottom: 2rem; }

/* ---------- Datos de contacto ---------- */
.contact-info li { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.contact-info small { display: block; color: var(--on-dark); font-size: .8rem; letter-spacing: .04em; }
.contact-info a { color: #fff; font-weight: 600; font-size: 1.1rem; text-decoration: none; overflow-wrap: anywhere; }
.contact-info a:hover { color: var(--orange); }
.contact-ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--orange); font-size: 1.25rem; }
.footer-title { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: .75rem; }
.footer-links li a i { color: var(--orange); margin-right: .4rem; }
.site-footer .footer-links a { padding-left: 0; }
