@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #0d0d12;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #00f0ff;
    --secondary: #ff003c;
    --text-main: #e0e0e0;
    --text-muted: #8892b0;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 60, 0.08), transparent 25%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: rgba(13, 13, 18, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    text-decoration: none;
}

.logo {
    height: 45px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    transition: transform 0.3s ease;
}

.logo-container:hover .logo {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), #a200ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

nav {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

ul.menu {
    list-style: none;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

ul.menu li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

ul.menu li a:hover, ul.menu li a.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

ul.menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

ul.menu li a:hover::after, ul.menu li a.active::after {
    width: 80%;
}

main {
    flex: 1;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

section.active {
    display: block;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

p strong {
    color: var(--text-main);
}

.publicacion {
    margin-top: 30px;
    border-radius: 12px;
    overflow: hidden;
    display: inline-block;
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.logo-publicacion {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    transition: transform 0.5s ease;
}

.publicacion:hover .logo-publicacion {
    transform: scale(1.03);
}

.social-links {
    list-style: none;
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.social-links li a {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: all 0.3s ease;
}

.social-links li a:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
}

footer {
    background: rgba(5, 5, 8, 0.9);
    border-top: 1px solid var(--card-border);
    padding: 25px 5%;
    text-align: center;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

footer p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.btn-footer {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-footer:hover {
    color: var(--text-main);
    border-color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

@media (max-width: 900px) {
    header {
        flex-direction: column;
        padding: 20px;
    }
    nav {
        justify-content: center;
    }
    h2 {
        font-size: 2rem;
    }
}

/* Clases de Limpieza y Cumplimiento */
.policy-section {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: -20px;
    z-index: 20;
    position: relative;
    padding: 30px;
}

.policy-section.active {
    display: block;
}

/* Mejoras de Accesibilidad */
img {
    max-width: 100%;
    height: auto;
}

:focus {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 20px;
    right: 20px;
    background: rgba(13, 13, 18, 0.95);
    border: 1px solid var(--card-border);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 16px;
    z-index: 9999;
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner.show {
    bottom: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

.btn-cookie {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-accept {
    background: var(--primary);
    color: #000;
}

.btn-reject {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}
