/* ========================================
   Cofradía Santa María Magdalena - Styles
   Color Palette:
   - Amarillo Ocre: #D4A84B (principal)
   - Amarillo Ocre Oscuro: #B8922F (hover)
   - Blanco: #FFFFFF
   - Blanco Hueso: #F5F5DC
   - Negro/Gris: #333333
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #D4A84B;
    --color-primary-dark: #B8922F;
    --color-primary-light: #E5C77A;
    --color-white: #FFFFFF;
    --color-cream: #F5F5DC;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #E0E0E0;
    --color-success: #28a745;
    --color-error: #dc3545;
    --color-warning: #ffc107;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text);
}

.logo:hover {
    color: var(--color-text);
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.logo-icon.small {
    width: 35px;
    height: 35px;
    font-size: 10px;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-img-large {
    width: 50px;
    height: 50px;
}

.logo-img-small {
    width: 28px;
    height: 28px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--color-primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background: url('/uploads/hero.jpg') center 25% / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

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

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-cream);
    color: var(--color-primary-dark);
}

.btn-danger {
    background: var(--color-error);
    color: var(--color-white);
}

.btn-danger:hover {
    background: #c82333;
    color: var(--color-white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--color-primary);
    margin: 15px auto 0;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

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

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ========================================
   Noticias Cards
   ======================================== */
.noticias-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.noticia-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.noticia-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--color-cream), var(--color-primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.noticia-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-card-content {
    padding: 25px;
}

.noticia-card-date {
    color: var(--color-primary-dark);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.noticia-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.noticia-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   Eventos
   ======================================== */
.eventos-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.evento-item {
    display: flex;
    gap: 20px;
    background: var(--color-white);
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.evento-item:hover {
    box-shadow: var(--shadow-md);
}

.evento-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 15px 10px;
    border-radius: var(--radius-md);
}

.evento-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.evento-date .month {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-top: 5px;
}

.evento-date .year {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.evento-info h3 {
    color: var(--color-text);
    margin-bottom: 8px;
}

.evento-info p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Event Cards for eventos.html */
.event-card {
    display: flex;
    gap: 25px;
    background: var(--color-white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.event-card.past {
    opacity: 0.7;
}

.event-content h3 {
    color: var(--color-text);
    margin-bottom: 10px;
}

.event-content p {
    color: var(--color-text-light);
    margin-bottom: 15px;
}

.event-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.event-image {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-toggle {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.toggle-btn {
    padding: 10px 25px;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-primary-dark);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-btn.active,
.toggle-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Featured Events */
.featured-events {
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.featured-event {
    display: flex;
    gap: 25px;
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.event-date-badge {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
    padding: 20px 10px;
    border-radius: var(--radius-md);
}

.event-date-badge .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.event-date-badge .detail {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}

.event-info h3 {
    color: var(--color-primary-dark);
    margin-bottom: 10px;
}

.event-info p {
    color: var(--color-text-light);
}

/* ========================================
   About Section
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.about-text p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--color-cream), var(--color-primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    font-size: 3rem;
    font-weight: bold;
}

.image-placeholder.large {
    max-width: 100%;
    margin: 30px 0;
}

/* ========================================
   Gallery
   ======================================== */
.gallery-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    background: #f0f0f0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--color-white);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-title {
    font-weight: 600;
}

.gallery-autor {
    font-size: 0.8rem;
    opacity: 0.85;
    font-style: italic;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.lightbox-caption {
    text-align: center;
    color: var(--color-white);
    padding: 15px;
    font-size: 1.1rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.2);
    border: none;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    padding: 15px 20px;
    transition: var(--transition);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    border-radius: 50%;
    padding: 10px 18px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: var(--radius-md);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: var(--radius-md);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form-container h2,
.contact-info h2 {
    color: var(--color-primary-dark);
    margin-bottom: 15px;
}

.contact-form-container > p {
    color: var(--color-text-light);
    margin-bottom: 30px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-text);
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

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

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius-md);
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
}

/* Contact Info */
.info-card {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    font-size: 1.5rem;
}

.info-content h3 {
    font-size: 1rem;
    color: var(--color-primary-dark);
    margin-bottom: 5px;
}

.info-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.social-links {
    margin-top: 40px;
}

.social-links h3 {
    color: var(--color-primary-dark);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Map */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--color-cream), var(--color-primary-light));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
}

.map-placeholder p {
    font-size: 1.2rem;
}

/* CTA Section */
.section-cta {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-white);
    text-align: center;
}

.cta-content h2 {
    margin-bottom: 15px;
}

.cta-content p {
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Content/Article Pages
   ======================================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 50px;
}

.article h2 {
    color: var(--color-primary-dark);
    margin-bottom: 20px;
}

.article h3 {
    color: var(--color-primary-dark);
    margin: 30px 0 15px;
}

.article p {
    color: var(--color-text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.article-image {
    margin: 30px 0;
}

/* Sidebar */
.sidebar-widget {
    background: var(--color-cream);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
}

.sidebar-widget h3 {
    color: var(--color-primary-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.sidebar-widget li:last-child {
    border-bottom: none;
}

.info-list li {
    display: flex;
    gap: 10px;
}

.info-list strong {
    color: var(--color-primary-dark);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
}

.footer-section a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ========================================
   Loading & Empty States
   ======================================== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--color-text-light);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--color-text);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--color-text-light);
}

.error {
    color: var(--color-error);
    text-align: center;
    padding: 20px;
}

/* ========================================
   Admin Panel Styles
   ======================================== */
.admin-body {
    background: #f0f2f5;
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    padding: 20px;
}

.login-box {
    background: var(--color-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    font-size: 20px;
}

.login-header h1 {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 5px;
}

.login-header p {
    color: var(--color-text-light);
}

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

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    font-size: 0.9rem;
}

/* Admin Panel Layout */
.admin-panel {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--color-text);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
}

.nav-item .icon {
    font-size: 1.2rem;
}

.nav-item .badge {
    background: var(--color-error);
    color: var(--color-white);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: auto;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Admin Main Content */
.admin-main {
    flex: 1;
    margin-left: 250px;
    padding: 30px;
}

.admin-section {
    display: none;
}

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

.admin-section h2 {
    color: var(--color-text);
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    margin-bottom: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--color-white);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    font-size: 2.5rem;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.stat-label {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Quick Actions */
.quick-actions h3 {
    color: var(--color-text);
    margin-bottom: 20px;
}

.actions-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 15px 25px;
    background: var(--color-white);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-primary-dark);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

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

/* Data Tables */
.data-table-container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.data-table th,
.data-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.data-table th {
    background: var(--color-cream);
    font-weight: 600;
    color: var(--color-text);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background: #fafafa;
}

.data-table img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

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

.table-actions button {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Gallery Admin Grid */
.gallery-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-admin-item {
    position: relative;
    background: #f0f0f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery-admin-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: #f0f0f0;
}

.gallery-admin-item .item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-admin-item:hover .item-overlay {
    opacity: 1;
}

.gallery-admin-item .item-info {
    padding: 10px;
}

.gallery-admin-item .item-info p {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* Messages List */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-item {
    background: var(--color-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-border);
}

.message-item.unread {
    border-left-color: var(--color-primary);
    background: #fffdf5;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.message-sender {
    font-weight: 600;
    color: var(--color-text);
}

.message-email {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.message-date {
    color: var(--color-text-light);
    font-size: 0.85rem;
}

.message-content {
    color: var(--color-text);
    margin-bottom: 15px;
    line-height: 1.6;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    color: var(--color-text);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.modal-close:hover {
    color: var(--color-text);
}

.modal-body {
    padding: 25px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 25px;
    border-radius: var(--radius-md);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease;
}

.toast.success {
    background: var(--color-success);
}

.toast.error {
    background: var(--color-error);
}

.toast.warning {
    background: var(--color-warning);
    color: var(--color-text);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.published {
    background: #d4edda;
    color: #155724;
}

.status-badge.draft {
    background: #fff3cd;
    color: #856404;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 992px) {
    .about-content,
    .contact-wrapper,
    .content-wrapper {
        grid-template-columns: 1fr;
    }

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

    .admin-sidebar {
        width: 70px;
    }

    .sidebar-header span,
    .nav-item span:not(.icon),
    .nav-item .badge {
        display: none;
    }

    .admin-main {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu a {
        display: block;
        padding: 15px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .noticias-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-card {
        flex-direction: column;
    }

    .event-image {
        width: 100%;
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Admin mobile */
    .admin-sidebar {
        display: none;
    }

    .admin-main {
        margin-left: 0;
    }

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

    .data-table-container {
        overflow-x: auto;
    }

    .modal-content {
        margin: 10px;
    }
}

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

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

    .action-btn {
        width: 100%;
    }

    .gallery-admin-grid {
        grid-template-columns: 1fr 1fr;
    }
}
