/* --- Layout: Main Content with Aside --- */
.content-section-with-aside {
    max-width: 950px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-content-area {
    flex: 3;
    min-width: 0;
}

.sidebar-aside {
    flex: 1;
    background-color: var(--color-contenedor-blanco);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--color-sombra-contenedor);
    align-self: flex-start;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.sidebar-aside:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--color-sombra-contenedor);
}

.sidebar-aside h3, .sidebar-aside h4 {
    color: var(--color-acento-retro);
    font-family: var(--font-body);
    text-align: left;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: none;
}

.sidebar-aside ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.sidebar-aside ul li {
    margin-bottom: 10px;
}

.sidebar-aside ul li a {
    color: var(--color-texto-principal);
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.sidebar-aside ul li a:hover {
    color: var(--color-acento-divertido);
    text-decoration: underline;
}

.sidebar-aside .ads-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Media Query for Desktop Layout */
@media (min-width: 992px) {
    .content-section-with-aside {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }
}

/* --- Sidebar Link Styles --- */
.sidebar-link {
    background-color: white;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 15px 10px 10px;
    cursor: pointer;
    user-select: none;
    border-radius: 10px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    color: black;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sidebar-link:hover {
    transform: translateY(-3px);
    box-shadow: rgba(149, 157, 165, 0.4) 0px 10px 30px;
    background-color: #f0f0f0;
}

.sidebar-link .sidebar-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: black;
    transition: stroke 0.3s ease, fill 0.3s ease, transform 0.5s ease;
}

.sidebar-link:hover .sidebar-icon {
    stroke: hsl(0deg 100% 50%);
}

.sidebar-link span {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-link.active {
    background-color: var(--color-acento-divertido);
    color: var(--ds-white);
    box-shadow: var(--chrono-dark-blue-shadow) 0px 8px 24px;
}

.sidebar-link.active .sidebar-icon {
    stroke: white;
}

/* --- Details / Expandable Content --- */
.detalles {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.detalles.expandido {
    max-height: 1000px;
    opacity: 1;
}

.contenido-detalle {
    background-color: var(--color-dark-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--color-shadow-dark);
    color: var(--ds-white);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 15px;
    box-sizing: border-box;
}

.contenido-detalle .toggle-btn {
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}


.contenedor {
  margin-top: 20px;
  position: relative;
  width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    min-height: 100vh;
    overflow-x: hidden;
    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;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    text-align: center;
    min-height: 210px;
    height: 40vh;
  }
  
  .card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
  }
  

  .card-content {
    padding: 20px;
    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;
  }
  
  .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;
  }
  .beautiful-button {
  position: relative;
  display: inline-block;
  background: linear-gradient(to bottom, #1b1c3f, #4a4e91);
 /* Gradient background */
  color: white;
 /* White text color */
  font-family: "Segoe UI", sans-serif;
 /* Stylish and legible font */
  font-weight: bold;
  font-size: 18px;
 /* Large font size */
  border: none;
 /* No border */
  border-radius: 30px;
 /* Rounded corners */
  padding: 14px 28px;
 /* Large padding */
  cursor: pointer;
 /* Cursor on hover */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
 /* Subtle shadow */
  animation: button-shimmer 2s infinite;
  transition: all 0.3s ease-in-out;
 /* Smooth transition */
}

/* Hover animation */
.beautiful-button:hover {
  background: linear-gradient(to bottom, #2c2f63, #5b67b7);
  animation: button-particles 1s ease-in-out infinite;
  transform: translateY(-2px);
}

/* Click animation */
.beautiful-button:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Shimmer animation */
@keyframes button-shimmer {
  0% {
    background-position: left top;
  }

  100% {
    background-position: right bottom;
  }
}

/* Particle animation */
@keyframes button-particles {
  0% {
    background-position: left top;
  }

  100% {
    background-position: right bottom;
  }
}