:root {
    --sapPrimaryColor: hsl(139, 42%, 37%);
    --sapBackgroundColor: #f7f7f7;
    --sapTileColor: #ffffff;
    --sapTextColor: rgb(50, 57, 52);
    --sapAccentColor: hsl(139, 90%, 33%);
    --freesyLogoFontColor: #1d743b;
    --sapBorderRadius: 0.5rem;

/*    --sapPrimaryColor: #0a6ed1;
    --sapBackgroundColor: #f7f7f7;
    --sapTileColor: #ffffff;
    --sapTextColor: #32363a;
    --sapAccentColor: #0854a0;
    --sapBorderRadius: 0.5rem;*/
    --questionBackgroundColor: white;
    --contrastingHoverPrimaryColor: hsl(139, 75%, 95%);

    --whiteColor: white;
    --errorColor: rgb(200, 0, 0);
    --errorBackgroundColor: rgb(250, 227, 227);
    --successColor: rgb(0, 200, 0);
    --successBackgroundColor: rgb(227, 250, 227);
}

body {
    margin: 0;
    font-family: "Figtree", sans-serif;
    font-family: 'Inter', system-ui, sans-serif;
    /* font-family: "Geist", sans-serif;
    font-family: "Hubot Sans", sans-serif; */
    background: var(--sapBackgroundColor);
    color: var(--sapTextColor);
}

/******
Header
*******/
header {
    height: 4rem;
    padding: 0.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* background-color: var( --whiteColor); */
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.08); */
    /* position: static; */
    /* top: 0; */
    /* z-index: 100; */
}
.header-logo, .header-logo img {
    height: 3rem;
}
.header-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.header-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    /* background-color: var(--sapPrimaryColor); */
    color: var(--sapPrimaryColor);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--sapPrimaryColor);
    border-radius: var(--sapBorderRadius);
    cursor: pointer;
    transition: background 0.3s;
}
.header-button:hover {
    background-color: var(--contrastingHoverPrimaryColor);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/******
Main
*******/
.hero, .header-gradient{
    background: linear-gradient(72deg, #FBED96, #ABECD6);
}
.header-no-gradient{
    background-color: #d1edb9;
}
/******
Hero
*******/
main.hero-main {
    display: flex;
    justify-content: center;
}
.hero-container {
    max-width: 900px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: var(--sapPrimaryColor);
    padding: 1rem 1rem;
}

.hero-left, .hero-right {
    /* flex: 1 1 ; */
    /* flex: 1 1 50%; */
    box-sizing: border-box;
    /* text-align: center; */
}

.hero-left {
    text-align: left;
    max-width: 600px;
}

main.hero-main h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    font-family: "Inter", sans-serif;
    font-family: "Figtree", sans-serif;
    font-family: "Geist", sans-serif;
    font-family: "Hubot Sans", sans-serif;
    line-height: 1.1em;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
}

main.hero-main h2 {
    margin-bottom: 0.5rem;
    font-weight: 400;
    font-style: italic;
}

main.hero-main h3 {
    margin-top: 0rem;
    font-weight: 400;
    font-size: 1.rem;
}

main.hero-main p {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.hero-right {
    /* display: flex; */
    /* justify-content: center; */
    /* gap: 30px; */
    /* align-items: flex-end; */
    max-width: 100px;
}
.mobile-img-mk img {
    width: 100%;
    height: 100%;
}

@media (max-width: 900px) {
    header {
        /* padding: 0 20px; */
/*         flex-direction: column;
        height: auto;
        padding-top: 1rem;
        padding-bottom: 1rem; */
    }
    /* .hero-left {
        text-align: center;
    } */
    .hero-container {
        flex-direction: row;
        padding: 3rem 2rem;
    }
    .hero-left, .hero-right {
    }
    .hero-left{
        max-width: 100%;
    }
    .hero-right {
        margin-top: 20px;
        /* width: 20rem; */
        overflow: hidden;
        height: 15rem;
        max-width: 10rem;
        mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    }

    main.hero-main h1 {
        font-size: 2.5rem;
    }
    main.hero-main h3 {
        margin-bottom: 0rem;
    }


}






/******
sign-up
*******/
.sign-up{
    margin: 1rem;
    justify-content: center;
    display: flex;
}
.cta-form {
    display: flex;
    max-width: 600px;
    width: 90%;
    flex-wrap: wrap; /* Para que se apilen en pantallas pequeÃƒÂ±as si no caben */
    gap: 10px;
    align-items: center;
}
.cta-input {
    flex-grow: 1; /* Para que ocupen el espacio disponible */
    font-size: 1rem;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--sapBorderRadius);
}
.cta-button {
    flex-grow: 1; /* Para que ocupen el espacio disponible */
    align-items: center;
    padding: 12px;
    background-color: var( --whiteColor);
    color: var(--sapPrimaryColor);
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid #ccc;
    border-radius: var(--sapBorderRadius);
    cursor: pointer;
    transition: background 0.3s;
}
.cta-button:hover {
    background-color: var(--contrastingHoverPrimaryColor); /* #eaf3fc;*/
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.error-hidden{
    display: none;
    opacity: 0;
}
.error-message a{
    font-weight: bold;
    color: inherit;
}
.error-visible{
    display: block;
    opacity: 1;
    background-color: var(--errorBackgroundColor);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: center;
    font-style: italic;
    color: var(--errorColor)
}
.success-hidden{
    display: none;
    opacity: 0;
}
.success-visible{
    display: block;
    opacity: 1;
    background-color: var(--successBackgroundColor);
    color: var(--successColor);
}
.cta-form-hidden{
    display: none;
    opacity: 0;
}
.error-input{
    border: 1px solid rgb(254, 172, 172);
    box-shadow: 0 2px 6px rgba(200,0,0,0.1);
}
.error-input::placeholder {
    /*color:rgb(155, 155, 155);*/
}

/******
Features
*******/
.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--sapTileColor);
}
.feature {
    max-width: 15rem;
    margin: 1.5rem;
    text-align: center;
    background: var(--sapBackgroundColor);
    border-radius: var(--sapBorderRadius);
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.feature h3 {
    margin-top: 15px;
    font-size: 1.2rem;
    color: var(--sapAccentColor);
}
.feature img{
    width: 100%;
}
@media (max-width: 40rem) {
    .features {
        padding: 0rem 1.5rem;
    }
}
@media (min-width: 40rem) and (max-width: 52rem) {
    .features {
        padding: 1rem 1.5rem;
    }
    .feature {
        max-width: 7rem;
        font-size: 75%;
        margin:0.5rem
    }
    .feature h3{
        font-size: 1rem;
    }
}
@media (min-width: 52rem) and (max-width: 70rem) {
    
    .feature {
        max-width: 10rem;
    }
}
/******
Screenshots
*******/
.screenshots{
    padding: 60px 0px;
    background: var(--sapBackgroundColor);
    text-align: center;
}

.screenshots h2, .questions h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}
.screenshot {
    width: 200px;
    height: 400px;
    background: white;
    border-radius: var(--sapBorderRadius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin: 20px;
    display: inline-block;
}
/******
Quote
*******/
.quote {
    padding: 3.5rem;
    font-style: italic;
    font-weight: bold;
    text-align: center;
    background-color: var(--sapTileColor);
}
.quote h2{
    font-weight: 800;
}
.quote p{
    font-style: normal;
    font-weight: normal;
    font-size: 120%;
    font-family: "Hubot Sans", sans-serif;
}
/******
Questions Landing
*******/
.questionslanding {
    display:flex;
    justify-content: center;
}
.questionslanding-content {
    width: 90%;
    max-width: 800px;
    margin: 3rem 3rem;
    padding: 3rem 3rem;
    row-gap: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/******
About Landing
*******/
.aboutlanding{
    background: var(--sapTileColor);
}
.aboutlanding-container {
    padding: 3rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.aboutlanding-content {
    flex: 1;
    max-width: 600px;
}
.aboutlanding-content  h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--sapAccentColor);
}
.aboutlanding-content  p {
    font-size: 1.1rem;
    line-height: 1.6;
}
.aboutlanding-image {
    flex: 1;
    text-align: center;
}
.aboutlanding-image img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 900px) {
    .aboutlanding-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    .aboutlanding-content {
        max-width: 100%;
    }
}
/******
Questions
*******/
.questions {
    justify-items: center;
    padding: 3rem 3rem;
    row-gap: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.question, .question-expanded{
    background: var(--questionBackgroundColor);
    border-radius: var(--sapBorderRadius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: block;
    padding: 0.5rem 3rem 0.5rem 3rem;
    cursor: pointer;
    position: relative;
}
.question-expanded{
    cursor: initial;
}
.q-awnser{
    transition: max-height 1s linear;
    max-height: 100rem;
    height: fit-content;
}
.q-arrow{
    /* width: 2rem; */
    height: 2rem;
    /* position: absolute; */
    /* bottom: 0rem; */
    /* left: 50%; */
    transform: rotate(180deg);
    transition: transform 0.3s linear;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2332363a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.question li{
    padding-bottom: 1rem;
}
.q-focusout{
    /* padding-bottom: 0; */
    height: fit-content;
}
.q-focusout .q-awnser{
    transition: max-height 0.3s linear;

    max-height: 4rem;
    overflow: hidden;
    margin-bottom: 0rem;
    position: relative;
    /* transition: height 1s ease; */
}
.q-focusout .q-awnser :first-child{
    margin-top: 0rem;
}
.q-focusout .q-awnser::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5rem;
    background: linear-gradient(to bottom, transparent 0%, var(--questionBackgroundColor) 75%);
}
.q-focusout .q-arrow{
    transform:  rotate(0);
}
.q-to-faq {
    text-align: center;
    padding: 1rem 0;
    display: flex;
    justify-content: center;
}

/******
how-it-works
*******/
.how-it-works{
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}
.how-it-works-title {
    display: flex;
    justify-content: center;
    font-size: 2rem;
    font-family: "Hubot Sans", sans-serif;
}

.how-it-works-body {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: center;
    gap: 2rem 5rem;
}
.how-it-works-steps {
    max-width: 25rem;
    display: flex;
    align-items: center;
}
.how-it-works-steps h3{ 
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.how-it-works-steps ol{ 
    padding-inline-start: 4rem;
    counter-reset: item;
    list-style: none;
}
.how-it-works-steps li{ 
    counter-increment: item;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 3rem;
}
.how-it-works-steps li + li {
    margin-top: 3rem;
}
.how-it-works-steps li::before{
    content: counter(item) ;
    font-weight: bold;
    background-color: var(--freesyLogoFontColor);
    color: var(--sapTileColor);
    position: absolute;
    left: -4rem; /*padding-inline-start:*/
    height: 2.5rem;
    width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* @media (max-width: 58rem) {
    .how-it-works-body {
    flex-direction: row-reverse;
    }
} */
/******
Chat Animation
*******/
.chat-animation.chat-container {
    /* margin: 1.5rem 20px; */
    text-align: left;
    background: var(--sapBackgroundColor);
    max-width: 32rem;
    /* margin: 0 auto; */
    padding: 20px;
    background-color: #e5ddd5; /* Tono similar al fondo de WhatsApp */
    border-radius: var(--sapBorderRadius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden; /* Para que los mensajes no se salgan al animar */
}
.chat-message-container{
    /* width: 100%; */
    opacity: 0; /* Oculto por defecto */
    display: flex;
}
.chat-message {
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 70%;
    /* opacity: 0;  */
}
.chat-message.receiver {
    background-color: #ffffff;
    align-self: flex-start;
    border-top-left-radius: 0;
    width: fit-content;
}
.chat-message-container:has(.receiver){
    justify-content: flex-start;
}

.chat-message.sender {
    background-color: #dcf8c6; 
    align-self: flex-end;
    border-top-right-radius: 0;
    justify-self: end;
    width: fit-content;
}
.chat-message-container:has(.sender){
    justify-content: flex-end;
}
/* Animación */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes spin {
    to {
        visibility: visible;
        transform: rotate(360deg);
    }
}
@keyframes hidden {
    to {
        display: none;
        transform: none;
    }
}
.chat-container.animate .chat-message-container {
    animation: fadeInUp 0.5s ease-out forwards;
}
.chat-container.animate .chat-message-container:nth-child(2) {
    animation-delay: 1s;
}
.chat-container.animate .chat-message-container:nth-child(3) {
    animation-delay: 2s;
}
.chat-container.animate .chat-message-container:nth-child(4) {
    animation-delay: 3s;
}
.chat-container .chat-message-container:nth-child(4)::after { /*spinner*/
    content: '';
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    width: 1em;
    height: 1em;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-left-color: #075E54;
    border-radius: 50%;
    visibility: hidden;
}
.chat-container.animate .chat-message-container:nth-child(4)::after {
    animation: spin 1s linear 4, hidden 0s linear forwards;
    animation-delay: 3.6s, 6s; /* 3,5 = 3 delay mensaje previo + 0,5 duracion de su animacion; 6 = delay de la siguiente animación*/
}
.chat-container.animate .chat-message-container:nth-child(5) {
    animation-delay: 6s; /* .5s (mensaje anterior) + 1.5s de espera */
}

/* ------------------------- */

/* Estilos para la tarjeta de contacto */
.contact-card {
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  color: #333;
}

.contact-icon {
  margin-right: 10px;
  background-color: #ccc;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  fill: #fff;
  width: 24px;
  height: 24px;
}

.contact-info .contact-name {
  font-weight: bold;
}

.contact-info .contact-number {
  font-size: 0.9em;
  color: #666;
}
@keyframes fadeOut {
    to {
        opacity: 0;
        width: 0;
        height: 0;
        margin: 0;
        border: 0;
    }
}
/******
Media Queries
*******/

@media (max-width: 768px) {
    .header-buttons span{
        display: none;
    }
    .cta-form {
    flex-direction: column;
    align-items: stretch;
    }
}

/******
Footer
*******/
footer {
    background: #1c2228;
    color: var( --whiteColor);
    text-align: center;
    padding: 1.5rem;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 1.5rem;
    /* margin: 1.5rem 1rem; */
    font-size: 75%;
}

.footer-logo, .footer-logo img {
    height: 3rem;
}

.footer-links a {
    color: var( --whiteColor);
    text-decoration: none;
    margin-left: 20px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-copyright {
    border-top: 1px solid #444;
    padding-top: 1.5rem;
    font-family: "Hubot Sans", sans-serif;
    font-size: 90%;
}
.footer-disclaimer{
    font-size: 85%;
}
.footer-copyright  p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
    }

    .footer-links a {
        margin-left: 0;
    }
}

.about-container a,
.footer-copyright a {
    color: var(--sapAccentColor);
    text-decoration: none;
}

.about-container a:hover,
.footer-copyright a:hover,
.about-container a:visited,
.footer-copyright a:visited {
    color: var(--sapAccentColor);
}

/******
FAQ Container and Quienes Somos
*******/
.faq-container, .about-container {
    background: var(--sapBackgroundColor);
    display: flex;
    flex-direction: column;
    align-items: center;
    /*padding: 2rem 1.5rem 1rem 1.5rem;*/
}
.faq-hero, .about-hero {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 3rem auto;
}
.faq-hero h1, .about-hero h1 {
    font-size: 2.5rem;
    color: var(--sapPrimaryColor);
    margin-bottom: 1rem;
    font-family: "Hubot Sans", sans-serif;
    line-height: 1.1em;
    font-weight: 900;
}
.faq-hero p, .about-hero p {
    font-size: 1.1rem;
    color: var(--sapTextColor);
    margin: 0;
}
.faq-content, .about-content{
    width: 90%;
    max-width: 800px;
}
/**faq**/
.faq-content.questions{
    padding: 1.5rem 3rem;
    padding: 0!important;
}
.faq .sign-up{
    padding: 1rem 0 1rem 0;
}
/**Quienes Somos**/
.about-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--sapAccentColor);
    font-weight: 600;
}
.about-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}
.about-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}
.about-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
}




/*******
Politica de privacidad y Terminos y Condiciones
********/
.privacity-container, .tc-container{
    /* box-sizing: border-box; */
    padding: 1.5rem;
    max-width: 90rem;
    margin: 0 auto;
    gap: 1.5rem;
}
.privacity-container h1, .tc-container h1{
    font-size: 2.5rem;
    font-family: "Hubot Sans", sans-serif;
    line-height: 1.1em;
    font-weight: 900;
    margin: 0;
    flex-basis: 22rem;
}
.privacity-body, .tc-body{
    flex-grow: 1;
}
.privacity-article, .tc-article{
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.privacity-article h2, .tc-article h2{
    font-weight: 400;
    font-style: italic;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0;
    flex-basis: 15rem;
}
.privacity-article div, .tc-article div{
    margin-top: 1.5rem;
}
.privacity-article div:first-of-type :first-child, .tc-article div:first-of-type :first-child{
    margin: 0;
}
.privacity-article li, .tc-article li{
    margin-block-start: 1em;
    margin-block-end: 1em;
}
@media (min-width: 49.5rem) { /*1,5 padding, +15 h1, +1,5 gap, +30 .body, +1,5 padding*/
    .privacity-container, .tc-container{
        display: flex;
    }
    .privacity-article:first-child, .tc-article:first-child{
        margin: 0;
    }
}
@media (min-width: 66rem) { /*1,5 padding, +15 h1, +1,5 gap, +15 h2 +1,5 gap, +30 p, +1,5 padding*/
    .privacity-article, .tc-article{
        display: flex;
    }
    .privacity-article h2, .tc-article h2{
        min-width: 15rem;
        text-align: right;
    }
    .privacity-article div, .tc-article div{
        margin-top: 0rem;   
    }
}
