/* Slideshow container */
.slideshow-container {
    max-width: 95%;
    position: relative;
    margin: 0 auto 2vw;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 100%;
    height: auto;
    border-radius: 60px;
}

.dot {
    height: 8px;
    width: 8px; /* Fallback for Safari */
    /* aspect-ratio: 1/1; */ /* Commented out for Safari */
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    -webkit-transition: background-color 0.6s ease; /* Added prefix */
    transition: background-color 0.6s ease;
}

.active {
    background-color: #4b59ed;
}

.fade {
    -webkit-animation-name: fade; /* Added prefix */
    animation-name: fade;
    -webkit-animation-duration: 1.5s; /* Added prefix */
    animation-duration: 1.5s;
}

@-webkit-keyframes fade { /* Added prefix */
    from {
        opacity: .4;
    }
    to {
        opacity: 1;
    }
}

@keyframes fade {
    from {
        opacity: .4;
    }
    to {
        opacity: 1;
    }
}

.slideshow-container .dot-container {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

.text {
    font-size: 16px; /* Default */
}

@media (max-width: 768px) {
    .text {
        font-size: 11px;
    }
}

.text {
    font-size: clamp(11px, 2vw, 16px);
}

/* VIDEO SECTION */

.video-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    padding: 2vw;
    max-width: 95%;
    height: clamp(300px, 60vh, 540px);
    background-color: var(--blue);
    border-radius: 60px;
}

.video-container {
    width: 60%;
    height: 100%;
}

.video-container iframe {
    width: 100%;
    height: 100%;
}

.video-text {
    font-family: MonumentExtended, sans-serif;
    width: 35%;
    height: 100%;
    font-size: clamp(8px, 1.5vw, 16px);
    text-align: left;
    margin-top: 1vw;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.video-text .titles-container,
.video-text .text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 1vw;
    width: 100%;
}

.video-text .text-container p,
.video-text p {
    color: var(--soft-purple);
    text-align: left;
}

.video-text h1 {
    color: var(--white);
    font-size: 5rem; /* Default */
    text-align: left;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .video-text h1 {
        font-size: 4vw;
    }
}

@media (max-width: 768px) {
    .video-text h1 {
        font-size: 1.5rem;
    }
}

.video-text h2 {
    order: -1;
    font-size: 2.5rem; /* Default */
    text-align: left;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .video-text h2 {
        font-size: 3vw;
    }
}

@media (max-width: 768px) {
    .video-text h2 {
        font-size: 1rem;
    }
}

.video-text h1 {
    color: var(--white);
    font-size: 2rem; /* Fallback for Safari */
    font-size: clamp(1.5rem, 4vw, 5rem);
}

.video-text h2 {
    order: -1;
    font-size: clamp(1rem, 3vw, 2.5rem);
}

.video-text .btn-primary {
    background-color: var(--soft-purple);
    color: var(--white);
    border: none;
    padding: 0.5rem 4rem;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 0.25rem;
    font-weight: 800;
    font-size: clamp(0.5rem, 0.75vw, 1rem);
    letter-spacing: 0.15rem;
    margin-top: 1rem;
}

/* Aprende Section */
.aprende-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background-color: transparent;
    border-radius: 60px;
    margin: 20px auto;
    width: 95%;
}

.aprende-content {
    text-align: center;
    max-width: 800px;
}

.aprende-content h3 {
    font-size: 2rem; /* Default */
    color: var(--white);
    margin-bottom: 1rem;
    text-wrap: balance;
}

@media (max-width: 1024px) {
    .aprende-content h3 {
        font-size: 2.5vw;
    }
}

@media (max-width: 768px) {
    .aprende-content h3 {
        font-size: 1rem;
    }
}

.aprende-content h3 {
    font-size: clamp(1rem, 2.5vw, 2rem);
    color: var(--white);
    margin-bottom: 1rem;
    text-wrap: balance;
}

.words {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 2rem; /* Default */
}

@media (max-width: 1024px) {
    .words {
        font-size: 2.5vw;
    }
}

@media (max-width: 768px) {
    .words {
        font-size: 1rem;
    }
}

.words {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: clamp(1rem, 2.5vw, 2rem);
}

.words span {
    cursor: pointer;
    transition: color 0.3s ease;
}

.words span:hover {
    text-shadow: 0 0 10px currentColor;
    transform: scale(1.1);
}

.words span:nth-child(1) {
    color: #4ac97d;
}

.words span:nth-child(2) {
    color: #b18cfe;
}

.words span:nth-child(3) {
    color: #ffaf2e;
}

.words span:nth-child(4) {
    color: #2e9dcc;
}

.words span:nth-child(5) {
    color: #ff00ff;
}

/* Scrolling Text Section */
.scrolling-text {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background-color: var(--black);
    color: var(--white);
    padding: 1rem 0;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 2rem);
    position: relative;
}

.scrolling-text span {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-text 15s linear infinite;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .video-section {
        flex-direction: column;
        height: auto;
        padding: 2vw 0;
    }

    .video-container {
        width: 100%;
        height: 50%;
    }

    .video-container iframe {
        width: 100%;
    }

    .video-text {
        width: 100%;
        height: 50%;
        padding: 0 2vw;
    }

    .video-text h1 {
        font-size: clamp(1.5rem, 4vw, 3rem);
    }

    .video-text h2 {
        font-size: clamp(1rem, 3vw, 2rem);
    }

    .video-text button {
        padding: 0.5rem 2rem;
    }

    .text-container p {
        text-align: center !important;
    }

    .premium-card {
        gap: 0rem;
    }
}

/* Grid */

h4 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--white);
    text-align: center;
    margin: 2rem 0;
}

.grid-auto-fill {
    --grid-min-col-size: 400px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(var(--grid-min-col-size), 100%), 1fr));
    gap: 1rem;
}

.grid-item {
    display: block;
    text-decoration: none;
    color: inherit;
}

.grid-item .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    height: 100%;
    border-radius: 5px;
    background-color: transparent;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.grid-item .card .grid-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 5px;
    overflow: hidden;
}

.grid-item .card .grid-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2vw;
}

.grid-item .card .grid-img-container img:hover {
    -webkit-transform: scale(1.5); /* Added prefix */
    transform: scale(1.5);
    padding: 22px;
    border-radius: 60px;
    -webkit-animation: animateImg 3s linear infinite; /* Added prefix */
    animation: animateImg 3s linear infinite;
}

.grid-item .card .grid-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--pastel-pink);
    border-radius: 5px;
}

.grid-item .card .grid-text p {
    font-size: 1.25rem; /* Default */
    color: var(--black);
}

@media (max-width: 1024px) {
    .grid-item .card .grid-text p {
        font-size: 1.5vw;
    }
}

@media (max-width: 768px) {
    .grid-item .card .grid-text p {
        font-size: 0.75rem;
    }
}

.grid-item .card .grid-text p {
    font-size: clamp(0.75rem, 1.5vw, 1.25rem);
    color: var(--black);
}

.grid-item .card:hover {
    transform: translateY(-5px);
}

.grid-item .card .img-blur {
    filter: blur(6px);
}

@-webkit-keyframes animateImg { /* Added prefix */
    0% {
        translate: 0px;
    }
    25% {
        translate: 5px;
    }
    50% {
        translate: 5px 5px;
    }
    75% {
        translate: 0px 5px;
    }
    100% {
        translate: 0px;
    }
}

@keyframes animateImg {
    0% {
        translate: 0px;
    }
    25% {
        translate: 5px;
    }
    50% {
        translate: 5px 5px;
    }
    75% {
        translate: 0px 5px;
    }
    100% {
        translate: 0px;
    }
}

/* Premium */

.premium-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    width: 85vw;
    margin: 0 auto 50px;
    border-radius: 16px;
    background-color: var(--blue);
    overflow: hidden;
}

.premium-card .subtitle {
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: clamp(1rem, 1.5vw, 2rem);
    font-weight: 700;
    color: var(--magenta);
    background-color: var(--pastel-pink);
    text-transform: uppercase;
}

.premium-card h6 {
    font-family: 'MonumentExtended', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--white);
    text-align: left;
    margin: 1rem 1rem 0rem;
    color: var(--black);
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05rem;
    line-height: 1.5;
}

.premium-card .content {
    padding: 1rem 2rem;
    color: var(--white);
}

.premium-card .content ul li {
    font-size: 1.25rem; /* Default */
}

@media (max-width: 1024px) {
    .premium-card .content ul li {
        font-size: 1.5vw;
    }
}

@media (max-width: 768px) {
    .premium-card .content ul li {
        font-size: 0.55rem;
    }
}

.premium-card .content ul li {
    font-family: 'MonumentExtended', sans-serif;
    font-size: clamp(0.55rem, 1.5vw, 1.25rem);
    letter-spacing: 0.15rem;
    text-transform: uppercase;
}

.premium-card .content + p {
    font-size: 2.5rem; /* Default */
}

@media (max-width: 1024px) {
    .premium-card .content + p {
        font-size: 3vw;
    }
}

@media (max-width: 768px) {
    .premium-card .content + p {
        font-size: 1.5rem;
    }
}

.premium-card .content + p,
.premium-card .content + p span {
    font-family: 'MonumentExtended', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    padding: 0 1rem 1rem;
    color: var(--black);
    margin-top: 1rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.05rem;
    line-height: 1.5;
}

.premium-card .content + p span {
    font-size: 1.25rem; /* Default */
}

@media (max-width: 1024px) {
    .premium-card .content + p span {
        font-size: 1.5vw;
    }
}

@media (max-width: 768px) {
    .premium-card .content + p span {
        font-size: 0.75rem;
    }
}

.premium-card .btn-primary {
    background-color: var(--pastel-pink);
    color: var(--magenta);
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
    text-align: center;
    border-radius: 0.5rem;
    font-weight: 800;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    letter-spacing: 0.15rem;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    -webkit-transition: background-color 0.3s ease, -webkit-transform 0.2s ease; /* Added prefix */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.premium-card .btn-primary:hover {
    background-color: var(--magenta);
    color: var(--white);
    transform: translateY(-2px);
}

.premium-section h5 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    color: var(--white);
    text-align: center;
    margin: 2rem 0;
}

.premium-section p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #fff;
    text-align: center;
    margin: 2rem 0;
}