.card {
    width: 300px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  .card-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3px;
    text-align: center;
    min-height: 210px;
    height: 28vh;
  }
  
  .card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
  

  .card-content {
    padding: 10px;
    min-height: 220px;
    display: grid;
    grid-template-rows: auto 1fr auto;
  }
  
  .card-content h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
    color: #333;
  }
  
  .card-content p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    color: #666;
  }

  .card-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 5px;
    display: inline-block;
    animation-duration: 0.5s;
    animation-timing-function: ease-in-out;
  }
  
  @keyframes dot-animation {
    from {
      background-color: #bbb;
      width: 10px;
    }
    to {
      background-color: #333;
      width: 30px;
    }
  }
  
  @keyframes dot-animation-reverse {
    from {
      background-color: #333;
      width: 30px;
    }
    to {
      background-color: #bbb;
      width: 10px;
    }
  }
  
.active-dot {
    animation-name: dot-animation;
    animation-fill-mode: forwards;
    background-color: #BC955C !important; /* Asegura el color oro */
}
  .dot:not(.active-dot) {
    animation-name: dot-animation-reverse;
    animation-fill-mode: forwards;
  }

  
  .buttons {
    display: flex;
    gap: 20px;
  }

  .next-button {
    background-color: #272727;
    color: white;
    border: 1px solid #272727;  
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  
  .next-button:hover {
    background-color: #939393;
    border: 1px solid #939393;  

  }

  .previous-button {
    background-color: #fff;
    color: #272727;
    border: 1px solid #272727;  
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
  
  .previous-button:hover {
    color: white;
    border: 1px solid #939393;  
    background-color: #939393;
  }

.ocultar {
    display: none !important;
    pointer-events: none; /* Evita que el usuario pueda darle clic aunque no se vea */
}
  .principal {
    position: absolute;
    top: 0;
    left: calc(50% - 150px);
    z-index: 10;
    transition: 0.5s;
  }
  
  .siguiente {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: calc(50%);
    z-index: 8;
    transition: 0.5s;
    transform: scale(0.8) perspective(40px) rotateY(-0.5deg);
    filter: blur(20px);
  }

  .siguiente2 {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: calc(50% + 120px);
    z-index: 6;
    transition: 0.5s;
    transform: scale(0.6) perspective(40px) rotateY(-0.5deg);
    filter: blur(20px);
  }

/* Tarjeta 3 - Más lejos y más pequeña */
.siguiente3 {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: calc(50% + 220px); /* Aumentamos la distancia */
    z-index: 4; /* Menor que siguiente2 */
    transition: 0.5s;
    transform: scale(0.45) perspective(40px) rotateY(-0.5deg);
    filter: blur(25px); /* Un poco más de desenfoque */
}

/* Tarjeta 4 - Casi al borde y miniatura */
.siguiente4 {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: calc(50% + 300px); /* Casi al borde del contenedor */
    z-index: 2;
    transition: 0.5s;
    transform: scale(0.3) perspective(40px) rotateY(-0.5deg);
    filter: blur(30px);
}


  .anterior {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: calc(50% - 300px);
    z-index: 8;
    transition: 0.5s;
    transform: scale(0.8) perspective(40px) rotateY(0.5deg);
    filter: blur(20px);

  }

  .anterior2 {
    pointer-events: none;
    position: absolute;
    top: 0;
    left: calc(50% - 420px);
    z-index: 6;
    transition: 0.5s;
    transform: scale(0.6) perspective(40px) rotateY(0.5deg);
    filter: blur(20px);
  }


#div-transparent-next { 
    right: 0; 
    background: linear-gradient(to left, rgba(255,255,255,0.2), transparent); /* Opcional: una ligera sombra para saber dónde clicar */
}

#div-transparent-previous { 
    left: 0; 
    background: linear-gradient(to right, rgba(255,255,255,0.2), transparent);
}

  @media (max-width: 768px) {
  .siguiente {
    left: calc(50% + 40px); /* Más cerca de la principal en móvil */
    transform: scale(0.7) rotateY(-0.5deg);
  }
  .anterior {
    left: calc(50% - 240px);
    transform: scale(0.7) rotateY(0.5deg);
  }
  /* Ocultar las segundas tarjetas en pantallas muy pequeñas para evitar ruido visual */
  .siguiente2, .anterior2 {
    display: none;
  }
}

/* Altura reservada para que el footer no suba */
.carrusel-contenedor {
    position: relative;
    min-height: 600px; /* Asegura que el contenido posterior se quede abajo */
    margin-bottom: 50px;
    margin-top: -30px; /* Espacio por la navbar fija */
}

/* Colores institucionales */
.gob-title {
    color: #13322B !important; /* Verde GOB */
    border-bottom: 2px solid #BC955C; /* Línea Oro */
    padding-bottom: 10px;
    font-weight: bold;
}

.gob-date {
    font-size: 13px;
    color: #6F7271;
    margin-bottom: 10px;
    display: block;
}

/* Botones estilo GOB */
.btn-gob-next {
    background-color: #13322B;
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-gob-next:hover {
    background-color: #BC955C;
}

.active-dot {
    background-color: #BC955C !important;
    width: 25px !important;
}

/* Estado inicial de los textos (ocultos o desplazados) */
.card .card-content h3, 
.card .card-content p,
.card .card-content .gob-date {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.5s ease-out;
}

/* Estado cuando la tarjeta es la PRINCIPAL */
.card.principal .card-content h3,
.card.principal .card-content p,
.card.principal .card-content .gob-date {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos para un efecto de cascada (opcional pero recomendado) */
.card.principal .card-content h3 { transition-delay: 0.2s; }
.card.principal .card-content .gob-date { transition-delay: 0.3s; }
.card.principal .card-content p { transition-delay: 0.4s; }

.principal {
    position: absolute;
    top: 0;
    left: calc(50% - 150px);
    z-index: 10;
    transition: 0.5s;
    filter: blur(0) brightness(1); /* Asegura nitidez total */
    transform: scale(1.05); /* Un ligero realce de tamaño */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); /* Sombra más profunda */
}