:root {
    --babypowder: rgba(253, 255, 252, 1);
    --raisinblack: rgba(33, 26, 29, 1);
    --primary: rgba(0, 74, 173, 1);
    --secondary: rgba(93, 187, 230, 1);
    --purple: rgba(81, 51, 151, 1);
    --pink: rgba(138, 59, 151, 1);
}

.axiomath-banner {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    color: var(--babypowder);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
  
.axiomath-banner.fancy {
    background: linear-gradient(45deg,
      var(--primary),
      var(--purple),
      var(--secondary),
      var(--pink)
    );
    background-size: 300% 300%;
    animation: gradientShift 8s ease infinite, fadeInDown 1s both;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
  
.axiomath-banner .banner-link {
    display: inline-block;
    font-size: 40px;
    font-weight: bold;
    color: var(--babypowder);
    text-decoration: none;
    position: relative;
    z-index: 2;
}

.axiomath-banner.fancy::after {
    content: '';
    position: absolute;
    top: -20%; left: -20%;
    width: 140%; height: 140%;
    background: url('/images/particles.png') repeat;
    opacity: 0.15;
    animation: floatParticles 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}
  
@keyframes gradientShift {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0%   50%; }
}
  
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}
  
@keyframes floatParticles {
    from { background-position: 0 0; }
    to   { background-position: 1000px 1000px; }
}
  
.trusted {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 4rem 2rem;
    border-radius: 1rem;
    color: var(--babypowder);
    text-align: center;
    position: relative;
    overflow: hidden;
  }

.trusted::before {
    content: "";
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: url('/images/particles.png') repeat;
    opacity: 0.08;
    animation: moveBg 30s linear infinite;
    pointer-events: none;
}
  
@keyframes moveBg {
    to { background-position: 1000px 1000px; }
}
  
.school-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
  
.school-item {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    width: 120px;
    height: 120px;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    background: var(--babypowder);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.school-item:nth-child(1) { animation-delay: 0.2s; }
.school-item:nth-child(2) { animation-delay: 0.4s; }
  
@keyframes fadeUp {
    to { transform: translateY(0); opacity: 1; }
}
  
.school-item::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.5) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.school-item:hover::after {
    opacity: 0.4;
}
  
.school-item img {
    max-width: 100px;
    max-height: 100px;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.school-item:hover img {
    filter: none;
    transform: scale(1.1);
}

.school-item h6 {
    color: var(--raisinblack);
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.school-item:hover h6 {
    color: var(--primary);
    letter-spacing: 0.5px;
}
  
.trusted:hover::before {
    animation-play-state: paused;
}

.maincontent {
    margin: 0;
}

.backgroundsection {
    background: linear-gradient(to right, rgba(33, 26, 29, 1), rgba(93, 187, 230, 0)), url('/images/section1.png');
    background-size: cover;
    display: flex;
    background-position: center;
    align-items: center;
    text-align: justify;
    color: var(--babypowder);
    padding: 2rem 8rem;
    margin-top: 5rem;
    line-height: 1.1;
    min-height: 80vh;
}

.backgroundsection .clearbtn {
    margin-top: 2rem;
    font-size: 20px;
}

.sectioncontent {
    width: 50%;
}

.sectioncontent h1, #logosection{
    margin-bottom: 2rem;
}

#logosection {
    width: 180px;
    height: auto;
}

.advantages {
    text-align: center;
}

h2 {
    margin-bottom: 2rem;
}

.points {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
}

.advantage.resultados::before {
    background: url('/images/service6.png') no-repeat center center/cover;
}

.advantage.evaluaciones::before {
    background: url('/images/service4.png') no-repeat center center/cover;
}

.advantage.optimizacion::before {
    background: url('/images/service7.png') no-repeat center center/cover;
}

.advantage.apoyo::before {
    background: url('/images/service8.png') no-repeat center center/cover;
}

.advantage {
    line-height: 1.1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    color: var(--babypowder);
    background: linear-gradient(to right, rgba(138, 59, 151, 1), rgba(81, 51, 151, 1));
    border-radius: 1rem;
    padding: 2rem;
    width: calc(100% - 4rem);
    overflow: hidden;
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.8;
    z-index: 1;
    height: 220px;
}

.advantage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(.5);
    background-repeat: no-repeat;
    transform: translateX(0);
    transition: top .5s ease, opacity .6s ease;
    z-index: -1;
}

.advantage:hover::before {
    top: 100%;
    opacity: 0;
}

.advantage:hover {
    transform: scale(1.02);
    opacity: 1;
}

.points:hover .advantage:not(:hover) {
    opacity: 0.7;
    transform: scale(0.98);
}

h3 {
    margin-bottom: 2rem;
}

.advantage p {
    text-align: justify;
}

.schedule {
    margin: 12rem 0;
}

.scheduletext a {
    margin-top: 2rem;
}

.scheduletext h4 {
    text-align: justify;
}

.scheduletext .clearbtn {
    font-size: 20px;
}

.advantages, .schedule, .trusted {
    margin: 5rem 8rem 5rem;
}

@media screen and (max-width: 768px) {
    .points {
        grid-template-columns: 1fr;
    }

    .advantage {
        width: calc(100% - 4rem);
    }

    .backgroundsection {
        padding: 2rem 2rem;
    }

    .sectioncontent {
        width: 80%;
    }

    .advantages, .schedule, .trusted {
        margin: 5rem 2rem 5rem;
    }

    .scheduletext {
        text-align: center;
    }
}