/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
*, :after, :before { box-sizing: border-box; border: 0 solid #e2e8f0; }
a { background-color: transparent; color: inherit; text-decoration: inherit; }

/* -------------------------------------------
   ESTILOS DE LA PLANTILLA DE TELEGRAM 
------------------------------------------- */

:root {
    --telegram-color: #0088cc;
    --telegram-dark: #006699;
    --telegram-light: #E8F5FD;
    --text-color: #333333;
    --text-light: #777777;
    --background: #F5F5F5;
    --card-bg: #FFFFFF;
    --border-radius: 12px;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.header {
    background-color: var(--telegram-color);
    padding: 15px 0;
    position: relative;
    z-index: 100;
    color: white;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 35px;
    margin-right: 10px;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    color: white;
}

.download-button {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 15px;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.arrow-icon {
    margin-left: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content {
    flex-grow: 1;
    padding: 50px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.invite-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    text-align: center;
    transition: transform 0.3s;
}

.invite-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.invite-header {
    padding: 30px;
}

.profile-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-name {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.invite-label {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.invite-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 25px;
    padding: 0 20px;
}

.join-button {
    display: inline-block;
    background-color: var(--telegram-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.join-button:hover {
    background-color: var(--telegram-dark);
}

.additional-info {
    color: var(--text-light);
    font-size: 14px;
    padding: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.additional-info strong {
    color: var(--telegram-color);
}

.footer {
    text-align: center;
    padding: 20px 0;
    background-color: var(--card-bg);
    color: var(--text-light);
    font-size: 14px;
    margin-top: auto;
}

.footer a {
    color: var(--telegram-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Modal UI */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    max-width: 350px;
    width: 100%;
    padding: 25px 25px 70px 25px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-color);
}

.modal-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}

.modal-button {
    color: var(--telegram-color);
    background-color: transparent;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 5px 20px;
}

.modal-button:hover {
    opacity: 0.8;
}

/* Loader Inicial */
#content-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--background);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--telegram-light);
    border-top: 4px solid var(--telegram-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .invite-card {
        margin: 0 15px;
        max-width: 100%;
    }
    .profile-image {
        width: 100px;
        height: 100px;
    }
    .group-name {
        font-size: 22px;
    }
    .invite-header {
        padding: 25px 15px;
    }
}