/*
Theme Name: Rectech Innovate
Theme URI: https://rectech.local/
Author: Rectech Innovate
Author URI: https://rectech.local/
Description: Theme corporativo para integración tecnológica industrial, sensores, medición, automatización y precisión operativa.
Version: 1.0.12
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: rectech-innovate
*/

:root {
  --navy: #0b1d3a;
  --ink: #1f2937;
  --cyan: #00c2d6;
  --steel: #6b7a8c;
  --orange: #f5b27a;
  --mist: #f4f8fb;
  --line: #d7e0e8;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(11, 29, 58, 0.12);
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(215, 224, 232, 0.85);
  backdrop-filter: blur(16px);
  transition: box-shadow .24s ease, background .24s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(11, 29, 58, 0.12);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link { display: flex; align-items: center; gap: 12px; }
.brand-logo,
.custom-logo { width: min(280px, 48vw); max-height: 58px; object-fit: contain; }
.brand-mark { width: 48px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-size: 24px;
}

.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.primary-menu a:hover { color: var(--cyan); }

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
}

.language-switcher button {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  background: transparent;
  color: var(--cyan);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(11, 29, 58, 0.96), rgba(11, 29, 58, 0.76)),
    radial-gradient(circle at 84% 20%, rgba(0, 194, 214, 0.32), transparent 32%),
    var(--navy);
  color: var(--white);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-inner {
  position: relative;
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: 54px;
  padding: 76px 0 92px;
}

.hero-inner > div:first-child {
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 16px 0 20px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
}

.button-primary { background: var(--cyan); color: var(--navy); }
.button-secondary { border-color: rgba(255,255,255,.3); color: var(--white); }
.button:hover { transform: translateY(-1px); }

.hero-visual {
  position: absolute;
  z-index: 1;
  top: 4%;
  right: -15%;
  bottom: 2%;
  left: 41%;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 46% 48%, rgba(0,194,214,.12), transparent 24%),
    radial-gradient(circle at 76% 30%, rgba(107,122,140,.08), transparent 28%);
}

.hero-visual:before {
  content: none;
}

.hero-abstract {
  position: absolute;
  inset: -8% -8% -6% -10%;
  z-index: 2;
  width: 118%;
  height: 114%;
  object-fit: cover;
  object-position: center;
  opacity: .98;
  filter: drop-shadow(0 22px 74px rgba(0, 194, 214, 0.2));
  animation: networkDrift 14s ease-in-out infinite;
}

.tech-orbit,
.signal-field,
.data-stack,
.orbit-ring,
.orbit-core,
.orbit-dot,
.signal-line,
.signal-node,
.data-stack span {
  position: absolute;
  display: block;
}

.tech-orbit,
.signal-field,
.data-stack {
  z-index: 3;
}

.tech-orbit {
  width: min(520px, 82vw);
  aspect-ratio: 1;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
}

.orbit-ring {
  inset: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  transform: rotateX(64deg) rotateZ(-18deg);
  box-shadow: inset 0 0 40px rgba(0,194,214,.08), 0 0 44px rgba(0,194,214,.08);
}

.orbit-ring-a {
  animation: orbitSpin 16s linear infinite;
}

.orbit-ring-b {
  inset: 12%;
  border-color: rgba(0,194,214,.38);
  transform: rotateX(64deg) rotateZ(35deg);
  animation: orbitSpin 11s linear infinite reverse;
}

.orbit-ring-c {
  inset: 24%;
  border-color: rgba(245,178,122,.34);
  border-style: dashed;
  animation: orbitSpin 20s linear infinite;
}

.orbit-core {
  width: 190px;
  height: 190px;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 34%, rgba(255,255,255,.95), rgba(0,194,214,.92) 18%, rgba(0,194,214,.34) 42%, rgba(11,29,58,.1) 66%, transparent 70%);
  box-shadow: 0 0 80px rgba(0,194,214,.45), 0 0 160px rgba(0,194,214,.16);
  transform: translate(-50%, -50%);
  animation: coreFloat 5.4s ease-in-out infinite;
}

.orbit-dot {
  width: 18px;
  height: 18px;
  border: 4px solid var(--cyan);
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 28px rgba(0,194,214,.7);
  animation: nodePulse 2.8s ease-in-out infinite;
}

.orbit-dot-a { left: 12%; top: 42%; }
.orbit-dot-b { right: 16%; top: 22%; animation-delay: -.7s; }
.orbit-dot-c { right: 20%; bottom: 20%; animation-delay: -1.4s; }
.orbit-dot-d { left: 28%; bottom: 12%; border-color: var(--orange); animation-delay: -2s; }

.signal-field {
  inset: 7% 0 9% 4%;
}

.signal-line {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0,194,214,.9), rgba(255,255,255,.72), transparent);
  transform-origin: left center;
  animation: currentFlow 5.8s linear infinite;
}

.signal-line-a { width: 72%; top: 22%; left: 4%; transform: rotate(-6deg); }
.signal-line-b { width: 60%; top: 39%; left: 12%; transform: rotate(18deg); animation-delay: -1.3s; }
.signal-line-c { width: 54%; top: 64%; left: 3%; transform: rotate(-21deg); animation-delay: -2.6s; }
.signal-line-d { width: 40%; top: 78%; left: 32%; transform: rotate(10deg); animation-delay: -3.9s; }

.signal-node {
  width: 14px;
  height: 14px;
  border: 3px solid rgba(255,255,255,.78);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 30px rgba(0,194,214,.6);
}

.signal-node-a { left: 8%; top: 20%; }
.signal-node-b { left: 24%; top: 62%; }
.signal-node-c { right: 18%; top: 39%; }

.data-stack {
  width: 210px;
  height: 164px;
  left: 5%;
  bottom: 11%;
  perspective: 620px;
}

.data-stack span {
  width: 190px;
  height: 54px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(0,194,214,.08));
  transform: rotateX(62deg) rotateZ(-18deg);
  box-shadow: 0 18px 38px rgba(0,0,0,.14);
  animation: layerFloat 4.5s ease-in-out infinite;
}

.data-stack span:nth-child(1) { top: 0; left: 0; }
.data-stack span:nth-child(2) { top: 42px; left: 18px; animation-delay: -.8s; }
.data-stack span:nth-child(3) { top: 84px; left: 36px; animation-delay: -1.6s; }

@keyframes lightSweep {
  0%, 35% { transform: translateX(-120%); opacity: 0; }
  52% { opacity: 1; }
  78%, 100% { transform: translateX(120%); opacity: 0; }
}

@keyframes networkDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  35% { transform: translate3d(-10px, 8px, 0) scale(1.018); }
  68% { transform: translate3d(8px, -6px, 0) scale(.992); }
}

@keyframes currentFlow {
  0% { opacity: .18; filter: saturate(1); }
  45% { opacity: .9; filter: saturate(1.45); }
  100% { opacity: .18; filter: saturate(1); }
}

@keyframes nodePulse {
  0%, 100% { transform: scale(.88); opacity: .74; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes orbitSpin {
  to { rotate: 360deg; }
}

@keyframes coreFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(.95); opacity: .88; }
  50% { transform: translate(-50%, -54%) scale(1.06); opacity: 1; }
}

@keyframes layerFloat {
  0%, 100% { transform: rotateX(62deg) rotateZ(-18deg) translateY(0); opacity: .68; }
  50% { transform: rotateX(62deg) rotateZ(-18deg) translateY(-12px); opacity: .95; }
}

.section { padding: 92px 0; }
.section-alt { background: var(--mist); }
.section-dark { background: var(--navy); color: var(--white); }

.section-head {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-head h2 {
  margin: 10px 0 0;
  color: var(--navy);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.05;
}

.section-dark .section-head h2 { color: var(--white); }
.section-head p { color: var(--steel); font-size: 18px; }
.section-dark .section-head p { color: rgba(255,255,255,.72); }

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.card h3 { margin: 0 0 10px; color: var(--navy); line-height: 1.2; }
.card p { margin: 0; color: var(--steel); }
.card-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--navy));
  display: grid;
  place-items: center;
}

.card-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.process-step { padding: 28px; background: var(--white); }
.process-step span { color: var(--cyan); font-weight: 900; }
.process-step h3 { color: var(--navy); margin: 12px 0 8px; }
.process-step p { color: var(--steel); margin: 0; }

.industries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-pill {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.86);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  padding: 16px 18px;
  border-left: 4px solid var(--cyan);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(11,29,58,.07);
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  padding: 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), #102f55);
  color: var(--white);
}

.cta h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 48px); line-height: 1.05; }
.cta p { margin: 0; color: rgba(255,255,255,.75); }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  padding: 70px 0;
}

.entry-card {
  padding-bottom: 34px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.entry-title { margin: 0 0 10px; color: var(--navy); font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.entry-meta { color: var(--steel); font-size: 14px; }
.entry-content { margin-top: 22px; }
.entry-content a { color: var(--cyan); font-weight: 700; }

.sidebar .widget {
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.widget-title { margin: 0 0 12px; color: var(--navy); }

.site-footer {
  background: #07162b;
  color: rgba(255,255,255,.74);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 32px;
}

.footer-logo { width: 230px; margin-bottom: 16px; padding: 8px; background: rgba(255,255,255,.95); border-radius: var(--radius); }
.site-footer h3 { color: var(--white); margin-top: 0; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 900;
}

.footer-social a:hover {
  border-color: rgba(0,194,214,.55);
  color: var(--cyan);
}
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-menu { display: none; position: absolute; left: 20px; right: 20px; top: 82px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .primary-menu.is-open,
  .primary-menu.is-open ul { display: grid; align-items: stretch; gap: 14px; }
  .language-switcher { order: 3; }
  .hero-inner,
  .content-layout,
  .cta,
  .footer-grid { grid-template-columns: 1fr; }
  .hero-visual {
    position: relative;
    inset: auto;
    min-height: 430px;
    margin-top: -24px;
  }
  .grid,
  .process,
  .benefit-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { min-height: 0; padding-top: 54px; }
}

@media (max-width: 620px) {
  .site-shell { width: min(100% - 26px, 1180px); }
  .header-inner { min-height: 72px; }
  .brand-logo { width: 205px; }
  .language-switcher { gap: 10px; }
  .language-switcher button { font-size: 13px; }
  .primary-menu { top: 72px; }
  .section { padding: 62px 0; }
  .grid,
  .process,
  .benefit-list { grid-template-columns: 1fr; }
  .hero-visual { min-height: 360px; }
  .hero-abstract { object-position: center; }
  .tech-orbit { right: -18%; width: min(440px, 92vw); }
  .data-stack { transform: scale(.78); transform-origin: left bottom; }
  .cta { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
