@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');
* {
    padding: 0;
    margin: 0;
    font-family: "PT Sans", sans-serif;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 10%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease-in-out;
    will-change: transform;
}

.header.off {
    transform: translateY(-100%);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    backdrop-filter: blur(50px);
    z-index: -1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
    transition: 0.5s;
}

.header:hover::after {
    left: 100%;
}

.logo {
    width: 130px;
}

.navbar a {
    font-size: 1.15rem;
    color: rgb(1, 1, 1);
    text-decoration: none;
    font-weight: 700;
    margin-left: 2.5rem;
    position: relative;
    display: inline-block;
    transition: color 0.35s ease;
}

.navbar a::before,
.navbar a::after {
    content: '';
    height: 7px;
    width: 7px;
    position: absolute;
    transition: all 0.35s ease;
    opacity: 0;
}

.navbar a::before {
    right: -8px;
    top: -8px;
    border-top: 3px solid #3BAA33;
    border-right: 3px solid #3BAA33;
    transform: translate(-100%, 50%);
}

.navbar a::after {
    left: -8px;
    bottom: -8px;
    border-bottom: 3px solid #3BAA33;
    border-left: 3px solid #3BAA33;
    transform: translate(100%, -50%);
}

.navbar a:hover::before,
.navbar a:hover::after {
    transform: translate(0, 0);
    opacity: 1;
}

.navbar a:hover {
    color: #1877f2;
}

#check {
    display: none;
}

.icons {
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: rgb(4, 4, 4);
    cursor: pointer;
    display: none;
}

.linea {
    width: 100%;
    height: 3px;
    position: absolute;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, #3BAA33, #4954A3, #049BE2, #286522);
    background-size: 200% auto;
    animation: cambioColor 2.5s linear infinite;
    z-index: 99;
}

.contenedor-linea {
    position: relative;
}

.linea-footer {
    width: 100%;
    height: 3px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, #3BAA33, #4954A3, #049BE2, #286522);
    background-size: 200% auto;
    animation: cambioColor 2.5s linear infinite;
    z-index: 99;
}

.bp {
    color: #f30c0c;
    text-decoration: none;
}

@keyframes cambioColor {
    0% {
        background-position: 0 0; /* Inicia desde el extremo izquierdo */
    }
    100% {
        background-position: 200% 0; /* Termina en el extremo derecho */
    }
}

@media(max-width: 992px) {
    .header {
        padding: 1.3rem 5%;
    }
}

@media(max-width: 768px) {
    
    .icons {
        display: inline-flex;
    }
    
    #check:checked ~ .icons #menu-icon {
        display: none;
    }
    
    .icons #close-icon {
        display: none;
    }
    
    #check:checked ~ .icons #close-icon {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(0, 0, 0, 0.1);
        background-color: #fff;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: height 0.3s ease;
    }
    
    #check:checked ~ .navbar {
        height: 17.7rem;
    }
    
    .navbar a {
        display: block;
        font-size: 1.2rem;
        margin: 1.5rem 0;
        color: #000000;
        text-align: center;
        transform: translateY(-50px);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    #check:checked ~ .navbar a {
        transform: translateY(0);
        transition-delay: calc(0.15s * var(--i));
        opacity: 1;
    }
    
    .navbar a::before,
    .navbar a::after {
        content: none;
    }
}

/*FOOTER*/
.pie-pagina{
    width: 100%;
    background-color: #ffffff;
	margin-top: auto;
}
.pie-pagina .grupo-1{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap:50px;
    padding: 45px 0px;
}
.pie-pagina .grupo-1 .box-footer figure{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pie-pagina .grupo-1 .box-footer figure img{
    width: 200px;
}
.pie-pagina .grupo-1 .box-footer h2{
    color: #049BE2;
    margin-bottom: 25px;
    font-size: 25px;
    font-weight: 700;
}
.pie-pagina .grupo-1 .box-footer p{
    color: #3BAA33;

    margin-bottom: 10px;
    font-weight: 700;
}
.pie-pagina .grupo-1 .red-social a{
    display: inline-block;
    text-decoration: none;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    color: #ffffff;
    margin-right: 10px;
    text-align: center;
    transition: all 300ms ease;
}
.pie-pagina .grupo-2{
    background:#dcdddc ;
    padding: 15px 10px;
    text-align: center;
    font-weight: 700;
    color: #fff;
}
.pie-pagina .grupo-2 small{
    font-size: 15px;
	color: #020202;
}

.red-social a.instagram {
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045); 
}

.red-social a.facebook {
    background: linear-gradient(45deg, #3b5998, #1877f2); 
}

.red-social a.tiktok {
    background-color: #000000; 
}

.red-social a.twitter {
    background-color: #1da1f2; 
}

.red-social a:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}


@media screen and (max-width:800px){
    .pie-pagina .grupo-1{
        width: 90%;
        grid-template-columns: repeat(1, 1fr);
        grid-gap:30px;
        padding: 35px 0px;
    }
}

.titulos {
    font-weight: 700;
    font-size: 50px;
    color: #049BE2;
    text-align: center;
}
/*FOOTER*/
/*CARRUSEL*/
.slider {
    width: 100%;
    height: 100vh; /* Esto hará que ocupe toda la altura de la ventana */
    overflow: hidden;
    position: relative;
}
.slider .list {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slider .list img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto mantendrá la proporción de la imagen */
}

.slider .item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.slider .buttons{
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}
.slider .buttons button{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #ffffff;
	background-color: transparent;
    border: none;
    font-family: monospace;
    font-weight: bold;
	cursor: pointer;
}
.slider .buttons button#next {
    width: 70px; 
    height: 70px; 
    font-size: 2.7rem; 
    line-height: 70px; 
    text-align: center; 
}

.slider .buttons button#prev {
    width: 70px; 
    height: 70px; 
    font-size: 2.7rem; 
    line-height: 70px; 
    text-align: center; 
}


.slider .dots{
    position: absolute;
    bottom: 10px;
    left: 0;
    color: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
.slider .dots li{
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 10px;
    border-radius: 20px;
    transition: 0.5s;
    cursor: pointer;
}
.slider .dots li.active{
    width: 30px;
}
.slider .list .item {
    position: relative;
}





@media screen and (max-width: 768px) {
    .slider {
        height: 50vh; /* o un valor fijo como 400px si prefieres */
    }
    
    .slider .buttons button {
        width: 40px;
        height: 40px;
    }
    
    .slider .buttons button#next,
    .slider .buttons button#prev {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}

/* Añadimos animaciones para desvanecer */
/* Añadimos animaciones para desvanecer */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards; /* Cambia la duración a 1s */
}

/* Añadimos delays específicos para diferentes elementos */
.school-info-content, .school-info-image, .piano-container {
    opacity: 0; /* Inicialmente invisibles */
    animation: fadeIn 1.5s forwards; /* Cambia la duración a 1s */
}

.piano-container{
    animation: fadeIn 2.5s forwards;
}

/* Animación secuencial con delays */
.school-info-content {
    animation-delay: 0.2s;
}

.school-info-image {
    animation-delay: 0.4s;
}




/* Rest of your CSS here */
.school-info {
    display: flex;
    align-items: center;
    padding: 30px;
    border-radius: 20px;
    margin-top: 20px;
}

.school-info-content {
    flex: 1;
    padding-right: 30px;
}

.school-info-content h2 {
    font-size: 30px;
    font-weight: 700;
    color: #049BE2;
    margin-bottom: 20px;
    text-align: center;
}

.school-info-content p {
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 17px;
    text-align: justify;
}

.school-info-image img {
    max-width: 100%;
    height: auto;
    transition: all 300ms;
    border-radius: 5px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.school-info-image {
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.image-link {
    display: block;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.image-link img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.overlay span {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.image-link:hover {
    transform: scale(1.05);
}

.image-link:hover .overlay {
    opacity: .8;
}

@media screen and (max-width: 768px) {
    .school-info {
        flex-direction: column;
        align-items: center;
        padding: 20px;
    }

    .school-info-content {
        padding: 0;
        margin-bottom: 20px;
    }
}

.piano-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1200px;
    transition: all 0.6s ease;
    margin: 0 auto;

}

.piano-key {
    position: relative;
    flex: 1 1 calc(33.33% - 20px);
    max-width: calc(33.33% - 20px);
    margin: 20px 0; /* Aumenta el margen superior e inferior */
    padding: 30px; /* Aumenta el padding */
    color: #666;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px; /* Aumenta el tamaño de la fuente */
    font-weight: 700;
    text-align: center;
    border-radius: 5px;
    min-height: 240px; /* Aumenta la altura mínima */
    cursor: pointer;
    transition: all 0.6s ease;
    overflow: hidden;
}

.piano-key .description {
    display: none;
    font-size: 15px;
    color: #333;
    font-weight: 400;
    margin-top: 10px;
}

.piano-key:hover, .piano-key.show {
    transform: scale(1.15);
    height: 100px;
    z-index: 1; 
}

.piano-key:hover .description, .piano-key.show .description {
    display: block;
}

.divider {
    width: 70%;
    border: 0;
    height: 1px;
    background: #6e6e6e;
    margin: 10px 0;
}

.read-more {
    display: none;
    font-size: 12px;
    color: #6b6b6b;
    text-decoration: none;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #000000;
}

.piano-key:hover .read-more, .piano-key.show .read-more {
    display: block; 
}

.key1 {
    background-color: #FFCDD2;
}

.key2 {
    background-color: #E1BEE7;
}

.key3 {
    background-color: #C5CAE9;
}

.key4 {
    background-color: #B2DFDB;
}

.key5 {
    background-color: #FFE0B2;
}

.key6 {
    background-color: #FFECB3;
}

@media screen and (min-width: 768px) {
    .piano-key {
        min-width: calc(50% - 20px);
    }
}

@media screen and (min-width: 1200px) {
    .piano-key {
        min-width: calc(25% - 20px);
    }
}

@media screen and (max-width: 767px) {
    .piano-key {
        min-width: calc(100% - 20px);
        margin: 10px 0;
        text-align: center;
    }

    .piano-key .title {
        margin-bottom: 5px;
    }

    .piano-key .description {
        display: block;
        font-size: 14px;
        color: #333;
        font-weight: 400;
        margin-top: 5px;
        overflow: hidden;
    }

    .piano-key:hover, .piano-key.show{
        transform: scale(1.05);
        height: 200px;
        z-index: 1; 
    }
}

.polaroids-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    animation: fadeIn 3.5s forwards; 
}

.polaroid {
    width: 100%;
    max-width: 336px;
    height: auto;
    background-color: #fff;
    padding: 19px 19px 85px 19px;
    margin: 0 10px 20px;
    border-radius: 10px;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.4), 0px 10px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.5s ease;
}

.text-polaroid {
    font-weight: 700;
    font-size: 25px;
    text-align: center;
}

.polaroid img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.polaroid:hover {
    transform: scale(1.05);
}

.polaroid:hover img {
    filter: grayscale(0%);
}


::-webkit-scrollbar {
    display: none;
}