@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;900&display=swap');
/*https://gwfh.mranftl.com/*/
/* General Styles */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 18px;
}


.large_wrapper {
    max-width: 1400px;
    margin: auto;
}

.wrapper {
    max-width: 800px;
    margin: auto;
}

.bold {
    font-weight: 600;
}

img {
    max-width: 100%;
}

/* Header */
#header {
    position: relative;
    text-align: center;
}

.hero_img {
    width: 100%;
}

.main_nav {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    padding: 0 30px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    text-transform: uppercase;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

nav img {
    margin-top: -70px;
}

/* Hero Section */
#hero {
    position: relative;
    text-align: center;
}

#hero img {
    width: 100%;
    height: auto;
}

#hero h2 {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
}

/* Intro Section */
#intro {
    padding: 60px 20px;
    text-align: center;
}

#intro p {
    margin-bottom: 20px;
}

/* Statistics Section */
#statistics {
    position: relative;
    overflow: hidden;
    height: 500px; /* Asegúrate de establecer una altura adecuada */
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    transition: transform 1s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
    position: absolute;
}

#statistics .text-container {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    padding: 0 0 1.5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
    max-width: 1400px;
    margin: auto;
}


#statistics .big_text {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.2;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
}

@media all and (min-width: 1200px) {
    #statistics .big_text.four {
        max-width: 1400px;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        align-self: flex-start;
        margin-left: 10px;
    }
}

#statistics .big_text.visible {
    opacity: 1;
}

#statistics span {
    display: block;
}

#statistics .very_big {
    font-size: 9rem;
    font-weight: 900;
    line-height: 1.2;
}

#statistics .medium_big {
    font-size: 3.45rem;
    font-weight: 900;
    line-height: 1.2;
}

#statistics .small_big {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
}

.slide {
    opacity: 0;
}

.slide.visible {
    opacity: 1;
}



/* Ambitos Section */
#ambitos {
    padding: 120px 20px; 
}

.grey_letters {
    color: #abc0ca;
    font-size: 2.5em;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.grey_letters br {
    height: 0px;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 0px 0 40px;
    height: 500px;
}

.flex-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all .5s ease-in-out;
    flex: 1 1 calc(25% - 20px); /* Adjust width as needed */
    max-width: calc(25% - 20px); /* Ensure all items stay the same width */
    height: auto; /* Initial height */
}

.flex-item.first {
    background: #f0c1a3;
}

.flex-item.second {
    background: #fae1ca;
}

.flex-item.third {
    background: #abc0ca;
}

.flex-item.four {
    background: #b2b695;
}

.flex-item h3 {
    font-size: 1em;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.4;
}

.flex-item.first {
    color: #d26b40;
}

.flex-item.second {
    color: #bf9372;
}

.flex-item.third {
    color: #5b98af;
}

.flex-item.four {
    color: #989400;
}

.flex-item img {
    max-width: 100%;
    height: auto;
    transition: all .5s ease-in-out;
}

.hide_text {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: all .5s ease-in-out;
}

.flex-item.expanded {
    height: auto; /* Adjust the expanded height */
    padding-top: 30px;
    padding-bottom: 30px;
    z-index: 1;
}

.flex-item.expanded .hide_text {
    max-height: 200px; /* Adjust according to your content */
    opacity: 1;
    visibility: visible;
}

.flex-item.expanded img {
    transform: scale(1.05);
}

/* Text Container */
.text_container {
    text-align: center;
}

.text_container h4 {
    font-size: 1.4em;
    margin-bottom: 30px;
}

.text_container p {
    margin: 0 0 30px;
}

.text_container p.big_size {
    text-transform: uppercase;
    font-size: 1.6em;
    font-weight: 400;
    font-style: italic;
    margin: 20px 0 10px;
}

/* Propositos Section */
#propositos {
    padding: 20px;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    overflow: auto;
}

.propositos-container {
    display: grid;
    gap: 0px;
    margin-top: 20px;
}

.proposito {
    display: flex;
    align-items: center;
    line-height: 1;
    border: 1px solid #000;
    border-width: 1px 0 0px 0;
    padding: 25px 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.proposito:last-of-type {
    border-bottom: 1px solid #000;
}

.proposito:nth-child(even) {
    flex-direction: row-reverse;
}

.proposito .numero {
    font-size: 14rem;
    font-weight: 500;
    margin: 0 20px;
    color: #000;
    max-width: 280px;
}

.proposito .texto {
    max-width: 400px;
}

.proposito .texto h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.proposito .texto p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Contact Section */
#contact {
    padding: 40px 20px;
    text-align: center;
}

#contact h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
}

#contact p {
    max-width: 650px;
    margin: auto;
}

.noise_block {
    animation: heartbeat 2s infinite;
}

.noise_block {
    text-transform: uppercase;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin: 30px 0 50px;
}

.noise_block_span {
    font-size: 4.5rem;
}

#contact a {
    display: inline-block;
    margin-top: 20px;
}

/* Footer */
footer {
    background: #343a40;
    color: white;
    text-align: center;
    padding: 10px;
}

/* Animations */

/* @keyframes slideInLeft {
    from {
        transform: translateX(-180%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(180%);
    }
    to {
        transform: translateX(0);
    }
}*/

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Animation Classes */
.slide-in-left {
    transform: translateX(-180%);
    opacity: 0;
    transition: transform .5s ease-out, opacity 1s ease-out;
}

.slide-in-right {
    transform: translateX(180%);
    opacity: 0;
    transition: transform .5s ease-out, opacity 1s ease-out;
}

.visible {
    transform: translateX(0);
    opacity: 1;
}

/* Media Queries */
@media all and (max-width: 767px) {
    .main_nav {
        padding: 0 10px;
    }
    nav li:nth-child(1) {
        margin-right: -15px;
        
    }
    nav li:nth-child(3) {
        margin-left: -15px;
    }
    nav li:nth-child(2) {
        min-width: 160px;
    }
    nav img {
      margin-top: -80px;
    }
    nav a {
        font-size: 16px;
    }
    .hero_img {
      height: 400px;
      object-fit: cover;
    }

    .header_section h2 {
        font-size: 1.4em;
    }

    /* Intro Section */
    #intro {
        padding: 30px 20px;
    }

    #statistics .big_text {
      font-size: 3.4rem;
    }
    #statistics .very_big {
        font-size: 7rem;
    }
    #statistics .small_big {
        font-size: 2.8rem; 
    }
    #statistics .medium_big {
        font-size: 3rem;
    }
    .grid-container {
        margin: 40px 0;
    }

    #ambitos {
        padding: 60px 20px 30px;
    }

    #ambitos .grey_letters {
        margin-bottom: 30px;
    }
    .flex-container {
        height: auto;
    }
    .flex-item {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .proposito, .proposito:nth-child(2n) {
        flex-direction: column;
        align-items: flex-start;
    }
    .proposito .numero {
        margin: 0;
    }
    .proposito:nth-child(2n) .numero {
        align-self: flex-start;
        width: 100%;
        max-width: 100%;
        text-align: right;
        margin-right: 20px;

    }
    .text_container h4 {
        line-height: 1.2;
    }

    .noise_block {
      font-size: 2.5rem;
    }
    .noise_block_span {
      font-size: 3.8rem;
    }

    @keyframes slideInLeft {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(0);
    }
}

    .slide-in-left {
        transform: translateX(0);
        opacity: 1;
        transition: transform .5s ease-out, opacity 1s ease-out;
    }

    .slide-in-right {
        transform: translateX(0);
        opacity: 1;
        transition: transform .5s ease-out, opacity 1s ease-out;
    }
}

@media all and (max-width: 400px) {
    .main_nav {
        top: 20px;
    }
    nav li:nth-child(1) {
        margin-right: -20px;
        
    }
    nav li:nth-child(3) {
        margin-left: -20px;
    }
    nav img {
        margin-top: -60px;
      }
    #statistics .big_text {
        font-size: 3.2rem;
      }
      #statistics .very_big {
          font-size: 6.5rem;
      }
      #statistics .small_big {
          font-size: 2.6rem; 
      }
      #statistics .medium_big {
          font-size: 2.8rem;
      }

      #statistics .three .very_big {
        font-size: 5.4rem;
      }
}