/* ============================================================
   CISS — Corporación Integral de Servicios & Seguridad
   style.css — Estilos globales
   Tipografía: Hepta Slab (headings) + Poppins (body)
   Colores:    Navy #0A014C  |  Teal #27CBB9  |  White #FFFFFF
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Hepta+Slab:wght@400;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ── Custom Properties ── */
:root {
  --color-navy:       #0A014C;
  --color-navy-dark:  #060130;
  --color-navy-mid:   #12077a;
  --color-teal:       #27CBB9;
  --color-teal-dark:  #1da899;
  --color-white:      #FFFFFF;
  --color-light:      #F4F6F9;
  --color-gray:       #8892A4;
  --color-gray-light: #DEE2EB;
  --color-text:       #1A1A2E;

  --font-heading: 'Hepta Slab', serif;
  --font-body:    'Poppins', sans-serif;

  --nav-height: 80px;

  --transition: 0.3s ease;
  --radius:     8px;
  --radius-lg:  16px;

  --shadow-sm: 0 2px 12px rgba(10, 1, 76, 0.08);
  --shadow-md: 0 8px 32px rgba(10, 1, 76, 0.14);
  --shadow-lg: 0 24px 64px rgba(10, 1, 76, 0.20);

  --max-width: 1280px;
  --section-py: 100px;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.1;
  font-weight: 800;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal);
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
}

.section-title .accent {
  color: var(--color-teal);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-teal);
  color: var(--color-navy);
  border-color: var(--color-teal);
}

.btn-primary:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(39, 203, 185, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline-dark:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.btn-navy:hover {
  background: var(--color-navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* WhatsApp button */
.btn-whatsapp {
  background: #25D366;
  color: var(--color-white);
  border-color: #25D366;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* ── Navigation ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.site-header.transparent {
  background: transparent;
  padding: 16px 0;
}

.site-header.scrolled {
  background: var(--color-navy);
  box-shadow: 0 4px 24px rgba(10, 1, 76, 0.3);
  padding: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo img {
  height: 40px;
  width: auto;
  transition: opacity var(--transition);
}

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

.nav__link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 16px;
  border-radius: 50px;
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.02em;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-teal);
}

.nav__cta {
  margin-left: 16px;
  font-size: 0.875rem;
  padding: 10px 24px;
}

/* Botón WhatsApp en nav */
.nav__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  padding: 9px 18px;
  background: var(--color-teal);
  color: var(--color-navy) !important;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}

.nav__whatsapp i {
  font-size: 1rem;
}

.nav__whatsapp:hover {
  background: var(--color-teal-dark);
  transform: scale(1.03);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mega menu ── */
.nav__item--mega {
  position: static;
}

.nav__link--has-mega {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav__chevron {
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform var(--transition);
}

.nav__item--mega.mega-open .nav__chevron {
  transform: rotate(180deg);
}

.nav__mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--color-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 990;
}

.nav__item--mega.mega-open .nav__mega {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav__mega-inner {
  padding: 36px 0 28px;
}

.nav__mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 24px;
}

.mega-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition);
}

.mega-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(39, 203, 185, 0.25);
}

.mega-card__num {
  font-family: var(--font-body);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
  position: absolute;
  bottom: 8px;
  right: 14px;
  pointer-events: none;
  transition: -webkit-text-stroke-color var(--transition);
  user-select: none;
}

.mega-card:hover .mega-card__num {
  -webkit-text-stroke-color: rgba(39, 203, 185, 0.18);
}

.mega-card__title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
  max-width: 80%;
  transition: color var(--transition);
  position: relative;
  z-index: 1;
}

.mega-card:hover .mega-card__title {
  color: #fff;
}

.nav__mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: gap var(--transition);
}

.nav__mega-cta:hover {
  gap: 14px;
}

/* Elementos exclusivos del sidebar móvil */
.nav__menu-logo,
.nav__social-row {
  display: none;
}

/* Overlay fondo oscuro */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 998;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav__overlay.open {
  display: block;
  opacity: 1;
}

/* Mobile menu — sidebar lateral */
@media (max-width: 900px) {
  .nav__hamburger {
    display: flex;
    position: relative;
    z-index: 1001;
  }

  .nav__menu-logo {
    display: flex !important;
    justify-content: center;
    padding: 0 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
  }

  .nav__menu-logo img {
    height: 48px;
    width: auto;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    max-width: 340px;
    height: 100dvh;
    background: var(--color-navy);
    flex-direction: column;
    align-items: stretch;
    padding: 48px 28px 40px;
    gap: 4px;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
  }

  .nav__menu.open {
    transform: translateX(0);
  }

  .nav__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: var(--radius);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__link i {
    color: var(--color-teal);
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 20px;
    text-align: center;
    justify-content: center;
    gap: 10px;
  }

  .nav__whatsapp-item,
  .nav__social-row {
    display: none;
  }

  .nav__whatsapp-item {
    display: flex !important;
    justify-content: center;
    margin-top: 20px;
  }

  .nav__whatsapp {
    margin-left: 0;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    width: 100%;
    max-width: 260px;
  }

  .nav__social-row {
    display: flex !important;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav__social-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: border-color var(--transition), color var(--transition), background var(--transition);
  }

  .nav__social-row a:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
    background: rgba(39, 203, 185, 0.08);
  }

  /* Mega menu en sidebar: acordeón */
  .nav__mega {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border-top: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius);
    margin-top: 4px;
    opacity: 1 !important;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease;
  }

  .nav__item--mega.open .nav__mega {
    pointer-events: all;
    max-height: 800px;
  }

  .nav__item--mega.open .nav__chevron {
    transform: rotate(180deg);
  }

  .nav__mega-inner {
    padding: 12px 8px 16px;
  }

  .nav__mega-grid {
    grid-template-columns: 1fr;
    gap: 2px;
    margin-bottom: 12px;
  }

  .mega-card {
    padding: 12px 16px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .mega-card__num {
    position: static;
    font-size: 1.2rem;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
  }

  .mega-card__title {
    font-size: 0.85rem;
    max-width: 100%;
  }

  .nav__mega-cta {
    padding: 0 16px;
    font-size: 0.75rem;
  }
}

/* ── Footer ── */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}

/* Texto decorativo de fondo */
.footer__deco-text {
  position: absolute;
  bottom: -20px;
  left: -10px;
  font-family: var(--font-heading);
  font-size: clamp(120px, 18vw, 220px);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  text-stroke: 1px rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  letter-spacing: -4px;
}

/* Layout principal: 4 columnas iguales */
.footer__main {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  padding: 80px 0 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

/* Newsletter (izquierda) */
.footer__newsletter-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal);
  display: block;
  margin-bottom: 12px;
}

.footer__newsletter-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 32px;
}

.footer__newsletter-form {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 6px 6px 6px 24px;
  max-width: 480px;
  transition: border-color var(--transition);
}

.footer__newsletter-form:focus-within {
  border-color: var(--color-teal);
}

.footer__newsletter-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-white);
  min-width: 0;
}

.footer__newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.footer__newsletter-btn {
  background: var(--color-teal);
  color: var(--color-navy);
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.footer__newsletter-btn:hover:not(:disabled) {
  background: var(--color-teal-dark);
  transform: scale(1.02);
}

.footer__newsletter-btn:disabled {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
  transform: none;
}

.footer__newsletter-checks {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__newsletter-checks label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  line-height: 1.4;
}

.footer__newsletter-checks input[type="checkbox"] {
  accent-color: var(--color-teal);
  margin-top: 2px;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Columnas derecha — transparente al grid padre */
.footer__cols {
  display: contents;
}

.footer__col-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer__col-company {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer__col-info {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
}

.footer__col-info a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer__col-info a:hover {
  color: var(--color-teal);
}

.footer__nav li {
  margin-bottom: 10px;
}

/* Contacto con iconos */
.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.footer__contact-list i {
  color: var(--color-teal);
  font-size: 0.95rem;
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  text-align: center;
}

.footer__contact-list a {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition);
}

.footer__contact-list a:hover {
  color: var(--color-teal);
}

/* Nav con iconos viñeta */
.footer__nav li {
  margin-bottom: 10px;
}

.footer__nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color var(--transition), gap var(--transition);
}

.footer__nav a:hover {
  color: var(--color-teal);
  gap: 14px;
}

.footer__nav a i {
  font-size: 0.75rem;
  color: var(--color-teal);
  opacity: 0.7;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
  transition: opacity var(--transition);
}

.footer__nav a:hover i {
  opacity: 1;
}

/* Redes sociales con círculo */
.footer__social-list li {
  margin-bottom: 10px;
}

.footer__social-list a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color var(--transition);
}

.footer__social-list a:hover {
  color: var(--color-teal);
}

.footer__social-list .social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.footer__social-list a:hover .social-icon {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-navy);
}

/* Barra inferior */
.footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer__copyright {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition);
}

.footer__bottom-links a:hover {
  color: var(--color-teal);
}

/* Footer responsive */
@media (max-width: 1024px) {
  .footer__main {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ── WhatsApp Float Button ── */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  left: 32px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background: var(--color-navy);
  border: 2px solid var(--color-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-teal);
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-teal);
  color: var(--color-navy);
}

/* ── Single servicio: Problems + Highlight grid ── */
.srv-ph-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(10,1,76,0.10);
}
.srv-ph-col {
  padding: 40px;
}
.srv-ph-col--problems {
  background: #f4f6fb;
}
.srv-ph-col--highlight {
  background: var(--color-navy);
  display: flex;
  align-items: center;
  border-left: 4px solid var(--color-teal);
}
.srv-ph-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.srv-ph-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.srv-ph-list li {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.75;
  color: #374151;
  padding-left: 22px;
  position: relative;
}
.srv-ph-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
  flex-shrink: 0;
}
.srv-ph-text {
  font-family: var(--font-body);
  font-size: 0.975rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.88);
  font-style: italic;
  font-weight: 500;
  margin: 0;
  position: relative;
  padding-left: 20px;
}
.srv-ph-text::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -6px;
  font-size: 2.5rem;
  color: var(--color-teal);
  font-style: normal;
  line-height: 1;
}
.srv-ph-grid--single {
  grid-template-columns: 1fr !important;
}
@media (max-width: 768px) {
  .srv-ph-grid { grid-template-columns: 1fr; }
  .srv-ph-col--highlight { border-left: none; border-top: 4px solid var(--color-teal); }
}

/* ── Section helpers ── */
.section-dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.section-navy-dark {
  background: var(--color-navy-dark);
  color: var(--color-white);
}

.section-teal {
  background: var(--color-teal);
  color: var(--color-navy);
}

.section-light {
  background: var(--color-light);
  color: var(--color-text);
}

/* ── Page Hero (páginas internas) ── */
.page-hero {
  background: var(--color-navy);
  padding: 160px 0 80px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(39, 203, 185, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 16px;
}

.page-hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  max-width: 700px;
}

.page-hero__title .accent {
  color: var(--color-teal);
}

.page-hero__desc {
  margin-top: 24px;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Decorative arrow (CISS motif) ── */
.deco-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--color-teal);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.deco-arrow--sm {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

.deco-arrow--lg {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

.deco-arrow--outline {
  background: transparent;
  border: 2px solid var(--color-teal);
  color: var(--color-teal);
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--color-gray-light);
  border: none;
}

.divider--dark {
  background: rgba(255, 255, 255, 0.1);
}

/* ── Scroll reveal animation ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-delay="100"] { transition-delay: 0.1s; }
[data-reveal-delay="200"] { transition-delay: 0.2s; }
[data-reveal-delay="300"] { transition-delay: 0.3s; }
[data-reveal-delay="400"] { transition-delay: 0.4s; }
[data-reveal-delay="500"] { transition-delay: 0.5s; }
[data-reveal-delay="600"] { transition-delay: 0.6s; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--color-teal);
}

.breadcrumb span {
  color: var(--color-teal);
}

/* ── Responsive utilities ── */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }
  .container {
    padding: 0 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 64px;
  }
  .container {
    padding: 0 20px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* ════════════════════════════════════════
   CLIENTS SECTION — global
════════════════════════════════════════ */
.clients-section {
  padding: var(--section-py) 0;
  background: var(--color-white);
}

.clients-section__header {
  text-align: center;
  margin-bottom: 64px;
}

.clients-section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-navy);
}

.clients-section__subtitle {
  font-size: 1rem;
  color: #888;
  margin-top: 12px;
}

.clients-marquee {
  overflow: hidden;
  position: relative;
}

.clients-marquee::before,
.clients-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}

.clients-marquee::before {
  left: 0;
  background: linear-gradient(to right, white, transparent);
}

.clients-marquee::after {
  right: 0;
  background: linear-gradient(to left, white, transparent);
}

.clients-marquee__track {
  display: flex;
  align-items: center;
  gap: 64px;
  animation: marquee 28s linear infinite;
}

.clients-marquee__track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.client-logo {
  flex-shrink: 0;
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter var(--transition);
}

.client-logo:hover {
  filter: grayscale(0%) opacity(1);
}


/* ════════════════════════════════════════
   CTA SECTION — global
════════════════════════════════════════ */
.cta-section {
  padding: var(--section-py) 0;
  background: var(--color-navy-dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(39, 203, 185, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(39, 203, 185, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 60px;
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
}

.cta-section__title .accent {
  color: var(--color-teal);
}

.cta-section__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 16px;
  line-height: 1.7;
}

.cta-section__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .cta-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cta-section__actions {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ══════════════════════════════════════════════════════
   HOME — BLOG SECTION
══════════════════════════════════════════════════════ */
.home-blog {
  padding: var(--section-py) 0;
  background: #f8f9fb;
}

.home-blog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 52px;
}
.home-blog__desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6b7280;
  max-width: 480px;
  margin-top: 12px;
}
.home-blog__header-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Grid de 3 cards */
.home-blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

/* Card */
.hb-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(10,1,76,0.07);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hb-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 48px rgba(10,1,76,0.10);
}
.hb-card__img {
  position: relative;
  height: 210px;
  overflow: hidden;
}
.hb-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.hb-card:hover .hb-card__img img { transform: scale(1.05); }
.hb-card__cat {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(10,1,76,0.80);
  backdrop-filter: blur(10px);
  color: var(--color-teal);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.hb-card__body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hb-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.35;
  margin-bottom: 12px;
}
.hb-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.65;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  margin-bottom: 20px;
}
.hb-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: #9ca3af;
  border-top: 1px solid #f3f4f6;
  padding-top: 14px;
}
.hb-card__read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-teal);
  font-weight: 600;
  font-size: 0.78rem;
  transition: gap 0.2s;
}
.hb-card:hover .hb-card__read { gap: 8px; }

/* Botón "Ver todo" centrado */
.home-blog__footer {
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .home-blog__grid { grid-template-columns: repeat(2, 1fr); }
  .home-blog__header { flex-direction: column; align-items: flex-start; }
  .home-blog__header-btn { align-self: flex-start; }
}
@media (max-width: 640px) {
  .home-blog__grid { grid-template-columns: 1fr; }
}
