:root {
    --primary-color: #FF0000; /* Rojo más intenso */
    --secondary-color: #457B9D; /* Azul suave para acentos */
    --background-color: #f0f2f5; /* Un gris más parecido a Facebook */
    --text-color: #050505; /* Negro puro para texto principal */
    --text-secondary-color: #65676b; /* Gris para texto secundario */
    --header-bg: #ffffff;
    --footer-bg: #FF0000; /* Rojo más intenso */
    --footer-text: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    --font-heading: 'Lobster', cursive;
    --font-body: 'Roboto', sans-serif;
    --border-color: #dddfe2;
    --hover-overlay: rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header y Navegación */
.main-header {
    background-color: var(--header-bg);
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom: 3px solid var(--primary-color);
}

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

.logo-img {
    height: 180px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.main-nav ul li {
    margin: 5px 10px;
}

.main-nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.main-nav ul li a:hover, .dropdown:hover .dropbtn {
    background-color: var(--primary-color);
    color: #fff;
}

.dropbtn {
    color: var(--text-color);
    font-weight: bold;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Ocultar menú admin por defecto */
#admin-menu {
    display: none;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: normal;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(rgba(255, 0, 0, 0.8), rgba(255, 0, 0, 0.8)), url('https://via.placeholder.com/1200x400');
    background-size: cover;
    background-position: center;
    color: #fff;
    border-radius: 8px;
    margin-bottom: 40px;
}

.hero h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Carousel */
.carousel-section {
    margin-bottom: 40px;
    position: relative;
}

.carousel-container {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img, .carousel-slide video {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 15px;
    font-size: 24px;
    z-index: 1;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    padding: 10px 0;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Events Section */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-card-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.event-card-content p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.loading-message {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: var(--text-secondary-color);
}

/* Botones */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #CC0000; /* Un rojo un poco más oscuro para el hover */
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--text-secondary-color);
}

.btn-secondary:hover {
    background-color: #555;
}

/* Footer */
.main-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 20px 0;
    text-align: center;
    margin-top: 60px;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary-color);
}

.radio-group label {
    margin-right: 15px;
}

/* Admin Page */
.admin-container {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.admin-container h2 {
    margin-bottom: 20px;
}

.admin-actions {
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

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

.admin-table th {
    background-color: #f8f9fa;
}

.admin-table .btn {
    padding: 5px 10px;
    margin-right: 5px;
    font-size: 0.9rem;
}

.btn-edit { background-color: var(--secondary-color); }
.btn-edit:hover { background-color: #3a6885; }
.btn-delete { background-color: var(--primary-color); }
.btn-delete:hover { background-color: #CC0000; }

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* Event Detail Page */
#event-detail-content {
    max-width: 800px;
    margin: 40px auto;
}

.event-post-container {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 15px;
}

.post-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.post-author {
    font-weight: bold;
}

.post-meta {
    font-size: 0.9em;
    color: var(--text-secondary-color);
}

.post-body {
    padding: 0 15px 15px 15px;
}

.post-media img, .post-media video {
    max-width: 100%;
    display: block;
}

.post-actions {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary-color);
    font-weight: bold;
    cursor: pointer;
    padding: 10px;
    flex-grow: 1;
    border-radius: 4px;
}

.action-btn:hover {
    background-color: var(--hover-overlay);
}

/* Static Pages */
.static-content-container {
    background-color: var(--card-bg);
    padding: 40px;
    margin: 40px auto;
    border-radius: 8px;
}

.static-content-container h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

/* quienes_somos.html */
.slogan {
    text-align: center;
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-secondary-color);
}

.directive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.directive-member {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.directive-member h3 {
    color: var(--secondary-color);
}

.event-date {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 40px;
    color: var(--primary-color);
}

/* donativos.html */
.pitch {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 30px;
    max-width: 80ch;
    margin-left: auto;
    margin-right: auto;
}

.zelle-info-box {
    border: 2px dashed var(--primary-color);
    border-radius: 8px;
    padding: 30px;
    max-width: 600px;
    margin: 20px auto;
    text-align: center;
}

.zelle-info-box h3 {
    margin-bottom: 15px;
}

.zelle-details {
    margin: 20px 0;
    font-size: 1.2rem;
}

.zelle-details p {
    margin: 10px 0;
}

.thanks {
    font-weight: bold;
    font-size: 1.3rem;
    margin-top: 20px;
    color: var(--secondary-color);
}

.important-note {
    margin-top: 20px;
    padding: 15px;
    background-color: #fffbe6; /* Light yellow background */
    border: 1px solid #ffe58f; /* Yellow border */
    border-radius: 4px;
    color: #8a6d3b; /* Darker text for readability */
}

.important-note p {
    margin: 0;
}

.important-note strong {
    color: #c09853;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }
    
    .main-nav ul li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background-color: #f9f9f9;
    }

    .hero h2 {
        font-size: 2.5rem;
    }
}