:root {
  --bg: #f3f7fc;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --text: #162136;
  --text-soft: #5c6d85;
  --line: rgba(18, 33, 54, 0.1);
  --primary: #152d53;
  --primary-strong: #0f2240;
  --accent: #f0a23a;
  --accent-strong: #e09023;
  --whatsapp: #23b45e;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(15, 34, 64, 0.1);
  --shadow-strong: 0 24px 60px rgba(8, 20, 42, 0.16);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.topbar {
  background: var(--primary);
  color: rgba(255,255,255,0.92);
  font-size: .92rem;
}
.topbar-wrap {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-group {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.topbar a:hover { color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow); }
.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo { width: 210px; height: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-weight: 700;
  color: var(--text);
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.site-nav a:hover::after { width: 100%; }
.nav-actions { display: flex; gap: 12px; }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.9rem;
  color: var(--primary);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #1d2430;
  box-shadow: 0 16px 36px rgba(240,162,58,0.3);
}
.btn-primary:hover { box-shadow: 0 20px 42px rgba(240,162,58,0.36); }
.btn-outline {
  border-color: rgba(21,45,83,0.16);
  background: rgba(255,255,255,0.78);
  color: var(--primary);
}
.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(35,180,94,0.26);
}
.btn-block { width: 100%; }

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}
.hero-slider, .hero-slide {
  position: absolute;
  inset: 0;
}
.hero-slide {
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}
.hero-badge {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .82rem;
  backdrop-filter: blur(8px);
}
.hero h1 {
  margin: 22px 0 10px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: .98;
}
.hero-subtitle {
  margin: 0 0 16px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #ffd89d;
}
.hero-text {
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.92);
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.hero-arrow-prev { left: 18px; }
.hero-arrow-next { right: 18px; }
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.hero-dots button.is-active { background: #fff; }

.trust-strip {
  margin-top: -54px;
  position: relative;
  z-index: 3;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.trust-item {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 900;
  font-size: 1.2rem;
}
.trust-item h3 { margin: 0 0 6px; font-size: 1.02rem; }
.trust-item p { margin: 0; color: var(--text-soft); line-height: 1.6; }

.section { padding: 96px 0; }
.section-soft { background: linear-gradient(180deg, #edf3fb 0%, #e7eef8 100%); }
.border-top { border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading.compact { margin-bottom: 28px; }
.section-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(21,45,83,0.08);
  color: var(--primary);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.section-heading h2 {
  margin: 16px 0 12px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}
.section-heading p { margin: 0; line-height: 1.8; color: var(--text-soft); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(18,33,54,0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.service-media { aspect-ratio: 16 / 10; overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.service-card:hover .service-media img { transform: scale(1.05); }
.service-body { padding: 24px; }
.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(240,162,58,0.14);
  color: #8f5b0f;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
}
.service-body h3 { margin: 0 0 12px; font-family: "Poppins", sans-serif; font-size: 1.22rem; }
.service-body p { margin: 0 0 18px; color: var(--text-soft); line-height: 1.75; }
.service-body a { font-weight: 800; color: var(--primary); }
.service-cta {
  margin-top: 36px;
  padding: 30px;
  text-align: center;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary), #223f72);
  color: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-strong);
}
.service-cta p { margin: 0 0 8px; }
.service-cta .btn { margin-top: 14px; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}
.about-copy p {
  color: var(--text-soft);
  line-height: 1.82;
  margin: 0 0 18px;
}
.about-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 30px;
}
.about-checks span {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(18,33,54,0.06);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: .95rem;
  font-weight: 600;
}
.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.gallery-col { display: grid; gap: 14px; }
.gallery-col.offset { padding-top: 42px; }
.about-gallery img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow-strong);
}
.gallery-col img:first-child { height: 210px; }
.gallery-col img:last-child { height: 270px; }

.logo-section { padding: 82px 0; background: rgba(255,255,255,0.82); }
.logo-marquee {
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(18,33,54,0.06);
  box-shadow: var(--shadow);
  padding: 28px 0;
}
.logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-left 38s linear infinite;
}
.logo-track img {
  height: 64px;
  width: auto;
  object-fit: contain;
  margin: 0 30px;
  filter: grayscale(1);
  opacity: .82;
  transition: opacity .25s ease, filter .25s ease, transform .25s ease;
}
.logo-track img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}
.brand-track img { height: 46px; }
.clients-marquee .logo-track { animation-duration: 44s; }
.brands-marquee .logo-track { animation-duration: 24s; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.contact-card-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.contact-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(18,33,54,0.07);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.contact-card h3 { margin: 0 0 10px; font-family: "Poppins", sans-serif; }
.contact-card p, .contact-card a {
  display: block;
  margin: 0 0 6px;
  color: var(--text-soft);
}
.contact-form {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(18,33,54,0.08);
  border-radius: 26px;
  box-shadow: var(--shadow-strong);
  padding: 28px;
}
.contact-form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 700;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(92,109,133,0.24);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(240,162,58,0.18);
  border-color: rgba(240,162,58,0.38);
}
.form-note {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--primary);
  font-weight: 700;
}

.site-footer {
  background: linear-gradient(135deg, var(--primary), #1e3a67);
  color: rgba(255,255,255,0.88);
  padding: 46px 0;
}
.footer-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-logo { width: 180px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.site-footer h4 {
  margin: 0 0 14px;
  font-family: "Poppins", sans-serif;
  color: #fff;
}
.site-footer p, .site-footer a {
  display: block;
  margin: 0 0 8px;
  line-height: 1.75;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 20px 40px rgba(35,180,94,0.36);
}
.whatsapp-float svg { width: 30px; height: 30px; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1080px) {
  .services-grid,
  .footer-wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .services-grid,
  .footer-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   TABLET / MOBILE
========================= */

@media (max-width: 860px) {

  .topbar-wrap {
    min-height: auto;
    padding: 10px 0;
  }

  .topbar-location {
    display: none;
  }

  .nav-wrap {
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 86px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(18,33,54,0.08);
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

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

  .nav-actions {
    display: none;
  }

  .trust-grid,
  .services-grid,
  .about-checks,
  .footer-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 640px;
  }

  .hero-arrow {
    display: none;
  }

  /* =========================
     LOGOS HEADER
  ========================= */

  .brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100% - 56px);
    overflow: hidden;
  }

  .brand-logo {
    width: 165px;
    flex-shrink: 1;
  }

  .brand-separator {
    width: 1px;
    height: 42px;
    background: rgba(21,45,83,0.18);
    flex-shrink: 0;
  }

  .sicep-logo-header {
    width: 125px;
    max-width: 32vw;
    height: auto;
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;
    display: block;
    flex-shrink: 1;
  }
}

/* =========================
   MOBILE SMALL
========================= */

@media (max-width: 640px) {

  .section,
  .logo-section {
    padding: 72px 0;
  }

  .brand-logo {
    width: 145px;
  }

  .sicep-logo-header {
    width: 108px;
    max-width: 30vw;
  }

  .brand-group {
    gap: 8px;
  }

  .brand-separator {
    height: 38px;
  }

  .hero {
    min-height: 600px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.45rem;
  }

  .hero-text {
    font-size: .98rem;
  }

  .gallery-col.offset {
    padding-top: 0;
  }

  .about-gallery {
    grid-template-columns: 1fr;
  }

  .logo-track img {
    height: 52px;
    margin: 0 20px;
  }

  .brand-track img {
    height: 38px;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
}

/* =========================
   DESKTOP LOGOS
========================= */

.brand-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.brand-separator {
  width: 1px;
  height: 54px;
  background: rgba(21,45,83,0.18);
}

.sicep-logo-header {
  width: 140px;
  height: auto;
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
  display: block;
}

/* CORRECCIÓN HEADER MÓVIL */

.nav-wrap {
  width: 100%;
  min-width: 0;
}

.brand-group {
  min-width: 0;
}

@media (max-width: 860px) {
  .nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
  }

  .brand-group {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100vw - 85px);
    gap: 6px;
  }

  .brand {
    flex: 0 1 auto;
    min-width: 0;
  }

  .brand-logo {
    width: clamp(125px, 38vw, 165px);
  }

  .brand-separator {
    height: 38px;
    flex: 0 0 1px;
  }

  .sicep-logo-header {
    width: clamp(78px, 22vw, 105px);
    max-width: 26vw;
    flex: 0 1 auto;
  }

  .menu-toggle {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .brand-logo {
    width: 122px;
  }

  .sicep-logo-header {
    width: 82px;
    max-width: 24vw;
  }

  .brand-separator {
    height: 34px;
  }
}