:root {
    --blanco: #f8f9fa;
    --negro: #262829;
    --verde-claro: #60ba63;
    --verde-oscuro: #2e6930;
    --gris: #c3c1c1;
    --rojo: #e4442f;
}

body {
    margin: 0;
    font-family: 'Roca One', sans-serif;
    background-color: var(--blanco);
    color: var(--negro);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--verde-claro);
    margin-bottom: 0rem;
}

.logo {
    font-family: Georgia, serif;
    font-size: 1.7rem;
    font-weight: bold;
}

.login-btn {
    background-color: var(--verde-oscuro);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.container {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.lateral-imagen {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
    overflow: hidden; /* hace que no deba salir entera */
    pointer-events: none

}

.lateral-imagen img {
    position: absolute;
    left: -50%;
    width: 200%;
    height: auto;
    object-fit: cover;
    opacity: 0.3;
}

.contenido-principal {
    flex: 1;
    padding: 0.4rem 1.3rem;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    padding: 0.4rem 1rem;
}

.hero h2 {
    max-width: 80%;
    font-size: 4rem;
    margin-bottom: 0.2rem;
    margin-top: 1.5rem;
    margin-left: 1rem;
    text-align:left;
    font-family: Georgia, serif;
}

.hero p {
    color: --negro;
    max-width: 80%;
    font-size: 1.6rem;
    margin-bottom: 2rem;
    margin-left: 1rem;
    text-align:left;
}

.illustration-wrapper {
    position: relative;
}

.illustration {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(30%, -30%);
    width: 640px;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.contact-section {
    background-color: var(--verde-claro);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 8px;
}

.contact-section h2 {
    color: var(--negro);
}

form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea {
    padding: 0.75rem;
    border: 1px solid var(--negro);
    border-radius: 5px;
    font-size: 1rem;
}

button {
    background-color: var(--rojo);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--verde-oscuro);
    color: white;
    margin-top: 3rem;
}

button, input, textarea {
    transition: all 0.2s ease-in-out;
}
button:hover {
    filter: brightness(0.8);
}

.beneficios {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 1rem 4rem;
    flex-wrap: wrap;
}

.ilustracion {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.ilustracion img {
    max-width: 90%;
    border-radius: 10px;
    margin-left: 3rem;
}

.lista-beneficios {
  flex: 1;                        /* ocupa mitad derecha */
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.2rem;
  color: #222;
}

.lista-beneficios, .howto {
    list-style: none;
    padding: 0;
    font-size: 1.2rem;
}

.lista-beneficios li, .howto li {
    margin-bottom: 1.6rem;
}

.howto {
    display: flex;
    align-items: center; /* centra verticalmente texto y gif */
    justify-content: space-between; /* separa los dos lados */
    margin: 3rem 4rem;
    gap: 2rem; /* espacio entre texto y gif */
}

.howto div:first-child {
    flex: 1; /* ocupa la mitad izquierda */
    text-align: left;
}

.howto div:last-child {
    flex: 1; /* mitad derecha */
    display: flex;
    justify-content: center; /* centra el gif horizontalmente */
}

.howto img {
    width: 120%;
    height: auto;
    border-radius: 1px; /* opcional: bordes redondeados */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* opcional: sombra suave */
}

.indicadores {
    display: flex;
    justify-content: space-around;
    padding: 0rem;
    text-align: center;
    flex-wrap: wrap;
}

.indicadores div {
    margin: 0rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Clase que se activa al hacer scroll */
.indicadores div.visible {
    opacity: 1;
    transform: translateY(0);
}

.indicadores h3 {
    font-size: 4rem;
    color: var(--verde-oscuro);
    margin-bottom: 0rem;
}

.indicadores p {
    font-size: 2rem;
    margin-top: 0rem;
    margin-bottom: 3rem;
}

.opiniones-carousel {
    margin: 3rem auto;
    text-align: center;
    max-width: 800px;
    font-style: italic;
    font-size: 1.7rem;
    color: var(--negro);
    position: relative;

}

.carousel .slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    left: 0;
    right: 0;
}

.carousel .slide.visible {
    opacity: 1;
    position: relative;
}

/* Para el movil */
@media (max-width: 768px) {

    body {
        font-size: 16px;
    }

    .container {
        flex-direction: column;
    }

    .contenido-principal {
        padding: 1rem 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        width: 90%;
        margin-bottom: 0.6rem;
    }

    .beneficios {
        flex-direction: column;
        padding: 0.2rem;
        margin-bottom: 0rem;
    }

    .lista-beneficios, .howto {
        font-size: 1rem;
        text-align: left;
    }

    .ilustracion img {
        max-width: 100%;
        border-radius: 10px;
        margin-top: 0rem;
        margin-bottom: 0rem;
    }

    .indicadores {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 1rem;
        z-index: -1;
    }

    .indicadores h3 {
        font-size: 4rem;
    }

    .indicadores p {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }

    .login-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .illustration-wrapper {
        position: static;
    }

    .illustration {
        display: none;
    }
    
    .howto {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin: 0.3rem;
    }

    .howto div {
        flex: unset;
        width: 100%;
    }

    .howto img {
        width: 160%;
    }
}


