@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap");

:root {
    --text-color-P: rgba(255, 255, 255, 0.8);
    --text-color-S: #1f2937;
    --text-color-2: #fff9;
    --text-color-3: rgb(216, 216, 216);
    --text-color-4: #4b5563;
    --text-color-especial: #9333ea;
}

* {
    font-family: "Geist", sans-serif;
    font-optical-sizing: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box !important;
    transition: all 0.1s ease-out;
}

html {
    min-height: 100%;
    background: linear-gradient(
        115deg,
        #1c183a 0%,
        #591d85 49%,
        #591d85 50%,
        #591d85 51%,
        #1c183a 100%
    );
    background-repeat: no-repeat;
    background-size: 100% auto;
}

body {
    display: flex;
    flex-direction: column;
    color: var(--text-color-P);
    min-height: 100%;
}

/*-------------- HEADER --------------*/

header {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: none;
    min-width: 100%;
    border-bottom: 1px solid #633e89de;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(15px);
    background-color: #3d1a6664;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
}

header .logo-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0.3px;
}

header .logo-container img {
    width: 40px;
    height: auto;
    margin: 0;
    padding: 0;
}

header .logo-container .logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

header .logo-container .logo-text-container .logo-text {
    font-size: clamp(16px, 2vw, 20px);
    line-height: 28px;
    font-weight: 700;
}

header .logo-container .tagline {
    color: var(--text-color-2);
    font-size: clamp(10px, 1.5vw, 12px);
    line-height: 16px;
}

header ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2vw, 32px);
}

header ul li {
    list-style: none;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color-3);
    cursor: pointer;
    font-weight: 500;
    font-size: clamp(14px, 1.5vw, 16px);
}

header ul li:hover {
    transform: scale(1.01);
    display: inline-block;
    font-weight: 600;
}

header .auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .auth-buttons button {
    align-items: center;
    border-radius: 12px;
    font-size: clamp(12px, 1.5vw, 14px);
    text-align: center;
    padding: clamp(8px, 1.5vw, 11px) clamp(12px, 2vw, 16px);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

header .auth-buttons #loginButton {
    background-color: transparent;
    font-weight: 500;
    color: var(--text-color-3);
    transition: all 0.1s ease-in-out;
}

header .auth-buttons #loginButton:hover {
    background-color: #613b83af;
    font-weight: 600;
    box-shadow: 0 2px 8px 0 rgb(51, 16, 80, 0.3);
}

header .auth-buttons #registerButton {
    background: linear-gradient(to right, #8d5cf6, #a755f7);
    box-shadow: 0 2px 8px 0 rgb(51, 16, 80, 0.3);
    font-weight: 600;
    color: white;
}

@media (max-width: 768px) {
    header ul {
        display: none;
    }

    header .auth-buttons {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    header .logo-container .logo-text-container .tagline {
        display: none; 
    }

    header .auth-buttons {
        flex-direction: column; /
    }
}

/*---------------MAIN---------------*/

main {
    flex: 2;
}

/*-------------- SECTIONS --------------*/

section {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: clamp(2rem, 8vw, 80px) clamp(1rem, 10vw, 100px);
}

section .titleSection,
.principalSection {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 16px);
    margin-bottom: clamp(2rem, 4vw, 48px);
}

section .titleSection .sectionTitle {
    font-size: clamp(1.75rem, 4vw, 36px);
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

section .titleSection .descriptionSection {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    text-align: center;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

@media (max-width: 768px) {
    section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2rem 1rem;
    }
}
/*---------------PRINCIPAL SECTION---------------*/

.principal {
    padding: clamp(2rem, 8vw, 5rem) clamp(1rem, 4vw, 1.5rem);
}

.principal .light {
    border-radius: 9999px;
    width: clamp(15rem, 40vw, 25rem);
    height: clamp(15rem, 40vw, 25rem);
    pointer-events: none;
    top: clamp(1rem, 4vw, 2rem);
    position: absolute;
    filter: blur(30px);
    backdrop-filter: blur(30px);
    z-index: -1;
}

.principal .leftLight {
    background: radial-gradient(
        circle,
        rgba(112, 85, 247, 1) 0%,
        rgba(112, 85, 247, 0.01) 70%,
        transparent 100%
    );
    opacity: 0.1;
    left: clamp(1rem, 4vw, 2.5rem);
}

.principal .rightLight {
    background: radial-gradient(
        circle,
        rgba(236, 72, 153, 1) 0%,
        rgba(236, 72, 153, 0.01) 70%,
        transparent 100%
    );
    opacity: 0.08;
    right: clamp(1rem, 4vw, 2.5rem);
}

@media (max-width: 768px) {
    .principal .light {
        width: 70vw;
        height: 70vw;
    }
}

@media (max-width: 480px) {
    .principal .light {
        width: 90vw;
        height: 90vw;
    }
}

.principal .principalSection {
    gap: 0;
}

.principal .principalSection .titlePrincipal {
    display: inline-block;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin: auto auto 1.5rem;
    color: #ebe3e3;
}

.principal .principalSection .descriptionPrincipal {
    font-size: 24px;
    line-height: 32px;
    color: var(--text-color-3);
    max-width: 48rem;
    margin: auto auto 2rem;
}

.principal .principalContent {
    display: flex;
    flex-direction: column;
    margin: auto auto 3rem;
}

.principal .principalContent button {
    display: flex;
    padding: 0.5rem 1rem;
    font-size: 18px;
    line-height: 28px;
    font-weight: 500;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
    background-color: #18181b;
    background-image: linear-gradient(
        to right,
        rgb(124, 58, 237),
        rgb(147, 51, 234)
    );
    border-radius: 12px;
    text-align: center;
    border: none;
    color: #ebe3e3;
    box-shadow: 0 2px 8px 0 rgb(51, 16, 80, 0.3);
    cursor: pointer;
    gap: 10px;
    transition: all 0.3s ease-in-out;
    width: fit-content;
    margin: auto auto 3rem;
}

.principal .principalContent button:hover {
    background-image: linear-gradient(
        to right,
        rgb(108, 49, 210),
        rgb(133, 45, 215)
    );
    transform: scale(1.02);
}

.principal .principalContent .principalStatistics {
    display: flex;
    gap: 32px;
    width: fit-content;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .principal .principalContent .principalStatistics {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .principal .principalContent .principalStatistics {
        width: 100%;
        gap: 12px;
    }
}

.principal .principalContent .principalStatistics .principalStatistic {
    display: flex;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    color: var(--text-color-2);
    align-items: center;
    justify-content: center;
}

.ti-point-filled {
    color: rgb(82, 219, 88);
}

.ti-circle-dashed-check {
    color: rgb(82, 219, 88);
}

.ti-heart {
    color: tomato;
}

/*---------------IMPORTANT STATISTICS SECTION && ABOUT US SECTION---------------*/

.statistics, .characteristics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: clamp(16px, 3vw, 24px);
    line-height: 24px;
    align-items: stretch;
    justify-content: center;
    padding: 0 clamp(16px, 4vw, 20px);
    margin: 0 auto;
    max-width: 1400px;
}

@media (min-width: 320px) and (max-width: 767px) {
    .statistics, .characteristics {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .statistics, .characteristics {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 24px;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .statistics, .characteristics {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }
}

@media (min-width: 1200px) {
    .statistics, .characteristics {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.statistics .statistic, .characteristics .characteristic {
    display: flex;
    flex-direction: column;
    background-color: #ffffff0d;
    border-color: #ffffff1a;
    border-radius: clamp(12px, 2vw, 16px);
    border-style: solid;
    border-width: 1px;
    box-shadow: 0 2px 8px 0 rgb(51, 16, 80, 0.1);
    line-height: 24px;
    justify-content: center;
    align-items: center;
    padding: clamp(16px, 3vw, 28px);
    text-align: center;
    transition: all 0.3s ease-in-out;
    min-height: 120px; /* Altura mínima para consistencia */
    position: relative;
    overflow: hidden;
}

@media (max-width: 319px) {
    .statistics, .characteristics {
        padding: 0 14px;
        gap: 12px;
    }
    
    .statistics .statistic, .characteristics .characteristic {
        padding: 18px 32px;
        min-height: 100px;
    }
}

@media (min-width: 1400px) {
    .statistics, .characteristics {
        grid-template-columns: repeat(4, minmax(280px, 320px));
        justify-content: center;
    }
}

.statistics .statistic:hover,
.characteristics .characteristic:hover {
    transform: scale(1.06);
    box-shadow: 0 2px 8px 0 rgb(51, 16, 80, 0.3);
    background-color: #ffffff18;
}

.statistics .statistic .iconStatistic,
.characteristics .characteristic .iconCharacteristic {
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(
        to right,
        rgb(139, 92, 246),
        rgb(168, 85, 247)
    );
    border-radius: 12px;
    padding: 12px;
    width: fit-content;
    text-align: center;
    margin-bottom: 12px;
}

.statistics .statistic .iconStatistic i,
.characteristics .characteristic .iconCharacteristic i {
    color: #fff;
    line-height: 24px;
    text-align: center;
    font-size: 24px;
    font-weight: 300;
}

.statistics .statistic .statisticInfo {
    display: flex;
    flex-direction: column;
}

.statistics .statistic .statisticInfo .numberStatistic {
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    margin: 0px 0px 4px;
    text-align: center;
}

.statistics .statistic .statisticInfo .descriptionStatistic {
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.characteristics .characteristic .iconCharacteristic {
    padding: 1rem;
    margin-bottom: 1rem;
    width: 4rem;
    height: 4rem;
}

.characteristics .characteristic .iconCharacteristic i {
    font-size: 34px;
    margin: auto;
    display: flex;
}

.characteristics .characteristic .characteristicTitle {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    margin: 0px 0px 12px;
    text-align: center;
}

.characteristics .characteristic .iconCurrent-location {
    background-image: linear-gradient(
        to right,
        rgb(168, 85, 247),
        rgb(236, 72, 153)
    );
}

.characteristics .characteristic .iconUsers {
    background-image: linear-gradient(
        to right,
        rgb(59, 130, 246),
        rgb(6, 182, 212)
    );
}

.characteristics .characteristic .iconBolt {
    background-image: linear-gradient(
        to right,
        rgb(34, 197, 94),
        rgb(16, 185, 129)
    );
}

.characteristics .characteristic .iconAward {
    background-image: linear-gradient(
        to right,
        rgb(249, 115, 22),
        rgb(239, 68, 68)
    );
}

/*---------------FEATURED ACTIVITIES SECTION---------------*/
.featuredActivities {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.featuredActivities .activities {
    display: grid;
    align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    grid-gap: clamp(16px, 4vw, 32px);
    line-height: 24px;
    margin-bottom: clamp(32px, 6vw, 48px);
    padding: 0 clamp(16px, 4vw, 10px);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Smartphones: 1 columna */
@media (max-width: 767px) {
    .featuredActivities .activities {
        grid-template-columns: 1fr;
    }
}

/* Tablets: 2 columnas */
@media (min-width: 768px) and (max-width: 1023px) {
    .featuredActivities .activities {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* PC: 3 columnas */
@media (min-width: 1024px) {
    .featuredActivities .activities {
        grid-template-columns: repeat(3, 1fr);
    }
}

.featuredActivities .activities .activity {
    display: flex;
    flex-direction: column;
    padding: 1px;
    overflow: hidden;
    background-color: white;
    border-radius: clamp(12px, 2vw, 16px);
    height: 100%;
    box-shadow: 0 2px 8px 0 rgba(40, 11, 62, 0.18);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featuredActivities .activities .activity:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 8px 0 rgba(40, 11, 62, 0.4);
}

.featuredActivities .activities .activity:hover .activityInfo .activityTitle {
    color: var(--text-color-especial);
}

.featuredActivities .activities .activity .activityImage {
    height: 45%;
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.featuredActivities .activities .activity .activityImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    transition: all .3s ease-in-out;
}

.activity:hover .activityImage img {
    transform: scale(.98);
}

.featuredActivities .activities .activity .activityInfo {
    display: flex;
    flex-direction: column;
    background-color: #f6f3f8;
    height: 100%;
    text-align: left;
    color: var(--text-color-4);
    padding: 24px;
}

.featuredActivities .activities .activity .activityInfo .activityTitle {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    margin-bottom: 8px;
    color: var(--text-color-S);
}

.featuredActivities .activities .activity .activityInfo .activityDescription {
    font-size: 15px;
    width: 100%;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -moz-box-orient: vertical;
    -ms-box-orient: vertical;
    box-orient: vertical;
}

.featuredActivities
    .activities
    .activity
    .activityInfo
    .locationDatetime_activity {
    display: flex;
    font-size: 14px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.featuredActivities
    .activities
    .activity
    .activityInfo
    .locationDatetime_activity
    span {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.featuredActivities
    .activities
    .activity
    .activityInfo
    .priceRegistered_activity {
    display: flex;
    justify-content: space-between;
}

.featuredActivities
    .activities
    .activity
    .activityInfo
    .priceRegistered_activity
    .activityPrice {
    background-image: linear-gradient(
        to right,
        rgb(147, 51, 234),
        rgb(219, 39, 119)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.featuredActivities #moreActivities {
    display: flex;
    padding: 0.7rem 1.4rem;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
    background-color: #18181b;
    background-image: linear-gradient(
        to right,
        rgb(124, 58, 237),
        rgb(147, 51, 234)
    );
    border-radius: 12px;
    text-align: center;
    border: none;
    color: #ebe3e3;
    box-shadow: 0 2px 8px 0 rgb(51, 16, 80, 0.3);
    cursor: pointer;
    gap: 10px;
    transition: all 0.3s ease-in-out;
    width: fit-content;
}

.featuredActivities #moreActivities:hover {
    background-image: linear-gradient(
        to right,
        rgb(108, 49, 210),
        rgb(133, 45, 215)
    );
    transform: scale(1.02);
}

/* ---------------INVITATION SECTION--------------- */

.invitationContent {
    background-color: #fff;
    background-image: linear-gradient(
        to right,
        rgb(139, 92, 246),
        rgb(168, 85, 247),
        rgb(236, 72, 153)
    );
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    color: var(--text-color-P);
    text-align: center;
    margin: 4rem auto; /* Ajuste para un margen automático más flexible */
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 6vw, 8rem);    
    box-sizing: border-box;

}

.invitationContent .titleSection {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.invitationContent #goLogin {
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    color: var(--text-color-especial);
    display: inline-flex;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    text-align: center;
    width: fit-content;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    text-decoration: none; /* Mejor práctica para un enlace/botón */
    line-height: 1; /* Asegura la consistencia del tamaño */
}

@media (max-width: 420px) {
    .invitationContent {
        display: none;
    }
}

/*---------------BUTTON UP---------------*/

.up {
    transition: all 0.3s ease-in-out;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999999px;
    border: 1px solid #633e89de;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(15px);
    background-color: #3d1a6664;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    padding: 8px;
    width: 48px;
    height: 48px;
    color: var(--text-color-P);
}

.up:hover {
    background-color: #8338d864;
}

.up i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/*--------------FOOTER SECTION--------------*/

footer {
    border-color: #ffffff1a;
    border-style: solid;
    border-width: 1px 0px 0px;
    line-height: 24px;
    padding: 48px 100px;
}

footer .footer-content {
    display: grid;
    grid-template-columns: 50% repeat(2, 1fr);
    gap: 32px;
}

/*-----------Estilos de las columnas del footer-------------*/

footer .footer-content .aboutWeb {
    display: flex;
    flex-direction: column;
    line-height: 24px;
    /* Elimina width: fit-content; para que ocupe todo el ancho disponible */
    text-align: left;
}

footer .footer-content .aboutWeb .titleAboutWeb {
    display: flex;
    gap: 12px;
    line-height: 24px;
    margin-bottom: 1rem;
    align-items: center; /* Alinea verticalmente el logo y el texto */
}

footer .footer-content .aboutWeb .titleAboutWeb img {
    width: 32px;
    margin: 0;
}

footer .footer-content .aboutWeb .titleAboutWeb span {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    color: var(--text-color-P);
}

footer .footer-content .aboutWeb .descriptionAboutWeb {
    line-height: 26px;
    margin: 0px 0px 16px;
    color: var(--text-color-2);
}

footer .footer-content .aboutWeb .copyRight {
    color: var(--text-color-2);
    font-size: 14px;
    line-height: 20px;
}

footer .fastLinks, footer .supportLinks {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    line-height: 24px;
    gap: 1rem;
    color: var(--text-color-P);
    text-align: left; /* Mantener la alineación a la izquierda en escritorio */
}

footer .fastLinks .fastLinksContent, footer .supportLinksContent {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    color: var(--text-color-2);
    font-weight: 400;
}

footer .fastLinks .fastLinksContent span, footer .supportLinksContent span {
    cursor: pointer;
}

/*-----------Media Query para móviles-------------*/

@media (max-width: 768px) {
    footer {
        padding: 24px; /* Reduce el padding para que se vea mejor en móviles */
    }

    footer .footer-content {
        grid-template-columns: 1fr;
        text-align: center; /* Centra el texto de todas las columnas */
        gap: 3rem; /* Aumenta el espacio entre las secciones apiladas */
    }
    
    footer .footer-content .aboutWeb,
    footer .fastLinks,
    footer .supportLinks {
        text-align: center; /* Asegura que el texto de cada sección esté centrado */
    }

    footer .footer-content .aboutWeb .titleAboutWeb {
        justify-content: center; /* Centra el logo y el texto en móvil */
    }
}