:root{
    --color-fondo-principal: #2f624a;
    --color-fondo-secundario: #183528; 
    --color-texto-claro: #ccc;
    --color-acento:#ffdc3e;
    --color-texto: #111;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Khula', sans-serif;
}

html{
    font-size: 62.5%;
}

main{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(var(--color-fondo-principal), var(--color-fondo-secundario));
}

.wrapper-testimonios{
    width: 95%;
    height: 90%;
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.8),rgba(0,0,0,0.8)), url('../img/fondo.jpg');
    background-size: cover;
    background-position: center; 
    box-shadow: 0 1rem 5rem rgba(0, 0, 0, 0.4);
    border-radius: 1rem;
}

header {
    text-align: center;
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
}

header h3{
    font-size: 2rem;
    color: var(--color-texto-claro);
    font-weight: 600;
}

header > h1 {
    font-size: 5rem;
    color: var(--color-texto-claro);
    font-weight: 300;
    text-transform: uppercase;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem; /* separación del h1 */
}

.stars i {
    font-size: 1.6rem;
    color: var(--color-acento);
}

.testimonios {
    width: 55%;
    height: 50rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border: 0.1rem solid #fff; 
}

.slider {
    display: flex;
    width: 500%; /* 5 slides */
    height: 100%;
    transition: all 0.8s cubic-bezier(0,0,0,1);
}

.slide {
    width: 20%; 
    position: relative;
}

.slide-bg {
    width: 70%;
    height: 65%;
    background-color: #296a4e;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateZ(-6deg);
    border-radius: 2rem;
    opacity: 0.7;
}

.slide-content {
    width: 70%;
    height: 65%;
    background-color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 0 5rem;
}

.slide-content i {
    font-size: 8rem;
    color: var(--color-fondo-secundario);  
    position: absolute;
}

.slide i:nth-child(1) {
  top: -15%;
  left: -10%;
  opacity: .90;
}

.slide i:nth-child(2) {
  bottom: -12%;
  right: -8%;
  opacity: .90;
  
}

.slide-img {
    width: 15rem;
    height: 16rem;
    border: 0.3rem solid rgba(0,0,0,0.4);
    border-radius: 3rem 0 3rem 0;
    overflow: hidden;
}

.slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3rem 0 3rem 0;
}

.slide-text {
    width: 70%;
}

.slide-text h3 {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--color-texto);
    margin-bottom: 1rem;
}

.slide-text p {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgb(30,40,35);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.slide-text p.cliente {
    font-style: italic;
    font-weight: 500;
}

.controls{
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.controls button {
  background: #7b8584;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
  color: #444;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  pointer-events: all; /* habilita clic en iconos */
}

.puntos {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.puntos span {
  width: 1rem;
  height: 1rem;
  background-color: #ccc;
  border-radius: 50%;
  margin: 0 0.5rem;
  cursor: pointer;
}

.puntos span.active {
  width: 1.5rem;
  height: 1.5rem;
  background-color: #fff;
}
