
:root {
    --ink: #262f30;
    --muted: #586663;
    --sage: #99b2af;
   /* --paper: #f7f8f4;  */
	--paper: #96b0af;
    --dark: #535353;
    --line: #dce2dc;
    --accent: #345b53;
	}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

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

button {
    font: inherit;
    cursor: pointer;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid #925700;
    outline-offset: 5px;
}

.wrap {
    width: min(1180px, 90%);
    margin: auto;
}

.demo {
    background: #e9eddf;
    text-align: center;
    padding: 7px 15px;
    font-size: 12px;
    color: #3f493d;
}

header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--dark);
    color: white;
    border-bottom: 1px solid #737a76;
}

.nav {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    width: 230px;
    display: block;
}

.brand img {
    width: 100%;
    display: block;
}

.links {
    display: flex;
    gap: 22px;
    align-items: center;
    font-size: 13px;
}

.links a:hover {
    color: #c5d9d4;
}

.menu {
    display: none;
    border: 1px solid #aabdb7;
    color: white;
    background: transparent;
    padding: 8px 12px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .17em;
    font-size: 11px;
    font-weight: 700;
  /*  color: var(--accent); */
	color: #ffffff;
    margin: 0 0 20px;
}

.hero {
    padding: 90px 0 75px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: center;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    font-size: clamp(54px, 6.3vw, 90px);
    line-height: 1.03;
    font-weight: 500;
    letter-spacing: -.065em;
    margin-bottom: 30px;
}

h1 span {
    /* color: #52796f; */
	color: #e7ede5;
}

h2 {
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.15;
    letter-spacing: -.04em;
    font-weight: 500;
    margin-bottom: 24px;
}

h3 {
    line-height: 1.25;
    letter-spacing: -.02em;
    font-size: 23px;
    font-weight: 500;
}

.lead {
    font-size: 18px;
    max-width: 590px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 13px;
}
.small-2 {
    font-size: 18px;
}

.actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
   /* background: var(--ink);  */
	background: var(--dark);
    border: 1px solid var(--ink);
    color: white;
    padding: 14px 21px;
    font-size: 13px;
    border-radius: 3px;
}

.btn:hover {
    background: var(--accent);
    color: white;
}

.btn.light {
    background: transparent;
    color: var(--ink);
    border-color: #9baca5;
}

.btn.light:hover {
    background: #e4ece6;
}

.textlink {
    font-size: 13px;
    border-bottom: 1px solid #9aafa7;
    padding-bottom: 4px;
}

.map {
    background: #e7ede5;
    border: 1px solid #d4dfd5;
    border-radius: 8px;
    padding: 26px;
    /*box-shadow: 18px 20px 0 #edf0e9; */
}

.map-top {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding-bottom: 23px;
    border-bottom: 1px solid #cbd7ca;
}

.map-center {
    text-align: center;
    padding: 35px 5px 22px;
}

.map-center .ring {
    display: grid;
    place-items: center;
    border: 1px solid #91aaa1;
    border-radius: 50%;
    width: 140px;
    height: 140px;
    margin: 0 auto 17px;
    outline: 1px solid #b8cabb;
    outline-offset: 11px;
    font-size: 18px;
    line-height: 1.3;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin: 25px 0 25px;
}

.map-node {
    background: #f7f8f4;
    padding: 18px 9px;
    border: 1px solid #d8dfd4;
    font-size: 11px;
    text-align: center;
    border-radius: 4px;
}

.map-node b {
    display: block;
    font-size: 12px;
    margin-bottom: 7px;
}

.map-bottom {
    border-top: 1px solid #cbd7ca;
    padding-top: 15px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
}

.strip {
    padding: 25px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    font-size: 12px;
}

.section {
    padding: 85px 0;
}

.heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: end;
    margin-bottom: 38px;
}

.heading p {
    margin-bottom: 0;
}

.needs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.need {
    padding: 20px 0;
    border-top: 1px solid #a5b6ab;
    font-size: 14px;
}

.need span {
    display: block;
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 18px;
}

.white {
    background: white;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    border: 1px solid var(--line);
    padding: 28px;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border-radius: 5px;
}

.logo-box {
    height: 110px;
    background: white;
    display: grid;
    place-items: center;
    padding: 17px;
    margin-bottom: 26px;
    border-radius: 3px;
}

.logo-box img {
    max-width: 100%;
    max-height: 76px;
    object-fit: contain;
}

.card .num {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: .12em;
    margin-bottom: 14px;
}

.card p, .card li {
    font-size: 14px;
}

.card ul {
    padding-left: 17px;
    margin: 0 0 24px;
}

.card .actions {
    margin-top: auto;
    align-items: start;
    flex-direction: column;
}

.dark {
    background: var(--ink);
    color: #f5f6ee;
}

.dark .eyebrow {
    color: #adc5b9;
}

.dark .muted {
    color: #c4d1c8;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 45px;
}

.step {
    border-top: 1px solid #63766b;
    padding-top: 22px;
}

.step span {
    color: #b2cbbd;
    font-size: 12px;
}

.step h3 {
    margin: 20px 0 12px;
}

.step p {
    font-size: 14px;
    color: #d3dbd4;
}

.note {
    border-left: 2px solid var(--sage);
    padding: 12px 18px;
    font-size: 13px;
    margin-top: 32px;
}

.session {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 75px;
}

.session-panel {
    background: #e5ece3;
    border: 1px solid #cedacd;
    border-radius: 5px;
    padding: 32px;
}

.price {
    font-size: 53px;
    letter-spacing: -.05em;
    line-height: 1.1;
    margin: 20px 0;
}

.price small {
    font-size: 17px;
    letter-spacing: 0;
}

.features {
    list-style: none;
    padding: 0;
}

.features li {
    padding: 12px 0;
    border-bottom: 1px solid #cbd7c8;
    font-size: 14px;
}

.features li:before {
    content: '↗';
    margin-right: 12px;
    color: var(--accent);
}

details {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

summary {
    cursor: pointer;
    font-size: 16px;
}

details p {
    font-size: 14px;
    margin: 16px 0 0;
    color: var(--muted);
}

.tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tag {
    border: 1px solid #ced8d0;
    padding: 10px 17px;
    font-size: 13px;
    border-radius: 30px;
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
}

.placeholder {
    border: 1px dashed #a6b6a8;
    padding: 30px;
    border-radius: 4px;
    background: #edf1e9;
}

.placeholder small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.community {
    border-top: 1px solid #c6d1c3;
    padding-top: 23px;
}

.quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 30px;
}

.quick a {
    display: block;
    border-radius: 5px;
    overflow: hidden;
    background: var(--sage);
}

.quick img {
    width: 100%;
    display: block;
}

.quick a:focus-visible {
    outline-offset: 3px;
}

.contact {
    background: #dfe9df;
}

.contact h2 {
    max-width: 650px;
}

.contact-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.contact address {
    font-style: normal;
    font-size: 15px;
}

.contact address a {
    display: block;
    padding: 5px 0;
    text-decoration: underline;
    text-underline-offset: 4px;
}

footer {
    padding: 35px 0;
    background: var(--dark);
    color: #f0f4eb;
    font-size: 12px;
}

.foot {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.foot img {
    width: 210px;
    display: block;
    margin-bottom: 15px;
}

.foot-links {
    display: flex;
    gap: 18px;
    align-items: start;
}

dialog {
    width: min(600px, 92%);
    padding: 35px;
    border: 1px solid #aebead;
    border-radius: 6px;
    background: var(--paper);
    color: var(--ink);
}

dialog::backdrop {
    background: #17241ee0;
}

dialog .close {
    float: right;
    border: 1px solid #9eafa2;
    background: transparent;
    padding: 4px 10px;
}

.disabled {
    font-size: 12px;
    background: #e3e9df;
    padding: 12px;
    border-radius: 3px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.service-grid div {
    border: 1px solid #cad8c8;
    border-radius: 3px;
    padding: 18px;
    font-size: 13px;
}

.service-grid h3 {
    font-size: 17px;
}

.skip {
    position: absolute;
    left: -999px;
}

.skip:focus {
    left: 10px;
    top: 10px;
    z-index: 100;
    background: white;
    padding: 10px;
}

@media (max-width: 1000px) {
    .links {
        gap: 12px;
        font-size: 12px;
    }

    .brand {
        width: 180px;
    }

    .hero {
        gap: 35px;
    }

    .needs {
        grid-template-columns: repeat(3, 1fr);
    }

    .card {
        padding: 20px;
    }

    .session {
        gap: 35px;
    }
}

@media (max-width: 760px) {
    .nav {
        min-height: 75px;
    }

    .menu {
        display: block;
    }

    .links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background: var(--dark);
        padding: 20px 5%;
        flex-direction: column;
        align-items: stretch;
        font-size: 15px;
        gap: 0;
    }

    .links.open {
        display: flex;
    }

    .links a {
        padding: 10px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 55px 0;
        gap: 40px;
    }

    h1 {
        font-size: 65px;
    }

    .map {
        box-shadow: 8px 10px 0 #edf0e9;
    }

    .section {
        padding: 55px 0;
    }

    .heading, .session, .two {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .needs {
        grid-template-columns: 1fr 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .strip {
        flex-wrap: wrap;
        font-size: 11px;
    }

    .contact-grid, .foot {
        flex-direction: column;
        align-items: start;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .quick {
        gap: 8px;
    }

    .logo-box {
        height: 115px;
    }

    .card .actions {
        margin-top: 20px;
    }

    .foot-links {
        flex-wrap: wrap;
    }

    .lead {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Estilos convertidos desde atributos HTML */
.kyza-inline-1 {
    margin-top: 18px;
}

.kyza-inline-2 {
    margin-top: 24px;
}

.kyza-inline-3 {
    margin-top: 20px;
}

.kyza-inline-4 {
    margin-top: 25px;
}

.kyza-inline-5 {
    margin-top: 18px;
}

/* Imagen / distintivo adaptable en Sesión Estratégica */
aside.session-panel div img,
aside.session-panel img {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto 0;
    border-radius: 12px;
}
/* Fila inferior de tarjeta (botones a la izquierda + imagen a la derecha) */
.card-bottom {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
}

.card-bottom .actions {
    margin-top: 0;
}

.card-badge {
    width: 95px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}
#experiencia {
  background-color: #dfe9df; /* Cambia este código por el color de fondo que desees */
}
.carousel { position: relative; overflow: hidden; border-radius: 18px; background-color: #000; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-item { min-width: 100%; color: #ffffff; position: relative; }
.carousel-item img, .carousel-item video { width: 100%; height: 320px; object-fit: cover; opacity: 0.75; }
.carousel-caption { position: absolute; left: 1.5rem; bottom: 1.4rem; right: 1.5rem; font-size: 0.95rem; }
.carousel-caption-title { font-weight: 600; margin-bottom: 0.15rem; }
.carousel-caption-sub { font-size: 0.85rem; opacity: 0.9; }
.carousel-nav { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 0.8rem; transform: translateY(-50%); }
.carousel-btn { width: 34px; height: 34px; border-radius: 999px; border: none; background-color: rgba(0,0,0,0.55); color: #ffffff; cursor: pointer; font-size: 1.1rem; }
.carousel-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.8rem; flex-wrap: wrap; }
.carousel-dot { width: 8px; height: 8px; border-radius: 999px; background-color: rgba(255,255,255,0.35); cursor: pointer; }
.carousel-dot.active { background-color: var(--primary); }
.carousel { position: relative; overflow: hidden; border-radius: 18px; background-color: #000; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-item { min-width: 100%; color: #ffffff; position: relative; }
.carousel-item img, .carousel-item video { width: 100%; height: 320px; object-fit: cover; opacity: 0.75; }
.carousel-caption { position: absolute; left: 1.5rem; bottom: 1.4rem; right: 1.5rem; font-size: 0.95rem; }
.carousel-caption-title { font-weight: 600; margin-bottom: 0.15rem; }
.carousel-caption-sub { font-size: 0.85rem; opacity: 0.9; }
.carousel-nav { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 0.8rem; transform: translateY(-50%); }
.carousel-btn { width: 34px; height: 34px; border-radius: 999px; border: none; background-color: rgba(0,0,0,0.55); color: #ffffff; cursor: pointer; font-size: 1.1rem; }
.carousel-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.8rem; flex-wrap: wrap; }
.carousel-dots { display: flex; justify-content: center; gap: 0.4rem; padding: 0.8rem 0; flex-wrap: wrap; }
.carousel-dot.active { background-color: var(--primary, #ffffff); }
.contact-label { font-weight: 600; }
.contact-redes-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-logos {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-logos img {
  height: 60px;      /* Sube o baja este valor para ajustar el tamaño de ambos logos */
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
/* Redes sociales en la barra de navegación superior */
.header-socials {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 36px; /* Separa los logos del último enlace "Contacto" */
}

.header-socials img {
  height: 30px; /* Tamaño adecuado para la barra superior */
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.header-socials img:hover {
  transform: scale(1.1); /* Pequeño efecto al pasar el mouse */
}

/* Adaptación para el menú desplegable en celulares */
@media (max-width: 820px) {
  .header-socials {
    margin-left: 0;
    margin-top: 16px;
    justify-content: center;
  }
}
#cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; background: rgba(15,23,42,0.96); color: #f9fafb; padding: 0.9rem 1.2rem; font-size: 0.85rem; display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; }
#cookie-banner a { color: #bfdbfe; text-decoration: underline; }
#cookie-accept { background: #16a34a; border: none; color: white; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.8rem; cursor: pointer; }
#cookie-accept:hover { background: #15803d; }

/* Logos centrados en los cuadros blancos del Ecosistema Kyza */
.eco-logo {
  width: 100% !important;
  height: 54px !important; /* Ajusta esta altura si los quieres más grandes o chicos */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 12px auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.eco-logo img {
  max-height: 100% !important;
  max-width: 85% !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  display: block !important;
  mix-blend-mode: multiply;
}

/* Imagen clicable de la Sesión Estratégica (#sesion) */
#sesion img.session-badge,
img.session-badge {
  display: block;
  width: 150px !important;
  max-width: 200px !important;
  height: auto !important;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover .session-badge {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

// ==========================================================================
// Carrusel de evidencia / portafolio
// ==========================================================================
(() => {
  const carousel = document.getElementById('portfolioCarousel');
  if (!carousel) return;

  const track = carousel.querySelector('.carousel-track');
  const items = carousel.querySelectorAll('.carousel-item');
  const prevBtn = document.getElementById('carouselPrev');
  const nextBtn = document.getElementById('carouselNext');
  const dots = carousel.querySelectorAll('.carousel-dot');

  if (!track || items.length === 0) return;

  let currentIndex = 0;
  let autoPlayTimer = null;

  const updateCarousel = (index) => {
    const total = items.length;
    currentIndex = (index + total) % total;
    track.style.transform = `translateX(-${currentIndex * 100}%)`;

    dots.forEach((dot, i) => {
      dot.classList.toggle('active', i === currentIndex);
    });
  };

  const startAutoPlay = () => {
    stopAutoPlay();
    autoPlayTimer = setInterval(() => {
      updateCarousel(currentIndex + 1);
    }, 5000);
  };

  const stopAutoPlay = () => {
    if (autoPlayTimer) {
      clearInterval(autoPlayTimer);
      autoPlayTimer = null;
    }
  };

  if (prevBtn) {
    prevBtn.addEventListener('click', () => {
      updateCarousel(currentIndex - 1);
      startAutoPlay();
    });
  }

  if (nextBtn) {
    nextBtn.addEventListener('click', () => {
      updateCarousel(currentIndex + 1);
      startAutoPlay();
    });
  }

  dots.forEach((dot) => {
    dot.addEventListener('click', () => {
      const idx = Number(dot.dataset.index);
      if (!Number.isNaN(idx)) {
        updateCarousel(idx);
        startAutoPlay();
      }
    });
  });

  carousel.addEventListener('mouseenter', stopAutoPlay);
  carousel.addEventListener('mouseleave', startAutoPlay);

  startAutoPlay();
})();