:root {
    --primary-color: #0ccebe;
    --secondary-color: #a4ebd3;
    --dark-color: #d1fffb;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    padding-top: 56px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/Puerto-Montt-en-invierno.jpeg') no-repeat center center;
    background-size: cover;
    padding: 150px 0;
    text-align: center;
    color: white;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bg-success {
  background-color: var(--primary-color) !important;
}

.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.event-card {
    margin-bottom: 20px;
}

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

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

.btn-success:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.carousel-item img {
    height: 300px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 20px;
}

#contactForm .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
}

footer {
    background-color: var(--dark-color);
}

footer a {
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}


/* Imágenes de eventos */
.event-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

/* Imágenes en modal */
#eventoModalImage {
    max-height: 400px;
    width: 100%;
    object-fit: contain;
}

/* Imágenes de convenios */
.carousel-item img {
    max-height: 150px;
    width: auto;
    margin: 0 auto;
    padding: 10px;
    background: white;
    border-radius: 5px;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #28a745;
}

.ver-mas {
    transition: all 0.3s ease;
}

.ver-mas:hover {
    background-color: #28a745;
    color: white;
}

/* Estilos para el calendario */
.calendar-container {
    font-family: 'Open Sans', sans-serif;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #28a745;
    color: white;
    text-align: center;
    font-weight: 600;
    padding: 10px 0;
}

.calendar-day-header {
    padding: 5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e9ecef;
}

.calendar-day {
    min-height: 60px;
    background: white;
    padding: 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day.empty {
    background: #f8f9fa;
    cursor: default;
}

.calendar-day.no-events {
    background: #f8f9fa;
    cursor: default;
}

.calendar-day:hover:not(.empty):not(.no-events) {
    background: #e9f5ee;
}

.calendar-day.today {
    background-color: #d4edda;
}

.calendar-day.has-events {
    background-color: #f0fdf4;
}

.day-number {
    font-weight: 600;
    margin-bottom: 5px;
}

.event-dot {
    width: 6px;
    height: 6px;
    background-color: #28a745;
    border-radius: 50%;
    margin: 0 auto;
}


/* Estilos para el filtro compacto */
#monthFilter {
    max-width: 180px;
}

@media (max-width: 576px) {
    .filter-container .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    #monthFilter {
        max-width: 100%;
        width: 100% !important;
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
    }
    
    #clearFilter {
        width: 100%;
    }
}

/* Estilos para la vista previa compacta del blog */
.blog-preview-card {
    transition: transform 0.2s;
    border: 1px solid rgba(0,0,0,0.1);
}

.blog-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.blog-preview-img {
    height: 120px;
    object-fit: cover;
}

.blog-preview-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.blog-preview-desc {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

/* Ajustes responsivos */
@media (max-width: 1199.98px) {
    .blog-preview-desc {
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 767.98px) {
    .blog-preview-img {
        height: 100px;
    }
    
    .blog-preview-desc {
        display: none;
    }
}
