:root {
    --imagen-hero: url('images/7.jpeg'); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f9f9f9;
    color: #333333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ALERTAS FLOTANTES */
.alert {
    position: fixed;
    top: 95px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: #ffffff;
    z-index: 3000;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.4s ease forwards;
}
.success-alert { background-color: #4cd137; }
.error-alert { background-color: #e84118; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo a {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-menu a {
    color: #cccccc;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover { color: #ffffff; }

/* HERO BANNERS */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 20px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), var(--imagen-hero);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero-quote {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 40px;
}

.hero-quote span {
    display: block;
    font-size: 1.2rem;
    margin-top: 15px;
    color: #f0a500;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: #f0a500;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary:hover { background-color: #d49200; }

/* SECCIONES BASE */
.section { padding: 80px 0; }
.section-alt { background-color: #f0f0f0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 10px; }

.line {
    width: 60px;
    height: 4px;
    background-color: #f0a500;
    margin: 0 auto 20px auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.img-block img {
    width: 100%;
    border-radius: 8px;
}

/* CALENDARIO CARDS */
.calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.event-card {
    display: flex;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.event-image {
    position: relative;
    width: 40%;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #f0a500;
    color: #1a1a1a;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
}

.event-date-badge .day { display: block; font-size: 1.4rem; }
.event-date-badge .month { font-size: 0.8rem; text-transform: uppercase; }

.event-info {
    padding: 25px;
    width: 60%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-meta { font-size: 0.85rem; color: #777777; margin-bottom: 10px; }
.event-meta i { color: #f0a500; }

.btn-delete {
    align-self: flex-start;
    padding: 6px 14px;
    background-color: #e84118;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* ÁLBUM FOTOS */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 20px;
}

.gallery-overlay span {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-delete-gallery {
    background-color: #e84118;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 4px;
}

.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* CAPAS VENTANA MODAL ADMIN */
.admin-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.admin-section.hidden { display: none; }

.admin-modal {
    background-color: #ffffff;
    width: 100%;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
}

.admin-header {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h2 { color: #f0a500; font-size: 1.3rem; }
.close-btn { background: none; border: none; color: #ffffff; font-size: 2rem; cursor: pointer; }

.admin-tabs { display: flex; background-color: #f4f4f4; }
.tab-btn { flex: 1; padding: 15px; border: none; background: none; font-weight: 600; color: #666666; cursor: pointer; }
.tab-btn.active { background-color: #ffffff; color: #1a1a1a; border-bottom: 3px solid #f0a500; }

.tab-content { display: none; padding: 30px; }
.tab-content.active-content { display: block; }

.admin-form { display: flex; flex-direction: column; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.admin-form input, .admin-form textarea { padding: 10px; border: 1px solid #cccccc; border-radius: 5px; }
.btn-admin-submit { padding: 12px; background-color: #1a1a1a; color: #ffffff; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; }
.btn-admin-submit:hover { background-color: #f0a500; color: #1a1a1a; }

.main-footer { background-color: #1a1a1a; color: #888888; text-align: center; padding: 40px 20px; }

@media (max-width: 768px) {
    .grid-2, .calendar-container { grid-template-columns: 1fr; }
    .event-card { flex-direction: column; }
    .event-image { width: 100%; height: 200px; }
    .event-info { width: 100%; }
}