/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    position: relative;
    color: #ffffff;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    overflow: hidden; /* Asegura que el contenido no se desborde */
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.hero-section .hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    overflow: hidden;
}

.hero-section .hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .hero-content {
    position: relative;
    z-index: 10; /* Asegura que el contenido esté encima del video */
    bottom: 20px;
    width: 100%;
    margin-left: 24px; /* Alinea el contenido a la izquierda con un margen de 24px */ /* Agrega un sombreado para mejorar la legibilidad */
}

.hero-section .hero-content h1 {
    font-size: clamp(2.2rem, 6vw + 1rem, 4em);
    font-weight: 500;
    align-self: stretch;
    line-height: 120%;
    letter-spacing: -0.72px;
    margin: 0;
}

.hero-section .hero-content p {
    max-width: 600px;
    font-weight: 300;
    line-height: 150%;
    font-size: clamp(1.05rem, 2vw + 0.7rem, 1.4rem);
}

.hero-section .hero-content .hero-buttons { 
    margin-top: 50px;
    display: flex;
    gap: 15px;
}

/*--------------------------------------------------------------
# Niveles Section
--------------------------------------------------------------*/

.niveles-section {
    position: relative;
    background-color: #F4F4F4; /* Ajusta el color al del diseño */
    color: #333;
    overflow: hidden; /* Asegura que las decoraciones no desborden */
}

.niveles-section h4 {
    font-family: Lora;
    font-size: clamp(1rem, 2vw + 0.5rem, 1.3rem);
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}

.niveles-section .container{
    padding: 50px 0;
    position: relative;
    z-index: 2; /* Asegura que el contenido esté encima de las decoraciones */
}

.niveles-section .section-subtitle {
    margin-bottom: 40px;
}

.niveles-section .niveles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    z-index: 1;
    padding: 0 20px;
}

.nivel-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.nivel-card img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.nivel-card:hover img {
    transform: scale(1.1);
}

.nivel-card .nivel-card-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.custom-card{
    height: 798px !important;
}

.niveles-section .niveles-decorations{
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    pointer-events: none;
    z-index: -1; 
}

.niveles-section .niveles-decorations img{
    width: 50%;
    min-width: 800px;
    height: auto;
    object-fit: contain;
    display: block;
}

@media screen and (max-width: 1024px) {
    .niveles-section .niveles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .niveles-section .custom-card{
        height: 450px !important;
    }
    
}

/* Responsive improvements */
@media screen and (max-width: 768px) {
    .niveles-section .niveles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .niveles-section .custom-card{
        height: 450px !important;
    }

    .niveles-section .niveles-decorations{
        top: 300px;
    }

    .niveles-section .niveles-decorations img{
        opacity: 0.5;
        width: 100px;
    }
    
}
/*--------------------------------------------------------------
# Espacios Section
--------------------------------------------------------------*/
.espacios-section {
    position: relative;
    background-color: #4A8C6E;/* Ajusta el color al del diseño */
    color: #fff;
}

.espacios-section h2{
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.2rem, 10vw + 1rem, 7.5rem);
    font-weight: 700;
    line-height: 1.05;
    padding: 60px 0;
}

.espacios-slider .slide-caption h3{ 
    font-size: clamp(1.5rem, 5vw + 2rem, 8rem);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.1;
}

.espacios-context_content{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.espacios-sub-title,
.espacios-text {
    position: relative;
    flex: 1 1 45%;
    margin-bottom: 20px;
    text-align: left;
}
.espacios-sub-title h3 {
    font-size: clamp(1.5rem, 5vw + 1rem, 4rem);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.1;
}

.espacios-text {
    font-size: clamp(1.1rem, 2vw + 0.7rem, 1.5rem);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    line-height: 150%;
}

.espacios-sub-title .graphic-icons-container img {
    width: 415px;
}

 .espacios-sub-title-mobile {
        display: none;
}

.graphic-icons-container{
  position: absolute;
  bottom: 5px;
  right:0;
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
  transform: translateY(8px); /* nudge to align visually */
  pointer-events:none;
}

/* each icon styling and slight offset for organic layout */
.graphic-icons-container .icon{
  object-fit:contain;
  display:block;
  transform-origin:center;
  transition: transform .2s ease;
  box-shadow: none;
}

/* individual offsets (tweak values to taste) */
.graphic-icons-container .icon-1{ transform: translateY(0px) rotate(-6deg); }
.graphic-icons-container .icon-2{ transform: translateY(-20px) rotate(4deg); }
.graphic-icons-container .icon-3{ transform: translateY(-4px) rotate(-8deg); }
.graphic-icons-container .icon-4{ transform: translateY(10px) rotate(10deg); }
.graphic-icons-container .icon-5{ transform: translateY(-2px) rotate(14deg); }
.graphic-icons-container .icon-6{ transform: translateY(-2px) rotate(14deg); }


@media screen and (max-width: 768px) {
    .espacios-context_content{  
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .graphic-icons-container {
        display: none; /* Oculta los íconos en pantallas pequeñas */
    }
    
}

@media screen and (max-width: 620px) {
    .espacios-section h2{
        font-size: clamp(2rem, 8vw + 1rem, 2.5rem);
        padding: 30px 0 20px 0;
    }
    .espacios-slider .slide-caption h3{ 
        font-size: clamp(1.5rem, 5vw + 1rem, 4rem);
    }
    .espacios-sub-title,
    .espacios-text {
        display: none;
    }

    .espacios-sub-title-mobile {
        display: block;
    }

    .espacios-sub-title-mobile h3{
        display: block;
        font-size: 1.3rem;
        font-family: 'Lora';
        font-weight: lighter;
        margin-bottom: 15px;
        line-height: 1.1;
        text-align: center;
    }
    
}

/*--------------------------------------------------------------
# Quote Section
--------------------------------------------------------------*/
.quote-section blockquote {
    font-size: clamp(1.5rem, 5vw + 1rem, 3em);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: bolder;
    margin-bottom: 20px;
    border: none;
}

.quote-section cite {
    font-weight: 300;
    font-style: normal;
}

/* Responsive */
@media (max-width: 768px) {
  .quote-section blockquote {
    font-size: 1.8rem;
    text-align: center;
    margin: 0 5px;
  }
}

/*--------------------------------------------------------------
# Enfoque Section
--------------------------------------------------------------*/
.enfoque-section {
    background-color: #4A8C6E; /* Ajusta el color al del diseño */
    color: #fff;
}
.enfoque-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    gap: 20px;
}

.enfoque-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 8vw + 1rem, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.enfoque-header img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.header-icons .icon-1 {
    position: relative;
    top: 30px;
    z-index: 2;
}

.header-icons .icon-2 {
    position: relative;
    rotate: 15deg;
    right: 20px;
    bottom: 20px;
}


.enfoque-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    text-align: left;
}

.enfoque-item img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.enfoque-item-content {
    position: relative;
}

.enfoque-item-content img{
    position: relative;
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-left: 10px;
}

.enfoque-item-content h4 {
    font-size: clamp(1.2rem, 3vw + 1rem, 2.5em);
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    margin: 0;
}

.enfoque-item-content p {
    position: relative;
    bottom: 25px;
    font-size: clamp(0.98rem, 1.5vw + 0.7rem, 1.15rem);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    line-height: 150%;
    margin-top: 10px;
}

@media screen and (max-width: 768px) {
    .enfoque-grid {
        grid-template-columns: 1fr;
    }
    .enfoque-header {
        position: relative;
        justify-content: center;
        text-align: center;
        height: 120px;
       
    }

    .enfoque-header h2 {
        font-size: clamp(2rem, 8vw + 1rem, 4rem);
         z-index: 1;
    }
    .enfoque-header .header-icons {
        position: absolute;
        width: 100%;
        z-index: 0;
        display: flex;
        justify-content: flex-end;
    }

    .enfoque-header .header-icons img{
        max-width: 80px;
        z-index: 0;
    }

    .enfoque-header .header-icons .icon-1 {
        top: -50px;
        left: 0px;
        width: 60px;
    }
     .enfoque-header .header-icons .icon-2 {
        top: 65px;
        left: 10px;
        width: 60px;
    }
    
}