/* ISL — páginas de contenido (Inicio, Divisiones, ISL Labs) */
:root {
  /* Alineado con Elementor kit-14 (header #008F36, footer #004B2D, acento #B7CC36) */
  --isl-green: #008f36;
  --isl-green-dark: #004b2d;
  --isl-green-light: #b7cc36;
  --isl-blue: #1a2744;
  --isl-blue-bright: #2e7dcf;
  --isl-blue-accent-light: #b8d9ff;
  --isl-on-dark: #fff;
  --isl-on-dark-muted: rgba(255, 255, 255, 0.92);
  --isl-green-accent-light: #d4e8a0;
  --isl-band-light-bg: #f0f7eb;
  --isl-band-light-heading: #004b2d;
  --isl-band-light-tagline: #008f36;
  --isl-band-light-text: #2d3a32;
  --isl-gray: #555;
  --isl-gray-light: #f4f6f5;
  --isl-white: #fff;
}

.isl-page { font-family: Poppins, Roboto, sans-serif; color: #333; }
.isl-page .page-content { max-width: 100%; padding: 0; }

/* Hero común */
.isl-hero {
  position: relative;
  padding: 4rem 1.5rem 5rem;
  color: var(--isl-white);
  overflow: hidden;
}
.isl-hero::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--isl-white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.isl-hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.isl-hero-home .isl-hero-inner {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}
.isl-hero-home .isl-hero-side-btns {
  position: static;
  transform: none;
  align-self: center;
}
.isl-hero-home {
  background:
    linear-gradient(
      rgba(0, 75, 45, 0.82),
      rgba(0, 143, 54, 0.68)
    ),
    url("/assets/media/2025/imagen-fondo-isl.png") center center / cover no-repeat;
  min-height: clamp(420px, 55vh, 560px);
  display: flex;
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.isl-hero-home h1,
.isl-hero-home p {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* Todo el texto del hero inicio en blanco (prioridad sobre Elementor/home.css) */
.isl-hero-home,
.isl-hero-home h1,
.isl-hero-home p,
.isl-hero-home a,
.isl-hero-home .isl-btn,
.isl-hero-home .isl-btn-outline {
  color: #fff !important;
}
.isl-hero-home a {
  text-decoration: none !important;
}
.isl-hero-home a:hover,
.isl-hero-home .isl-btn-outline:hover {
  color: #fff !important;
  opacity: .92;
}
.isl-hero-home .isl-btn-outline {
  border-color: #fff !important;
  background: transparent !important;
}
.isl-hero-home .isl-hero-side-btns a {
  background: var(--e-global-color-secondary, var(--isl-green));
  color: #fff !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}
.isl-hero-home .isl-hero-side-btns a:hover {
  background: var(--e-global-color-primary, var(--isl-green-dark));
  opacity: 1;
  transform: translateY(-1px);
}
.isl-hero-bp { background: linear-gradient(rgba(0,40,25,.88), rgba(0,60,35,.85)), url("/assets/media/2024/04/fondo-verde-bp.webp") center/cover; }
.isl-hero-tic { background: linear-gradient(rgba(26,39,68,.92), rgba(26,39,68,.88)), url("/assets/media/2024/04/fondo-azul-tic.webp") center/cover; }
.isl-hero-labs { background: var(--isl-white); color: #333; padding-top: 3rem; }
.isl-hero-labs::after { display: none; }

.isl-hero:not(.isl-hero-labs) h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 1rem;
  text-transform: uppercase;
  color: #fff !important;
}
.isl-hero-home h1 { color: #fff !important; }
.isl-hero-labs h1 { color: var(--isl-green); }
.isl-hero p { font-size: 1rem; line-height: 1.6; margin: 0 0 1.25rem; color: #fff; opacity: 1; }
.isl-hero-home p { color: #fff !important; opacity: 1; }
.isl-hero-logo img { max-width: 280px; height: auto; display: block; }
.isl-hero-tic .isl-hero-logo img { max-width: 320px; }

.isl-btn {
  display: inline-block;
  padding: .65rem 1.5rem;
  background: var(--isl-green-light);
  color: var(--isl-green-dark) !important;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.isl-btn:hover,
.isl-btn:focus,
.isl-btn:active {
  text-decoration: none !important;
  color: inherit;
}
.isl-btn:hover { background: #a8e055; }
.isl-btn-outline {
  background: transparent;
  border: 2px solid var(--isl-white);
  color: var(--isl-white) !important;
}
.isl-btn-dark { background: var(--isl-green); color: var(--isl-white) !important; }
.isl-btn-dark:hover { background: var(--isl-green-dark); }
.isl-icon-whatsapp { flex-shrink: 0; }

/* Botón flotante WhatsApp — página de inicio */
a.isl-whatsapp-float {
  position: fixed !important;
  right: max(1.25rem, env(safe-area-inset-right, 0px)) !important;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px)) !important;
  left: auto !important;
  top: auto !important;
  z-index: 1000;
  display: inline-flex !important;
  align-items: center;
  gap: 0.625rem;
  min-height: 3.5rem;
  min-width: 3.5rem;
  padding: 0.875rem 1.125rem;
  background: #25d366 !important;
  color: #fff !important;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
a.isl-whatsapp-float:hover {
  background: #1da851 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
a.isl-whatsapp-float:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  a.isl-whatsapp-float { transition: none; }
  a.isl-whatsapp-float:hover { transform: none; }
}

.isl-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.isl-hero-side-btns {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.isl-hero-side-btns a {
  background: var(--e-global-color-secondary, var(--isl-green));
  color: var(--isl-white) !important;
  padding: .5rem 1rem;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 4px;
  font-weight: 600;
}

/* Secciones */
.isl-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.isl-section-title {
  text-align: center;
  color: var(--isl-green);
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.isl-section-sub { text-align: center; color: var(--isl-gray); max-width: 800px; margin: 0 auto 2rem; line-height: 1.6; }
.isl-bar-title {
  background: var(--e-global-color-secondary, var(--isl-green));
  color: var(--isl-white);
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Intro / listas */
.isl-intro { background: var(--isl-white); text-align: center; }
.isl-intro p { max-width: 900px; margin: 0 auto; line-height: 1.7; color: var(--isl-gray); font-size: 1.05rem; }
.isl-list-check { list-style: none; padding: 0; margin: 1.5rem 0; }
.isl-list-check li {
  padding: .4rem 0 .4rem 1.5rem;
  position: relative;
  color: var(--isl-gray);
  line-height: 1.5;
}
.isl-list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--isl-green-light);
  font-weight: 700;
}

/* Tarjetas divisiones (inicio) */
.isl-div-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  border-bottom: 1px solid #e8e8e8;
}
.isl-div-card:nth-child(even) { background: var(--isl-gray-light); }
.isl-div-card.reverse { direction: rtl; }
.isl-div-card.reverse > * { direction: ltr; }
.isl-div-card img { max-width: 100%; height: auto; border-radius: 4px; }
.isl-div-card h3 { color: var(--isl-green); font-size: 1.5rem; margin: 0 0 .25rem; }
.isl-div-card h4 { color: var(--isl-gray); font-size: 1rem; font-weight: 400; margin: 0 0 1rem; }
.isl-div-card p { color: var(--isl-gray); line-height: 1.6; margin: 0 0 .75rem; }
.isl-div-card .isl-btn { margin-top: .5rem; }

/* Tarjeta División TIC — estilo mockup (panel azul + contenido blanco) */
.isl-div-card--tic {
  grid-template-columns: 40% 60%;
  gap: 0;
  padding: 0;
  align-items: stretch;
  background: var(--isl-white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-bottom: none;
  margin-bottom: 0;
  overflow: hidden;
}
.isl-div-card--tic:nth-child(even) { background: var(--isl-white); }

.isl-div-card-brand--tic {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  min-height: 300px;
  color: #fff;
  background-color: #0a1a33;
  background-image: linear-gradient(rgba(10, 26, 51, 0.82), rgba(10, 26, 51, 0.88)),
    url("/assets/media/2024/04/fondo-azul-tic.webp");
  background-size: cover;
  background-position: center;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
}

.isl-div-brand-link {
  display: block;
  max-width: min(280px, 100%);
  margin: 0 auto;
  text-decoration: none;
}

.isl-div-brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.25));
}

.isl-div-card--tic .isl-div-card-content {
  padding: 2.5rem 2rem 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

@media (max-width: 900px) {
  .isl-div-card--tic {
    grid-template-columns: 1fr;
  }
  .isl-div-card-brand--tic {
    clip-path: none;
    min-height: auto;
    padding: 2rem 1.5rem;
  }
  .isl-div-card--tic .isl-div-card-content {
    padding: 1.75rem 1.5rem 2rem;
  }
}

/* Tarjeta ISL Labs — foto inclinada + contenido alineado como mockup */
.isl-div-card--labs {
  grid-template-columns: 42% 58%;
  gap: 0;
  padding: 0;
  align-items: stretch;
  background: var(--isl-white);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border-bottom: none;
  overflow: hidden;
}
.isl-div-card--labs:nth-child(even) { background: var(--isl-white); }

.isl-div-card-visual--labs {
  position: relative;
  min-height: 300px;
  background: #eef1f0;
  overflow: hidden;
}

.isl-div-visual-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: left center;
  clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}

.isl-div-card-content--labs {
  display: flex;
  flex-direction: column;
  padding: 2rem 2.5rem 2rem 1.5rem;
  background: #fff;
  min-height: 300px;
}

.isl-div-card-content--labs .isl-div-card-head {
  text-align: right;
  margin-bottom: 0.5rem;
}
.isl-div-card-content--labs .isl-div-card-head h3 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: var(--isl-green);
  font-weight: 700;
  margin: 0;
}
.isl-div-card-content--labs .isl-div-card-head h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #8a8a8a;
  font-weight: 300;
  margin: 0.15rem 0 0;
}

.isl-div-card-content--labs .isl-div-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 0;
}
.isl-div-card-content--labs .isl-div-card-body p {
  margin: 0 0 0.75rem;
  color: #666;
  line-height: 1.6;
}
.isl-div-card-content--labs .isl-div-card-body p strong {
  display: block;
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.isl-div-card-content--labs .isl-div-card-foot {
  text-align: right;
  margin-top: auto;
}
.isl-div-card-content--labs .isl-btn { margin-top: 0; }

/* Formularios cPanel */
.isl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.isl-form-alert {
  padding: .85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.isl-form-alert--ok {
  background: #e3f5df;
  border: 1px solid #b7ddb0;
  color: var(--isl-green-dark);
}
.isl-form-alert--err {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
}
.hidden { display: none !important; }
.isl-form-waiting {
  opacity: 0.65;
  pointer-events: none;
}
.isl-post-date {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

@media (max-width: 900px) {
  .isl-div-card--labs {
    grid-template-columns: 1fr;
  }
  .isl-div-visual-photo {
    clip-path: none;
    min-height: 220px;
  }
  .isl-div-card-content--labs {
    padding: 1.75rem 1.5rem 2rem;
  }
  .isl-div-card-content--labs .isl-div-card-head {
    text-align: left;
  }
  .isl-div-card-content--labs .isl-div-card-foot {
    text-align: left;
  }
}

/* Servicios alternados */
.isl-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}
.isl-service img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.isl-service h3 { color: var(--isl-green); font-size: 1.35rem; margin: 0 0 .5rem; }
.isl-service h3 span { display: block; font-size: 1rem; font-weight: 400; color: var(--isl-green-light); }
.isl-service p { color: var(--isl-gray); line-height: 1.6; }
.isl-service-band,
.isl-tic-band {
  padding: 2.5rem 1.5rem;
}
.isl-service-band h3,
.isl-tic-band h3 {
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  line-height: 1.35;
  margin: 0 0 0.5rem;
}
.isl-service-band p,
.isl-tic-band p {
  margin: 0;
  line-height: 1.65;
  font-size: clamp(0.9375rem, 1.6vw, 1rem);
}
.isl-band-tagline { font-weight: 600; margin: 0; }

.isl-service-band {
  background: var(--isl-band-light-bg);
  color: var(--isl-band-light-text);
  border-left: 5px solid var(--isl-green-light);
}
.isl-service-band h3 { color: var(--isl-band-light-heading); }
.isl-service-band .isl-band-tagline { color: var(--isl-band-light-tagline); }
.isl-service-band.dark {
  background: var(--isl-green-dark);
  color: var(--isl-on-dark-muted);
  border-left: 5px solid var(--isl-green-light);
}
.isl-service-band.dark h3 { color: var(--isl-on-dark); }
.isl-service-band.dark .isl-band-tagline { color: var(--isl-green-accent-light); }
.isl-service-band-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* TIC específico */
.isl-tic-band {
  background: var(--isl-blue);
  color: var(--isl-on-dark-muted);
  border-left: 5px solid var(--isl-blue-accent-light);
}
.isl-tic-band h3 { color: var(--isl-on-dark); }
.isl-tic-band .isl-band-tagline { color: var(--isl-blue-accent-light); }
.isl-clients {
  background: var(--isl-blue);
  padding: 2rem 1.5rem;
  text-align: center;
}
.isl-clients h2 { color: var(--isl-white); margin: 0 0 1.5rem; font-size: 1.25rem; }
.isl-clients-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
  background: var(--isl-white);
  padding: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 4px;
}
.isl-clients-logos img { max-height: 50px; width: auto; }

/* ISL Labs */
.isl-labs-hero h1 { color: var(--isl-green); text-transform: none; }
.isl-labs-hero h1 em { color: var(--isl-green-light); font-style: normal; }
.isl-labs-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.isl-labs-col h3 { color: var(--isl-green); font-size: 1.1rem; margin: 0 0 .75rem; }
.isl-labs-col p { color: var(--isl-gray); font-size: .95rem; line-height: 1.55; }

.isl-alliances {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}
.isl-alliances-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
}
.isl-alliances-logos img { max-height: 55px; width: auto; }

.isl-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.isl-product-card {
  background: var(--isl-white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  scroll-margin-top: 100px;
}
.isl-product-card img.isl-product-img { width: 100%; height: 180px; object-fit: cover; }
.isl-product-card-body { padding: 1.25rem; }
.isl-product-card .isl-product-logo { max-height: 45px; margin-bottom: .75rem; }
.isl-product-card h3 { color: var(--isl-green); font-size: 1.1rem; margin: 0 0 .5rem; }
.isl-product-card ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--isl-gray); font-size: .9rem; line-height: 1.5; }
.isl-product-card p { color: var(--isl-gray); font-size: .9rem; line-height: 1.5; margin: 0 0 1rem; }

.isl-service-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

.isl-form-embed {
  max-width: 700px;
  margin: 0 auto;
}
.isl-form-embed iframe {
  display: block;
  width: 100%;
  min-height: 520px;
  border: 0;
}

/* Contáctenos — título legible sobre fondo verde oscuro */
.elementor-2223 .elementor-element-751dc12 .elementor-heading-title {
  color: var(--e-global-color-e4205ce, var(--isl-on-dark));
}

/* Language switcher (header — alto contraste sobre verde) */
.isl-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  vertical-align: middle;
}
.isl-lang-link {
  color: #fff;
  text-decoration: none;
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.isl-lang-link:hover,
.isl-lang-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}
.isl-lang-link.isl-lang-active {
  color: var(--isl-lime, #B7CC36);
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}
.isl-lang-sep {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  user-select: none;
}

@media (max-width: 1024px) {
  .isl-hero-home .isl-hero-inner { grid-template-columns: 1fr; }
  .isl-hero-home .isl-hero-side-btns {
    margin-top: 1.25rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-self: stretch;
  }
  .isl-whatsapp-float-label { display: none; }
  a.isl-whatsapp-float {
    padding: 0.875rem;
    border-radius: 50%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .isl-hero-inner,
  .isl-div-card,
  .isl-service,
  .isl-service-band-inner,
  .isl-labs-cols,
  .isl-products-grid,
  .isl-alliances { grid-template-columns: 1fr; }
  .isl-div-card.reverse { direction: ltr; }
  .isl-hero-side-btns { position: static; transform: none; margin-top: 1rem; flex-direction: row; flex-wrap: wrap; }
  .isl-service img { clip-path: none; max-height: 220px; }
}
