@font-face {
  font-family: 'MontserratBold';
  src: url('../font/Montserrat-Arabic Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Montserrat';
  src: url('../font/Montserrat-Arabic Regular.ttf') format('truetype');
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #F3F0E8;
}


.landing {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.landing .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.landing .content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.landing .title {
  color: #4b4f54;
  font-size: 10vw;
  font-family: 'MontserratBold';
  margin: 0;
  text-align: center;
}

.landing .logo {
  margin-top: 10px;
  width: 50%;
  height: auto;
  transition: transform 0.5s ease;
}

.landing .logo:hover{
  transform: scale(1.1);
}


.intro {
  position: relative;
  width: 100%;
  min-height: 100vh;
  height: 100vh; 
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  object-fit: cover;
}

.intro .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.intro-text {
  font-family: 'Montserrat';
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  align-self: center;
  height: 50%;
  width: 80%;
  text-align: center;
  max-width: 80%;
  visibility: hidden;
  justify-content: center;
  align-items: center;
    /*border-color: azure;
  border-width: 5px;
  border-style: solid;*/
}

.intro .subtitle {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  color: #ffffff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 10px;
  /*border-color: azure;
  border-width: 5px;
  border-style: solid;*/
}

.intro .square {
  width: 24.6px;
  height: 24.6px;
  background-color: rgb(214, 0, 87);
  border-radius: 2px;
  flex-shrink: 0;
}

.intro .text{
  font-family: 'Montserrat';
  font-weight: 200;
  font-size: 1.8vw;
  letter-spacing: 1px;
  padding-left: 8px;
  text-align: left;
  text-shadow: 4px 4px 0px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.intro .wrap-text {
  position: relative;
  font-family: 'Montserrat';
  font-size: 36px;
  font-weight: 600;
  text-align: justify;
  display: inline-block;
    /*border-color: azure;
  border-width: 5px;
  border-style: solid;*/
}

@media (max-width: 768px) {
  .intro .wrap-text {
    font-size: 46px;
  }
}

.intro .text-block {
  position: relative;
  font-family: 'Montserrat';
  font-size: 36px;
  font-weight: 400;
  text-align: justify;
  display: inline-block;
  text-shadow: 4px 4px 0px rgba(0,0,0,0.4);
  /*border-color: azure;
  border-width: 5px;
  border-style: solid;*/
}

.intro .text-span {
  position: absolute;
  width: 0;
  height: 100%;
  color: #ffffff;
  left: 0;
  overflow: hidden;
  text-align: justify;
}

#texto1 .text-span,
.changeopacity .text-span {
  width: 100%;
  opacity: 0.2;
  position: relative;
}

.intro .linea {
  border:none;
  height: 20px;
 	width: 100%;
	height: 50px;
	margin-top: 0;
	border-bottom: 3px solid #ffffff;
	box-shadow: 0 20px 20px -20px #e9e9e9;
  margin: -50px auto 10px; 
}


/*CLASS NOSOTROS PARENTS AND CHILDRENS */
.nosotros {
  margin: 90px 90px 30px 90px;
}

/*CHILD MISION Y VISION*/
.mision-vision {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 8px;
  font-family: 'Montserrat';
  opacity: 0;
}
    
.imagemv {
  grid-column: span 2 / span 2;
  grid-row: span 6 / span 6;
  width: 37vw;
  height: auto;
  transition: transform 0.5s ease;
}

.imagemv:hover{
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .imagemv {
    height: 40vh;
    align-content: center;
  }
}

.mision {
  grid-column: span 3 / span 3;
  grid-row: span 3 / span 3;
  grid-column-start: 3;
  padding-left: 2vw;
  /*border-color: rgb(250, 235, 29);
  border-width: 5px;
  border-style: solid;*/
}

.mision .subtitle {
  font-family: 'Montserrat';
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  border-radius: 4px;
  font-weight: 200;
  font-size: 1.8vw;
  padding-bottom: 10px;
  transition: transform 0.5s ease;
  /*border-color: azure;
  border-width: 5px;
  border-style: solid;*/
}

.mision .square {
  width: 18px;
  height: 18px;
  background-color: rgb(139, 220, 101);
  border-radius: 2px;
  flex-shrink: 0;
  transition: transform 0.5s ease;
}


.mision .text{
  font-family: 'Montserrat';
  font-weight: 600;
  letter-spacing: 1px;
  padding-left: 8px;
  font-size: 1.4vw;
  text-align: left;
  white-space: nowrap;
  color: #4b4f54;
}


.vision {
  grid-column: span 3 / span 3;
  grid-row: span 3 / span 3;
  grid-column-start: 3;
  grid-row-start: 4;
  padding-left: 2vw;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
}

.vision .subtitle {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  border-radius: 4px;
  font-weight: 200;
  font-size: 1.8vw;
  padding-bottom: 10px;
  transition: transform 0.5s ease;
}

.vision .text{
  font-family: 'Montserrat';
  font-weight: 600;
  letter-spacing: 1px;
  padding-right: 8px;
  font-size: 1.4vw;
  text-align: left;
  white-space: nowrap;
  color: #4b4f54;
}

.vision .square {
  width: 18px;
  height: 18px;
  background-color: rgb(0, 175, 170);
  border-radius: 2px;
  flex-shrink: 0;
}

.mision-vision .subtitle:hover{
  transform: scale(1.1);
}

.mision-vision .wrap-text {
  position: relative;
  font-family: 'Montserrat';
  font-size: 23px;
  font-weight: 100;
  text-align: justify;
  display: inline-block;
  color: #4b4f54;
    /*border-color: azure;
  border-width: 5px;
  border-style: solid;*/
}

/*CHILD CCC */
.ccc {
  font-family: 'Montserrat';
  margin-top: 60px;
  opacity: 0;
}

.ccc .title {
  display: inline-flex;
  align-self: flex-end;
  align-items: center;
  border-radius: 4px;
  font-size: 36px;
  font-weight: 500;
  padding-bottom: 10px;
  transition: transform 0.5s ease;
}

.ccc .square {
  width: 18px;
  height: 18px;
  background-color: rgb(255, 131, 0);
  border-radius: 2px;
  flex-shrink: 0;
}

.ccc .text{
  font-weight: 600;
  letter-spacing: 1px;
  padding-left: 8px;
  font-size: 2vw;
  text-align: left;
  white-space: nowrap;
  color: #4b4f54;
}

.ccc .title:hover{
  transform: scale(1.1);
}

.ccc .wrap-text {
  position: relative;
  font-size: 23px;
  font-weight: 100;
  text-align: justify;
  display: inline-block;
  color: #4b4f54;
  /*border-color: rgb(0, 255, 255);
  border-width: 5px;
  border-style: solid;*/
}

.logos {
  overflow: hidden;
  background: #F3F0E8;
  white-space: nowrap;
  position: relative;
  transition: transform 0.5s ease;
  /*border-color: rgb(0, 255, 255);
  border-width: 5px;
  border-style: solid;*/
}

.logos:before,
.logos:after {
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  content: "";
  z-index: 2;
}

.logos:before {
  left: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), #F3F0E8);
}

.logos:after {
  right: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #F3F0E8);
}


@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.logos-slide {
  display: inline-block;
  animation: slide 25s infinite linear;
  margin: 30px 0 30px 0;
  transition: transform 0.5s ease;
}

.logos-slide img {
  height: 25vh;
  margin: 0 30px;
}

.logos:hover .logos-slide:hover{
  transform: scale(1.1);
}


.cards {
  font-family: 'Montserrat';
  margin: 90px 90px 30px 90px;
  /*border: 5px solid cyan;*/
}

.cards .title {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  font-size: 36px;
  font-weight: 500;
  padding-bottom: 10px;
  transition: transform 0.5s ease;
}

.cards .square {
  width: 18px;
  height: 18px;
  background-color: rgb(154, 60, 187);
  border-radius: 2px;
  flex-shrink: 0;
}

.cards .text{
  font-weight: 600;
  letter-spacing: 1px;
  padding-left: 8px;
  font-size: 2vw;
  text-align: center;
  white-space: nowrap;
  color: #4b4f54;
}

.cards .title:hover{
  transform: scale(1.1);
}

.cards-rows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.flip-card {
  background-color: transparent;
  perspective: 1000px;
  overflow: hidden;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  padding-top: 140%; 
  transform-style: preserve-3d;
  transition: transform 0.9s;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  padding: 5px;
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  transform: rotateY(180deg);
}

@media (max-width: 768px) {
  .flip-card {
    margin-bottom: 20px;
  }
}

.cards-rows img {
  width: 26vw;
  height: auto;
}

.reglamento {
  font-family: 'Montserrat';
  margin: 90px 90px 30px 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reglamento .title {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  font-size: 36px;
  font-weight: 500;
  padding-bottom: 10px;
  transition: transform 0.5s ease;
}

.reglamento .title:hover{
  transform: scale(1.1);
}

.reglamento .square {
  width: 18px;
  height: 18px;
  background-color: rgb(214, 0, 87);
  border-radius: 2px;
  flex-shrink: 0;
}

.reglamento .text{
  font-weight: 600;
  letter-spacing: 1px;
  padding-left: 8px;
  font-size: 2vw;
  text-align: center;
  white-space: nowrap;
  color: #4b4f54;
}


button {
  all: unset;
}

.button {
  position: relative;
  display: inline-flex;
  height: 14vh;
  align-items: center;
  margin: 40px 40px 40px 40px;
  padding-left: 2rem;
  padding-right: 2rem;
  font-size: 2vw;
  font-weight: 840;
  color: #fafaf6;
  letter-spacing: -0.06em;
  text-shadow: 4px 4px 0px rgba(0,0,0,0.4);
} 

.button-item {
  background-color: transparent;
  color: #1d1d1f;
  letter-spacing: 3px;
  text-decoration: none;
}


/*
.button-item .button-bg {
  border-color: rgb(214, 0, 87);
  background-color: rgb(214, 0, 87);
}
*/

.button-item .button-bg {
  border-color: #000000;
  background-color: #000000;
}



.button-inner,
.button-inner-hover,
.button-inner-static {
  pointer-events: none;
  display: block;
}

.button-inner {
  position: relative;
  font-family: 'Montserrat';
  font-weight: 600;
  color: #F3F0E8;
}

.button-inner-hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(70%);
}

.button-bg {
  overflow: hidden;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(1);
  transition: transform 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.button-bg,
.button-bg-layer,
.button-bg-layers {
  display: block;
}

.button-bg-layers {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  top: -60%;
  aspect-ratio: 1 / 1;
  width: max(200%, 10rem);
}

.button-bg-layer {
  border-radius: 9999px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(0);
  transition:
    transform 3s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.3s linear;
}

.button-bg-layer.-purple {
  background-color: rgb(154, 60, 187);
}

.button-bg-layer.-green {
  background-color: rgb(139, 220, 101);
}

.button-bg-layer.-orange {
  background-color: rgb(255, 131, 0);
}

.button-bg-layer.-yellow {
  --tw-bg-opacity: 1;
  background-color: rgba(0, 175, 170, var(--tw-bg-opacity));
}

.button:hover .button-inner-static {
  opacity: 0;
  transform: translateY(-70%);
  transition:
    transform 1.4s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.3s linear;
}

.button:hover .button-inner-hover {
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 1.4s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.button:hover .button-bg-layer {
  transition:
    transform 1.3s cubic-bezier(0.19, 1, 0.22, 1),
    opacity 0.3s linear;
}

.button:hover .button-bg-layer-1 {
  transform: scale(1);
}

.button:hover .button-bg-layer-2 {
  transition-delay: 0.1s;
  transform: scale(1);
}

.button:hover .button-bg-layer-3 {
  transition-delay: 0.2s;
  transform: scale(1);
}

.button:hover .button-bg-layer-4 {
  transition-delay: 0.3s;
  transform: scale(1);
}


/* 
.image-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-width: 6px;
  border-top: 20px solid;
  border-image:   linear-gradient(to right, #d60057 20%, #8bdc65 20%, #8bdc65 40%, #00afaa 40%, #00afaa 60%, #ff8300 60%, #ff8300 80%, #9a3cbb 80%) 5;
}
*/


.image-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.image-banner .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-banner .logo {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

colors {
  color: #d60057;
  color: #8bdc65;
  color: #00afaa;
  color: #ff8300;
  color: #9a3cbb;
}







/* Para movil */
@media (max-width: 768px) {

  
  .nosotros {
    margin: 24px 16px !important;
  }

  
  .mision-vision {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    row-gap: 12px !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important; 
  }

  
  .mision,
  .vision,
  .imagemv {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 12px !important;
  }

  /* Imagen debajo del texto */
  .imagemv {
    order: 3 !important;        
    width: 100% !important;
    max-width: 680px !important;
    height: auto !important;
    margin-top: 8px !important;
    align-self: center !important;
  }

  /* Títulos */
  .mision .subtitle,
  .vision .subtitle {
    justify-content: center !important;
    font-size: 20px !important;
  }

  
  .mision .text,
  .vision .text {
    font-size: 18px !important;
    white-space: normal !important;
  }

  /* Parrafos  */
  .mision-vision .wrap-text {
    font-size: 16px !important;
    text-align: justify !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    line-height: 1.5 !important;
  }

  /*  CCC  */
  .ccc {
    margin-top: 24px !important;
  }
  .ccc .text {
    font-size: 20px !important;
    white-space: normal !important;
    text-align: center !important;
  }
  .ccc .wrap-text {
    font-size: 16px !important;
    text-align: justify !important;
  }
  .ccc .wrap-text p {
    margin-bottom: 8px !important;
  }

  /* Tarjetas */
  .cards-rows {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }
  .flip-card {
    width: 80% !important;       
    max-width: 400px !important; 
    margin: 0 auto !important;
  }
  .flip-card-inner {
    padding-top: 120% !important; 
  }
  .flip-card-front img,
  .flip-card-back img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}



/* logo */
@media (max-width: 768px) {
  
  .landing {
    height: 55vh !important;     
  }
  .landing .logo {
    width: 60% !important;
    margin-top: 0 !important;
  }

  
  .intro {
    min-height: auto !important; 
    height: auto !important;     
    align-items: flex-start !important; 
    padding: 16px 0 24px !important;    
    background: #000;                   
  }

  
  .intro-text {
    visibility: visible !important; 
    margin-top: 0 !important;
  }

  
  .intro .subtitle { align-self: center; }
}



@media (max-width: 768px) {
  .intro .background {
    display: none !important;
  }
  .intro {
    background-color: #000 !important; 
  }
}






/* correcion tamaño partes importantess */
@media (max-width: 768px) {
 
  .intro .subtitle .text,
  .cards .title .text,
  .reglamento .title .text {
    font-size: 20px !important;
    white-space: normal !important;
    text-align: center !important;
  }

 
  .mision .subtitle {
    justify-content: center !important;
    text-align: center !important;
  }

  .mision .subtitle .text {
    font-size: 20px !important;
    white-space: normal !important;  
  }
}
