/**
 * ============================================================================
 * HEALTHY WORKUP - 3D Coverflow Gallery Styles (Últimas Noticias)
 * ============================================================================
 * Estilos para el escenario de perspectiva 3D, tarjetas en abanico,
 * controles de navegación, puntos indicadores y visor modal (Lightbox)
 * ============================================================================
 */
      /* ===== 3D Coverflow Gallery Styles (ULTIMAS NOTICIAS) ===== */
      .vehicles-coverflow {
        background: linear-gradient(160deg, #1a2332 0%, #0d1520 50%, #1a2c1a 100%);
        padding: 70px 0 80px 0;
        overflow: hidden;
        position: relative;
      }

      .vehicles-coverflow::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(ellipse at 50% 30%, rgba(76, 171, 225, 0.08) 0%, transparent 70%);
        pointer-events: none;
      }

      .vehicles-coverflow .titlepage {
        text-align: center;
        padding-bottom: 20px;
        position: relative;
      }

      .vehicles-coverflow .titlepage h2 {
        font-size: clamp(2rem, 3.8vw, 3.125rem);
        color: #009DC4;
        line-height: 1.15;
        font-weight: bold;
        padding: 0;
        margin: 0 0 10px 0;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-shadow: 0 0 30px rgba(0, 157, 196, 0.4);
        font-family: inherit;
      }

      .vehicles-coverflow .titlepage p {
        color: rgba(255, 255, 255, 0.75);
        margin: 0;
        font-weight: 400;
      }

      .containerb {
        width: auto;
        margin: auto;
      }

      @-webkit-keyframes topAnimation {
        from {
          transform: translate(0rem, 0);
        }

        to {
          transform: translate(0rem, 3.5rem);
        }
      }

      @keyframes topAnimation {
        from {
          transform: translate(0rem, 0);
        }

        to {
          transform: translate(0rem, 3.5rem);
        }
      }

      @-webkit-keyframes bottomAnimation {
        from {
          transform: translate(-11.5rem, 0);
        }

        to {
          transform: translate(0rem, 0);
        }
      }

      @keyframes bottomAnimation {
        from {
          transform: translate(-11.5rem, 0);
        }

        to {
          transform: translate(0rem, 0);
        }
      }

      .vehicles-coverflow a.btn {
        text-transform: uppercase;
        text-decoration: none;
        font-weight: 500;
        border: 0;
        position: absolute;
        letter-spacing: 0.15em;
        margin: 0 auto;
        padding: 1rem 2.5rem;
        background: linear-gradient(135deg, #4CABE1, #2e8ac4);
        outline: none;
        font-size: 25px;
        color: #fff;
        transition: all 0.3s ease;
        z-index: 5;
        left: 78%;
        bottom: 40%;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(76, 171, 225, 0.35);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: normal;
      }

      .vehicles-coverflow a.btn::after,
      .vehicles-coverflow a.btn::before {
        border: 0;
        content: "";
        position: absolute;
        height: 40%;
        width: 10%;
        transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: -2;
        border-radius: 50%;
      }

      .vehicles-coverflow a.btn::before {
        border: 0;
        background-color: #4CABE1;
        top: -0.75rem;
        left: 0.5rem;
        -webkit-animation: topAnimation 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.25s infinite alternate;
        animation: topAnimation 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.25s infinite alternate;
      }

      .vehicles-coverflow a.btn::after {
        background-color: #38aaa1;
        top: 3rem;
        left: 13rem;
        -webkit-animation: bottomAnimation 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s infinite alternate;
        animation: bottomAnimation 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s infinite alternate;
      }

      .vehicles-coverflow a.btn:hover {
        background: linear-gradient(135deg, #5dc0f5, #4CABE1);
        box-shadow: 0 6px 28px rgba(76, 171, 225, 0.55);
        transform: translateY(-2px);
        color: #fff;
      }

      .vehicles-coverflow a.btn:hover::before,
      .vehicles-coverflow a.btn:hover::after {
        top: 0;
        height: 100%;
        width: 100%;
        border-radius: 0;
        -webkit-animation: none;
        animation: none;
      }

      .vehicles-coverflow a.btn:hover::after {
        left: 0rem;
      }

      .vehicles-coverflow a.btn:hover::before {
        top: 0.5rem;
        left: 0.35rem;
      }

      @media screen and (max-width: 1200px) {
        .vehicles-coverflow a.btn {
          left: 75%;
          font-size: 22px;
          padding: 0.8rem 2rem;
        }
      }

      @media screen and (max-width: 991px) {
        .vehicles-coverflow a.btn {
          left: 72%;
          font-size: 19px;
          padding: 0.7rem 1.8rem;
        }
      }

      @media screen and (max-width: 767px) {
        .vehicles-coverflow a.btn {
          font-weight: 500;
          font-size: 17px;
          left: 77%;
        }
      }

      @media screen and (max-width: 575px) {
        .vehicles-coverflow a.btn {
          position: static;
          display: inline-block;
          margin-top: 15px;
          left: auto;
          bottom: auto;
        }
      }

      /* Scene: provides perspective depth */
      .coverflow-scene {
        width: 100%;
        height: clamp(340px, 30vw, 420px);
        perspective: 1000px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 20px 0 0 0;
        position: relative;
      }

      /* Stage: the "camera" that moves via inverse transform */
      .coverflow-stage {
        position: relative;
        width: 280px;
        height: 360px;
        transform-style: preserve-3d;
        transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
      }

      /* Individual card */
      .cf-card {
        position: absolute;
        inset: 0;
        transform-style: preserve-3d;
        -webkit-box-reflect: below 18px linear-gradient(transparent 60%, rgba(0, 0, 0, 0.25));
        transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1),
          opacity 500ms ease;
      }

      .cf-card button {
        border: 0;
        outline: 0;
        cursor: pointer;
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 16px;
        padding: 0;
        background: transparent;
        transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1),
          box-shadow 300ms ease;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
          0 0 0 1px rgba(255, 255, 255, 0.08);
      }

      .cf-card button:hover {
        transform: scale(1.04) translateY(-5px);
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7),
          0 0 0 1px rgba(76, 171, 225, 0.4),
          0 0 20px rgba(76, 171, 225, 0.2);
      }

      .cf-card button:focus-visible {
        box-shadow: 0 0 0 3px #4CABE1;
      }

      .cf-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 16px;
        transition: transform 400ms ease;
      }

      .cf-card button:hover img {
        transform: scale(1.05);
      }

      /* Navigation */
      .coverflow-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        margin-top: 50px;
      }

      .coverflow-btn {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        border: 2px solid rgba(0, 157, 196, 0.5);
        background: rgba(0, 157, 196, 0.1);
        color: #009DC4;
        font-size: 22px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        backdrop-filter: blur(8px);
      }

      .coverflow-btn:hover {
        background: #009DC4;
        color: #fff;
        border-color: #009DC4;
        box-shadow: 0 0 20px rgba(0, 157, 196, 0.5);
        transform: scale(1.1);
      }

      .coverflow-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        transform: none;
      }

      .coverflow-dots {
        display: flex;
        gap: 10px;
        align-items: center;
      }

      .coverflow-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
      }

      .coverflow-dot.active {
        background: #009DC4;
        width: 24px;
        border-radius: 4px;
        box-shadow: 0 0 10px rgba(0, 157, 196, 0.6);
      }

      .coverflow-dot:hover:not(.active) {
        background: rgba(0, 157, 196, 0.6);
        transform: scale(1.3);
      }

      /* Responsive */
      @media (max-width: 768px) {
        .coverflow-scene {
          height: 300px;
          perspective: 700px;
        }

        .coverflow-stage {
          width: 200px;
          height: 260px;
        }
      }

      @media (max-width: 480px) {
        .coverflow-scene {
          height: 250px;
          perspective: 600px;
        }

        .coverflow-stage {
          width: 160px;
          height: 210px;
        }
      }

      /* ===== Lightbox Modal (Últimas Noticias) ===== */
      #noticia-lightbox {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 99999;
        background: rgba(0, 0, 0, 0.88);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        align-items: center;
        justify-content: center;
        padding: 20px;
        animation: lbFadeIn 0.3s ease;
      }

      #noticia-lightbox.active {
        display: flex;
      }

      @keyframes lbFadeIn {
        from {
          opacity: 0;
        }

        to {
          opacity: 1;
        }
      }

      .lb-wrapper {
        position: relative;
        max-width: 90vw;
        max-height: 90vh;
        animation: lbZoomIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      }

      @keyframes lbZoomIn {
        from {
          transform: scale(0.7);
          opacity: 0;
        }

        to {
          transform: scale(1);
          opacity: 1;
        }
      }

      .lb-wrapper img {
        display: block;
        max-width: 90vw;
        max-height: 85vh;
        width: auto;
        height: auto;
        border-radius: 16px;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8),
          0 0 0 2px rgba(76, 171, 225, 0.35);
        object-fit: contain;
      }

      .lb-close {
        position: absolute;
        top: -18px;
        right: -18px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: linear-gradient(135deg, #4CABE1, #2e8ac4);
        border: 2px solid rgba(255, 255, 255, 0.25);
        color: #fff;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 4px 18px rgba(76, 171, 225, 0.55);
        z-index: 10;
      }

      .lb-close:hover {
        transform: scale(1.15) rotate(90deg);
        background: linear-gradient(135deg, #ff4f5e, #d63041);
        box-shadow: 0 6px 22px rgba(255, 79, 94, 0.6);
      }

      .lb-caption {
        text-align: center;
        margin-top: 14px;
        color: rgba(255, 255, 255, 0.7);
        font-size: 14px;
        letter-spacing: 0.05em;
      }
