
/* ===== Disposición general (grid) ===== */
.proc-tafias { width: 100%; overflow: hidden; }
.proc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 650px;
}

/* ===== Columna izquierda ===== */
.proc-left {
  background: #234a12;            /* verde oscuro */
  color: #fff;
  display: flex;
}
.proc-left-inner{
  margin: auto;                   /* centra vertical */
  padding: clamp(24px, 6vw, 72px);
  max-width: 620px;               /* evita líneas demasiado largas */
  width: 100%;
  position: relative;
  min-height: 260px;
}

.proc-step{
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease;
}
.proc-step.is-active{ opacity: 1; transform: translateY(0); }

.proc-ico{ margin-bottom: 16px; }

.proc-tt{
  margin: 0 0 10px;
  line-height: 1.15;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 38px);
}
.proc-desc{
  margin: 0;
  color: #e9f2e7;
  font-size: clamp(14px, 1.2vw, 18px);
}

/* ===== Columna derecha ===== */
.proc-right{
  position: relative;
  background: #f7f3e6;            /* marfil */
  overflow: hidden;
  min-height: 520px;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px){
  .proc-grid{ grid-template-columns: 1fr; }
  .proc-right{ min-height: 420px; }
  .proc-product{ width: min(68%, 420px); }
}

/* Imagen contenida y centrada */
.proc-product{
  position:absolute; left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:25%;             /* un poco más controlado */
  max-height:650px;
  object-fit:contain;
  z-index:1;
  opacity:0;
  transition: opacity .45s ease;
  z-index:1;
  pointer-events:none;
}
.proc-product.is-active{
  opacity:1;
}
/* Canvas encima (para que las flechas no queden debajo) */
.proc-canvas{
  position:absolute; inset:0;
  width:100%; height:100%;
  pointer-events:none;
  z-index:2;
}

/* Arcos: mismo trazo, animación “draw” y grosor estable */
.proc-arc{
  fill:none;
  stroke:#2C5904;
  stroke-width:3;
  opacity:0;
  stroke-linecap:round;
  stroke-dasharray:720;   
  stroke-dashoffset: -50px;
  transition:stroke-dashoffset .9s ease, opacity .25s ease;
  vector-effect: non-scaling-stroke; /* grosor no varía al escalar el SVG */
}
.proc-arc.is-active{
  /* stroke-dashoffset:0; */
  opacity:.95;
}

/* Puntos */
.proc-dot{
  fill:#72B344;
  transform-origin:center center;
  transition:transform .25s ease, opacity .25s ease;
  vector-effect: non-scaling-stroke;
  r:0;
}
.proc-dot.is-active{ r:9; }

/* Texto izquierdo (mismo que ya tenías; repito lo importante) */
.proc-left-inner{
  margin:auto;
  padding: clamp(28px, 6vw, 80px);
  max-width: 620px;
  width:100%;
  position:relative;
  min-height: 260px;
}
.proc-step{ position:absolute; inset:0; opacity:0; transform:translateY(10px); transition:opacity .35s ease, transform .35s ease; }
.proc-step.is-active{ opacity:1; transform:translateY(0); }
.proc-ico{ margin-bottom:16px; }
.proc-ico svg{ width: 40px; height:auto; display:block; }
.proc-tt{ margin:0 0 12px;color:#fff; line-height:normal; font-weight:600; font-size: 23px; }
.proc-desc{ margin:0; color:#fff; font-size: 12px; }

/* Responsive */
@media (max-width: 991.98px){
  .proc-product{ width:min(70%, 420px); }
}


.prod-carousel{
  overflow:hidden;
}

.prod-carousel-inner{
  position:relative;
  min-height:240px; /* evita saltos */
}

.prod-slide{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
  transition:opacity .35s ease-in-out;
}

.prod-slide.is-active{
  position:relative;
  opacity:1;
  pointer-events:auto;
}

.prod-slide-grid{
  display:flex;
  gap:35px;
}

.prod-slide-left{ flex:0.9; }
.prod-slide-right{ flex:1; display:flex; flex-direction:column; }

.prod-title{
  margin:0;
  font-size:40px;
  color:#2C5904;
  font-weight: 500;
  line-height: 1.1;
}
.prod-title b{
  color: #72B344;
  font-weight: 500;
}

.prod-indicators{
  display:flex;
  gap:35px;
  margin-bottom:30px;
}

.prod-indicator{
  font-size:14px;
  color:#00000082;
 font-weight:500;
  position:relative;
}

.prod-indicator.is-active{
  color: #000;
  
}

.prod-indicator::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-4px;
  width:30px;
  height:1px;
  background:#00000082;
}
.prod-indicator.is-active::after{
background-color: #72B344;
}
.prod-desc{
  font-size:16px;
  line-height:1.4;
  color:#2C5904;
  margin-bottom:30px;
  height: 150px;
}

/* Flechas */
.prod-arrows{
  margin-top:auto;
  display:flex;
  gap:10px;
  justify-content: flex-end;
}

.prod-arrow{
  width:40px;
  height:40px;
  border-radius:50%;
  background:#72B344;
  color: white;
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 20px
}






section.abo-grid.aneja span.abo-ico{
  background-color: transparent;
}



/* Layout general del bloque */
.tafias-team { padding: 24px 0 8px; }

/* Tarjeta */
.tf-card{
  position: relative;
  background: #2C5904;           /* verde oscuro cuerpo */
  border-radius: 30px;
  margin-top: 40px;
  min-height: 170px;
}

/* Cabecera verde clara en “pastilla” arriba, sin ocupar todo */
.tf-head{
     position: relative;
    background: #72B344;
    border-radius: 50px 45px 50px 80px;
    padding: 10px 10px 15px 130px;
    height: 70px;
}

/* Lado izquierdo de cabecera (icono LinkedIn) */
.tf-head-left{
     position: absolute;
    left: 95px;
}

.tf-linkedin{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tf-linkedin svg{
  width: 26px; height: auto;
  display: block;
}

/* Lado derecho de cabecera (nombre + cargo) */
.tf-head-right{ display:flex; flex-direction:column; line-height:1.1; }
.tf-name{
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 1px;
  color: #f1fce3;
  line-height: 1.1;
}
.tf-role{
  font-size: 11px;
  font-weight: 500;
  margin: 0;
  color: #f1fce3;
}

/* Avatar circular superpuesto */
.tf-avatar{
  position: absolute;
  top: -13px;
  left: 0;
  width: 83px; height: 83px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  z-index: 2;
}
.tf-avatar img{
  width: 100%; height: 100%; object-fit: cover; display:block;
}

/* Cuerpo (descripción) */
.tf-body{
  padding: 15px 18px;
  color: #f1fce3;
}
.tf-desc{
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  font-weight: 500;
}




/* Wrapper */
.hist2-wrapper{
  position:relative;
}

/* NAV CENTRO: oculto por defecto, aparece desde el 2do item */
.hist2-nav{
  position:absolute;
  left:60%;
  top:50%;
  transform:translate(-50%, -50%);
  display:flex;
  flex-direction:column;
  gap:14px;

  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .25s ease;
  z-index:5;
}

/* Cuando ya no es intro => nav visible */
.hist2-wrapper.nav-enabled .hist2-nav{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

/* Flechas (Bootstrap Icons) */
.hist2-arrow{
  width:46px;
  height:46px;
  border-radius:50%;
  border:none;
  background:#7DBA3A;
  color:#fff;
  font-size:22px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hist2-arrow.is-hidden{
  display:none;
}

/* Stage y items (fade + vertical) */
.hist2-stage{
  position:relative;
  min-height:420px; /* ajusta según tu mockup, evita saltos */
}

/* Cada item ocupa el stage */
.hist2-item{
  position:absolute;
  inset:0;
  display:flex;
  align-items:stretch;
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity .32s ease, transform .32s ease;
}

.hist2-item.is-active{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
  position:relative;
}

/* Layout por defecto (desde 2do item): 60/40 */
.hist2-left{ flex: 0 0 60%; }
.hist2-right{ flex: 0 0 40%; }

/* INTRO (primer item): imagen 100% */
.hist2-wrapper.is-intro .hist2-left{
  flex: 0 0 100%;
}
.hist2-wrapper.is-intro .hist2-right{
  display:none !important;
}

/* Imagen */
.hist2-image{
  position:relative;
  overflow:hidden;
  width:100%;
  height:100%;
}

.hist2-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  min-height:420px; /* ajusta */
}

.hist2-image--empty{
  width:100%;
  min-height:420px;
  background:#ddd;
}

/* Título flotante */
.hist2-title{
  position:absolute;
  left:70px;
  bottom:70px;
  background:#f1fce3;
  color:#2C5904;
  padding:45px 30px;
  border-radius:14px;  
  display:inline-flex;
  align-items:center;
  gap:30px;
}

.hist2-title>div{
 font-weight:500;
 font-size: 35px;
 line-height: normal;
}

.hist2-title>div b{
  padding: 0px 10px;
  background-color: #BFED00;  
  font-weight:500;
  border-radius: 15px;
}

/* Flecha del primer item (junto al título) */
.hist2-entry{
  width:34px;
  height:34px;
  border-radius:50%;
  border:none;
  background:#7DBA3A;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size: 30px;
}

/* Columna derecha */
.hist2-right{
  background:#2C5904;
  color:#fff;
  padding:38px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hist2-year{
  font-size:44px;
  font-weight:700;
  margin-bottom:16px;
}

.hist2-desc{
  font-size:14px;
  line-height:1.6;
}




/* =========================
   COLORES HIST2 RIGHT
   ========================= */

/* Item 1 */
.hist2-item.color-1 .hist2-right{
background:#72B344;
  color:#f1fce3;
}

/* Item 2 */
.hist2-item.color-2 .hist2-right{
  background:#BFED00;
  color:#2C5904;
}

/* Item 3 */
.hist2-item.color-3 .hist2-right{
  
   background:#2C5904;
  color:#f1fce3;
}

/* Item 4 */
.hist2-item.color-4 .hist2-right{
  background:#f1fce3;
  color:#2C5904;
}

.tt_vide_taf b {
    color: #72B344;
}
.tt_vide_taf {
    font-size: 30px;
    font-weight: 500;
    color: #2C5904;
}
  .item-certi img {
    object-fit: contain;
    width: 130px;
    height: 130px;
}




 #slider_equipo_tafias .slick-prev,
  #slider_equipo_tafias .slick-next,
   .certifi-slider .slick-prev,
  .certifi-slider .slick-next  {
    position: absolute;
    top: auto;
    
    border: none;
    font-size: 1.5rem;
    
    color: #fff;
    border-radius: 50%;
    z-index: 5;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    height: 35px;
    width: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 3px 3px 8px -1px #00000063;
  }
   #slider_equipo_tafias .slick-prev,
  #slider_equipo_tafias .slick-next {
background-color: #FFD22F;
bottom: -80px;
  }
.certifi-slider .slick-prev,
  .certifi-slider .slick-next {
background-color: #2C5904;
bottom: 35%;
  }


   #slider_equipo_tafias .slick-prev:before,  
   #slider_equipo_tafias .slick-next:before,
   .certifi-slider .slick-prev:before,  
  .certifi-slider .slick-next:before{
        content: '';
   }

  #slider_equipo_tafias .slick-prev {
    left: 30px;
}
 .certifi-slider .slick-prev {
    left: -35px;
 }
#slider_equipo_tafias .slick-next{
  right: 30px;
}
.certifi-slider .slick-next{
  right: -40px;
}






.tafia-grid{
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: stretch;
}

.tafia-left{
  padding-right: 40px;
}



.tafia-p1, .tafia-p2, .tafia-p3{
  color: #2C5904;
  font-size: 17px;
  font-weight: 500;
  line-height: 150%;
}

.tafia-right{
  background: #2C5904;
  color: #f1fce3;
  border-radius: 28px;
  padding: 40px;
}

.tafia-icon img{
  width: 48px;
  margin-bottom: 16px;
}

.tafia-title{
  color: #FFD22F;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tafia-subtitle{
  font-size: 13px;
  margin-bottom: 20px;
}

.tafia-desc{
  font-size: 14px;
  line-height: 1.6;
}

.tafia-desc ul{
  padding-left: 18px;
}

.tafia-desc li{
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 991px){
  .tafia-grid{
    grid-template-columns: 1fr;
  }
}


.tafia-desc ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
}

.tafia-desc ul li {
  position: relative;
  padding-left: 22px; /* espacio para la viñeta */
  margin-bottom: 5px;
  color: #f1fce3; /* texto claro (ajusta si es necesario) */
  line-height: 1.4;
}

.tafia-desc ul li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px; /* centra verticalmente respecto al texto */
  width: 12px;
  height: 12px;
  background-color: #FFD22F; /* amarillo */
  border-radius: 50%;
}



/* Wrapper */
.tafias-boxes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Caja base */
.tafias-box {
  border-radius: 20px;
  padding: 28px 32px;
}

/* Verde claro */
.tafias-box--light {
  background-color: #72B344;
  color: #FFFFFF;
}

/* Verde oscuro */
.tafias-box--dark {
  background-color: #2C5904;
  color: #FFFFFF;
}

/* Título */
.tafias-tt {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

/* Descripción */
.tafias-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}







/* GRID */
.taf-grid{
  display:grid;
  grid-template-columns:1.7fr 1fr;
  gap:20px;
}

/* LEFT */
.taf-left{
  position:relative;
  min-height:440px;
  background-size:cover;
  background-position:center;
  border-radius:20px;
  overflow:hidden;
}
.taf-left-overlay{
  position:absolute; inset:0;
  background:linear-gradient(90deg,rgba(0,0,0,.5),transparent);
}
.taf-left-content{
      position: absolute;
    z-index: 2;
    padding: 40px;
    color: #fff;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
}
.taf-btn{
  background:#BFED00;
  color:#2C5904;
  border-radius:30px;
     padding: 6px 35px;
  border:0;
  font-weight:600;
  cursor:pointer;
}
.taf-left-content h2 {
    border-left: solid 4px white;
    padding-left: 20px;
    font-size: 20px;
    font-weight: 100;
    line-height: 1.1;
        margin: 0;
}
.taf-left-content h2 b{
  font-size: 35px;
    font-weight: 600;
}
/* RIGHT */
.taf-right{
  position:relative;
  border-radius:20px;
  padding:35px 30px;
  transition:background .35s ease,color .35s ease;
}
.taf-right.is-a{
  background:#BFED00;

}
.taf-right.is-b{
  background:#2C5904;
  
}

.taf-pane{
  position:absolute;
  inset:28px;
  opacity:0;
  transform:translateY(10px);
  transition:opacity .25s ease,transform .25s ease;
  display: flex;
  flex-direction: column;
    justify-content: space-evenly;
}
.taf-pane.is-active{
  opacity:1;
  transform:none;
}
.taf-pane h3 {
    font-size: 1.4rem;
    font-weight: 600;
}
.taf-right.is-b .taf-pane h3{
  color:#BFED00;
}
.taf-right.is-a .taf-pane h3{
  color:#2C5904;
}
.taf-ico img{
  width:42px;
  height:auto;
  margin-bottom:14px;
  display:block;
}

.taf-pane .taf-desc{
  font-size: 15px;
    line-height: normal;
    
    margin-bottom: 36px;
}
.taf-right.is-a .taf-pane .taf-desc{
  color: #2c5904;
}
.taf-right.is-b .taf-pane .taf-desc{
  color: #f1fce3;
}

.taf-desc li {
  position: relative;
    margin-left: 20px;
}
.taf-desc li::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 5px;
    width: 10px;
    height: 10px;
    background-color: #BFED00;
    border-radius: 50%;
}
/* OJITO */
.taf-eye{
  position:absolute;
  bottom:18px;
  right:18px;
  width:46px;
  height:46px;
  border-radius:50%;
  border:0;
  cursor:pointer;
}
.taf-eye img{
  width:22px;
  position:absolute;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
}
.taf-right.is-a .taf-eye {
  background-color: #2C5904;
}
.taf-right.is-b .taf-eye {
  background-color: #BFED00;
}
.taf-eye .eye-close{opacity:0;}
.taf-right.is-b .eye-open{opacity:0;}
.taf-right.is-b .eye-close{opacity:1;} 

/* ===== MODAL BASE ===== */
.taf-modal {
 position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

.taf-modal.is-open {
  pointer-events: auto;
}

.taf-modal.is-open .taf-modal-overlay {
  opacity: 1;
}

.taf-modal.is-open .taf-modal-box {
  transform: translateY(-50%);
  opacity: 1;
}


/* Overlay */
.taf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .35s ease;
}

/* Caja */
.taf-modal-box {
  position: relative;
  max-width: 790px;
  width: calc(100% - 32px);
  margin: auto;
  top: 50%;
  transform: translateY(calc(-50% + 40px));
  opacity: 0;
  background: #f1fce3;
  border-radius: 22px;
  padding: 32px;

  transition:
    transform .45s cubic-bezier(.22,.61,.36,1),
    opacity .35s ease;
}

/* Cerrar */
.taf-modal-close {
      position: absolute;
    top: 6px;
    right: 8px;
    border: 0;
    background: none;
    font-size: 26px;
    cursor: pointer;
    background: #2C5904;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

/* Contenido */
.taf-modal-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

/* Imagen */
.taf-modal-img img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

/* Lista */
.taf-modal-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.taf-modal-list li {
      counter-increment: step;
    padding-left: 30px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: normal;
    color: #000;
    position: relative;
}

.taf-modal-list li::before {
     content: counter(step);
    width: 35px;
    height: 35px;
    
    border-radius: 50%;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -14px;
}



.taf-modal-list li:nth-child(1)::before{
color: #f1fce3;
   background-color: #2C5904;
}
.taf-modal-list li:nth-child(2)::before{
color: #f1fce3;
   background-color: #72B344;
}
.taf-modal-list li:nth-child(3)::before{
color: #2C5904;
   background-color: #BFED00;
}





/* ===== SECCIÓN ===== */


.logistica-wrap {
  background: #72B344;
  border-radius: 28px;
  padding: clamp(32px, 6vw, 64px);
}

/* ===== HEADER ===== */
.logistica-header {
  margin-bottom: 40px;
}

.logistica-tt {
  color: #fff;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 14px;
  border-left: solid 4px white;
    padding-left: 15px;
}

.logistica-desc {
  color: #f1fce3;
  font-size: 15.5px;
  line-height: 1.6;
}
.logistica-desc b {
    font-size: 20px;
}

/* ===== ITEMS (DESKTOP GRID) ===== */
.logistica-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.logistica-item {
  background: #f1fce3;
  border-radius: 18px;
  padding: 25px;
  height: 230px;
}

.logistica-ico {
  margin-bottom: 25px;
}

.logistica-ico img {
  width: 42px;
  height: auto;
  display: block;
}

.logistica-item-desc {
  color: #2C5904;
  font-size: 14px;
  line-height: 1.5;
}








/* ===== CONTENEDOR GENERAL ===== */
.despacho-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* ===== BLOQUE IZQUIERDO ===== */
.despacho-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.despacho-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.despacho-img-caption {
 position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 14px;
}

/* ===== BLOQUE DERECHO ===== */
.despacho-content {
  padding-left: 10px;
  color: #453D3B;
}

.despacho-text,.despacho-subtitle  {
  font-size: 17px;
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 20px;
}

.despacho-subtitle b{
  font-size: 20px;
  display: inline-block;
    margin-bottom: 10px;
}

/* ===== ITEMS ===== */
.despacho-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.despacho-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}



.despacho-item-icon img {
  width: 40px;
  height: auto;
}

.despacho-item-text strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.despacho-item-text p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .despacho-content {
    padding-left: 0;
  }
}


.tafias-video-wrap { margin: 1.5rem 0; }

.tafias-video{
  position: relative;
  background: #f1fce3;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.tafias-play{
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: transform .15s ease, opacity .15s ease;
}
.tafias-play i{
  font-size: 8rem;
  color: #2C5904;
}
.tafias-play:hover{ transform: scale(1.05); }

.tafias-video iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* TARJETA GENERAL */
.taf-card {
    background-color: #f1fce3;
    border-radius: 28px;
    padding: 48px 48px 40px;
    height: 100%;
}
.border-radius{
  border-radius: 28px;
}
/* TÍTULO */
.taf-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #2C5904;
    margin-bottom: 16px;
}

/* DESCRIPCIÓN */
.taf-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #453D3B;
    margin-bottom: 36px;
    font-weight: 600;
}

/* GRID DE ÍTEMS */
.taf-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 32px;
}

/* ITEM */
.taf-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ICONO */
.taf-item-ico {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taf-item-ico svg,
.taf-item-ico img {
    width: 100%;
    height: auto;
    display: block;
    fill: #2C5904;
}

/* TEXTO ITEM */
.taf-item-text {
    font-size: 15px;
    line-height: 1.4;
    color: #453D3B;
    font-weight: 500;
}




.item_equipo a:hover {
    text-decoration: none;
}



    #slider_equipo_tafias  .slick-prev { left: -6px; }
  #slider_equipo_tafias  .slick-next { right: 5px; }
  .tafias-team {    padding: 10px 0 8px;}
  #slider_equipo_tafias .slick-next:before,  #slider_equipo_tafias .slick-prev:before {
    content: "";
  }
section.equip_tafias {
  background-color: var(--crema);
}



/* CONTENEDOR GENERAL */
.sobre-section {
  display: flex;
  gap: 30px;
  position: relative;
}

/* ================= INDICADORES ================= */

.sobre-indicators {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 165px; */
  padding: 10px 0;
}

/* LINEA */
.sobre-line {
  position: absolute;
  width: 1px;
  background: #2C5904;
      top: 15px;
    bottom: 30px;
  z-index: 0;
}

/* DOT BASE */
.sobre-dot {
  position: relative;
  width: 30px;
  height: 30px;
  background: white;
  border: none;
  padding: 0;
  cursor: pointer;
     
}
.sobre-dot:not(:last-child){
 margin-bottom: 140px;
}

/* CÍRCULO EXTERNO */
.sobre-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #BFED00;
  transition: all 0.3s ease;
}

/* CÍRCULO INTERNO (apagado) */
.sobre-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #BFED00;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.3s ease;
}

/* DOT ACTIVO */
.sobre-dot.is-active::before {
  width: 28px;
  height: 28px;
  border-color: #BFED00;
}

.sobre-dot.is-active::after {
  opacity: 1;
  transform: scale(1);
}

/* ================= ITEMS ================= */

.sobre-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sobre-item {
  background: #f1fce3;
  color: #2C5904;
  padding: 26px 30px;
  border-radius: 22px;
  cursor: pointer;
  height: max-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition:
  background-color 0.3s ease,
    color 0.3s ease;
}

.sobre-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

.sobre-item p {
  margin: 0;
  font-size: 13px;
  line-height: normal;
}

/* ACTIVO */
.sobre-item.is-active {
  background: #2C5904;
  color: #fff;
}

/* HOVER */
.sobre-item:hover {
  background: #2C5904;
  color: #fff;
}


/* CONTENEDOR */
.sobre-color-sweep {
  width: 100%;
  height: 45px;
  display: flex;
  overflow: hidden;
}

/* SEGMENTOS */
.sobre-color-sweep .sweep {
  flex: 1;
  background: var(--base-color);
  transform-origin: center;
}



/* COLORES BASE */
.sweep-1 { --base-color: #BFED00; }
.sweep-2 { --base-color: #72B344; }
.sweep-3 { --base-color: #2C5904; }
/* SOLO EL ACTIVO ANIMA */
.sweep.is-active {
  animation: blinkIn 0.45s ease-out;
}



/* ANIMACIÓN: BLANCO → COLOR */
@keyframes blinkIn {
  0% {
    background: #fff;
    transform: scaleX(0.85);
  }
  60% {
    background: var(--base-color);
    transform: scaleX(1.05);
  }
  100% {
    background: var(--base-color);
    transform: scaleX(1);
  }
}



  .tafias-play i{  font-size: 5rem; }
  .tafias-video,.tafias-card{  border-radius: 16px;}
  h3.tafias-title{ font-size: 25px;  }


section.despach .despacho-section, section.ruta .rutas-section,
section.l-product .section-tafias {
    max-width: 1440px;
    margin: auto;
}
.ruta .h5{
  color: #453D3B;
} 


/* =========================
   CONTENEDOR GENERAL
========================= */

.rutas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

/* =========================
   CARD BASE
========================= */
.ruta-card {
  background: #2c5904;
  color: #fff;
  border-radius: 16px;
  padding: 24px;
  cursor: pointer;
  overflow: hidden;

  grid-column: span 1;
  display: flex;
  flex-direction: column;

  transition: background-color 0.35s ease, transform 0.25s ease;
}

.ruta-card:active {
  transform: scale(0.995);
}

/* =========================
   TEXTO
========================= */
.ruta-content {
  display: flex;
  flex-direction: column;
}

.ruta-card.is-active .ruta-tag {
    color: #2C5904;
}
.ruta-tag {
    font-size: 0.75rem;
    font-weight: 400;
    margin-bottom: 6px;
    color: #f1fce3;
    padding-left: 13px;
    position: relative;
}

.ruta-tag::before {
     content: "";
    position: absolute;
    left: 0px;
    top: 4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
}
.card-1 .ruta-tag::before, .card-2 .ruta-tag::before {
    background-color: #BFED00;
}
.card-3 .ruta-tag::before{
  background-color: #FFD22F;
}
.ruta-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ruta-desc {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 0;
}

/* =========================
   IMAGEN (IMPORTANTE)
   - En desktop NO debe ocupar espacio si no está activa
========================= */
.ruta-image {
  /* por defecto la ocultamos totalmente en desktop */
  display: none;
}

/* =========================
   CARD ACTIVA (DESKTOP)
========================= */
@media (min-width: 992px) {
  .ruta-card.is-active {
    background: #f1fce3;
    color: #2c5904;

    grid-column: span 2;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: start;
  }

  /* mostrar imagen SOLO cuando está activa */
  .ruta-card.is-active .ruta-image {
    display: block;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }

  .ruta-card.is-active .ruta-image {
    opacity: 1;
    transform: translateX(0);
  }

  .ruta-image img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    display: block;
    object-fit: cover;
  }
}

/* =========================
   MOBILE
   - Todas “activas”, imagen abajo (mockup)
========================= */
@media (max-width: 991px) {
  .rutas-grid {
    grid-template-columns: 1fr;
  }

  .ruta-card {
    grid-column: span 1 !important;
    background: #f1fce3;
    color: #2c5904;
    cursor: default;
    display: flex;
    flex-direction: column;
  }

  .ruta-image {
    display: block;     /* en mobile siempre se ve */
    margin-top: 16px;
  }

  .ruta-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    object-fit: cover;
  }
}




/* ===== TAFIAS TABS ===== */
.tafias-tabs {
  border-bottom: none;
  gap: 30px;
}

.tafias-tabs .nav-link {
  border: none;
  font-weight: 600;
  color: #8fa874;
  padding: 5px 10px;
  position: relative;
  font-size: 20px;
  font-weight: 700;
}

.tafias-tabs .nav-link.active {
  color: #2c5904;
}

.tafias-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background-color: #2c5904;
}

/* ===== CARDS ===== */
.tafias-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
}

.tafias-header {
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  font-size: 1rem;
}

.tafias-header.light {
  background-color: #7bb642;
}

.tafias-header.dark {
  background-color: #2c5904;
}

.tafias-card .list-group-item {
  text-align: center;
  font-size: 0.95rem;
  border: none;
      font-weight: 500;
    color: #453D3B;
}

.tafias-card .list-group-item:nth-child(even) {
  background-color: #f1fce3;
}






/* Imagen izquierda */
.sugarcane-img {
  border-radius: 18px;
  object-fit: cover;
  height: 100%;
}

/* Caja derecha */
.market-box {
  background: #f1fce3;
  border-radius: 18px;
  height: 100%;
  overflow: hidden;
}

/* SVG decorativo */
.market-deco {
  position: absolute;
  top: 10px;
  right: 0px;
  width: 120px;
  pointer-events: none;
}

/* Franja amarilla */
.market-yellow-bar {
  position: absolute;
  top: -12px;
  left: 9px;
  width: 85px;
  height: 140%;
  background: #EDB007;
  z-index: -1;
}

/* Título */
.market-title {
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 35px;
color: #453D3B;
}

/* Lista */
.market-list {
  position: relative;
  z-index: 2;
}

/* Ítem */
.market-item {
  margin-bottom: 20px;
}

/* Icono */
.market-icon {
  width: 65px;
  min-width: 65px;
  margin: 0 20px;
}

.market-icon img {
  width: 100%;
  height: auto;
}

/* Texto */
.market-text strong {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
 color: #453D3B;
}

.market-text p {
  margin: 0;
   font-weight: 400;
  font-size: 14px;
color: #453D3B;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 991px) {
  .market-box {
    padding: 40px 30px 30px 80px;
  }

  .market-yellow-bar {
    left: 25px;
    width: 50px;
  }
}




.map-container {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.map-item {
  position: absolute;
  width: 30px;
  height: 30px;
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 9;
}
.map-item img {
  width: 100%;
  height: auto;
}

.info-box {
  position: absolute;
  white-space: normal;
  background: #fff;
  padding: 12px 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  display: none;
  width: max-content;
  max-width: 350px;
  z-index: 10;
  font-size: 14px;
  font-weight: 400;
  color: #2C5904;
}
.info-box b{
    font-size: 16px;
  color: #72B344;
   font-weight: 400;
}
.hover-image {
position: absolute;
        top: 48.7%;
    left: 18.5%;
    width: 13.3%;
    height: auto; 
    display: none;
    z-index: 5;
}

/* Posiciones fijas de los íconos sobre el mapa */
.map-item-0 { top: 48%; left: 20%; }
.map-item-1 { top: 54%; left: 30%; }
.map-item-2 { top: 45%; left: 29%; }
.map-item-3 { top: 59%; left: 22%; }
.txt-mapa p {
    font-size: 15px;
    color: #2C5904;
    font-weight: 500;
}
.btns-instala .h5{
   color: #2C5904;
}
.map-item-2 .info-box {
    top: -65px;
    left: 35px;
}
.map-item-0 .info-box {
    top: -119px;
    left: -125px;
}
.map-item-1 .info-box {
    top: -26px;
    left: 40px;
}
.map-item-3 .info-box {
    top: 46px;
    left: -84px;
}
button.btn-indus {
    border: none;
    border-radius: 8px;
    background: #72B344;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
     gap: 8px;
    padding: 15px 20px;
    line-height: 1;
    font-size: 16px;
    font-weight: 600;
    width: 220px;
}
.btns-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}
.ubica_desti{
  background-color: #f1fce3;
}


.subcampos {
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.subcampos.activo {
    opacity: 1;
    pointer-events: auto;
}

.btn-regresar {
    display: none;
}



div#subDestileria, div#subAnejo{
    top: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    z-index: 9;
    overflow: hidden;
}
div#subDestileria .card{
  background-color: #72B344;
  border: none;
  border-radius: 0;
}
div#subDestileria .card h3{
  color: #2C5904;
  font-weight: 700;
}
div#subDestileria .card p{
  color: #2C5904;
  font-size: 14px;
  font-weight: 500;
}
div#subAnejo .card{
  background-color: #2C5904;
  border: none;
  border-radius: 0;
}
div#subAnejo .card h3{
  color: #f1fce3;
  font-weight: 700;
}
div#subAnejo .card p{
  color: #f1fce3;
  font-size: 14px;
  font-weight: 500;
}

button.btn-regresar i {
    font-size: 26px;
    line-height: 0;
}
button.btn-regresar {
    background-color: #f1fce3;
    color: #2C5904;
    font-size: 20px;
    font-weight: 700;
    border: none;
    padding: 3px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

div#infraestructura h4{
  color: #2C5904;
   font-weight: 700;
}

/* Estilo inicial del contenedor #infraestructura */
#infraestructura {
   position: absolute;
    bottom: 0;
    left: 15px;
    opacity: 0; /* Inicialmente invisible */
    transform: translateY(30px); /* Posición inicial desplazada hacia abajo */
    transition: opacity 0.7s ease, transform 0.7s ease; /* Transición suave para opacidad y desplazamiento */
    visibility: hidden; /* Inicialmente invisible */
    display: block; /* Mantener espacio */
        background-color: #72B344;
    border-radius: 25px 25px 0 0;
        width: 560px;

}

/* Estilo cuando el contenedor aparece */
#infraestructura.mostrar {
    opacity: 1; /* Hacerlo visible */
    transform: translateY(0); /* Devolverlo a su posición original */
    visibility: visible; /* Asegurar que sea visible */
}
#infraestructura.ocultar {
    opacity: 0; /* Se desvanece */
    transform: translateY(30px); /* Desplazado hacia abajo */
    visibility: hidden; /* Oculto */
}

#accordion-items button {
    background-color: transparent;
    border: none;
    text-align: left;
    padding: 0;
    color: #f1fce3;
    width: 100%;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#accordion-items button i {
    font-size: 20px;
    line-height: 0;
}
#accordion-items .card{
  border-radius: 15px !important;
  padding: 20px;
}
#accordion-items .card-header{
  border: none !important;
  padding: 0;
}
#accordion-items .card-body{
  font-size: 13px;
  font-weight: 400;
  color: #f1fce3 !important;
  border: none !important;
  padding: 0;
}
button#btnInfraestructura {
    border: none;
    padding: 10px 15px;
    text-align: left;
    width: fit-content;
    background-color: #72B344;
    color: #f1fce3;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
}




@media (max-width: 600px){
  .sobre-color-sweep {
    height: 30px;
  }
  .sobre-item{
    padding: 18px 20px;
    border-radius: 20px;

  }
  .sobre-item h3 {
    font-size: 18px;
  } 
  .sobre-item p{
    font-size: 13px;
  }
  .sobre-section {
    gap: 18px;
}
.prod-slide-grid, .hist2-item{
  flex-direction: column;
}
.item-0 .hist2-title {
   text-align: left;
}
.item-0 .hist2-title>div b {
    padding: 2px 10px;
    border-radius: 12px;
}
.item-0 .hist2-title>div {
    font-size: 30px;
    width: 100%;
}

.item-0 .hist2-image img{
  min-height: 550px;
}
.hist2-title>div {
    font-size: 25px;
    width: 100%;
}
.hist2-image img{
      min-height: 300px;
}
.hist2-title {
    left: 40px;
    right: 40px;
    padding: 20px 15px;
    gap: 20px;
    text-align: center;
      bottom: 40px;
}
.hist2-nav{
  left: 50%;
  flex-direction: row;
          gap: 40px;
}
.prod-title {
    font-size: 35px;
}
.prod-arrows {
    margin-top: 1rem;
}
.prod-desc {
    font-size: 15px;
}
button.btn-indus{
      padding: 15px 8px;
          align-items: center;
    gap: 10px;
        font-size: 14px;
}
button.btn-regresar {
    position: absolute;
    top: 2rem;
    font-size: 17px;
    padding: 2px 10px;
}
div#subDestileria .card, div#subAnejo .card{
      border-radius: 30px 30px 0 0;
}
.map-item {
    right: 0;
    left: auto;
    
}
.map-item-0{
top: 10%;
}
.map-item-1{
top: 20%;
}
.map-item-2{
top: 30%;
}
.map-item-3{
top: 40%;
}
.hover-image{
      top: 52%;
}
.info-box{
  max-width: 300px;
}
.map-item-0 .info-box,
.map-item-1 .info-box,
.map-item-2 .info-box,
.map-item-3 .info-box {
    top: 60%;
    left: auto;
    right: 170%;
}
#infraestructura{
      width: 80%;
    z-index: 9;
        bottom: -160%;
      left: 10%;
    border-radius: 25px;
}
.col-texto{
  margin-top: -2rem;
}
.tt_vide_taf {
    font-size: 25px;
    line-height: normal;
}
.border-radius {
    border-radius: 20px;
}
.taf-desc {
    font-size: 13px;
  }
     .taf-card {
        padding: 30px 20px;
    }

    .taf-title {
        font-size: 26px;
    }

    .taf-items {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .taf-item-text {
    font-size: 14px;
    }
    .proc-product {
        width: min(20%, 420px);
    }
    .proc-left-inner{
          min-height: 200px;
    }
    .proc-right {
        min-height: 370px;
    }
    .abo-slider .col-lg-4, .abo-slider .col-md-6{
              max-width: 50%;
    }
    section.abo-grid span.abo-ico{
          position: relative;
      align-self: start;
    }
    .abo-grid .row {
    row-gap: 0rem;
    }
    .abo-card {
        padding: 15px;
    }
   .abo-ico {
        margin-bottom: 0px;
    }
    #slider_equipo_tafias .slick-prev, #slider_equipo_tafias .slick-next {
    
    bottom: -60px;
}
.tafia-left {
    padding-right: 0px;
}
.tafia-p1 {
    font-size: 14px;
}
.tafia-p2 {
    font-size: 13px;
    margin-bottom: 20px;
}
.tafia-p3 {
    font-size: 15px;
}
.tafia-right{
      padding: 30px;
}
.taf-grid {
    display: flex;
        flex-direction: column;
}
.taf-left-content{
  flex-direction: column;
          align-items: flex-start;
        gap: 20px;
}
.taf-left {
    min-height: 330px;
}
.taf-left-content h2 b {
    font-size: 25px;
}
.taf-left-content h2{
  padding-left: 15px;
}
.taf-modal-box{
      padding: 25px;
}
 .taf-modal-content {
    grid-template-columns: 1fr;
        gap: 25px;
  }
  .taf-modal-list{
        padding: 0px 20px;
  }
  .taf-modal-list li::before {
    width: 25px;
    height: 25px;
  }
  .taf-modal-list li{
    padding-left: 25px;
    margin-bottom: 10px;
  }
  .taf-right{
        height: 350px;
  }
  .logistica-desc {
    font-size: 14px;
  }
  .logistica-desc b {
    font-size: 18px;
    line-height: normal;
}
 .logistica-items {
    display: block; /* Slick toma control */
  }

  .logistica-item {
        display: flex;
        gap: 10px;
        flex-direction: row;
        align-items: center;
        height: 100%;
        margin-bottom: 20px;
        padding: 20px;
    }
    .logistica-ico {
    margin-bottom: 0;
}
.logistica-item-desc {
    font-size: 13px;
    margin: 0;
}
.logistica-wrap {
    border-radius: 25px 25px 0 0;
}
.despacho-img-caption{
  padding: 5px 0px;
      font-size: 13px;
}
.despacho-text, .despacho-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
}
.despacho-item-text strong {
    font-size: 16px;
}
.despacho-item-text p {
    font-size: 14px;
}
section.ruta .txt-linea div.h3 br{
 display: none;
}
section.l-product .h5, section.ruta .h5{
      font-size: 15px;
}
.ruta-desc {
    font-size: 14px;
    line-height: normal;
}
.ruta-title {
    font-size: 17px;
}
    .ruta-image img {
        height: 180px; 
    }
    .ruta-tag{
          color: #2c5904;
    }
    .tafias-tabs .nav-link{
             font-size: 14px;
        padding: 0px;
    }
    
.tafias-tabs .nav-link.active::after {
  bottom: -4px;
}
.tafias-header{
      font-size: 13px;
          padding: 5px;
}
.tafias-card .list-group-item{
  font-size: 12px;
}
    .market-box {
                padding: 30px 25px 30px 10px; 
    }
    .market-icon {
    width: 40px;
    min-width: 40px;
    margin: 0 15px;
}
.market-text p {
      font-size: 13px;
}
.market-title {
    font-size: 23px;
    margin: 0 15px;
        margin-bottom: 35px;
}
.market-deco {
    top: 57px;
    right: -13px;
    width: 95px;
}
    .market-yellow-bar {
        left: 10px;
    }

}