@import url('https://fonts.googleapis.com/css2?family=Lilita+One&display=swap');
:root {
    --primary-color: #4bc1ed;
    --secondary-color: #5186c7;
    --tertiary-color: #EC8816;
    --backgtound-color: #f7f7f7;
    --red-color: #E83C4D;
    --yellow-color: #ffdf80;
}
*{
    font-family: 'lilita one', sans-serif;
    font-weight: 100;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.header-template {
    width: 100%;
    background-color: var(--tertiary-color);
    color: white;
    text-align: center;
    padding: 20px 0;
}

.header-template h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 100;
}

.header-template p {
    margin: 5px 0 0;
    font-size: 1.2rem;
    color: var(--secondary-color);
}
.hero-title {
    font-size: 4rem;
    text-align: center;
    margin: 10px;
    margin-top: 2rem;
    color: var(--red-color);
    font-weight: 100;
    text-shadow: 1px 1px 2px black;
}
.hero {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    gap: 5rem;
    padding: 20px;
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    gap: 5rem;
    padding: 20px;
}
.hero-text {
    width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


.hero-text h2 {
    font-size: 4rem;
    margin-bottom: 10px;
    color: var(--secondary-color);

}

.hero-text p {
    font-size: 1.5rem;
    width: 100%;
    color: #666;
    text-align:justify;
    line-height: 2.5rem;
    word-spacing: 1rem;
}

.hero-content img {
    width: 500px;
    animation: float 3s ease-in-out infinite; /* Efecto de flotación */
    animation-delay: 1s; /* Retraso para que no floten al mismo tiempo */
}

.section {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    padding: 20px;
    background-color: #ffffff;
    margin: 5px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Aplicar el efecto de flotación a la imagen del section */
.section img {
    max-width: 30%;
    border-radius: 10px;
    animation: float 4s ease-in-out infinite; /* Efecto de flotación */
    animation-delay: 0.6s; /* Retraso para que no flote al mismo tiempo que el texto */
}

/* Aplicar el efecto de flotación al texto del section */
.section-text {
    max-width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-text h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-text p {
    font-size: 2rem;
    color: #666;
    margin-bottom: 15px;
}

.btn {
    display: inline-block;
    text-align: center;
    padding: 10px 20px;
    background-color: var(--yellow-color);
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    width: 200px;
}

.btn:hover {
    background-color:var(--red-color);
    color: var(--backgtound-color);
}

/* Animación de flotación */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}
.footer-template {
    background-color: var(--backgtound-color);
    border-top: 5px solid var(--secondary-color);
    position: relative;
    bottom: 0;
    color:black;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    width: 100%;
}

.footer-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column; /* Cambiar a columna */
        height: auto; /* Ajustar altura automáticamente */
        gap: 1.5rem; /* Reducir el espacio entre elementos */
    }

    .hero-content {
        gap: 0.5rem; /* Reducir el espacio entre elementos */
        flex-direction: column; /* Cambiar a columna */
        align-items: center;
        text-align: center;
    }

    .hero-content img {
        width: 250px; /* Ajustar el tamaño de la imagen */
    }

    .hero-text {
        width: 100%; /* Ajustar el ancho del texto */
    }

    .hero-text h2 {
        font-size: 3rem; /* Reducir el tamaño de fuente */
    }

    .hero-text p {
        font-size: 1.8rem; /* Reducir el tamaño de fuente */
        line-height: 2rem;
        text-align:justify;
    }

    .section {
        flex-direction: column; /* Cambiar a columna */
        align-items: center;
        text-align: center;
        gap: 1.5rem; /* Reducir el espacio entre elementos */
    }

    .section img {
        max-width: 300px; /* Ajustar el tamaño de la imagen */
    }

    .section-text {
        max-width: 100%; /* Ajustar el ancho del texto */
        line-height: 1.5rem; /* Reducir el interlineado */
        word-spacing: 0.5rem; /* Reducir el espacio entre palabras */
    }

    .section-text h2 {
        font-size: 2rem; /* Reducir el tamaño de fuente */
    }

    .section-text p {
        font-size: 1rem; /* Reducir el tamaño de fuente */
    }
}