.content-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
}

.content-section h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Video Section */
.video-section {
    margin-bottom: 4rem;
    text-align: center;
    background: #ffffff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.video-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 600;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.video-description {
    margin-top: 1.5rem;
    color: #666;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Stats Section */
.forum-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.stat-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.stat-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #3498db;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Categories Section */
.forum-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.category-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.category-icon {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card h2 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.category-card p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.enter-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.enter-btn:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* Featured Topics */
.featured-topics {
    margin: 4rem 0;
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.featured-topics h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    font-weight: 600;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.topic-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.topic-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.topic-icon {
    color: #f1c40f;
    font-size: 1.8rem;
    margin-right: 1.2rem;
}

.topic-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
}

.topic-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.topic-meta {
    display: flex;
    gap: 1.5rem;
    color: #666;
    font-size: 1rem;
}

.topic-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Newsletter Section */
.newsletter-section {
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    text-align: center;
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 1200px;
    box-sizing: border-box;
}

.newsletter-section h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    padding: 0 1rem;
}

.newsletter-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    line-height: 1.6;
    padding: 0 1rem;
}

.newsletter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.newsletter-form input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 30px;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    box-sizing: border-box;
}

.newsletter-form button {
    background: white;
    color: #3498db;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    min-width: 120px;
    box-sizing: border-box;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.4);
}

/* Forum Rules */
.forum-rules {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    margin-top: 4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.forum-rules h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.forum-rules ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.forum-rules li {
    color: #666;
    margin-bottom: 1.2rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.8;
    font-size: 1.1rem;
}

.forum-rules li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.5rem;
}

/* Estilos para Grupos de Estudio */
.group-list {
    margin-top: 1.5rem;
}

.group-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.group-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.group-item h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.1rem;
}

.group-item p {
    color: #666;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.join-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.join-btn:hover {
    background: #2980b9;
}

/* Estilos para Mensajería */
.messaging-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    height: 400px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.chat-list {
    background: #f8f9fa;
    padding: 1rem;
    overflow-y: auto;
}

.chat-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-item:hover {
    background: #e9ecef;
}

.chat-item.active {
    background: #e3f2fd;
}

.chat-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
}

.chat-info h4 {
    margin: 0;
    font-size: 1rem;
    color: #2c3e50;
}

.chat-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.chat-window {
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.chat-header h3 {
    margin: 0;
    color: #2c3e50;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
}

.chat-input input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    margin-right: 0.5rem;
}

.send-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
}

/* Estilos para Recursos Compartidos */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.resource-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.resource-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.resource-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.resource-item h4 {
    margin: 0.5rem 0;
    color: #2c3e50;
}

.resource-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.resource-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.resource-link:hover {
    transform: translateY(-5px);
}

.download-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: var(--secondary-color);
}

.share-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1.5rem;
    width: 100%;
}

/* Estilos para Calendario de Eventos */
.calendar-container {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.2em;
    color: #666;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.calendar-header button:hover {
    color: #007bff;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 20px;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    color: #666;
    padding: 5px;
    font-size: 0.9em;
}

.calendar-day {
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.calendar-day:hover {
    background-color: #f0f0f0;
}

.calendar-day.empty {
    background: none;
    cursor: default;
}

.calendar-day.current-day {
    background-color: #007bff;
    color: white;
}

.calendar-day.has-event {
    position: relative;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #007bff;
    border-radius: 50%;
}

.upcoming-events {
    margin-top: 20px;
}

.upcoming-events h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.event-date {
    background: #007bff;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    min-width: 60px;
    margin-right: 15px;
}

.event-date .day {
    font-size: 1.5em;
    font-weight: bold;
    display: block;
}

.event-date .month {
    font-size: 0.9em;
    text-transform: uppercase;
}

.event-info {
    flex-grow: 1;
}

.event-info h5 {
    margin: 0 0 5px 0;
    color: #333;
}

.event-info p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

.join-event-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.join-event-btn:hover {
    background-color: #218838;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-section {
        padding: 1rem;
    }

    .content-section h1 {
        font-size: 2rem;
    }

    .forum-stats {
        grid-template-columns: 1fr;
    }

    .forum-categories {
        grid-template-columns: 1fr;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .video-section,
    .featured-topics,
    .forum-rules,
    .newsletter-section {
        padding: 1.5rem;
    }

    .messaging-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .chat-list {
        height: 200px;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .calendar-grid {
        gap: 0.2rem;
    }

    .event-item {
        flex-direction: column;
        text-align: center;
    }

    .event-date {
        margin: 0 0 1rem 0;
    }

    .join-event-btn {
        margin: 1rem 0 0 0;
    }
}

/* Responsive Design para Newsletter */
@media (max-width: 1024px) {
    .newsletter-section {
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .newsletter-section {
        width: 100%;
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
        border-radius: 15px;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .newsletter-section {
        padding: 1.2rem 0.8rem;
        margin: 1rem 0;
    }

    .newsletter-section h2 {
        margin-bottom: 1rem;
    }

    .newsletter-section p {
        margin-bottom: 1.2rem;
    }

    .newsletter-form {
        padding: 0;
    }

    .newsletter-form input {
        padding: 0.7rem 0.8rem;
    }

    .newsletter-form button {
        padding: 0.7rem 1.2rem;
    }
}

@media (max-width: 320px) {
    .newsletter-section {
        padding: 1rem 0.6rem;
    }

    .newsletter-form input,
    .newsletter-form button {
        font-size: 0.85rem;
    }
} 