
/* Slider */
.slider-container {
    max-width: 80%;
    height: 450px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    background: white;
    display: flex;
    align-items: center;
  }
  
  .slider {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 100%;
    height: 100%;
  }
  
  .slide {
    display: flex;
    min-width: 100%;
    height: 100%;
    justify-content: space-between;
  }
  
  .slide img {
    width: 50%;
    height: 100%;
    object-fit: cover;
  }
  
  .text-box {
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #1d1d1d;
    color: white;
  }
  
  .text-box h2 {
    font-size: 32px;
    margin-bottom: 20px;
    font-family: 'Century Gothic', sans-serif;
    color: #cfa52f;
  }
  
  .text-box p {
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 30px;
    font-family: 'Californian FB', serif;
  }
  
  .autor {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .autor img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #cfa52f;
    object-fit: cover;
  }
  
  .autor .nombre {
    font-size: 18px;
    color: #fff;
    font-weight: bold;
  }
  
  .prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease-in-out;
  }
  .prev { left: 20px; }
  .next { right: 20px; }
  .prev:hover, .next:hover {
    background: #cfa52f;
  }
  
  .prev, .next {
    display: none;
  }
  

  .dots {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
  }
  
  .dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .dots span.active {
    background-color: #cfa52f;
  }
  
  
  @media (max-width: 900px) {
    .slide {
      flex-direction: column;
    }
  
    .slide img, .text-box {
      width: 100%;
      height: auto;
    }
  
    .text-box {
      padding: 30px 20px;
    }
  }