/* ============================================
   PROCETEL — Hoja de estilos compartida
   ============================================ */
:root {
  --navy: #132743;
  --navy-2: #1c3a5e;
  --orange: #ff6a3d;
  --gray: #6b7a87;
  --light: #f5f7f9;
  --border: #e6ebef;
  --white: #ffffff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  color: #243746;
  line-height: 1.6;
  background: var(--white);
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 70px 0;
}

/* ===== Header ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.5px;
  display: block;
}
.logo span {
  color: var(--orange);
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
}
nav > ul > li {
  position: relative;
}
nav > ul > li > a {
  color: var(--navy);
  font-weight: 600;
  font-size: 16px;
  padding: 10px 14px;
  display: block;
}
nav > ul > li > a.active,
nav > ul > li:hover > a {
  color: var(--navy-2);
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 8px 0;
  min-width: 240px;
  border: 1px solid var(--border);
}
nav > ul > li:hover .dropdown {
  display: block;
}
.dropdown li a {
  padding: 8px 18px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--gray);
  display: block;
}
.dropdown li a:hover {
  color: var(--orange);
  background: var(--light);
}
.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 15.5px;
  white-space: nowrap;
}
.nav-cta:hover {
  background: #e85a2c;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--navy);
  cursor: pointer;
}

/* ===== Page header (subpáginas) ===== */
.page-hero {
  background:
    linear-gradient(rgba(10, 20, 35, 0.78), rgba(10, 20, 35, 0.85)),
    linear-gradient(120deg, #1c3a5e 0%, #0b1c2c 55%, #12314f 100%);
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.page-hero-e {
  background:
    linear-gradient(rgba(10, 20, 35, 0.72), rgba(10, 20, 35, 0.8)),
    url("Electricidad.png");
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.page-hero-t {
  background:
    linear-gradient(rgba(10, 20, 35, 0.72), rgba(10, 20, 35, 0.8)),
    url("conectividad.png");
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.page-hero-s {
  background:
    linear-gradient(rgba(10, 20, 35, 0.72), rgba(10, 20, 35, 0.8)),
    url("seguridad.png");
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.page-hero-m {
  background:
    linear-gradient(rgba(10, 20, 35, 0.72), rgba(10, 20, 35, 0.8)),
    url("migraciones.png");
  color: var(--white);
  padding: 70px 0;
  text-align: center;
}
.page-hero .breadcrumb {
  font-size: 15px;
  color: #bcd0de;
  margin-bottom: 10px;
}
.page-hero .breadcrumb a {
  color: var(--white);
  font-weight: 600;
}
.page-hero h1 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 17px;
  color: #dbe3ea;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Hero (home, compacto) ===== */
.hero {
  position: relative;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(10, 20, 35, 0.3), rgba(10, 20, 35, 0.4)),
    url("camioneta.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.15) 0,
      transparent 3%
    ),
    radial-gradient(
      circle at 80% 60%,
      rgba(255, 255, 255, 0.12) 0,
      transparent 3%
    ),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03) 0 2px,
      transparent 2px 40px
    );
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero .eyebrow {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 22px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.hero p {
  font-size: 16px;
  color: #dbe3ea;
  margin-bottom: 22px;
}

/* ===== Buttons ===== */
.btn {
  padding: 11px 26px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 15.5px;
  display: inline-block;
  transition: transform 0.15s;
}
.btn-primary {
  background: var(--navy-2);
  color: var(--white);
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-outline-nav {
  border: 2px solid var(--orange);
  color: var(--navy);
}
.btn-outline-nav:hover {
  background: var(--orange);
  color: var(--white);
}

/* ===== Section heading ===== */
h2.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--gray);
  font-size: 16.5px;
  margin-bottom: 40px;
}

/* ===== Servicios: photo cards ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.service-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 180px;
  background: linear-gradient(145deg, #274763, #0e2135);
}
.service-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(6, 14, 24, 0.88) 0%,
    rgba(6, 14, 24, 0.15) 60%,
    rgba(6, 14, 24, 0.05) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
}
.service-card h4 {
  color: var(--white);
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.mini-btn {
  background: var(--navy-2);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}
.mini-btn:hover {
  background: #e85a2c;
}
.service-card.icon-1 {
  background:
    linear-gradient(0deg, rgba(6, 14, 24, 0.55), rgba(6, 14, 24, 0.2)),
    url("conectividad.png");
  background-size: cover;
  background-position: center;
}
.service-card.icon-2 {
  background:
    linear-gradient(0deg, rgba(6, 14, 24, 0.55), rgba(6, 14, 24, 0.2)),
    url("seguridad.png");
  background-size: cover;
  background-position: center;
}
.service-card.icon-5 {
  background:
    linear-gradient(0deg, rgba(6, 14, 24, 0.55), rgba(6, 14, 24, 0.2)),
    url("Electricidad.png");
  background-size: cover;
  background-position: center;
}
.service-card.icon-4 {
  background: linear-gradient(145deg, #1f3c58, #0d1b2b);
}
.service-card.icon-3 {
  background: linear-gradient(145deg, #204a5c, #0c2028);
}
.service-card.icon-6 {
  background:
    linear-gradient(0deg, rgba(6, 14, 24, 0.55), rgba(6, 14, 24, 0.2)),
    url("migraciones.png");
  background-size: cover;
  background-position: center;
}
.service-card .bg-icon {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 34px;
  opacity: 0.35;
}

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
.instagram-float {
  position: fixed;
  bottom: 94px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: transform 0.2s;
}
.instagram-float:hover {
  transform: scale(1.08);
}

/* ===== Video banner ===== */
.video-section {
  background: var(--white);
}
.video-grid {
  margin-top: 30px;
}
.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 6px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-thumb {
  position: relative;
  height: 130px;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(145deg, #1c3a5e, #0b1c2c);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ff3d3d;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.video-caption {
  position: absolute;
  bottom: 8px;
  left: 10px;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 600;
}

/* ===== Como lo hacemos / tarjetas outline ===== */
.how {
  background: var(--white);
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.how-card {
  border: 1.5px solid var(--navy-2);
  border-radius: 8px;
  padding: 30px 24px;
  text-align: center;
}
.icon-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--navy-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  color: var(--orange);
}
.how-card h4 {
  color: var(--navy-2);
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 10px;
}
.how-card p {
  color: var(--gray);
  font-size: 15.5px;
}

/* ===== Numeros ===== */
.numbers {
  background: var(--white);
}
.num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.num-card {
  text-align: center;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.num-card:last-child {
  border-right: none;
}
.num-card .flat-icon {
  font-size: 30px;
  margin-bottom: 10px;
}
.num-card strong {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy-2);
  margin-bottom: 4px;
}
.num-card span.label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  font-size: 14.5px;
}
.num-card p {
  color: var(--gray);
  font-size: 15px;
}

/* ===== Sectores ===== */
.sectors {
  background: var(--light);
}
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sector-chip {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 18px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  text-align: center;
}

/* ===== Listas de servicios (subpáginas) ===== */
.item-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.item-list li {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.item-list li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 800;
}

/* ===== Trust logos ===== */
.trust {
  background: var(--white);
  text-align: center;
}
.trust-strip {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
  align-items: center;
}
.trust-chip {
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  opacity: 0.65;
}

/* ===== Nosotros ===== */
.about {
  background: var(--light);
}
.about p.lead {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
  color: var(--gray);
  font-size: 16.5px;
}

/* ===== Contacto ===== */
.contact {
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}
.contact-form {
  background: var(--light);
  border-radius: 8px;
  padding: 32px;
  border: 1px solid var(--border);
}
.contact-form h3 {
  color: var(--navy);
  font-size: 20px;
  margin-bottom: 18px;
  font-weight: 700;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-group {
  margin-bottom: 12px;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 15.5px;
  font-family: inherit;
  background: var(--white);
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.contact-form button {
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
}
.contact-form button:hover {
  background: #e85a2c;
}
.contact-map {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.contact-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
}
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-item .icon-ring {
  width: 42px;
  height: 42px;
  font-size: 18px;
  flex-shrink: 0;
  margin: 0;
}
.contact-item strong {
  display: block;
  color: var(--navy);
  font-size: 16px;
  margin-bottom: 3px;
}
.contact-item span,
.contact-item a {
  color: var(--gray);
  font-size: 15.5px;
}

/* ===== Carrusel de clientes ===== */
.carousel-section {
  background: var(--light);
  overflow: hidden;
  padding-bottom: 50px;
}
.carousel-track-wrap {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );
}
.carousel-track {
  display: flex;
  align-items: center;
  gap: 60px;
  width: max-content;
  animation: carousel-scroll 30s linear infinite;
}
.carousel-track-wrap:hover .carousel-track {
  animation-play-state: paused;
}
.carousel-track img {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition:
    filter 0.2s,
    opacity 0.2s;
}
.carousel-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes carousel-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ===== CTA genérico ===== */
.cta-strip {
  background: var(--navy);
  color: var(--white);
  text-align: center;
}
.cta-strip h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
}
.cta-strip p {
  color: #c4d3de;
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 14.5px;
}

/* ===== Footer ===== */
footer {
  background: var(--navy);
  color: #c4d3de;
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 34px;
}
.footer-grid h4 {
  color: var(--white);
  font-size: 17px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-grid li {
  margin-bottom: 9px;
  font-size: 15.5px;
}
.footer-grid a:hover {
  color: var(--orange);
}
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo span {
  color: var(--orange);
}
.footer-logo img {
  height: 34px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 14.5px;
  color: #8ea3b3;
}

@media (max-width: 960px) {
  .service-grid,
  .service-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .how-grid {
    grid-template-columns: 1fr;
  }
  .num-grid {
    grid-template-columns: 1fr;
  }
  .num-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .item-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  nav ul {
    display: none;
  }
  .hero .eyebrow {
    font-size: 17px;
  }
  .page-hero h1 {
    font-size: 24px;
  }
  .service-grid,
  .service-grid.cols-4 {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
