/*! 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 WHATSAPP 
------------------------------------------- */

:root {
    --whatsapp-color: #25D366;
    --whatsapp-dark: #128C7E;
    --whatsapp-light: #DCF8C6;
    --text-color: #4A4A4A;
    --text-light: #868686;
    --background: #F8F9FA;
    --card-bg: #FFFFFF;
    --border-radius: 18px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

.header {
    background-color: white;
    box-shadow: var(--shadow);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

.logo-text {
    font-weight: 700;
    font-size: 20px;
    color: var(--whatsapp-dark);
}

.nav-desktop {
    display: flex;
}

.nav-desktop a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-desktop a:hover {
    color: var(--whatsapp-color);
}

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
}

.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: 450px;
    width: 100%;
    text-align: center;
    transition: transform 0.3s;
}

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

.invite-header {
    padding: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 3px solid var(--whatsapp-light);
}

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

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

.invite-body {
    padding: 25px;
}

.join-button {
    display: inline-block;
    background-color: var(--whatsapp-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 13px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    margin-bottom: 20px;
}

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

.additional-info {
    color: var(--text-light);
    font-size: 15px;
}

.additional-info a {
    color: var(--whatsapp-color);
    text-decoration: none;
    font-weight: 500;
}

.additional-info a:hover {
    text-decoration: underline;
}

.footer {
    background-color: white;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-section {
    margin-right: 30px;
    margin-bottom: 20px;
    min-width: 150px;
}

.footer-section h4 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
    padding-left: 0;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--whatsapp-color);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-light);
    font-size: 14px;
}

/* Modales UI adaptados */
.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: 400px;
    width: 100%;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.modal-title {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.modal-button {
    background-color: var(--whatsapp-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.modal-button:hover {
    background-color: var(--whatsapp-dark);
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .mobile-menu-button { display: block; }
    .invite-card { margin: 0 15px; }
    .footer-content { flex-direction: column; }
    .footer-section { margin-right: 0; margin-bottom: 30px; }
}

#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: 5px solid var(--whatsapp-light);
    border-top: 5px solid var(--whatsapp-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Menú móvil */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: white;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu.open {
    transform: translateX(0);
    display: block;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu ul {
    list-style: none;
    margin-top: 60px;
    padding-left: 0;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 10px 0;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--whatsapp-color);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}