* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/* Pantalla de carga */
#loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFF !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#loader-container.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  animation: fadeIn 1s ease;
}

.school-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  background: transparent;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.school-name {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-four);
  margin-bottom: 10px;
}

.school-motto {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  font-style: italic;
}

.loader {
  width: 80px;
  height: 80px;
  margin: 20px auto;
  position: relative;
}

.loader-inner {
  position: absolute;
  border: 5px solid transparent;
  border-top: 5px solid var(--color-primary);
  border-radius: 50%;
  width: 100%;
  height: 100%;
  animation: spin 1.5s linear infinite;
}

.loader-inner:nth-child(2) {
  border: 5px solid transparent;
  border-bottom: 5px solid var(--color-secundary);
  animation: spinReverse 1.5s linear infinite;
}

.loader-text {
  font-size: 18px;
  color: #333;
  margin-top: 20px;
}

.dots {
  display: inline-block;
}

.dots span {
  animation: dots 1.5s infinite;
  opacity: 0;
}

.dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

@keyframes dots {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

body {
  overflow-x: hidden !important;
  font-family: "Comic Neue", cursive;
  font-weight: 400;
}

:root {
  --color-primary: #ee2927;
  --color-secundary: #fde100;
  --color-three: #8bdc75;
  --color-four: #5dbdd7;
  --color-five: #933cff;
  --color-six: #fd5555;
  --color-seven: #1600a7ad;
}

@import url("https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap");

.btn {
  font-weight: 500;
  font-size: 17px;
  padding: 5px;
}

h1 {
  font-size: 35px;
  font-weight: 700;
}

h2 {
  font-size: 30px;
  font-weight: 600;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 26px;
}

h5 {
  font-size: 24px;
}

p {
  font-size: 18px;
}

.section-my {
  margin: 100px 0;
}

.mt-section {
  margin-top: 100px;
}

a {
  text-decoration: none;
  color: rgb(50, 50, 50);
}

.navbar {
  position: relative;
  background-color: #2E219E;
  padding: 10px;
  width: 100%;
  z-index: 1;
  box-shadow: 0 2px 15px rgba(240, 236, 236, 0.1);
}

.navbar img {
  width: 60px;
  height: auto;
}

.navbar .btn.btn-access-aule {
  font-size: 19px;
  color: rgb(63, 63, 63);
  background-color: var(--color-three);
  border: 2px solid white;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.409);
  border-radius: 20px;
  padding: 8px;
  font-weight: 700;
  position: absolute;
  bottom: 10%;
  right: 12%;
  transition: transform 0.3s ease-in-out;
}

.navbar .nav-item .nav-link.active {
  border-bottom: 2px solid var(--color-secundary);
}

.navbar .btn.btn-access-aule:hover {
  transform: translatey(-5px);
}

.navbar .nav-item {
  padding: 0 5px;
}

.navbar .nav-item.nav-item-aule {
  display: none;
}

.navbar .nav-item .nav-link {
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  padding: 10px;
  transition: transform 0.1s ease-in-out;
}

.navbar .nav-item .nav-link:hover {
  transform: scale(1.1);
}

.dropdown-menu[data-bs-popper] {
  margin-top: 9%;
}

.dropdown-menu {
  background-color: var(--color-primary);
  border-radius: 0;
}

.dropdown-menu .dropdown-item {
  color: white;
  font-weight: 600;
}

.dropdown-menu .dropdown-item:hover {
  background-color: var(--color-primary);
}

.navbar-icon {
  font-size: 25px;
}

.navbar-toggler {
  border: none;
  color: white;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.offcanvas-body .nav-item .nav-link {
  text-align: center;
}

@media screen and (min-width:1440px) {
  .navbar .btn.btn-access-aule {
    font-size: 19px;
    color: rgb(63, 63, 63);
    background-color: var(--color-three);
    border: 2px solid white;
    box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.409);
    border-radius: 20px;
    padding: 8px;
    font-weight: 700;
    position: absolute;
    bottom: 10%;
    right: 23%;
  }
}

.slider-bg {
  background-image: url(../assets/slider/portada.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position-x: center;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slider-bg.slider-subpage-bg {
  height: 80vh;
}

.container-slider {
  width: 65%;
  display: block;
  margin: auto;
  position: relative;
  top: 28%;
}


.container-slider h2 {
  font-size: 50px;
  margin-bottom: 5%;
  font-family: "Spicy Rice", serif;
  font-weight: 400;
  font-style: normal;
  color: #fff;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.inscribirme-btn {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  /* Color naranja llamativo */
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 10;
  text-decoration: none;
  display: inline-block;
}

.inscribirme-btn:hover {
  background-color: var(--color-secundary);
  transform: translateX(-50%) scale(1.05);
  color: #000;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .inscribirme-btn {
    bottom: 10%;
    padding: 10px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .inscribirme-btn {
    bottom: 1%;
    padding: 8px 20px;
    font-size: 0.5rem;
  }
}

@media screen and (max-width:995px) {
  .container-slider h2 {
    font-size: 25px;
    position: relative;
    top: 90%;

  }

  .slider-button {
    position: relative;
    top: 100%;
  }

  .container-slider .slider-text p {
    display: none;
  }

  .btn-sub {
    position: relative;
    top: 50%;
  }
}


.container-slider .slider-text p {
  color: white;
}

.container-slider .slider-text {
  width: 80%;
  display: block;
  margin-top: 20px;
  margin-bottom: 30px;
  margin-left: auto;
  margin-right: auto;
}

.container-slider .slider-text p {
  text-align: justify;
}

.container-slider .slider-button {
  text-align: center;
}

.container-slider .slider-button .btn.btn-slider {
  background-color: var(--color-secundary);
  color: rgb(63, 63, 63);
  border: 2px solid white;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.409);
  width: 60%;
  border-radius: 20px;
  font-weight: 700;
}

.container-slider .slider-button .btn.btn-inscripcion {
  background-color: var(--color-secundary);
  border: 2px solid white;
  border-radius: 10px;
  transition: transform 0.3s ease;

}

.container-slider .slider-button .btn.btn-inscripcion:hover {
  transform: scale(1.03);
}

.slider-bg.slider-subpage-bg .container-slider .slider-button .btn.btn-slider {
  width: 30%;
}

.container-slider .slider-button .btn.btn-slider.btn-portal {
  background-color: var(--color-primary);
  color: white;
}

.cards picture img {
  width: 55%;
  display: block;
  margin: auto;
}

.cards p {
  margin-top: 1.5rem;
  font-weight: 600;
  text-align: center;
  font-size: 26px;
}

.info {
  position: relative;
  padding-top: 110px;
}

.info-2 {
  padding-top: 0px;
}

.info h2 {
  font-weight: 800;
  font-size: 35px;
}

.info .info-school {
  padding: 3rem;
  margin-top: 1.5rem;
  background-color: var(--color-six);
  border-radius: 15px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.info .info-school.info-school-2 {
  background-color: var(--color-primary);
}

.info .info-school.info-school-2 h3,
.info .info-school.info-school-2 p,
.info .info-school.info-school-2 ul li {
  color: rgb(255, 255, 255);
}

.info .info-school.info-school-3 {
  background-color: var(--color-secundary);
}

.info .info-school.info-school-3 h3,
.info .info-school.info-school-3 p,
.info .info-school.info-school-3 ul li {
  color: rgb(50, 50, 50);
}

.info .info-school .container-info-school {
  padding: 20px;
}

.info .info-school .row div:nth-child(2) {
  border-left: 3px solid white;
}

.info .info-school h3 {
  display: flex;
  align-items: center;
}

.info .info-school picture {
  display: contents;
}

.info .info-school picture img {
  width: 20%;
  height: auto;
}

.info .info-school h3,
.info .info-school p,
.info .info-school ul li {
  color: white;
  text-align: justify;
}

.info figure {
  position: absolute;
  top: 0;
  left: 8%;
}

.info figure img {
  width: 30%;
  height: auto;
}

.info .btn.btn-info {
  background-color: var(--color-three);
  border: none;
  display: block;
  margin: auto;
}

.access {
  position: relative;
  padding-top: 110px;
  padding-bottom: 30px;
}

.access a {
  color: black;
}

.access .card-access {
  border-radius: 20px;
  border: 2px solid black;
  padding: 20px;
  box-shadow: 0px 0px 5px #9cf2e1;
}

.access .card-access.card-access-bg-1 {
  background-color: var(--color-five);
}

.access .card-access.card-access-bg-2 {
  background-color: var(--color-secundary);
}

.access .card-access picture img {
  width: 70%;
  height: auto;
  display: block;
  margin: auto;
}

.access p {
  margin-top: 15px;
  text-align: center;
  font-weight: 800;
  font-size: 30px;
}

.access .figure figure img {
  position: absolute;
  width: 13%;
  height: auto;
}

.access .figure figure:nth-child(1) img {
  top: 0;
  left: 0;
}

.access .figure figure:nth-child(2) img {
  bottom: 0;
  right: 0;
}

.gallery h2 {
  font-weight: 800;
  font-size: 35px;
}

.gallery picture img {
  border-radius: 50px;
  box-shadow: 7px 2px 5px rgba(0, 0, 0, 0.268);
  width: 800px;
  height: 300px;
  object-fit: cover;
}

.gallery .btn.btn-gallery {
  background-color: var(--color-secundary);
  color: rgb(63, 63, 63);
  border: 2px solid white;
  box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.409);
  width: 30%;
  border-radius: 20px;
  font-weight: 700;
  display: block;
  margin: auto;
}

.notice {
  padding-top: 140px;
  padding-bottom: 140px;
  position: relative;
}

.notice h2 {
  font-weight: 800;
  font-size: 35px;
}

.notice .container-notice {
  padding: 3rem;
  margin-top: 1.5rem;
  background-color: var(--color-four);
  border-radius: 15px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  color: white;
  z-index: 2;
  position: relative;
}

.notice .container-notice p {
  text-align: justify;
}

.notice .container-notice picture img {
  width: 70%;
  display: block;
  margin: auto;
}

.notice .container-notice .btn.btn-notice {
  background-color: var(--color-six);
  color: white;
  display: block;
  margin: auto;
}

.notice .figure figure img {
  position: absolute;
  width: 15%;
  height: auto;
  z-index: -1;
}

.notice .figure figure:nth-child(1) img {
  top: 0;
  left: 8%;
}

.notice .figure figure:nth-child(2) img {
  top: 0;
  right: 0;
  width: 35%;
}

.notice .figure figure:nth-child(3) img {
  left: -20px;
  bottom: 0;
  width: 35%;
}

.testimonials h2 {
  font-weight: 800;
  font-size: 35px;
}

.testimonials .card-testimonials {
  padding: 20px;
  border-radius: 30px;
  border: 2px solid rgb(68, 68, 68);
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
  height: 100%;
}

.testimonials .card-testimonials .card-test-header {
  display: flex;
  align-items: center;
}

.testimonials .card-testimonials .card-test-header .circle-testimonials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-secundary);
}

.testimonials .card-testimonials .card-test-header p {
  font-weight: 700;
  margin-bottom: 0;
  margin-left: 10px;
}

.testimonials .card-testimonials p:nth-child(2) {
  font-weight: 700;
  padding: 10px 0;
}

.testimonials .card-testimonials p:nth-child(3) {
  font-size: 16px;
}

.contact h2 {
  font-weight: 800;
  font-size: 35px;
}

.contact .container-text-my {
  margin-top: 60px;
}

.contact .container-contact {
  background-image: url(../assets/contact/bg-contact.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 20px;
  width: 800px;
  margin: 60px auto;
  height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.contact .container-contact .contact-text {
  display: flex;
  align-items: center;
  margin: 12px 0;
}

.contact .container-contact .contact-text i {
  background-color: var(--color-primary);
  padding: 8px;
  width: 35px;
  text-align: center;
  border-radius: 50%;
  color: white;
}

.contact .container-contact .contact-text.rs i {
  margin: 0 10px;
  background-color: var(--color-five);
}

.contact .container-contact .contact-text p {
  margin-left: 10px;
  margin-bottom: 0;
}

.contact .container-contact figure {
  position: absolute;
  left: -120px;
  bottom: 0;
}

.contact .container-contact figure img {
  width: 50%;
  height: auto;
}

footer {
  background-color: var(--color-seven);
  padding: 20px;
}

footer p {
  color: white;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0;
}

footer a {
  text-decoration: underline;
  color: white;
}

.socials {
  position: fixed;
  bottom: 3.5%;
  right: 2%;
  background-color: white;
  padding: 8px;
  border-radius: 30px;
  border: 1px solid rgb(180, 180, 180);
  box-shadow: 0px 0px 1.5px rgb(100, 100, 100);
}

.socials a picture img {
  width: 38px;
  height: auto;
  margin: 0 5px;
}

@media screen and (max-width: 994px) {
  .section-my {
    margin: 40px 0px;
  }

  p {
    font-size: 16px;
  }

  .btn {
    font-size: 14px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 20px;
  }

  .navbar .nav-item {
    padding: 8px 0;
  }

  .navbar .nav-item .nav-link {
    color: white;
  }

  .navbar .a-access-aule {
    display: contents;

  }

  .navbar .btn.btn-access-aule {
    display: none;
  }

  .navbar .nav-item.nav-item-aule {
    display: block;
  }

  .navbar-toggler i {
    color: var(--color-primary);
  }

  .dropdown-menu[data-bs-popper] {
    margin-top: 0%;
    border-radius: 50px;
    text-align: center;
  }

  .dropdown-menu .dropdown-item:hover {
    background-color: transparent;
  }

  .offcanvas {
    background: linear-gradient(0deg,
        rgba(198, 231, 239, 1) 0%,
        rgba(100, 187, 213, 1) 50%);
    max-width: 70%;
  }

  .offcanvas.offcanvas-end {
    border-left: none !important;
    transition: all 0.5s;
  }

  .slider-bg {
    height: 0;
    padding: 14rem 0;
  }

  .container-slider {
    width: 100%;
  }

  .container-slider .slider-title h1 {
    font-size: 35px;
  }

  .container-slider .slider-title picture img {
    width: 20%;
  }

  .info .info-school {
    padding: 1rem;
  }

  .info .info-school .row div:nth-child(2) {
    border-left: none;
  }

  .access .access-phone {
    display: none;
  }

  .access p {
    font-size: 22px;
  }

  .access .figure figure img {
    width: 23%;
  }

  .cards p {
    font-size: 20px;
  }

  .notice {
    padding: 80px 0;
  }

  .notice .container-notice picture img {
    width: 40%;
  }

  .notice .figure figure img {
    width: 25%;
  }

  .notice .figure figure:nth-child(3) img {
    width: 55%;
  }

  .contact .container-contact {
    background-size: contain;
    padding: 20px;
    width: 500px;
    margin: 30px auto;
    height: 400px;
    max-width: 100%;
  }

  .contact .container-contact figure {
    display: none;
  }

  .socials {
    bottom: 2%;
  }

  .socials a picture img {
    width: 28px;
    margin: 0 3px;
  }

}

/*promotion books*/
.book-section {
  background-color: var(--color-primary);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  margin-bottom: 30px;
}

.book-cover {
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
}

.category-tabs .nav-link {
  font-weight: 600;
  color: #000;
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.category-tabs .nav-link.active {
  color: #000;
  background-color: rgba(13, 110, 253, 0.1);
  border-bottom: 3px solid var(--color-primary);
}

.book-title {
  color: #fff;
  border-left: 4px solid var(--color-three);
  padding-left: 15px;
  margin: 20px 0 15px;
  font-size: 2rem;
}

.book-subtitle {
  color: #fff;
  font-size: 1.3rem;
  margin-top: 20px;
}

.book-text,
.content-highlight p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  text-align: justify;
}


.book-section .btn.btn-books {
  background-color: var(--color-three);
  color: #fff;
  border-radius: 30px;
  padding: 10px 20px;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease;
}

.book-section .btn.btn-books:hover {
  background-color: var(--color-secundary);
  color: #fff;
}

@media (max-width: 995px) {
  .book-cover {
    margin-bottom: 20px;
    max-width: 90%;
  }

  .book-title {
    font-size: 1.3rem;
  }

  .book-subtitle {
    font-size: 1.1rem;
  }

  .book-text,
  .content-highlight p {
    font-size: 0.95rem;

  }

  .book-section .btn.btn-books {
    width: 100%;
    font-size: 1rem;
    padding: 12px;
  }
}