﻿:root {
  --bg-dark: #07142c;
  --bg-dark-2: #0d2552;
  --bg-light: #f4f7fc;
  --line: #d8e2f4;
  --text: #0e1b34;
  --muted: #526789;
  --blue: #0f62e5;
  --blue-strong: #0847ad;
  --green: #12b66f;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(9, 24, 55, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--blue);
  text-decoration: none;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 20, 44, 0.95);
  border-bottom: 1px solid rgba(181, 201, 238, 0.24);
  backdrop-filter: blur(10px);
}

.topbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  width: clamp(220px, 18vw, 300px);
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.main-nav a {
  color: #dbe8ff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.2rem 0;
}

.main-nav a:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  gap: 0.65rem;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(166, 194, 245, 0.6);
  color: #fff;
  background: rgba(15, 40, 79, 0.8);
  border-radius: 9px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
}

.btn {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1.01rem;
  cursor: pointer;
  transition: transform .2s ease;
}

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

.btn-header {
  background: linear-gradient(140deg, var(--blue), #6ea1ff);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 98, 229, 0.28);
}

.btn-header-outline {
  border-color: rgba(166, 194, 245, 0.7);
  color: #d3e4ff;
  background: rgba(14, 40, 83, 0.45);
}

.btn-primary {
  background: linear-gradient(140deg, var(--blue), #5f96ff);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 98, 229, 0.3);
}

.btn-outline {
  border-color: rgba(196, 214, 247, 0.6);
  color: #dce9ff;
  background: rgba(16, 37, 73, 0.55);
}

.hero {
  padding: 4.2rem 0 3.2rem;
  background: radial-gradient(1200px 520px at 78% -22%, rgba(86, 146, 255, .35), transparent), linear-gradient(140deg, var(--bg-dark) 0%, #112b59 62%, #1a3f7e 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 .55rem;
  text-transform: uppercase;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #98c0ff;
}

.hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.8vw, 3.65rem);
  max-width: 16ch;
}

.hero-copy p {
  color: #d4e2ff;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1rem;
}

.hero-showcase {
  min-width: 0;
}

.showcase-carousel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c7d7f7;
  box-shadow: var(--shadow);
  min-height: 385px;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease;
}

.slide img {
  width: 100%;
  height: 325px;
  object-fit: cover;
  display: block;
}

.slide figcaption {
  padding: .75rem .95rem 1rem;
  font-weight: 700;
  color: #19366a;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(179, 201, 243, 0.9);
  background: rgba(245, 250, 255, 0.9);
  color: #183b76;
  font-size: 1.4rem;
  font-weight: 800;
}

.carousel-nav.prev { left: .65rem; }
.carousel-nav.next { right: .65rem; }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: .4rem;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(150, 180, 238, .7);
}

.dot.is-active { background: #0f62e5; }

.section {
  padding: 4rem 0;
}

.section-gray {
  background: var(--bg-light);
}

.section-dark {
  background: linear-gradient(145deg, #0a1936, #15336c);
}

.section-head {
  margin-bottom: 1.2rem;
}

.section-head.center {
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.section-head.light h2 { color: #fff; }

.kicker {
  margin: 0 0 .45rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 800;
  color: #5378ba;
}

.section-dark .kicker {
  color: #9fc2ff;
}

.company-section {
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.company-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.company-card {
  background: #fff;
  border: 1px solid #d0def8;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 14px 30px rgba(9, 30, 70, 0.09);
}

.company-card h3 {
  margin: 0 0 0.45rem;
  color: #11346c;
}

.company-card p {
  margin: 0;
  color: var(--muted);
}

.cert-badges {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.cert-badges img {
  width: 100%;
  height: 125px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d3e0f8;
  background: #f4f8ff;
}

.company-points {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.company-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: #1a3f76;
  font-weight: 600;
}

.company-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 0.48rem;
  background: #1d74e8;
  box-shadow: 0 0 0 4px rgba(29, 116, 232, 0.18);
}

.gallery-section {
  border-top: 1px solid #dde7f8;
  border-bottom: 1px solid #dde7f8;
}

.gallery-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 190px;
  gap: 0.7rem;
}

.gallery-card {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #cadbf8;
  box-shadow: 0 10px 28px rgba(12, 32, 70, 0.14);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 24, 50, 0.78));
}

.gallery-card figcaption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.6rem;
  margin: 0;
  z-index: 2;
  color: #eff5ff;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.map-section {
  background: #ffffff;
}

.map-frame {
  margin-top: 1rem;
  border: 1px solid #c8daf8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(9, 30, 70, 0.12);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

.map-cities {
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.map-cities li {
  border: 1px solid #b4cef6;
  background: #edf4ff;
  color: #19417b;
  border-radius: 999px;
  padding: 0.28rem 0.78rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}

.segment-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  min-height: 195px;
  padding: 1rem;
  color: #fff;
  box-shadow: var(--shadow);
}

.segment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 53, 0.48);
}

.segment-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 .45rem;
}

.segment-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 30ch;
}

.segment-card.cobalt {
  background: linear-gradient(140deg, rgba(15, 98, 229, 0.68), rgba(23, 69, 173, 0.8)), url("../assets/img/banner-system4r.jpg");
  background-size: cover;
  background-position: center;
}
.segment-card.sky {
  background: linear-gradient(140deg, rgba(45, 156, 255, 0.6), rgba(20, 101, 197, 0.82)), url("../assets/img/banner-gerente.jpg");
  background-size: cover;
  background-position: center;
}
.segment-card.indigo {
  background: linear-gradient(140deg, rgba(45, 88, 184, 0.65), rgba(26, 47, 132, 0.82)), url("../assets/img/banner-tef.jpg");
  background-size: cover;
  background-position: center;
}
.segment-card.navy {
  background: linear-gradient(140deg, rgba(29, 47, 87, 0.7), rgba(14, 25, 50, 0.86)), url("../assets/img/banner-system4r.jpg");
  background-size: cover;
  background-position: center;
}
.segment-card.violet {
  background: linear-gradient(140deg, rgba(112, 56, 191, 0.72), rgba(77, 33, 137, 0.85)), url("../assets/img/banner-gerente.jpg");
  background-size: cover;
  background-position: center;
}
.segment-card.teal {
  background: linear-gradient(140deg, rgba(14, 166, 126, 0.72), rgba(11, 122, 104, 0.86)), url("../assets/img/banner-tef.jpg");
  background-size: cover;
  background-position: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(10, 30, 68, .1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.product-card-body {
  padding: .95rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card h3 {
  margin: 0 0 .45rem;
}

.product-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
}

.btn-card {
  margin-top: auto;
  align-self: flex-start;
  background: #0f62e5;
  color: #fff;
  border-color: #0f62e5;
  box-shadow: 0 10px 20px rgba(15, 98, 229, 0.25);
}

.btn-card:hover {
  background: #0c53c1;
  border-color: #0c53c1;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .75rem;
}

.value-grid article {
  border: 1px solid rgba(168, 195, 244, .3);
  background: rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 1rem;
}

.value-grid h3 {
  margin: 0 0 .4rem;
  color: #fff;
}

.value-grid p {
  margin: 0;
  color: #c8dcff;
}

.structure-copy {
  margin: 0.8rem auto 0;
  max-width: 62ch;
  color: #ccdcfb;
}

.structure-pills {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.structure-pills li {
  border: 1px solid rgba(170, 198, 245, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: #ebf3ff;
  padding: 0.44rem 0.76rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.93rem;
}

.faq-wrap details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: .8rem .9rem;
  margin-bottom: .55rem;
}

.faq-wrap summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-wrap p {
  margin: .5rem 0 0;
  color: var(--muted);
}

.section-contact {
  background: linear-gradient(180deg,#eff5ff,#f9fcff);
  border-top: 1px solid #d9e5fa;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-info ul {
  list-style: none;
  margin: .8rem 0 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}

.contact-form {
  border: 1px solid #cbdcf9;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin: 0 0 .65rem;
}

.contact-form label {
  display: block;
  margin: .62rem 0 .28rem;
  font-weight: 700;
  color: #1c3157;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #bfd3f7;
  border-radius: 10px;
  padding: .67rem .7rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(15,98,229,.2);
  border-color: #1a6de8;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-label {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 500;
}

.consent-label input {
  width: auto;
  margin-top: .2rem;
}

.form-feedback {
  min-height: 1.2rem;
  margin: .55rem 0 0;
}

.form-feedback.is-success { color: #0f8f58; }
.form-feedback.is-error { color: #b02638; }

.site-footer {
  background: #08172f;
  color: #c6dbff;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: .9rem;
  align-items: start;
}

.footer-logo {
  width: 128px;
  height: auto;
}

.footer-title {
  margin: 0 0 .4rem;
  color: #fff;
  font-weight: 800;
}

.social-links {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(169, 193, 236, 0.44);
  background: rgba(14, 40, 84, 0.45);
  color: #d7e7ff;
}

.social-links a:hover {
  background: rgba(22, 56, 115, 0.85);
}

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tag-confirmar {
  background: #e9f1ff;
  border: 1px solid #adc7f5;
  color: #163973;
  font-size: .74rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .07rem .45rem;
}

.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  min-width: 188px;
  max-width: 220px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.48rem 0.4rem 0.4rem;
  background: #ffffff;
  border: 1px solid #b7d5fb;
  color: #0f2d5e;
  box-shadow: 0 14px 30px rgba(9, 30, 70, 0.26);
  text-decoration: none;
}

.zap-avatar {
  width: 31px;
  height: 31px;
  min-width: 31px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #2b6fd6, #17438e);
  color: #ffffff;
}

.zap-avatar svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.zap-copy {
  display: grid;
  line-height: 1.05;
}

.zap-copy strong {
  font-size: 0.73rem;
  letter-spacing: 0;
  color: #1a3e78;
}

.zap-copy small {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0d9e5f;
}

.zap-mark {
  margin-left: auto;
  width: 27px;
  height: 27px;
  min-width: 27px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #12b66f;
  color: #fff;
}

.zap-mark svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

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

@media (max-width: 520px) {
  .floating-whatsapp {
    min-width: 172px;
    max-width: 188px;
    right: 0.7rem;
    bottom: 0.7rem;
    padding-right: 0.42rem;
  }

  .zap-copy strong {
    font-size: 0.69rem;
  }

  .zap-copy small {
    font-size: 0.74rem;
  }
}

.floating-top {
  position: fixed;
  right: 1rem;
  bottom: 4.3rem;
  z-index: 79;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(151, 182, 232, 0.55);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #103062;
  color: #d9e8ff;
  box-shadow: 0 10px 24px rgba(9, 24, 55, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.floating-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 1080px) {
  .hero-grid,
  .company-grid,
  .segment-grid,
  .products-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .hero-grid,
  .company-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 860px) {
  .topbar {
    min-height: 84px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
  }

  .brand-logo {
    width: min(245px, 58vw);
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #0a1f43;
    border-bottom: 1px solid rgba(168, 196, 243, .35);
    padding: .8rem 4vw 1rem;
  }

  .main-nav a {
    font-size: 1.11rem;
  }

  .main-nav.is-open { display: flex; }

  .header-actions {
    display: none;
  }

  .segment-grid,
  .products-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 210px;
  }

  .gallery-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .cert-badges {
    grid-template-columns: 1fr;
  }

  .map-frame iframe {
    height: 300px;
  }

  .showcase-carousel {
    min-height: 350px;
  }

  .slide img {
    height: 285px;
  }
}
