/* Variables de colores - Se definen en dynamic-colors.php */
/* Valores por defecto solo si no se cargan dinámicamente */
:root {
    --light-color: #ECF0F1;
    --text-color: #34495E;
    --white: #FFFFFF;
    --success-color: #27AE60;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

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

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

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: var(--header-padding, 30px 0);
    box-shadow: 0 2px 10px var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    max-width: 120px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-text h1 {
    font-size: var(--header-font-size, 2.5em);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header-text .subtitle {
    font-size: 1.2em;
    opacity: 0.95;
}

/* Slider */
.slider-section {
    position: relative;
    margin: 40px 0;
}

.slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
}

.slider {
    position: relative;
    height: var(--slider-height, 400px);
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.slide.active {
    display: flex;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.slide[style*="background-image"]::before {
    background: rgba(0, 0, 0, 0.5);
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.slide-content h2 {
    font-size: 3em;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.5em;
    color: var(--white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.slider-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2em;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--primary-color);
}

.slider-btn:hover {
    background: var(--white);
    transform: scale(1.1);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active,
.dot:hover {
    background: var(--white);
    transform: scale(1.2);
}

/* Content Boxes */
.content-boxes {
    padding: 60px 0;
    background: var(--light-color);
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.content-box {
    background: var(--white);
    padding: var(--box-padding, 40px);
    border-radius: var(--box-border-radius, 15px);
    box-shadow: 0 5px 15px var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.content-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.box-icon {
    font-size: 3em;
    margin-bottom: 20px;
    text-align: center;
}

.box-image {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    overflow: hidden;
    border-radius: 10px;
}

.box-image img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.content-box:hover .box-image img {
    transform: scale(1.05);
}

.content-box h3 {
    color: var(--primary-color);
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.content-box p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.highlight-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: 500;
}

.donation-list {
    list-style: none;
    margin-top: 20px;
}

.donation-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
}

.donation-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.footer-section p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .header-text h1 {
        font-size: 1.8em;
    }
    
    .header-text .subtitle {
        font-size: 1em;
    }
    
    .slide-content h2 {
        font-size: 2em;
    }
    
    .slide-content p {
        font-size: 1.2em;
    }
    
    .boxes-grid {
        grid-template-columns: 1fr;
    }
    
    .slider {
        height: 300px;
    }
}
