/* ==========================================================
   SODETEC — Design tokens
   ========================================================== */
:root{
  --navy-950: #050f1e;
  --navy-900: #081b30;
  --navy-800: #0d2a48;
  --navy-700: #133b62;
  --teal-500: #10a8a0;
  --teal-400: #3cc9c0;
  --orange-500: #ff9300;
  --orange-400: #ffab33;
  --ice-100: #eef4f9;
  --ice-050: #f6f9fc;
  --white: #ffffff;
  --ink-900: #0b1c2c;
  --ink-600: #4b647a;
  --ink-400: #8ba0b3;
  --line: #dde6ee;

  --font-display: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", Arial, Helvetica, sans-serif;

  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 20px 50px -25px rgba(5, 20, 40, 0.45);
  --shadow-card: 0 10px 30px -18px rgba(5, 20, 40, 0.35);

  --maxw: 1180px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; color: var(--ink-600); }
ul{ margin: 0; padding: 0; list-style: none; }
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

::selection{ background: var(--orange-500); color: var(--white); }

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

/* subtle grain so flat navy sections don't look pasted-in-AI flat */
.noise-overlay{
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.025; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================
   Buttons
   ========================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary{
  background: var(--orange-500);
  color: var(--navy-950);
}
.btn-primary:hover{ background: var(--orange-400); transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(255,147,0,0.55); }
.btn-ghost{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-ghost:hover{ border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-block{ width: 100%; }

/* ==========================================================
   Header
   ========================================================== */
.site-header{
  position: sticky; top: 0; z-index: 500;
  background: rgba(8, 27, 48, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo{ display: flex; align-items: center; gap: 10px; color: var(--white); }
.logo-mark{ width: 30px; height: 30px; color: var(--orange-500); }
.logo-mark svg{ width: 100%; height: 100%; }
.logo-text{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  color: var(--white);
}
.main-nav{ display: flex; align-items: center; gap: 30px; }
.main-nav a{
  color: rgba(255,255,255,0.82);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease;
  white-space: nowrap;
}
.main-nav a:hover{ color: var(--white); }
.nav-cta{
  background: var(--orange-500);
  color: var(--navy-950) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover{ background: var(--orange-400); }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent; border: none; cursor: pointer;
}
.nav-toggle span{
  display: block; width: 22px; height: 2px; background: var(--white); margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero{
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, #0f2e4d 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  overflow: hidden;
  padding: 92px 0 76px;
}
.hero-network{
  position: absolute; inset: 0;
  opacity: 0.55;
}
.hero-network svg{ width: 100%; height: 100%; }
.net-lines line{
  stroke: rgba(60, 201, 192, 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 6 8;
  animation: dash-flow 14s linear infinite;
}
.net-nodes circle{
  fill: var(--teal-400);
  filter: drop-shadow(0 0 6px rgba(60,201,192,0.7));
  animation: node-pulse 4.5s ease-in-out infinite;
}
.net-nodes circle:nth-child(2n){ animation-delay: 0.8s; fill: var(--orange-500); filter: drop-shadow(0 0 6px rgba(255,147,0,0.7)); }
.net-nodes circle:nth-child(3n){ animation-delay: 1.6s; }
@keyframes dash-flow{ to{ stroke-dashoffset: -280; } }
@keyframes node-pulse{ 0%,100%{ opacity: 0.55; r: 4;} 50%{ opacity: 1; } }

.hero-inner{ position: relative; z-index: 2; max-width: 800px; }
.eyebrow{
  color: var(--teal-400);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1{
  color: var(--white);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-bottom: 20px;
}
.hero h1 span{ color: var(--orange-500); }
.hero-lead{
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 34px;
}
.hero-actions{ display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 32px;
  max-width: 720px;
}
.stat{ display: flex; flex-direction: column; gap: 4px; }
.stat-num{
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--white);
}
.stat-label{ color: rgba(255,255,255,0.65); font-size: 0.86rem; }

/* ==========================================================
   Section shells
   ========================================================== */
.section{ padding: 100px 0; }
.section-alt{ background: var(--ice-050); }
.section-dark{
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.section-dark p{ color: rgba(255,255,255,0.72); }

.section-eyebrow{
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-500); margin-bottom: 14px;
}
.section-eyebrow-light{ color: var(--teal-400); }
.section-title{
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 760px;
  margin-bottom: 20px;
}
.section-title-light{ color: var(--white); }
.section-lead{ max-width: 620px; font-size: 1.05rem; }
.section-note{
  font-size: 0.88rem; color: var(--ink-400); font-style: italic; max-width: 620px; margin-bottom: 40px;
}

/* ==========================================================
   Nosotros
   ========================================================== */
.about-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 36px;
}
.about-copy p{ font-size: 1.05rem; }
.about-pills{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pill{
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
  font-weight: 600;
  color: var(--navy-900);
  font-size: 0.95rem;
}
.pill-icon{
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--ice-100);
  color: var(--teal-500);
}
.pill-icon svg{ width: 22px; height: 22px; }

/* ==========================================================
   Portafolio
   ========================================================== */
.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.portfolio-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
}
.portfolio-num{
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-500);
  display: block;
  margin-bottom: 16px;
}
.portfolio-card h3{ font-size: 1.08rem; margin-bottom: 10px; }
.portfolio-card p{ font-size: 0.92rem; margin-bottom: 0; }

/* ==========================================================
   Servicios
   ========================================================== */
.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.service-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.service-icon{
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--teal-400);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.service-icon svg{ width: 24px; height: 24px; }
.service-card h3{ font-size: 1.12rem; margin-bottom: 14px; }
.service-card ul li{
  font-size: 0.9rem;
  color: var(--ink-600);
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}
.service-card ul li::before{
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange-500);
}

.process-strip{
  margin-top: 50px;
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center;
  padding: 26px;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
}
.process-strip span{
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
}

/* ==========================================================
   Producto UTC
   ========================================================== */
.utc-models{
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.utc-model{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
}
.utc-model img{
  height: 90px; width: 100%; object-fit: contain;
  margin-bottom: 14px;
  background: var(--white);
  border-radius: 10px;
  padding: 8px;
}
.utc-noimg{
  height: 90px; display: flex; align-items: center; justify-content: center;
  color: var(--teal-400); margin-bottom: 14px;
}
.utc-noimg svg{ width: 34px; height: 34px; }
.utc-model h4{ color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.utc-size{ color: var(--teal-400); font-size: 0.82rem; margin-bottom: 2px; font-weight: 600;}
.utc-type{ color: rgba(255,255,255,0.6); font-size: 0.8rem; margin-bottom: 0; }

.usecases{ margin-top: 64px; }
.usecases-title{ color: var(--white); font-size: 1.2rem; margin-bottom: 24px; }
.usecases-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.usecase{
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 18px 14px;
}
.usecase img{
  width: 56px; height: 56px; object-fit: contain; border-radius: 50%;
  background: var(--white);
  padding: 6px;
}
.usecase span{ color: rgba(255,255,255,0.78); font-size: 0.82rem; font-weight: 500; }

/* ==========================================================
   Casos de éxito
   ========================================================== */
.cases-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 10px;
}
.case-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.case-tag{
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--ice-100);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.case-card h3{ font-size: 1.08rem; margin-bottom: 6px; }
.case-loc{ font-size: 0.82rem; color: var(--ink-400); margin-bottom: 18px; }
.case-card dl{ margin: 0; }
.case-card dt{
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--teal-500); margin-bottom: 4px; margin-top: 14px;
}
.case-card dt:first-child{ margin-top: 0; }
.case-card dd{ margin: 0; font-size: 0.88rem; color: var(--ink-600); }

/* ==========================================================
   Aliados
   ========================================================== */
.partners-grid{
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.partner-logo{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  height: 96px;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  filter: grayscale(1);
  opacity: 0.75;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.partner-logo:hover{ filter: grayscale(0); opacity: 1; }
.partner-logo img{ max-height: 44px; width: auto; object-fit: contain; }

/* ==========================================================
   Contacto
   ========================================================== */
.contact-inner{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-list{ margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.contact-list li{ display: flex; align-items: center; gap: 14px; }
.contact-icon{
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--teal-400);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg{ width: 18px; height: 18px; }
.contact-list a{ color: rgba(255,255,255,0.85); font-weight: 500; }
.contact-list a:hover{ color: var(--white); }
.contact-placeholder-note{
  margin-top: 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

.contact-form{
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 18px;
}
.form-row{ display: flex; flex-direction: column; gap: 8px; }
.form-row label{ color: rgba(255,255,255,0.75); font-size: 0.85rem; font-weight: 600; }
.form-row input, .form-row textarea{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus{
  outline: none;
  border-color: var(--teal-400);
  background: rgba(255,255,255,0.09);
}
.form-row input::placeholder, .form-row textarea::placeholder{ color: rgba(255,255,255,0.35); }
.form-status{
  font-size: 0.85rem; color: var(--teal-400); min-height: 1.2em; margin: 0;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer{ background: var(--navy-950); padding: 56px 0 0; }
.footer-inner{
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap; gap: 30px;
}
.footer-brand p{ color: rgba(255,255,255,0.5); font-size: 0.86rem; margin: 10px 0 0; max-width: 260px; }
.footer-nav{ display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a{ color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-nav a:hover{ color: var(--white); }
.footer-bottom{ padding: 22px 28px; }
.footer-bottom p{ color: rgba(255,255,255,0.4); font-size: 0.8rem; margin: 0; text-align: center; }

.back-to-top{
  position: fixed; bottom: 26px; right: 26px; z-index: 400;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange-500); color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.back-to-top.visible{ opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top svg{ width: 20px; height: 20px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; }
  .portfolio-grid{ grid-template-columns: repeat(2, 1fr); }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .cases-grid{ grid-template-columns: repeat(2, 1fr); }
  .utc-models{ grid-template-columns: repeat(3, 1fr); }
  .usecases-grid{ grid-template-columns: repeat(3, 1fr); }
  .partners-grid{ grid-template-columns: repeat(3, 1fr); }
  .contact-inner{ grid-template-columns: 1fr; }
  .hero-stats{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px){
  .main-nav{
    position: fixed; top: 76px; left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column; align-items: flex-start;
    padding: 20px 28px 30px;
    gap: 18px;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .main-nav.open{ opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-toggle{ display: flex; }
  .nav-cta{ margin-top: 6px; }

  .portfolio-grid, .services-grid, .cases-grid, .partners-grid{ grid-template-columns: 1fr; }
  .utc-models{ grid-template-columns: repeat(2, 1fr); }
  .usecases-grid{ grid-template-columns: repeat(2, 1fr); }
  .hero-stats{ grid-template-columns: 1fr; gap: 20px; }
  .section{ padding: 70px 0; }
  .hero{ padding: 70px 0 56px; }
}
