/*
  CAMBIO: 
  - En '@media (max-width: 480px)', se redujo el 'font-size'
    y el 'padding' de '.carousel-action-btn' para hacerlo
    más pequeño en móviles.
*/

@font-face {
  font-family: "zurichExtended";
  src: url("/assets/fonts//zurichExtended/zurichExtended-ultraBlack.ttf") format("truetype");
}

#carousel-component-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f5f5f5;
    padding: 2rem 0; 
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden; 
}

@keyframes slideIn {
    0% {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

#carousel-component-wrapper .about-title {
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    display: block;
    text-align: center;
    margin-top: 0;
    background: linear-gradient(to bottom, rgb(8 42 123 / 35%) 30%, rgb(255 255 255 / 0%) 76%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: slideIn 1s ease-out forwards;
}

@keyframes slideIn {
    0% {
        transform: translate3d(0, 100%, 0);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

#carousel-component-wrapper .carousel-container {
    width: 100%;
    max-width: 1200px;
    height: 450px;
    position: relative;
    perspective: 1000px;
    margin: 10px auto 0 auto;
    opacity: 0;
    transform: translate3d(0, 100%, 0);
    animation: slideIn 1.5s ease-out 1.5s forwards;
    will-change: transform, opacity;
    display: flex;
    align-items: center;
    justify-content: center;
}

#carousel-component-wrapper .carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#carousel-component-wrapper .card {
    position: absolute;
    width: 280px;
    height: 380px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

#carousel-component-wrapper .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#carousel-component-wrapper .card.crsl-center {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
}

#carousel-component-wrapper .card.crsl-center img {
    filter: none;
}

#carousel-component-wrapper .card.crsl-left-2 {
    z-index: 1;
    transform: translateX(-400px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

#carousel-component-wrapper .card.crsl-left-2 img {
    filter: grayscale(100%);
}

#carousel-component-wrapper .card.crsl-left-1 {
    z-index: 5;
    transform: translateX(-200px) scale(0.9) translateZ(-100px);
    opacity: 0.9;
}

#carousel-component-wrapper .card.crsl-left-1 img {
    filter: grayscale(100%);
}

#carousel-component-wrapper .card.crsl-right-1 {
    z-index: 5;
    transform: translateX(200px) scale(0.9) translateZ(-100px);
    opacity: 0.9;
}

#carousel-component-wrapper .card.crsl-right-1 img {
    filter: grayscale(100%);
}

#carousel-component-wrapper .card.crsl-right-2 {
    z-index: 1;
    transform: translateX(400px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

#carousel-component-wrapper .card.crsl-right-2 img {
    filter: grayscale(100%);
}

#carousel-component-wrapper .card.crsl-hidden {
    opacity: 0;
    pointer-events: none;
}

#carousel-component-wrapper .member-info {
    text-align: center;
    margin-top: 1px;
    transition: all 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#carousel-component-wrapper .member-name {
    color: rgb(46, 84, 174);
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    font-family: "zurichExtended", sans-serif;
}

#carousel-component-wrapper .member-name::before,
#carousel-component-wrapper .member-name::after {
    content: "";
    position: absolute;
    top: 100%;
    width: 100px;
    height: 2px;
    background: rgb(0, 0, 0);
}

#carousel-component-wrapper .member-name::before {
    left: -150px;
}

#carousel-component-wrapper .member-name::after {
    right: -150px;
}

#carousel-component-wrapper .member-role {
    color: #707281;
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 10px 0;
    margin-top: -15px;
    position: relative;
    font-family: "zurichExtended", sans-serif;
}

#carousel-component-wrapper .dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

#carousel-component-wrapper .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(8, 42, 123, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

#carousel-component-wrapper .dot.crsl-active {
    background: rgb(8, 42, 123);
    transform: scale(1.2);
}

#carousel-component-wrapper .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255, 255, 255);
    color: rgb(8, 8, 8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: none;
    outline: none;
    padding-bottom: 4px;
}

#carousel-component-wrapper .nav-arrow:hover {
    background: rgba(200, 200, 200, 0.8);
    transform: translateY(-50%) scale(1.1);
}

#carousel-component-wrapper .nav-arrow.left {
    left: 0;
    transform: translate(-150%, -50%);
}

#carousel-component-wrapper .nav-arrow.right {
    right: 0;
    transform: translate(150%, -50%);
}

#carousel-component-wrapper .carousel-action-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) scale(0.96) skewX(-8deg);
    padding: 12px 28px;
    font-size: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    background-color: #5170ff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.4s ease,
        transform 0.3s ease,
        background-color 0.3s ease;
    z-index: 2;
}

#carousel-component-wrapper .carousel-action-btn span {
    display: inline-block;
    transform: skewX(8deg);
}

#carousel-component-wrapper .card.crsl-center .carousel-action-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1) skewX(-8deg);
}

#carousel-component-wrapper .carousel-action-btn:hover {
    background-color: #682f87;
    transform: translateX(-50%) scale(1.05) skewX(-8deg);
}

#carousel-component-wrapper .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: rgb(8, 8, 8);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s ease;
    font-size: 1.4rem;
    border: none;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding-bottom: 2px;
}

#carousel-component-wrapper .nav-arrow.left {
    left: calc(50% - 160px - 20px);
}

#carousel-component-wrapper .nav-arrow.right {
    left: calc(50% + 160px + 0px);
}

@media (max-width: 768px) {
    #carousel-component-wrapper {
        padding: 1.5rem 0; 
    }

    #carousel-component-wrapper .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    #carousel-component-wrapper .nav-arrow.left {
        left: calc(50% - 110px - 10px);
    }

    #carousel-component-wrapper .nav-arrow.right {
        left: calc(50% + 100px);
    }

    #carousel-component-wrapper .about-title {
        font-size: 1.5rem;
    }
    
    #carousel-component-wrapper .carousel-action-btn {
        font-size: 0.6rem;
    }

    #carousel-component-wrapper .carousel-container {
        height: 400px;
        margin-top: 5px;
    }

    #carousel-component-wrapper .card {
        width: 220px; 
        height: 300px; 
    }

    #carousel-component-wrapper .card.crsl-left-2 {
        transform: translateX(-300px) scale(0.7) translateZ(-300px);
    }

    #carousel-component-wrapper .card.crsl-left-1 {
        transform: translateX(-150px) scale(0.8) translateZ(-100px);
    }

    #carousel-component-wrapper .card.crsl-right-1 {
        transform: translateX(150px) scale(0.8) translateZ(-100px);
    }

    #carousel-component-wrapper .card.crsl-right-2 {
        transform: translateX(300px) scale(0.7) translateZ(-300px);
    }
}

@media (max-width: 480px) {
    #carousel-component-wrapper {
        padding: 1rem 0; 
    }

    #carousel-component-wrapper .nav-arrow {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    #carousel-component-wrapper .nav-arrow.left {
        left: calc(50% - 90px - 5px); 
    }

    #carousel-component-wrapper .nav-arrow.right {
        left: calc(50% + 90px + 5px);
    }

    #carousel-component-wrapper .about-title {
        font-size: 1.5rem;
    }
    
    /* --- INICIO DEL CAMBIO --- */
    #carousel-component-wrapper .carousel-action-btn {
        font-size: 0.4rem; /* 8px - Más pequeño */
        padding: 8px 16px;   /* Padding reducido */
        bottom: 10px;      /* Lo subimos un poco */
    }
    /* --- FIN DEL CAMBIO --- */

    #carousel-component-wrapper .carousel-container {
        height: 350px; 
        margin-top: 1px;
    }

    #carousel-component-wrapper .card {
        width: 180px; 
        height: 250px; 
    }

    #carousel-component-wrapper .card.crsl-left-2 {
        transform: translateX(-220px) scale(0.6) translateZ(-300px);
    }

    #carousel-component-wrapper .card.crsl-left-1 {
        transform: translateX(-110px) scale(0.7) translateZ(-100px);
    }

    #carousel-component-wrapper .card.crsl-right-1 {
        transform: translateX(110px) scale(0.7) translateZ(-100px);
    }

    #carousel-component-wrapper .card.crsl-right-2 {
        transform: translateX(220px) scale(0.6) translateZ(-300px);
    }
}