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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

header {
    background: #111827;
    padding: 20px 40px;
    border-bottom: 1px solid #334155;
}

header h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #cbd5e1;
    transition: 0.3s;
}

nav a:hover {
    color: #38bdf8;
}

main {
    width: min(96%, 1440px);
    margin: 32px auto;
}

section {
    margin-bottom: 60px;
}

h1, h2, h3 {
    margin-bottom: 20px;
}

p {
    color: #94a3b8;
}

footer {
    background: #111827;
    padding: 30px;
    text-align: center;
    border-top: 1px solid #334155;
}

/**************************/
.hero {
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 30px;
    border: 1px solid #1e293b;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.20), transparent 35%),
        linear-gradient(135deg, #111827, #0f172a);
    margin-bottom: 70px;
}

.hero__content {
    max-width: 780px;
    text-align: center;
}

.hero__badge {
    display: inline-block;
    margin-bottom: 20px;
    padding: 8px 16px;
    border: 1px solid #38bdf8;
    border-radius: 999px;
    color: #7dd3fc;
    font-size: 14px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 86px);
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero p {
    max-width: 680px;
    margin: 0 auto 32px;
    font-size: 18px;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 14px;
    font-weight: 700;
    transition: 0.25s;
}

.btn-primary {
    background: #38bdf8;
    color: #020617;
}

.btn-primary:hover {
    background: #7dd3fc;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid #334155;
    color: #e2e8f0;
}

.btn-secondary:hover {
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateY(-2px);
}

.section {
    margin-bottom: 70px;
}

.section__header {
    margin-bottom: 28px;
}

.section__header h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.category-grid,
.card-grid {
    display: grid;
    gap: 20px;
}

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

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

.category-card,
.content-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 22px;
    transition: 0.25s;
}

.category-card {
    min-height: 120px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.category-card:hover,
.content-card:hover {
    border-color: #38bdf8;
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

.category-card__icon {
    font-size: 20px;
}

.category-card__name {
    font-size: 16px;
    font-weight: 600;
}

.content-card__body {
    padding: 26px;
}

.content-card__tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.content-card h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.content-card h3 a:hover {
    color: #38bdf8;
}

@media (max-width: 640px) {
    header {
        padding: 18px 22px;
    }

    nav {
        flex-wrap: wrap;
    }

    main {
        width: 92%;
        margin-top: 25px;
    }

    .hero {
        padding: 60px 22px;
        min-height: auto;
    }
}

/*Cards*/
.category-detail .card-grid, .featured-books .card-grid, .recommended__books .card-grid, 
.search__books .card-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
    gap: 24px;
    justify-content: center;
}

.book-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 18px;
    overflow: hidden;
    transition: .25s;
}

.book-card:hover {
    transform: translateY(-5px);
    border-color: #38bdf8;
    box-shadow: 0 20px 40px rgba(0,0,0,.30);
}

.book-card__image {
    height: 320px;
    background: #020617;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
}

.book-card__cover {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.book-card__body {
    padding: 18px;
}

.book-card__badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, .12);
    color: #7dd3fc;
    font-size: 12px;
    font-weight: 800;
}

.book-card h3 {
    font-size: 18px;
    line-height: 1.4;
}

/*Detail Book*/
.book-detail {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: start;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 28px;
    padding: 34px;
}

.book-detail__cover {
    background: #020617;
    border-radius: 22px;
    padding: 24px;
}

.book-detail__cover img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
}

.book-detail__content h1 {
    font-size: clamp(34px, 5vw, 58px);
    margin-bottom: 20px;
}

.book-detail__content p {
    margin-bottom: 28px;
    font-size: 17px;
}

/*
.ad-box {
    margin-top: 40px;
    min-height: 180px;
    border-radius: 24px;
    background: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
¨*/

@media (max-width: 800px) {
    .book-detail {
        grid-template-columns: 1fr;
    }
}

/*Buscador*/
.hero-search {
    max-width: 680px;
    margin: 0 auto 28px;
    display: flex;
    gap: 10px;
    background: #020617;
    padding: 8px;
    border: 1px solid #1e293b;
    border-radius: 18px;
}

.hero-search input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: none;
    color: #e2e8f0;
    padding: 14px 16px;
    font-size: 16px;
}

.hero-search input::placeholder {
    color: #64748b;
}

.hero-search button {
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    background: #38bdf8;
    color: #020617;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 640px) {
    .hero-search {
        flex-direction: column;
    }

    .hero-search button {
        padding: 14px;
    }

    .category-detail .card-grid, .featured-books .card-grid, .recommended__books .card-grid, 
    .search__books .card-grid{
        display: grid;
        /* En celulares, cada tarjeta ocupa todo el ancho (1 columna completa) */
        grid-template-columns: 1fr; 
        gap: 16px; /* Espacio un poco más pequeño para pantallas chicas */
        padding: 16px;
    }

    #sec_landing .hero-search {
        flex-direction: row !important;
    }
}

/*Detail Article*/
.article-detail {
    max-width: 900px;
    margin: 0 auto;
}

.article-detail__header {
    margin-bottom: 34px;
    text-align: center;
}

.article-detail__header h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
}

.article-detail__header p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 18px;
}

.article-detail__image {
    margin-bottom: 34px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid #1e293b;
}

.article-detail__image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

.article-detail__content {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 26px;
    padding: 34px;
}

.article-detail__content h2,
.article-detail__content h3 {
    margin-top: 28px;
}

.article-detail__content p {
    margin-bottom: 18px;
}

.article-detail__content a {
    color: #38bdf8;
    font-weight: 700;
}

.article-detail__content pre {
    overflow-x: auto;
    padding: 18px;
    border-radius: 16px;
    background: #020617;
    margin: 22px 0;
}

/*Categories*/
.category-detail__header {
    text-align: center;
    padding: 70px 30px;
    margin-bottom: 60px;
    border: 1px solid #1e293b;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 38%),
        #111827;
}

.category-detail__icon {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 48px;
}

.category-detail__header h1 {
    font-size: clamp(40px, 6vw, 72px);
}

.category-detail__header p {
    max-width: 720px;
    margin: 0 auto;
    font-size: 18px;
}

/*Download*/
.download-wait {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.download-wait__card {
    width: 100%;
    max-width: 760px;
    padding: 10px;
    text-align: center;
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 28px;
}

.download-wait__card h1 {
    margin: 20px 0;
    font-size: clamp(34px, 5vw, 54px);
}

.countdown {
    margin: 28px auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #020617;
    border: 3px solid #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    color: #38bdf8;
}

.inline-downloads {
  display: flex;
  align-items: flex-end; /* Alinea los elementos en la parte inferior */
  gap: 15px;             /* Añade separación horizontal entre el botón y el texto */
}

/*Descargar*/
.book-detail__downloads {
    margin-bottom: 22px;
    color: #7dd3fc;
    font-weight: 800;
}

.inline-downloads p {
  margin: 0; /* Elimina el margen que empuja el texto hacia arriba o abajo */
  font-size: 14px;
}

/*Landing*/

/* Contenedor principal del collage */
/* Contenedor principal: organiza las tarjetas inline */
.landing__page {
  display: grid;
  /* Crea columnas automáticas en línea; se adaptan al ancho de la pantalla */
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
  /* Clave 1: Fuerza a que todas las tarjetas de la misma fila midan lo mismo */
  align-items: stretch; 
}

/* Tarjeta individual */
.landing__page .card {
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  /* Clave 2: Permite que el contenido interno se estire verticalmente */
  display: flex;
  flex-direction: column; 
  height: 100%; /* Ocupa el 100% de la altura de la fila */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Imagen fija (estilo Udemy) */
.landing__page .card-img img {
  width: 100%;
  height: 250px; /* Altura idéntica para todas las portadas */

}

/* Contenedor del texto */
.landing__page .card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  /* Clave 3: Empuja todo el bloque de texto para rellenar el espacio sobrante */
  flex-grow: 1; 
}

.landing__page .card-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333333;
}

/* Descripción adaptativa */
.landing__page .card-description {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.5;
  margin-bottom: 20px;
  /* Clave 4: Absorbe el espacio en blanco para empujar el botón al fondo */
  flex-grow: 1; 
}

/* Botón siempre alineado abajo */
.landing__page .card-btn {
  background-color: #4f46e5;
  color: #ffffff;
  border: none;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  margin-top: auto; /* Garantiza alineación perfecta en la base */
  text-align: center;
}

/* --- DISEÑO PARA MÓVILES (Por defecto) --- */
.landing__page .card-grid {
    display: grid;
    /* En celulares, cada tarjeta ocupa todo el ancho (1 columna completa) */
    grid-template-columns: 1fr; 
    gap: 16px; /* Espacio un poco más pequeño para pantallas chicas */
    padding: 16px;
}

/* --- DISEÑO PARA TABLETAS Y COMPUTADORAS --- */
/* Se activa automáticamente cuando la pantalla mide 480px o más */
@media (min-width: 700px) {
    .landing__page .card-grid {
        /* Aquí regresa tu configuración original de tamaño fijo */
        grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
        gap: 24px;
        justify-content: center;
    }
}

.hero-landing {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1e293b;
    border-radius: 28px;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.20), transparent 35%), linear-gradient(135deg, #111827, #0f172a);
}

/*Carusel*/
.carousel {
    position: relative;
}

.carousel__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 4px 22px;
}

.carousel__item {
    flex: 0 0 280px;
}

.carousel__track::-webkit-scrollbar {
    height: 8px;
}

.carousel__track::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 999px;
}

.carousel__btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 1px solid #1e293b;
    border-radius: 50%;
    background: #020617;
    color: #e2e8f0;
    font-size: 30px;
    cursor: pointer;
}

.carousel__btn--left {
    left: -18px;
}

.carousel__btn--right {
    right: -18px;
}

.carousel__btn:hover {
    border-color: #38bdf8;
    color: #38bdf8;
}

/*Button Download*/
#downloadBtn {
    display: inline-block;
    padding: 7px 15px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* Rojo corporativo de MEGA con ligero degradado */
    background: linear-gradient(to bottom, #e02424, #c81e1e); 
    
    border: 1px solid #b21b1b;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(217, 33, 33, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Efecto al pasar el mouse (activo) */
#downloadBtn:hover:not(.disabled) {
    background: linear-gradient(to bottom, #f03030, #d92121);
    box-shadow: 0 5px 12px rgba(217, 33, 33, 0.35);
    transform: translateY(-1px);
}

/* Estado presionado (activo) */
#downloadBtn:active:not(.disabled) {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Estado deshabilitado (Mantiene tu clase .disabled actual) */
#downloadBtn.disabled {
    pointer-events: none;
    background: #555555 !important; /* Gris oscuro para combinar con la estética de MEGA */
    border-color: #444444;
    box-shadow: none;
    opacity: 0.5;
}
#downloadBtnDetail {
    display: inline-block;
    padding: 7px 15px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff !important;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    /* Rojo corporativo de MEGA con ligero degradado */
    background: linear-gradient(to bottom, #2da743, #228433); 
    
    border: 1px solid #1c6b29;
    border-radius: 4px;
    box-shadow: 0 3px 6px rgba(45, 167, 67, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/*Loading chat*/
/*
.landing-hero {
    text-align: center;
    padding: 80px 30px;
    margin-bottom: 70px;
    border: 1px solid #1e293b;
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 40%),
        #111827;
}

.landing-hero h1 {
    margin-top: 18px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1;
}

.landing-hero p {
    max-width: 720px;
    margin: 24px auto 0;
    font-size: 18px;
}

.landing-books-grid {
    margin-bottom: 34px;
}

.book-card__downloads {
    margin-top: 12px;
    color: #7dd3fc;
    font-size: 14px;
    font-weight: 800;
}

.books-loader {
    display: none;
    text-align: center;
    color: #7dd3fc;
    font-weight: 800;
    padding: 24px;
}

.books-loader.is-active {
    display: block;
}

#booksSentinel {
    height: 1px;
}
*/

.books-loader {
    display: none;
    text-align: center;
    color: #7dd3fc;
    font-weight: 800;
    padding: 24px;
}

.books-loader.is-active {
    display: block;
}

#booksSentinel {
    height: 1px;
}

#sec_landing {
    margin-bottom: 0px !important;
}

.book-card__downloads {
    text-align: center;
    color: #c55a3d;
    background: #c55a3d29;
}

.books-empty {
    display: none;
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed #334155;
    border-radius: 22px;
    color: #94a3b8;
    font-weight: 700;
}

.books-empty.is-active {
    display: block;
}

/*Cargar mas*/
.books-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #7dd3fc;
    font-weight: 800;
    padding: 24px;
}

.books-loader.is-active {
    display: flex;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #1e293b;
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/****Contacto*****/
.static-page {
    max-width: 920px;
    margin: 0 auto;
}

.static-page__header {
    text-align: center;
    margin-bottom: 40px;
}

.static-page__header h1 {
    margin-top: 18px;
    font-size: clamp(38px, 6vw, 68px);
}

.contact-form {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 28px;
    padding: 34px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #334155;
    background: #020617;
    color: #e2e8f0;
    outline: none;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #38bdf8;
}

.alert {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 16px;
    font-weight: 700;
}

.alert-success {
    background: rgba(34, 197, 94, .12);
    border: 1px solid rgba(34, 197, 94, .35);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .35);
    color: #fca5a5;
}

.alert ul {
    margin-left: 18px;
}
/*Pages legals*/
.legal-content {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 28px;
    padding: 34px;
}

.legal-content h2 {
    margin-top: 26px;
    margin-bottom: 10px;
    color: #e2e8f0;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 16px;
}

/*Menu*/
.site-header {
    background: #111827;
    padding: 20px 40px;
    border-bottom: 1px solid #334155;
}

.site-header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: #020617;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 22px;
    cursor: pointer;
}

.main-nav {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
}

.main-nav a,
.nav-dropdown__button {
    color: #cbd5e1;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.main-nav a:hover,
.nav-dropdown__button:hover {
    color: #38bdf8;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown__menu {
    display: none;
    position: absolute;
    top: 32px;
    right: 0;
    min-width: 230px;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 10px;
    z-index: 20;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
    display: grid;
    gap: 8px;
}

@media (max-width: 768px) {
    .site-header {
        padding: 18px 22px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        margin-top: 18px;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .main-nav.is-open {
        display: flex;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown__menu {
        position: static;
        margin-top: 10px;
        width: 100%;
    }

    .nav-dropdown.is-open .nav-dropdown__menu {
        display: grid;
    }

    .nav-dropdown:hover .nav-dropdown__menu {
        display: none;
    }

    .nav-dropdown.is-open:hover .nav-dropdown__menu {
        display: grid;
    }
}

/**Banner Cookies*/
.cookie-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: none;
}

.cookie-banner.is-visible {
    display: block;
}

.cookie-banner__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(2, 6, 23, .96);
    border: 1px solid #334155;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.cookie-banner p {
    margin: 0;
    color: #cbd5e1;
}

.cookie-banner a {
    color: #38bdf8;
}

@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
    }
}

/*views articles*/
.article-detail__views {
    margin-top: 14px;
    color: #7dd3fc;
    font-weight: 800;
}


/**Footer*/

.site-footer {
    margin-top: 90px;
    padding: 50px 40px 24px;
    background: #020617;
    border-top: 1px solid #1e293b;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 34px;
    max-width: 1180px;
    margin: 0 auto;
}

.site-footer__brand h2 {
    margin-bottom: 14px;
    color: #e2e8f0;
}

.site-footer__brand p {
    max-width: 420px;
    color: #94a3b8;
}

.site-footer__section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__section h3 {
    margin-bottom: 8px;
    color: #e2e8f0;
}

.site-footer__section a {
    color: #94a3b8;
}

.site-footer__section a:hover {
    color: #38bdf8;
}

.site-footer__bottom {
    max-width: 1180px;
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 22px 22px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }
}


/*Erro 404*/
.error-page {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.error-page__content {
    max-width: 700px;
    text-align: center;
}

.error-page__content h1 {
    margin: 20px 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.1;
}

.error-page__content p {
    margin-bottom: 28px;
    color: #94a3b8;
    font-size: 18px;
}


/*Social*/
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.social-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 24px;
    padding: 28px;
}

.social-card__badge {
    display: inline-block;
    margin-bottom: 16px;
    color: #7dd3fc;
    font-weight: 800;
}

.social-card h2 {
    margin-bottom: 12px;
}

.social-card p {
    margin-bottom: 22px;
}

@media (max-width: 900px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

/*Join*/
.join-grid {
    display: grid;
    /*grid-template-columns: repeat(3, 1fr);*/
    gap: 24px;
}

.join-card {
    background: #111827;
    border: 1px solid #1e293b;
    border-radius: 24px;
    padding: 28px;
}

.join-card__icon {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: rgba(56, 189, 248, .12);
    font-size: 28px;
}

.join-card h2 {
    margin-bottom: 12px;
}

.join-card p {
    margin-bottom: 22px;
}

@media (max-width: 900px) {
    .join-grid {
        grid-template-columns: 1fr;
    }
}

/*Button Back Top*/
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 110px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #334155;
    background: #020617;
    color: #38bdf8;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: .25s ease;
    z-index: 998;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #38bdf8;
    color: #020617;
}

/*Modal*/
.promo-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, .82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.promo-modal.is-visible {
    display: flex;
}

.promo-modal__box {
    position: relative;
    max-width: 560px;
    width: 100%;
    padding: 38px;
    border-radius: 30px;
    background: linear-gradient(135deg, #0f172a, #020617);
    border: 1px solid #334155;
    box-shadow: 0 30px 100px rgba(0,0,0,.55);
    text-align: center;
}

.promo-modal__box h2 {
    margin: 18px 0 14px;
    font-size: clamp(30px, 5vw, 48px);
}

.promo-modal__box p {
    margin-bottom: 26px;
    color: #cbd5e1;
}

.promo-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 30px;
    cursor: pointer;
}

/*Button LEft*/
.facebook-float {
    position: fixed;
    left: 0;
    top: 45%;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 6px;
    transform: translateY(-50%);
}

.facebook-float.is-hidden {
    display: none;
}

.facebook-float a {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    background: #1877f2;
    color: white;
    padding: 18px 10px;
    border-radius: 0 14px 14px 0;
    font-weight: 900;
}

.facebook-float__close {
    background: #020617;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    padding: 6px 8px;
}