body {
margin: 0;
padding: 0;
}
.contenedor {
  margin-top: 20px;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  height: 550px;
  overflow: hidden;     /* mejor que overflow-x */
  font-family: 'Arial', sans-serif;
}


.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;
justify-content: center;
align-items: center;  /* centra vertical */
text-align: center;
min-height: auto;     /* 👈 quita el fijo */
border-radius: 12px;
}


.card img {
display: block;
width: 100%;
height: auto;
margin: 0;
padding: 0;
border-bottom: 9px #31acb1 solid;
}
.card .img-container {
margin: 0;
padding: 0;
line-height: 0;
}



.card-content {
padding: 20px;
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;
}

.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;
}

.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(3px);
}

.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(8px);
}

.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(3px);

}

.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(8px);
}

#div-transparent-previous {
position: absolute;
width: 250px;
height: 100%;
right: calc(50% + 150px);
top: 0;
z-index: 9;
cursor: pointer;
}

#div-transparent-next {
position: absolute;
width: 250px;
height: 100%;
left: calc(50% + 150px);
top: 0;
z-index: 9;
cursor: pointer;
}
/* Indicador global */
.dots {
position: absolute;
bottom: 16px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 8px;
z-index: 20;
}

/* Reutilizamos .dot que ya tienes y .active-dot para el activo */
.dots .dot {
height: 5px;
width: 10px;
background-color: #bbb;
border-radius: 5px;
display: inline-block;
animation-duration: 0.5s;
animation-timing-function: ease-in-out;
}

/* Opcional: ocultar los dots dentro de cada card para no duplicar */
.card .card-navigation { display: none; }
.franja-roja {
width: 100%;
height: 6px;              /* grosor de la franja */
background-color: #E52729; /* color rojo */
margin-top: 4px;           /* pequeño espacio entre la foto y la franja */
}
