@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
    --header-height: 3.5rem;

    --primary-color: #E53935;
    --green-color: #43A047;
    --yellow-color: #FDD835;
    --purple-color: #8E24AA;
    --blue-color: #1E88E5;
    --dark-color: #1a1a1a;
    --light-color: #FFFFFF;
    --text-color: #333;
    --body-color: #f5f5f5;

    --body-font: 'Poppins', sans-serif;
    --big-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;

    --z-fixed: 100;
    --z-tooltip: 10;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    overflow-y: auto; /* Asegura que el scroll vertical siempre esté disponible */
}

h1, h2, h3 {
    color: var(--dark-color);
    font-weight: 700;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: 4rem 0 2rem;
}

.section__title {
    font-size: var(--h2-font-size);
    text-align: center;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.container {
    max-width: 968px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    opacity: 1; /* Aseguramos que la sección sea visible por defecto */
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.is-visible {
    /* La animación ahora se puede usar para efectos más sutiles si se desea */
    transform: translateY(0);
}

.button {
    display: inline-block;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 1rem 1.75rem;
    border-radius: .5rem;
    font-weight: 600;
    transition: .3s;
    border: none;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.button--primary {
    background-color: var(--purple-color);
    color: var(--light-color);
}

.button--primary:hover {
    background-color: #7b1fa2;
}

.button--secondary {
    background-color: var(--blue-color);
}

.button--full {
    width: 100%;
}

.button--small {
    padding: .6rem 1.2rem;
    font-size: var(--small-font-size);
}

.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: .3s;
}

.header.scrolled {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--dark-color);
    font-weight: 700;
}

.nav__logo-img {
    width: auto;
    height: 45px;
    border-radius: 0;
}

.nav__toggle, .nav__close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: var(--light-color);
        padding: 6rem 2rem 0;
        transition: .4s ease-in-out;
        z-index: var(--z-fixed);
    }
}

.nav__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    color: var(--dark-color);
    font-weight: 600;
    transition: .3s;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.show-menu {
    right: 0;
}

.hero {
    padding: 0;
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/banner.jpg');
    background-size: cover;
    background-position: center 40%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: center;
    padding-bottom: 6rem;
}

.hero__container {
    margin-top: auto;
}

.hero__title {
    font-size: 1.8rem;
    color: var(--light-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero__title .highlight {
    color: var(--yellow-color);
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--light-color);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero .button {
    padding: 18px 35px;
    font-size: 1.1rem;
}

.hero__hashtag {
    display: block;
    margin-top: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;    
    color: var(--yellow-color);
    font-size: 1.5rem;
}

.proposals__container {
    display: flex;
    flex-wrap: wrap; /* Permite que las tarjetas pasen a la siguiente línea si no caben */
    justify-content: center; /* Centra las tarjetas en el contenedor */
    gap: 20px; /* Espacio entre las tarjetas */
}

.card {
    background-color: var(--light-color);
    flex-basis: 300px; /* Ancho base de cada tarjeta, ajústalo si es necesario */
    flex-grow: 1; /* Permite que crezcan para ocupar el espacio disponible */
    border-top: 8px solid transparent; /* Crea el espacio para el color */
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Sombra suave */
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* Efecto al pasar el cursor */
}

.card h4 {
    font-size: var(--h3-font-size);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 0.75rem;
}

.card li {
    margin-bottom: 0.5rem;
}

/* Asignación de colores del Pacto Histórico */
.card-1 { border-color: #8E24AA; } /* Morado */
.card-2 { border-color: #43A047; } /* Verde */
.card-3 { border-color: #E53935; } /* Rojo */
.card-4 { border-color: #FDD835; } /* Amarillo */
.card-5 { border-color: #1E88E5; } /* Azul */
}

.proposal-extra__container {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 4rem;
}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: .5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.proposal-extra__image {
    flex: 1;
}

.proposal-extra__text {
    flex: 1.5;
}

.proposal-extra__text h3 {
    font-size: var(--h3-font-size);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.proposal-extra__text p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about__container {
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about__data {
    order: 2;
}

.about__media {
    order: 1;
}

.press__container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.press-card {
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: .5rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform .3s, box-shadow .3s;
}

.press-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.press-card__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.press-card__content {
    padding: 1.5rem;
}

.press-card__title {
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}

.press-card__excerpt {
    margin-bottom: 1rem;
    font-size: var(--small-font-size);
    color: #ddd;
}

.testimonials__container {
    position: relative;
    min-height: 300px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
}

.testimonial__img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--light-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.testimonial__text {
    max-width: 600px;
}

.testimonial__text blockquote {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.testimonial__text cite {
    font-weight: 700;
    color: var(--primary-color);
}

.join__container {
    background-color: var(--purple-color);
    color: var(--light-color);
    padding: 3rem 2rem;
    border-radius: .5rem;
}

.join__content .section__title {
    color: var(--light-color);
    text-align: center;
}

.join__description {
    margin-bottom: 2rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.join__form {
    max-width: 500px;
    margin: 0 auto;
}

.form__group input, .form__group select {
    width: 100%;
    padding: .75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: .5rem;
    margin-bottom: 1rem;
    font-family: var(--body-font);
    transition: border-color .3s;
}

.form__group input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

.form__group select {
    color: rgba(255, 255, 255, 0.8);
}

.form__group select option {
    color: var(--dark-color);
}

.form__group input:focus, .form__group select:focus {
    outline: none;
    border-color: var(--yellow-color);
}

.join__form .button {
    font-size: 1.1rem;
    font-weight: bold;
}

.form-container {
  transition: box-shadow 0.3s ease-in-out;
}

.form-container:hover {
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
}

.crowdfunding__container {
    text-align: center;
    background-color: var(--light-color);
    padding: 3rem 1.5rem;
    border-radius: .5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.crowdfunding__description {
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.faq__item {
    background-color: var(--light-color);
    border-radius: .5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    cursor: pointer;
}

.faq__question {
    font-size: var(--normal-font-size);
    font-weight: 600;
}

.faq__icon {
    transition: transform .3s;
}

.faq__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease-out;
}

.faq__content p {
    padding: 0 1.25rem 1.25rem;
    line-height: 1.6;
}

.faq__item.active .faq__icon {
    transform: rotate(180deg);
}

.footer {
    background-color: #1E88E5;
    color: #FFFFFF;
    padding: 2rem 0 1.5rem;
    text-align: center;
}

.footer__title {
    color: var(--light-color);
    font-size: var(--h3-font-size);
    margin-bottom: 1rem;
}

.footer__social {
    margin-bottom: 1rem;
}

.footer__social-link {
    color: var(--light-color);
    font-size: 1.5rem;
    margin: 0 .75rem;
    transition: color .3s;
}

.footer__social-link:hover {
    color: var(--primary-color);
}

.footer__copy, .footer__hashtag {
    display: block;
    font-size: var(--small-font-size);
    color: #FFFFFF;
}

.footer__hashtag {
    margin-top: .5rem;
    color: var(--yellow-color);
    font-weight: 600;    
    font-size: 1.5rem;
}

.bg-yellow { background-color: var(--yellow-color); }
.bg-blue { background-color: var(--blue-color); }
.bg-green { background-color: var(--green-color); }
.bg-purple { background-color: var(--purple-color); }

@media screen and (max-width: 767px) {
    .testimonial-slide {
        flex-direction: column;
    }
}

@media screen and (min-width: 768px) {
    body {
        margin: 0;
    }

    .nav {
        height: calc(var(--header-height) + 1rem);
        gap: 2rem; 
    }

    .nav__list {
        flex-direction: row;
        gap: 2.5rem;
    }

    .nav__toggle, .nav__close {
        display: none;
    }

    .section {
        padding: 6rem 0 2rem;
    }

    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__title {
        font-size: 3.5rem;
    }

    .about__container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    .testimonial-slide {
        flex-direction: row;
        gap: 2rem;
        text-align: left;
    }

    .join__container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 3rem;
        padding: 3rem;
    }

    .join__content .section__title {
        text-align: left;
    }
}

@media screen and (min-width: 1024px) {
    .container {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__title {
        font-size: 4rem;
    }
}