:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #141821;
  --muted: #5c6575;
  --line: #dde3ec;
  --red: #f0143d;
  --red-dark: #b90d2d;
  --cyan: #00a5c8;
  --green: #20b36b;
  --shadow: 0 18px 45px rgba(20, 24, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(221, 227, 236, 0.72);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, min-height 0.25s ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  box-shadow: 0 14px 35px rgba(20, 24, 33, 0.08);
}

.brand img {
  width: 150px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  border-radius: 999px;
  padding: 9px 14px;
  color: #2d3442;
  font-size: 0.94rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--red-dark);
  background: rgba(240, 20, 61, 0.09);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  padding: 132px clamp(18px, 5vw, 78px) 56px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(20, 24, 33, 0.94) 0%, rgba(20, 24, 33, 0.78) 45%, rgba(20, 24, 33, 0.2) 100%),
    radial-gradient(circle at 82% 22%, rgba(0, 165, 200, 0.55), transparent 34%),
    linear-gradient(135deg, #1b2230, #2d3241 48%, #eef2f6 48%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 7px;
  background: linear-gradient(90deg, var(--red), var(--cyan), var(--green));
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 620px;
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--red);
  font-size: clamp(4rem, 12vw, 8.6rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-shadow: 0 16px 34px rgba(240, 20, 61, 0.22);
}

.hero-copy {
  max-width: 590px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 14px 28px rgba(240, 20, 61, 0.28);
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-media {
  position: absolute;
  right: clamp(20px, 6vw, 90px);
  bottom: 58px;
  width: min(42vw, 520px);
  min-width: 360px;
  opacity: 0.95;
}

.device-panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.project-panel {
  padding: 18px;
}

.panel-top {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.project-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  color: #ffffff;
}

.project-panel-heading span {
  color: #8fe5f4;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-panel-heading strong {
  font-size: 1rem;
}

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

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 174px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 16px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
}

.project-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), var(--cyan), var(--green));
  opacity: 0.78;
}

.project-card.is-active {
  background:
    linear-gradient(135deg, rgba(240, 20, 61, 0.4), rgba(0, 165, 200, 0.12)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px);
}

.project-card:nth-child(3) {
  grid-column: 1 / -1;
  min-height: 138px;
}

.project-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  color: #ffffff;
  background: rgba(0, 165, 200, 0.32);
  font-size: 0.78rem;
  font-weight: 800;
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.15;
}

.project-card p {
  margin: 0;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}

.project-card button {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  min-height: 36px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 0 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.project-card button:hover,
.project-card button:focus-visible {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

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

.camera-card:nth-child(3) {
  grid-column: 1 / -1;
}

.camera-card {
  position: relative;
  min-height: 124px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 14px;
  overflow: hidden;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.03)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
}

.camera-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  height: 28px;
  border-radius: 8px 8px 0 0;
  background: rgba(0, 165, 200, 0.28);
}

.camera-card strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 100%;
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  line-height: 1.25;
}

.camera-card.is-active {
  background:
    linear-gradient(135deg, rgba(240, 20, 61, 0.42), rgba(0, 165, 200, 0.13)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px);
}

.camera-status {
  display: block;
  width: 9px;
  height: 9px;
  margin-bottom: 46px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(32, 179, 107, 0.14);
}

.section,
.band,
.contact {
  padding: 88px clamp(18px, 5vw, 78px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section h2,
.band h2,
.contact h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 40px;
  align-items: center;
  background: var(--surface);
}

.intro p,
.solution-copy p,
.contact-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card,
.steps article,
.metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card {
  min-height: 292px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 8px;
  color: var(--red-dark);
  background: rgba(240, 20, 61, 0.1);
  font-weight: 800;
}

.service-card h3,
.steps h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.service-card p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.band {
  color: #ffffff;
  background: #151a24;
}

.band .section-kicker,
.band h2 {
  color: #ffffff;
}

.band .section-kicker {
  color: #8fe5f4;
}

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

.steps article {
  padding: 24px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--red);
  font-weight: 800;
}

.steps p {
  color: rgba(255, 255, 255, 0.74);
}

.solutions {
  background: var(--surface);
}

.solution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 42px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #2d3442;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(32, 179, 107, 0.13);
}

.metrics {
  display: grid;
  gap: 14px;
}

.metrics div {
  padding: 24px;
}

.metrics strong {
  display: block;
  color: var(--red);
  font-size: 2.4rem;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
  background: linear-gradient(135deg, #eef3f7, #ffffff);
}

.contact-content {
  max-width: 860px;
}

.contact-content h2 {
  max-width: 760px;
}

.contact-content p {
  max-width: 720px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 22px;
  border-radius: 8px;
  padding: 0 16px;
  color: var(--red-dark);
  background: rgba(240, 20, 61, 0.09);
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease;
}

.contact-email:hover {
  color: #ffffff;
  background: var(--red);
}

.contact-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.contact-highlights div {
  min-height: 128px;
  border-top: 3px solid var(--red);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(20, 24, 33, 0.07);
}

.contact-highlights strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1rem;
}

.contact-highlights span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: #2d3442;
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfe;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 165, 200, 0.12);
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.form-status.is-error {
  color: var(--red-dark);
}

.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 22, 0.72);
  backdrop-filter: blur(10px);
}

.project-modal-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  width: min(940px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.project-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.project-preview {
  min-height: 360px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(20, 24, 33, 0.92), rgba(20, 24, 33, 0.72)),
    linear-gradient(135deg, var(--red), var(--cyan));
}

/*.project-preview.has-image {
  display: grid;
  place-items: center;
  padding: 14px;
  background: linear-gradient(135deg, #eef3f7, #ffffff);
}*/

.project-preview.has-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, .12), transparent 35%),
    linear-gradient(135deg, #eef3f7, #ffffff 100%);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, .35),
    inset 0 1px 0 rgba(255, 255, 255, .05);

  border: 1px solid rgba(255, 255, 255, .08);
}

.project-preview.has-image img {
  width: 100%;
  height: auto;
  max-height: 460px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 18px 42px rgba(20, 24, 33, 0.18);
}

.project-preview.has-image .preview-browser,
.project-preview.has-image .preview-screen {
  display: none;
}

.preview-browser {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.preview-browser span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
}

.preview-screen {
  display: grid;
  grid-template-columns: 92px 1fr;
  min-height: 310px;
}

.preview-sidebar {
  background: rgba(0, 165, 200, 0.58);
}

.preview-content {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.preview-content div {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.preview-content div:nth-child(1) {
  min-height: 82px;
  background: linear-gradient(135deg, #ffffff, #dfe9f6);
}

.preview-content div:nth-child(2),
.preview-content div:nth-child(3) {
  min-height: 68px;
}

.project-preview.is-hardware {
  background:
    linear-gradient(135deg, rgba(32, 179, 107, 0.78), rgba(20, 24, 33, 0.9)),
    linear-gradient(135deg, #20b36b, #00a5c8);
}

.project-preview.is-residential {
  background:
    linear-gradient(135deg, rgba(240, 20, 61, 0.72), rgba(20, 24, 33, 0.9)),
    linear-gradient(135deg, #f0143d, #00a5c8);
}

.project-modal-content {
  align-self: center;
  padding-right: 18px;
}

.project-modal-content h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.project-client {
  margin: 16px 0;
  color: var(--red-dark);
  font-weight: 800;
}

.project-modal-content p:not(.project-client) {
  margin: 0;
  color: var(--muted);
}

.project-clients {
  margin-top: 22px;
}

.project-clients:empty {
  display: none;
}

.project-clients h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
}

.project-client-list {
  display: grid;
  gap: 9px;
}

.project-client-list div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(90px, 0.65fr) max-content;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fbfcfe;
}

.project-client-list strong,
.project-client-list em {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.project-client-list span {
  color: var(--muted);
}

.project-client-list em {
  justify-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--red-dark);
  background: rgba(240, 20, 61, 0.09);
  font-size: 0.82rem;
  line-height: 1;
  white-space: nowrap;
}

.project-modal-content ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.project-modal-content li {
  position: relative;
  padding-left: 24px;
  color: #2d3442;
  font-weight: 700;
}

.project-modal-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 78px);
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer img {
  width: 112px;
}

.footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .hero-media {
    width: 44vw;
    min-width: 300px;
    opacity: 0.55;
  }

  .service-grid,
  .steps,
  .contact-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 70px;
  }

  .brand img {
    width: 126px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 70px;
    left: 14px;
    right: 14px;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .menu-open .nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    border-radius: 8px;
    padding: 12px 14px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 116px;
  }

  .hero-media {
    right: -90px;
    bottom: 34px;
    width: 360px;
    min-width: 0;
    opacity: 0.28;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    max-width: 320px;
  }

  .intro,
  .solution-layout,
  .contact,
  .project-modal-card {
    grid-template-columns: 1fr;
  }

  .project-modal-card {
    padding: 18px;
  }

  .project-preview {
    min-height: 260px;
  }

  .preview-screen {
    min-height: 220px;
  }

  .project-client-list div {
    grid-template-columns: 1fr;
  }

  .section,
  .band,
  .contact {
    padding-top: 66px;
    padding-bottom: 66px;
  }
}

@media (max-width: 560px) {
  .service-grid,
  .steps,
  .contact-highlights {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .camera-grid {
    grid-template-columns: 1fr;
  }

  .camera-card:nth-child(3) {
    grid-column: auto;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(3) {
    grid-column: auto;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================
   CARRUSEL PROFESIONAL
========================= */

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #0f172a;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.carousel-inner {
  display: flex;
  transition: transform 0.6s ease;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 18px;
}

/* Botones */

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  font-size: 28px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: 0.25s ease;
  z-index: 10;
}

.carousel-control:hover {
  background: rgba(15, 23, 42, 0.95);
  transform: translateY(-50%) scale(1.08);
}

.carousel-control.prev {
  left: 14px;
}

.carousel-control.next {
  right: 14px;
}

/* Responsive */

@media (max-width: 768px) {

  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

}

.footer {
  position: relative;
  background: linear-gradient(180deg, #060816 0%, #050505 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 140, 255, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(0, 255, 170, 0.12), transparent 30%);
  pointer-events: none;
}

.footer img {
  width: 140px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.footer p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.social-links a {
  position: relative;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: all 0.35s ease;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(0, 140, 255, 0.25),
      rgba(0, 255, 170, 0.12));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.social-links a span {
  position: relative;
  z-index: 2;
}

.social-links a:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 140, 255, 0.45);
  box-shadow:
    0 10px 30px rgba(0, 140, 255, 0.18),
    0 0 18px rgba(0, 255, 170, 0.12);
}

.social-links a:hover::before {
  opacity: 1;
}

.social-sidebar {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  z-index: 999;
}

.social-sidebar a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  text-decoration: none;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.4px;

  background: rgba(10, 15, 30, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(14px);

  transition: all 0.35s ease;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(0, 140, 255, 0.08);

  overflow: hidden;
}

.social-sidebar a::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(135deg,
      rgba(0, 140, 255, 0.25),
      rgba(0, 255, 170, 0.15));

  opacity: 0;
  transition: opacity 0.35s ease;
}

.social-sidebar a:hover {
  transform: translateX(6px) scale(1.05);

  border-color: rgba(0, 140, 255, 0.45);

  box-shadow:
    0 10px 30px rgba(0, 140, 255, 0.18),
    0 0 18px rgba(0, 255, 170, 0.12);
}

.social-sidebar a:hover::before {
  opacity: 1;
}

.social-sidebar a {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .social-sidebar {
    flex-direction: row;
    bottom: 18px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 8, 20, 0.75);
    padding: 0.7rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
  }

  .social-sidebar a {
    width: 46px;
    height: 46px;
    font-size: 0.62rem;
  }

  .social-sidebar a:hover {
    transform: translateY(-4px);
  }
}

.social-sidebar {
  position: fixed;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
}

.social-sidebar a {
  position: relative;
  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  text-decoration: none;
  color: #ffffff;

  background: rgba(10, 15, 30, 0.78);

  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(16px);

  transition: all 0.35s ease;

  overflow: hidden;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(0, 140, 255, 0.08);
}

.social-sidebar a::before {
  content: "";
  position: absolute;
  inset: 0;

  opacity: 0;

  transition: opacity 0.35s ease;
}

.social-sidebar a i {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
}

.social-sidebar a:hover {
  transform: translateX(6px) scale(1.08);

  border-color: rgba(255, 255, 255, 0.18);

  box-shadow:
    0 10px 30px rgba(0, 140, 255, 0.20),
    0 0 18px rgba(0, 255, 170, 0.10);
}

.social-sidebar a:hover::before {
  opacity: 1;
}

/* Colores tecnológicos por red */

.instagram::before {
  background: linear-gradient(135deg,
      rgba(255, 0, 128, 0.35),
      rgba(255, 140, 0, 0.25));
}

.facebook::before {
  background: linear-gradient(135deg,
      rgba(24, 119, 242, 0.35),
      rgba(0, 212, 255, 0.18));
}

.linkedin::before {
  background: linear-gradient(135deg,
      rgba(10, 102, 194, 0.35),
      rgba(0, 180, 255, 0.15));
}

.twitter::before {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.15),
      rgba(120, 120, 120, 0.12));
}

.tiktok::before {
  background: linear-gradient(135deg,
      rgba(0, 255, 200, 0.20),
      rgba(255, 0, 100, 0.18));
}

@media (max-width: 768px) {
  .social-sidebar {
    left: 50%;
    top: auto;
    bottom: 18px;

    transform: translateX(-50%);

    flex-direction: row;

    padding: 0.8rem 1rem;

    border-radius: 24px;

    background: rgba(5, 8, 20, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(18px);
  }

  .social-sidebar a {
    width: 48px;
    height: 48px;
  }

  .social-sidebar a:hover {
    transform: translateY(-4px) scale(1.05);
  }
}

/* =========================================
TEMA MÁS CLARO Y PROFESIONAL
========================================= */

body {
  background:
    radial-gradient(circle at top left,
      rgba(0, 165, 200, 0.04),
      transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
}

/* HEADER */

.site-header {
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(228, 235, 243, .9);
  box-shadow: 0 8px 25px rgba(15, 23, 42, .03);
}

/* HERO */

.hero {
  background:
    linear-gradient(115deg,
      rgba(255, 255, 255, .96) 0%,
      rgba(248, 251, 255, .93) 42%,
      rgba(223, 248, 253, .90) 100%),

    radial-gradient(circle at 85% 15%,
      rgba(0, 165, 200, .16),
      transparent 30%),

    radial-gradient(circle at 15% 80%,
      rgba(240, 20, 61, .06),
      transparent 24%);
}

.hero-content {
  color: #1d2736;
}

.hero-copy {
  color: #556070;
}

/* BOTONES */

.button.secondary {
  color: #1d2736;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(0, 0, 0, .08);
}

/* PANEL HERO */

.device-panel {
  background: rgba(255, 255, 255, .70);
  border: 1px solid rgba(255, 255, 255, .85);

  box-shadow:
    0 22px 55px rgba(15, 23, 42, .08);

  backdrop-filter: blur(18px);
}

.project-panel-heading {
  color: #1d2736;
}

.project-card {
  color: #1d2736;

  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .98),
      rgba(248, 251, 255, .96));

  border: 1px solid rgba(223, 231, 242, .95);

  box-shadow:
    0 12px 30px rgba(15, 23, 42, .05);
}

.project-card p {
  color: #5d6777;
}

.project-card button {
  color: #1d2736;

  background: rgba(255, 255, 255, .92);

  border: 1px solid rgba(0, 0, 0, .08);
}

/* SERVICIOS */

.service-card {
  background:
    linear-gradient(180deg, #ffffff, #f9fbff);

  box-shadow:
    0 10px 24px rgba(15, 23, 42, .05);
}

/* PROCESO */

.band {
  background:
    linear-gradient(135deg,
      #edf7fb,
      #f8fbff);

  color: #1d2736;
}

.band h2 {
  color: #162033;
}

.steps article {
  background: rgba(255, 255, 255, .88);

  color: #1d2736;

  border: 1px solid rgba(0, 165, 200, .08);

  box-shadow:
    0 10px 25px rgba(15, 23, 42, .04);
}

.steps p {
  color: #667085;
}

/* CONTACTO */

.contact {
  background:
    linear-gradient(180deg,
      #f8fbff 0%,
      #ffffff 100%);
}

.contact-form {
  background: rgba(255, 255, 255, .92);

  box-shadow:
    0 22px 50px rgba(15, 23, 42, .06);
}

/* MODAL */

.project-modal-backdrop {
  background: rgba(15, 23, 42, .42);
}

.project-modal-card {
  background:
    linear-gradient(180deg, #ffffff, #f8fbff);

  box-shadow:
    0 30px 80px rgba(15, 23, 42, .16);
}

/* FOOTER */

.footer {
  background:
    linear-gradient(180deg,
      #f7fbff 0%,
      #eef5fb 100%);

  border-top: 1px solid rgba(228, 235, 243, .95);
}

.footer p {
  color: #667085;
}

.social-links a {
  color: #1d2736;

  background:
    rgba(255, 255, 255, .85);

  border: 1px solid rgba(0, 0, 0, .06);

  box-shadow:
    0 8px 20px rgba(15, 23, 42, .05);
}

/* SIDEBAR SOCIAL */

.social-sidebar a {
  color: #1d2736;

  background:
    rgba(255, 255, 255, .82);

  border: 1px solid rgba(0, 0, 0, .06);

  box-shadow:
    0 10px 24px rgba(15, 23, 42, .08);
}

.social-sidebar a:hover {
  border-color: rgba(0, 165, 200, .28);

  box-shadow:
    0 14px 30px rgba(0, 165, 200, .14);
}

/* MOBILE */

@media (max-width: 768px) {

  .social-sidebar {
    background:
      rgba(255, 255, 255, .88);

    border: 1px solid rgba(0, 0, 0, .05);
    
  }

  .hero-media {
    opacity: .18;
  }

}

/* =========================================
MEJORAR LEGIBILIDAD + REDES SOCIALES
AGREGAR AL FINAL DEL CSS
========================================= */

/* QUITAR VERDES POCO LEGIBLES */

.project-panel-heading span,
.band .section-kicker,
.metrics strong {
  color: #0088aa !important;
}

.check-list li {
  color: #1d2736;
}

.steps p,
.project-card p,
.hero-copy,
.intro p,
.solution-copy p,
.contact-content p {
  color: #556070 !important;
}

/* REDES SOCIALES MÁS VISIBLES */

.social-sidebar a {
  width: 58px;
  height: 58px;

  background: rgba(255, 255, 255, .96) !important;

  border: 1px solid rgba(0, 0, 0, .08);

  box-shadow:
    0 14px 34px rgba(15, 23, 42, .14),
    0 0 18px rgba(0, 165, 200, .10);

  backdrop-filter: blur(16px);
}

.social-sidebar a i {
  font-size: 1.45rem;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

/* COLORES REALES Y MÁS FUERTES */

.social-sidebar .instagram i {
  color: #e1306c;
}

.social-sidebar .facebook i {
  color: #1877f2;
}

.social-sidebar .linkedin i {
  color: #0a66c2;
}

.social-sidebar .twitter i {
  color: #111111;
}

.social-sidebar .tiktok i {
  color: #000000;
}

/* EFECTO HOVER MÁS PROFESIONAL */

.social-sidebar a:hover {
  transform: translateX(8px) scale(1.08);

  box-shadow:
    0 18px 40px rgba(0, 165, 200, .18),
    0 0 22px rgba(0, 165, 200, .14);
}

/* MOBILE */

@media (max-width: 768px) {

  .social-sidebar {
    background: rgba(255, 255, 255, .96);

    box-shadow:
      0 10px 30px rgba(15, 23, 42, .12);
  }

  .social-sidebar a {
    width: 52px;
    height: 52px;
  }

  .social-sidebar a i {
    font-size: 1.25rem;
  }

}

.contact-email {
  color: #2980b9;
  /* azul tipo enlace */
  text-decoration: underline;
  cursor: default;
  /* no muestra la mano de link */
}


