/* === Variables === */
:root {
    --color-bg: #1A1A1A;
    --color-bg-light: #F5F1EB;
    --color-surface: #252525;
    --color-surface-light: #FFFFFF;
    --color-accent: #C9A962;
    --color-accent-hover: #B89855;
    --color-text: #FFFFFF;
    --color-text-dark: #333333;
    --color-muted: #9A9A9A;
    --color-border: rgba(255, 255, 255, 0.1);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    --sidebar-width: 260px;
}

/* === Reset === */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    margin: 0 0 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* === Layout === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container.narrow {
    max-width: 800px;
}

.container.wide {
    max-width: 1400px;
}

/* === Public layout === */
.public-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.public-header {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
    background-color: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-serif {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-text);
    font-style: italic;
}

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

.logo-img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.sidebar .logo-img {
    max-height: 44px;
}

.admin-logo-preview {
    max-width: 220px;
    max-height: 120px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    background: var(--color-bg);
    display: block;
}

.public-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.public-nav a {
    color: var(--color-text);
    font-size: 0.95rem;
}

.public-footer {
    margin-top: auto;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    color: var(--color-muted);
    font-size: 0.875rem;
}

/* === Member layout === */
.member-layout {
    display: flex;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--color-surface);
    padding: 2rem 1.5rem;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--color-border);
}

.sidebar .logo {
    display: block;
}

.sidebar > .logo {
    margin-bottom: 2.5rem;
}

.sidebar-brand {
    margin-bottom: 3rem;
}

.sidebar-brand .logo {
    margin-bottom: 0.35rem;
}

.admin-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    border: 1px solid rgba(201, 169, 98, 0.4);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar-nav a {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: var(--color-text);
    transition: background 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-footer a {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.sidebar-footer a:hover {
    color: var(--color-text);
}

.back-to-site {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent) !important;
}

.back-to-site:hover {
    color: var(--color-accent-hover) !important;
}

.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2.5rem;
}

.member-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: -2.5rem -2.5rem 1.5rem;
    padding: 1rem 2.5rem;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background-color: rgba(26, 26, 26, 0.92);
    backdrop-filter: blur(10px);
    z-index: 50;
}

/* === Notifications dropdown === */
.notifications-wrapper {
    position: relative;
}

.notifications-toggle {
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.notifications-toggle:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.notifications-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #d9534f;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 2rem);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1000;
    overflow: hidden;
}

.notifications-dropdown.hidden {
    display: none;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.notifications-header .btn-link {
    background: none;
    border: none;
    color: var(--color-accent);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}

.notifications-header .btn-link:hover {
    text-decoration: underline;
}

.notifications-list {
    max-height: 360px;
    overflow-y: auto;
}

.notifications-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0;
}

.notifications-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
    transition: background-color 0.2s;
}

.notifications-item:last-child {
    border-bottom: none;
}

.notifications-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    text-decoration: none;
}

.notifications-item.unread {
    background-color: rgba(201, 169, 98, 0.06);
}

.notifications-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 0.4rem;
}

.notifications-item.unread .notifications-dot {
    background-color: var(--color-accent);
}

.notifications-item:not(.unread) .notifications-dot {
    background-color: var(--color-border);
}

.notifications-body {
    flex: 1;
    min-width: 0;
}

.notifications-title {
    font-weight: 500;
    font-size: 0.9rem;
    margin: 0 0 0.25rem;
}

.notifications-message {
    color: var(--color-muted);
    font-size: 0.85rem;
    margin: 0 0 0.35rem;
    line-height: 1.4;
}

.notifications-time {
    color: var(--color-muted);
    font-size: 0.75rem;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg);
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

/* Las tarjetas de precios tienen fondo claro: el outline debe ser oscuro */
.pricing-card .btn-outline {
    color: var(--color-text-dark);
    border-color: var(--color-text-dark);
}

.pricing-card .btn-outline:hover {
    background-color: var(--color-text-dark);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* === Hero === */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* === Sections === */
.section {
    padding: 5rem 0;
}

.section-light {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.section-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.section-light .section-subtitle {
    color: #666;
}

/* === Features === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    padding: 2rem;
    background-color: var(--color-surface-light);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* === Pricing === */
.pricing-section {
    position: relative;
    overflow: hidden;
}

.pricing-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.pricing-particles .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 8s ease-in-out infinite;
}

.pricing-particles .particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.pricing-particles .particle:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; width: 12px; height: 12px; }
.pricing-particles .particle:nth-child(3) { top: 60%; left: 5%; animation-delay: 2s; }
.pricing-particles .particle:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 3s; width: 6px; height: 6px; }
.pricing-particles .particle:nth-child(5) { bottom: 30%; left: 20%; animation-delay: 4s; width: 10px; height: 10px; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-40px) rotate(180deg); opacity: 0.5; }
}

.pricing-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem auto 0;
    max-width: 980px;
    align-items: stretch;
}

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

.pricing-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8f6f2 100%);
    color: var(--color-text-dark);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    border: 1px solid rgba(201, 169, 98, 0.15);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.pricing-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.pricing-card:hover .pricing-card-glow {
    opacity: 1;
}

.pricing-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.pricing-card:hover .pricing-card-shine {
    left: 150%;
}

.pricing-card.featured {
    border: 2px solid var(--color-accent);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-12px);
}

.launch-badge {
    position: absolute;
    top: 1.25rem;
    right: -2.5rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 0.35rem 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transform: rotate(35deg);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
    z-index: 2;
}

.badge-limited {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pricing-card h2 {
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
}

.price-box {
    background: rgba(201, 169, 98, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
    border: 1px dashed rgba(201, 169, 98, 0.3);
}

.yearly-box {
    background: rgba(201, 169, 98, 0.12);
    border: 1px solid rgba(201, 169, 98, 0.25);
}

.price-launch {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin: 0;
    line-height: 1.1;
}

.price-launch small {
    font-size: 1rem;
    color: var(--color-muted);
    font-weight: 400;
}

.yearly-price {
    font-size: 2rem;
}

.price-regular {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin: 0.5rem 0 0;
}

.price-regular del {
    opacity: 0.7;
}

.savings-badge {
    display: inline-block;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 0.75rem;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.25);
    animation: pulseBadge 2s ease-in-out infinite;
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    margin-top: 0.6rem;
    margin-right: 0.4rem;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
    transform: rotate(-3deg);
}

.bonus-badge {
    display: block;
    margin-top: 0.6rem;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.85rem;
}

.pricing-faq {
    max-width: 760px;
    margin: 4rem auto 0;
    text-align: left;
}

.pricing-faq h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(201, 169, 98, 0.25);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--color-text-dark);
    list-style: none;
    position: relative;
    padding-right: 3rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--color-accent);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item p {
    padding: 0 1.25rem 1.25rem;
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

@keyframes pulseBadge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
    flex: 1;
}

.pricing-card li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.pricing-card li .check {
    color: var(--color-accent);
    font-weight: 700;
    flex-shrink: 0;
}

.pricing-card li.includes-previous {
    font-weight: 600;
    color: var(--color-text-dark);
    background: rgba(201, 169, 98, 0.12);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    border-bottom: none;
    margin-bottom: 0.4rem;
}

.pricing-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-card .btn-block {
    width: 100%;
    text-align: center;
}

.btn-glow {
    position: relative;
    animation: glowButton 2s ease-in-out infinite;
}

@keyframes glowButton {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(201, 169, 98, 0.25); }
}

.pricing-card.free-plan {
    background: linear-gradient(145deg, #fafafa 0%, #f0eeea 100%);
}

.pricing-card.free-plan .btn-outline {
    background-color: var(--color-text-dark);
    color: #ffffff;
    border-color: var(--color-text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.pricing-card.free-plan .btn-outline:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(201, 169, 98, 0.35);
}

.pricing-card.free-plan-wide {
    margin-top: 2rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    padding: 2rem 2.5rem;
}

.free-plan-main {
    flex: 0 0 auto;
    min-width: 220px;
}

.free-plan-main h2 {
    margin-top: 0;
}

.free-plan-main .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.25rem 0 1rem;
}

.free-plan-list {
    flex: 1 1 340px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 768px) {
    .free-plan-list {
        grid-template-columns: 1fr;
    }
}

.pricing-card.free-plan-wide .btn-outline {
    align-self: flex-start;
}

.launch-banner {
    position: relative;
    background: linear-gradient(135deg, var(--color-accent) 0%, #d4ac5e 100%);
    color: var(--color-text-dark);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    animation: bannerGlow 3s ease-in-out infinite;
}

@keyframes bannerGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 98, 0.3); }
    50% { box-shadow: 0 0 30px 8px rgba(201, 169, 98, 0.2); }
}

.launch-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    animation: starSpin 4s linear infinite;
}

@keyframes starSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.launch-banner h2 {
    margin: 0 0 0.5rem;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.launch-banner p {
    margin: 0;
    opacity: 0.9;
}

/* === Auth === */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background-color: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    border: 1px solid var(--color-border);
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-sans);
}

.form-group select {
    background-color: var(--color-surface);
    color: var(--color-text);
}

.form-group select option {
    background-color: var(--color-surface);
    color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-check input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.error {
    display: block;
    color: #e57373;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* === Avisos de estado (p. ej. configuración SMTP en admin) === */
.alert {
    display: block;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.alert-warning {
    background: #fdf3e0;
    color: #8a6d1d;
    border-color: #ecd9a8;
}

.alert-success {
    background: #e8f6ec;
    color: #256b3a;
    border-color: #bfe6c9;
}

.alert-error {
    background: #fdeaea;
    color: #9c2b2b;
    border-color: #f3c2c2;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

/* === Dashboard === */
.page-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: var(--color-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    background-color: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.75rem;
    border: 1px solid var(--color-border);
}

.card h2 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.text-muted {
    color: var(--color-muted);
}

/* === GDPR === */
.gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 1rem 0;
    z-index: 1000;
}

.gdpr-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.gdpr-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* === Library === */
.library-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

.library-filters {
    background-color: var(--color-surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    height: fit-content;
}

.filter-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.filter-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--color-muted);
}

.filter-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-section li {
    margin-bottom: 0.5rem;
}

.filter-section a {
    color: var(--color-text);
    font-size: 0.95rem;
}

.filter-section a.active,
.filter-section a:hover {
    color: var(--color-accent);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-size: 0.85rem;
    border: 1px solid var(--color-border);
}

.tag:hover,
.tag.active {
    background-color: var(--color-accent);
    color: var(--color-bg);
    text-decoration: none;
    border-color: var(--color-accent);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.content-card {
    background-color: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.content-card a {
    color: var(--color-text);
    text-decoration: none;
}

.content-cover {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #333;
}

.content-cover-large {
    aspect-ratio: 21 / 9;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    margin-bottom: 2rem;
    background-color: #333;
}

.content-info {
    padding: 1.25rem;
}

.content-info h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.content-info p {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0;
}

.badge {
    position: absolute;
    top: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-vip {
    right: 0.75rem;
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.badge-inaug {
    right: 0.75rem;
    background-color: #7a1f2b;
    color: #f5e6c8;
    border: 1px solid var(--color-accent);
}

.badge-type {
    left: 0.75rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
}

/* Badges de acceso en eventos del calendario */
.event-badge {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.event-badge-free {
    background-color: rgba(46, 160, 103, 0.15);
    color: #2ea067;
}

.event-badge-membership {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

.event-badge-paid {
    background-color: rgba(200, 90, 60, 0.15);
    color: #c85a3c;
}

.favorites-nav {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.favorites-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 2rem;
}

.favorites-section > h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* === Content detail === */
.content-detail {
    max-width: 900px;
}

.content-header {
    margin-bottom: 2rem;
}

.content-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0 0.5rem;
}

.content-header h2 {
    font-size: 1.35rem;
    color: var(--color-muted);
    font-weight: 400;
}

.media-player-wrapper {
    margin: 2rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: #000;
}

.media-player-wrapper audio,
.media-player-wrapper video {
    width: 100%;
    display: block;
}

.media-native-hidden {
    display: none !important;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--color-surface);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.btn-play {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background-color: var(--color-accent);
    color: var(--color-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-play:hover {
    background-color: var(--color-accent-hover);
}

.btn-play svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.icon-pause {
    display: none;
}

.is-playing .icon-play {
    display: none;
}

.is-playing .icon-pause {
    display: block;
}

.btn-backward,
.btn-forward {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
}

.progress-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.seek-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--color-accent);
    cursor: pointer;
}

.seek-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--color-accent);
    cursor: pointer;
    border: none;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.speed-control {
    position: relative;
    flex-shrink: 0;
}

.btn-speed {
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 60px;
}

.speed-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 80px;
    margin-bottom: 0.5rem;
    z-index: 10;
}

.speed-menu.show {
    display: block;
}

.speed-menu button {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: none;
    background: none;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
}

.speed-menu button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.content-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 2rem;
}

.content-meta {
    margin-bottom: 1.25rem;
    color: var(--color-muted);
}

.content-meta .tag {
    margin-left: 0.5rem;
}

.related-content {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.dashboard-section {
    margin-bottom: 3rem;
}

.dashboard-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* === Dashboard hero === */
.dashboard-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.15) 0%, rgba(37, 37, 37, 0.6) 50%, rgba(201, 169, 98, 0.08) 100%);
    border: 1px solid rgba(201, 169, 98, 0.25);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-bottom: 3rem;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 30%, rgba(201, 169, 98, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(201, 169, 98, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.dashboard-hero-content {
    position: relative;
    z-index: 2;
}

.dashboard-hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    border: 1px solid rgba(201, 169, 98, 0.4);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.dashboard-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.dashboard-hero p {
    color: var(--color-muted);
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
}

.dashboard-particles {
    z-index: 1;
}

.dashboard-particles .particle:nth-child(1) { left: 8%; top: 15%; }
.dashboard-particles .particle:nth-child(2) { left: 22%; top: 75%; animation-delay: 1s; }
.dashboard-particles .particle:nth-child(3) { left: 45%; top: 25%; animation-delay: 2s; }
.dashboard-particles .particle:nth-child(4) { left: 62%; top: 80%; animation-delay: 0.5s; }
.dashboard-particles .particle:nth-child(5) { left: 78%; top: 20%; animation-delay: 1.5s; }
.dashboard-particles .particle:nth-child(6) { left: 92%; top: 60%; animation-delay: 2.5s; }

/* === Quick access cards === */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.quick-access-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.quick-access-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.quick-access-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(201, 169, 98, 0.35);
    text-decoration: none;
}

.quick-access-card:hover::before {
    opacity: 1;
}

.quick-access-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.quick-access-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.quick-access-desc {
    display: block;
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.4;
}

/* === Floating action button === */
.fab-dashboard {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(201, 169, 98, 0.35);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 90;
}

.fab-dashboard:hover {
    transform: scale(1.08) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(201, 169, 98, 0.45);
    text-decoration: none;
    color: var(--color-bg);
}

/* === Calendar === */
.calendar-layout {
    display: grid;
    gap: 2rem;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.calendar-header h2 {
    font-size: 1.75rem;
    margin: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    background-color: var(--color-surface);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--color-border);
}

.calendar-weekday {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-muted);
    padding: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 80px;
}

.calendar-day.empty {
    background-color: transparent;
}

.calendar-day-number {
    font-size: 0.9rem;
    color: var(--color-text);
}

.calendar-day.has-events {
    border: 1px solid rgba(201, 169, 98, 0.3);
}

.calendar-day-events {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.calendar-event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.calendar-list {
    margin-top: 2.5rem;
}

.calendar-list h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.calendar-event-card,
.event-mini-card {
    display: flex;
    gap: 1rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.calendar-event-date,
.event-mini-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 64px;
    background-color: rgba(201, 169, 98, 0.1);
    border-radius: var(--radius);
    color: var(--color-accent);
}

.calendar-event-day,
.event-mini-day {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.calendar-event-month,
.event-mini-month {
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.calendar-event-info,
.event-mini-info {
    flex: 1;
}

.calendar-event-info h4,
.event-mini-info h3 {
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
}

.calendar-event-info p,
.event-mini-info p {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
}

.calendar-event-meta,
.event-mini-meta {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.events-mini-list {
    display: grid;
    gap: 1rem;
}

.btn-event-favorite {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--color-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.btn-event-favorite:hover,
.btn-event-favorite.favorited {
    color: #e74c3c;
}

/* === Community === */
.community-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
}

.community-channels {
    background-color: var(--color-surface);
    border-radius: var(--radius);
    padding: 1rem;
    border: 1px solid var(--color-border);
    height: fit-content;
}

.channel-link {
    display: block;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.channel-link:hover,
.channel-link.active {
    background-color: rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.channel-link.channel-vip {
    color: var(--color-accent);
    border: 1px solid rgba(201, 169, 98, 0.3);
}

.channel-link.channel-vip:hover,
.channel-link.channel-vip.active {
    background-color: rgba(201, 169, 98, 0.1);
}

.community-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.post-form textarea {
    width: 100%;
    min-height: 80px;
}

.post-card {
    position: relative;
}

.post-card.pinned {
    border-left: 3px solid var(--color-accent);
}

.pin-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    color: var(--color-accent);
}

.post-header {
    margin-bottom: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--color-muted);
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-body {
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 1.25rem;
}

.post-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.btn-react,
.btn-reply-toggle {
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-react:hover,
.btn-react.reacted {
    color: var(--color-accent);
}

.post-replies {
    display: none;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
}

.post-replies.show {
    display: block;
}

.reply {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.reply p {
    margin: 0.5rem 0 0;
    color: #ddd;
}

.reply-form {
    margin-top: 1rem;
}

.reply-form textarea {
    width: 100%;
    min-height: 60px;
}

/* === Admin === */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.admin-table th {
    color: var(--color-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-table .actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.badge-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.badge-status.published {
    background-color: rgba(169, 223, 191, 0.15);
    color: #A9DFBF;
}

.badge-status.draft {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-muted);
}

.inline-form {
    display: inline;
    margin: 0;
}

.btn-danger {
    background-color: #b94e4e;
    color: #fff;
    border: 1px solid #b94e4e;
}

.btn-danger:hover {
    background-color: #a04040;
    border-color: #a04040;
}

/* === Utilities === */
.error-page {
    text-align: center;
    padding: 6rem 2rem;
}

.error-page h1 {
    font-size: 6rem;
    color: var(--color-accent);
}

.lang-selector {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.lang-selector a {
    color: var(--color-muted);
}

.lang-selector a:hover {
    color: var(--color-accent);
}

.lang-selector-inline {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
}

.lang-selector-inline a {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
    padding: 0.25rem 0.45rem;
    border-radius: 4px;
    text-decoration: none;
}

.lang-selector-inline a.active,
.lang-selector-inline a:hover {
    color: var(--color-accent);
    background-color: rgba(201, 169, 98, 0.1);
}

.hint {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 0.5rem;
}

/* === Landing redesign === */
.hero-large {
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    position: relative;
    padding: 6rem 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,26,26,0.3) 0%, rgba(26,26,26,0.6) 60%, rgba(26,26,26,0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tagline {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-large .hero-title {
    font-size: 4rem;
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.05;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.hero-large .hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255,255,255,0.85);
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.hero-large .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}

.hero-large .btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
}

.section-benefits {
    background-color: var(--color-bg);
}

.benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201,169,98,0.4);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(201,169,98,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.benefit-icon img {
    width: 32px;
    height: 32px;
}

.content-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.content-type-card {
    background-color: var(--color-surface-light);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.content-type-card:hover {
    transform: translateY(-4px);
}

.content-type-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(201,169,98,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.content-type-icon img {
    width: 36px;
    height: 36px;
}

.content-type-card h3 {
    font-size: 1.25rem;
    color: var(--color-text-dark);
    margin: 0;
}

.section-cta {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

/* === Floating particles === */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.hero-particles .particle {
    position: absolute;
    border-radius: 50%;
    background-color: #C9A962;
    opacity: 0;
    animation: particleFloat 12s ease-in-out infinite, particleFade 5s ease-in-out infinite;
}

.hero-particles .particle.star {
    background-color: #fff;
    box-shadow: 0 0 6px 1px rgba(201, 169, 98, 0.6);
    animation: particleFloat 16s ease-in-out infinite, starTwinkle 3s ease-in-out infinite;
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-10px); }
    75% { transform: translateY(-30px) translateX(5px); }
}

@keyframes particleFade {
    0%, 100% { opacity: 0; }
    40% { opacity: 0.4; }
    60% { opacity: 0.2; }
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

.hero-particles .particle:nth-child(1) { width: 4px; height: 4px; left: 10%; top: 20%; animation-delay: 0s, 0s; }
.hero-particles .particle:nth-child(2) { width: 6px; height: 6px; left: 20%; top: 60%; animation-delay: 2s, 1s; }
.hero-particles .particle:nth-child(3) { width: 3px; height: 3px; left: 35%; top: 30%; animation-delay: 4s, 2s; }
.hero-particles .particle:nth-child(4) { width: 5px; height: 5px; left: 50%; top: 70%; animation-delay: 1s, 0.5s; }
.hero-particles .particle:nth-child(5) { width: 4px; height: 4px; left: 65%; top: 25%; animation-delay: 3s, 1.5s; }
.hero-particles .particle:nth-child(6) { width: 7px; height: 7px; left: 75%; top: 55%; animation-delay: 5s, 2.5s; }
.hero-particles .particle:nth-child(7) { width: 3px; height: 3px; left: 85%; top: 35%; animation-delay: 2.5s, 0.8s; }
.hero-particles .particle:nth-child(8) { width: 4px; height: 4px; left: 15%; top: 75%; animation-delay: 1.5s, 1.2s; }
.hero-particles .particle:nth-child(9) { width: 5px; height: 5px; left: 45%; top: 15%; animation-delay: 3.5s, 2s; }
.hero-particles .particle:nth-child(10) { width: 3px; height: 3px; left: 55%; top: 45%; animation-delay: 0.5s, 0.3s; }
.hero-particles .particle:nth-child(11) { width: 6px; height: 6px; left: 90%; top: 70%; animation-delay: 4.5s, 1.8s; }
.hero-particles .particle:nth-child(12) { width: 4px; height: 4px; left: 30%; top: 85%; animation-delay: 2.2s, 1s; }

.hero-particles .particle.star:nth-child(13) { width: 3px; height: 3px; left: 18%; top: 22%; animation-delay: 0s, 0s; }
.hero-particles .particle.star:nth-child(14) { width: 4px; height: 4px; left: 42%; top: 28%; animation-delay: 1.5s, 0.7s; }
.hero-particles .particle.star:nth-child(15) { width: 2px; height: 2px; left: 62%; top: 18%; animation-delay: 3s, 1.4s; }
.hero-particles .particle.star:nth-child(16) { width: 3px; height: 3px; left: 78%; top: 40%; animation-delay: 0.8s, 2s; }
.hero-particles .particle.star:nth-child(17) { width: 4px; height: 4px; left: 25%; top: 45%; animation-delay: 2.3s, 0.5s; }
.hero-particles .particle.star:nth-child(18) { width: 2px; height: 2px; left: 88%; top: 25%; animation-delay: 4s, 1.2s; }

@media (prefers-reduced-motion: reduce) {
    .hero-particles .particle {
        animation: none;
        opacity: 0.3;
    }
}

/* === Courses === */
.course-card .course-price-mini {
    margin-top: 0.75rem;
}

.course-card .price-current {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
}

.course-card .price-current.free {
    color: var(--color-muted);
    font-size: 1rem;
}

.course-detail-header {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: 2rem;
}

.course-detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26,26,26,0.2) 0%, rgba(26,26,26,0.85) 100%);
}

.course-detail-header-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    width: 100%;
}

.course-detail-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    border: 1px solid rgba(201, 169, 98, 0.4);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.course-detail-header h1 {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
    max-width: 700px;
}

.course-detail-header p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
    max-width: 600px;
}

.course-detail-body {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.course-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ddd;
}

.course-modules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-module-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background-color: rgba(255,255,255,0.03);
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

.course-module-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(201, 169, 98, 0.15);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.course-module-item h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
}

.course-pricing-card {
    position: sticky;
    top: 2rem;
}

.course-price {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.course-price.free {
    color: var(--color-muted);
    font-size: 1.75rem;
}

.course-price-note {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.course-price-note.vip {
    color: var(--color-accent);
}

.course-price-note.basic {
    color: var(--color-muted);
}

.course-enrolled-badge {
    display: inline-block;
    background-color: rgba(169, 223, 191, 0.15);
    color: #A9DFBF;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Course learn */
.course-learn-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
}

.course-learn-sidebar {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.course-learn-sidebar .back-link {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--color-accent);
    font-weight: 500;
}

.course-progress-bar {
    height: 6px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.course-progress-fill {
    height: 100%;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.course-progress-text {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.course-learn-modules .learn-module {
    margin-bottom: 1.5rem;
}

.course-learn-modules .learn-module h3 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}

.course-learn-modules ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-learn-modules li {
    margin-bottom: 0.35rem;
}

.course-learn-modules li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius);
    color: var(--color-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.course-learn-modules li a:hover,
.course-learn-modules li.active a {
    background-color: rgba(255,255,255,0.05);
}

.course-learn-modules li.completed .material-status {
    color: #A9DFBF;
}

.course-learn-modules li.active {
    background-color: rgba(201, 169, 98, 0.08);
    border-radius: var(--radius);
}

.material-status {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.material-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.material-type {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-transform: uppercase;
    flex-shrink: 0;
}

.course-learn-main .media-player-wrapper {
    margin: 1.5rem 0;
}

.course-learn-main audio {
    width: 100%;
}

.course-pdf-actions {
    margin: 1.5rem 0;
}

.course-text-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #ddd;
    margin-top: 1rem;
}

/* === Responsive === */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }

    .member-layout {
        flex-direction: column;
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .public-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .gdpr-banner .container {
        flex-direction: column;
        text-align: center;
    }

    .library-layout {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .course-detail-body,
    .course-learn-layout {
        grid-template-columns: 1fr;
    }

    .course-learn-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }

    .course-pricing-card {
        position: relative;
        top: 0;
    }
}
