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

html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

/* ==================== ESTILO DE ENLACES GLOBALES ==================== */
a:link, a:visited {
    color: #ffffff;
    text-decoration: none;
}

a:hover, a:active {
    color: #ffffff;
    opacity: 0.8;
}

/* ==================== TÍTULO DINÁMICO (HEADER) ==================== */
.topbar {
    display: flex;
    justify-content: flex-start; /* Alineado a la izquierda */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 60px 10px;
}

.dynamic-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 3.5rem;
    font-weight: 700;
    position: relative;
}

.dynamic-logo a {
    color: #ffffff;
}

.dynamic-logo .separator {
    color: #555555;
    font-weight: 400;
}

.dynamic-logo button.menu-trigger {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: opacity 0.2s ease;
}

.dynamic-logo button.menu-trigger:hover {
    opacity: 0.7;
}

.divider {
    width: 100%;
    max-width: 1080px;
    height: 1px;
    background: #333333;
    margin: 0 auto;
}

/* ==================== MENÚ GLOBAL FLOTANTE ==================== */
.floating-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 10px;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 10px 0;
    min-width: 200px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.floating-menu.active {
    display: flex;
    flex-direction: column;
}

.floating-menu a {
    padding: 12px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background 0.2s;
}

.floating-menu a:hover {
    background: #222222;
}

.floating-menu hr {
    border: none;
    border-top: 1px solid #333333;
    margin: 5px 0;
}

/* ==================== MODAL DE LOGIN ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.input {
    background: #000000;
    border: 1px solid #333333;
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 6px;
    width: 100%;
    margin: 10px 0;
    font-size: 1rem;
    box-sizing: border-box;
}

.input:focus {
    outline: none;
    border-color: #666666;
}

.btn-primary {
    background: #e0e0e0;
    color: #000000;
    border: none;
    padding: 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    margin-top: 15px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #ffffff;
}

.bsky-legend {
    margin-top: 25px;
    font-size: 0.95rem;
    color: #888888;
    text-align: center;
    line-height: 1.5;
}

.bsky-legend a {
    text-decoration: underline;
}

/* ==================== CONTENIDO ==================== */
main {
    width: 100%;
    max-width: 1000px;
    margin: 50px auto 0;
    padding: 0 40px;
}

.module {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 55px;
}

.module-text h2 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.module-text p {
    font-size: 1.35rem;
    color: #e0e0e0;
    line-height: 1.4;
    max-width: 500px;
}

.module-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #2f2f2f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: 0.2s;
}

.module-btn:hover {
    background: #4a4a4a;
}

/* ==================== SECCIONES ==================== */
.content-section {
    margin-top: 110px;
}

.content-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 55px;
    font-weight: 700;
}

.content-section p {
    max-width: 820px;
    margin: 0 auto;
    font-size: 1.4rem;
    line-height: 1.5;
    color: #ececec;
}

.content-section a {
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
footer {
    text-align: center;
    padding: 120px 20px 80px;
}

.footer-link {
    font-size: 2.4rem;
    font-weight: 700;
}

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

/* ==================== RESPONSIVO ==================== */
@media (max-width: 900px) {
    .topbar { padding: 20px 30px 10px; }
    main { padding: 0 25px; }
    .module-text h2 { font-size: 2rem; }
    .module-text p { font-size: 1.2rem; }
    .module-btn { width: 110px; height: 110px; font-size: 2rem; }
    .content-section h2 { font-size: 2.5rem; }
    .content-section p { font-size: 1.25rem; }
}

@media (max-width: 768px) {
    .topbar { padding: 20px; }
    .dynamic-logo, .dynamic-logo button.menu-trigger { font-size: 2.5rem; }
    .divider { width: 85%; }
    main { width: 88%; padding: 0; }
    .module { gap: 20px; }
    .module-text h2 { font-size: 2.2rem; }
    .module-text p { font-size: 1.2rem; }
    .module-btn { width: 100px; height: 100px; font-size: 2rem; }
    .content-section { margin-top: 90px; }
    .content-section h2 { font-size: 2.8rem; margin-bottom: 45px; }
    .content-section p { font-size: 1.4rem; }
    .footer-link { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .dynamic-logo, .dynamic-logo button.menu-trigger { font-size: 2rem; }
    .module-text h2 { font-size: 1.8rem; }
    .module-text p { font-size: 1rem; }
    .module-btn { width: 90px; height: 90px; font-size: 1.8rem; }
    .content-section h2 { font-size: 2.2rem; }
    .content-section p { font-size: 1.15rem; }
    .footer-link { font-size: 1.8rem; }
}
