/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e3a8a;
    --secondary-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-light-blue: #06b6d4;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    --primary-blue: #3b82f6;
    --secondary-blue: #60a5fa;
    --accent-green: #34d399;
    --accent-light-blue: #22d3ee;
    --text-dark: #f9fafb;
    --text-light: #d1d5db;
    --bg-white: #1f2937;
    --bg-light: #111827;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-lg: rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    transition: all 0.3s ease;
}

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

/* Header Principal */
.main-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 20px 0;
    position: relative;
    overflow: visible;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>') no-repeat;
    background-size: contain;
    opacity: 0.3;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-symbol {
    position: relative;
    width: 50px;
    height: 50px;
}

.symbol-circle {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    animation: float 3s ease-in-out infinite;
}

.symbol-circle.green {
    background: var(--accent-green);
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.symbol-circle.blue {
    background: var(--accent-light-blue);
    bottom: 0;
    right: 0;
    animation-delay: 1.5s;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Selector de idiomas - Toggle simple */
.language-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.language-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Navegación */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
    background: #1f2937;
    box-shadow: 0 2px 10px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 15px 25px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    border-radius: 5px;
    margin: 5px;
}

.nav-link:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.05);
}

.nav-link.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.nav-link.active:hover {
    background: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

/* Estilos específicos para tema oscuro */
[data-theme="dark"] .nav-link {
    color: var(--text-dark);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .nav-link.active {
    background: var(--primary-blue);
    color: white;
}

[data-theme="dark"] .nav-link.active:hover {
    background: var(--secondary-blue);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

[data-theme="dark"] .bar {
    background-color: var(--text-dark);
}

/* Sección Principal - Tres Columnas */
.main-content {
    padding: 60px 0;
    background: var(--bg-white);
}

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

.content-column {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    position: relative;
}

.content-column:hover {
    box-shadow: 0 20px 40px var(--shadow-lg);
}

.column-header {
    padding: 25px 25px 15px;
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
}

.column-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
}

.column-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Sin animaciones en las imágenes */

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.content-column:hover .image-overlay {
    transform: translateY(0);
}

.image-description {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

.column-content {
    padding: 25px;
}

.column-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.column-content ul {
    list-style: none;
    padding: 0;
}

.column-content li {
    color: var(--text-dark);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
}

.column-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.1rem;
}

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

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.text-content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.text-content p {
    margin-bottom: 1.5rem;
}

.text-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.text-content li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 60px 0 30px;
    position: relative;
}

.footer-logo {
    text-align: center;
    margin-bottom: 30px;
}

.footer-logo .logo {
    justify-content: center;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
}

.footer-motto {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.motto-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.footer-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 600px;
    margin: 0 auto 40px;
    text-align: center;
}

.address p,
.contact p {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.address p:first-child,
.contact p:first-child {
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sin efectos de scroll para las imágenes */

/* Efectos hover mejorados */
.content-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-light-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: 15px;
}

.content-column:hover::before {
    opacity: 0.1;
}

.content-column > * {
    position: relative;
    z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px var(--shadow);
        padding: 2rem 0;
    }

    [data-theme="dark"] .nav-menu {
        background-color: #1f2937;
        box-shadow: 0 10px 27px var(--shadow);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

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

    .logo-text {
        font-size: 1.4rem;
    }

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

    .section {
        padding: 60px 0;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .motto-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }

    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .column-image {
        height: 250px;
    }

    .column-content {
        padding: 20px;
    }

    .footer-motto {
        padding: 0 20px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Estilos para contenido dinámico */
.content-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.content-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.content-card h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.donation-info {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.donation-info h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.donation-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.donation-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.donation-option h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.donation-option p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.donation-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.donation-details p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.donation-button {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.donation-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: var(--accent-green);
    color: white;
}

.event-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.event-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--shadow);
}

.event-item h4 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.event-item p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}
