/*
Theme Name: Canal Montería
Theme URI: http://example.com/
Author: AI Author
Author URI: http://example.com/
Description: Tema responsivo para WordPress basado en el diseño del Canal Montería.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: canalmonteria
*/

:root {
    --primary-color: #0c2049;
    --secondary-color: #d1121c;
    --bg-light: #f4f4f4;
    --text-color: #333333;
    --border-color: #dddddd;
    --font-family: 'Open Sans', Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: #ffffff;
}

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

/* Header */
.site-header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.header-logo img {
    max-width: 250px;
    height: auto;
}

.header-ad {
    background-color: #e0e0e0;
    width: 100%;
    max-width: 970px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    text-align: center;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.btn-envivo {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-bottom: 10px;
    display: inline-block;
}

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

.social-icon {
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Navbar */
.main-navigation {
    background-color: var(--primary-color);
    color: #fff;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu li {
    padding: 15px 10px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

/* Main Layout */
.main-content {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

/* Hero Section */
.hero-featured {
    position: relative;
    grid-column: 1 / 2;
}

.hero-featured img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 20px;
}

.hero-text h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.cat-tag {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

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

.news-list-item {
    display: flex;
    gap: 10px;
}

.news-list-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
}

.news-list-item h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.news-list-item .date {
    font-size: 11px;
    color: #888;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-ad {
    background-color: #e0e0e0;
    width: 100%;
    max-width: 300px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
}

.contact-form-widget {
    border: 1px solid var(--border-color);
    padding: 15px;
}

.widget-title {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px;
    margin: -15px -15px 15px -15px;
    text-align: center;
    font-weight: bold;
}

.contact-form-widget input, 
.contact-form-widget textarea {
    width: 100%;
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.contact-form-widget button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    font-weight: bold;
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    text-align: center;
    padding: 10px;
    display: block;
    text-decoration: none;
    margin-top: 10px;
    font-weight: bold;
}

/* Latest News Grid */
.section-title {
    font-size: 20px;
    border-left: 5px solid var(--primary-color);
    padding-left: 10px;
    margin: 30px 0 20px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.news-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.news-card h3 {
    font-size: 14px;
    margin: 10px 0 5px 0;
}

.news-card .date {
    font-size: 11px;
    color: #888;
}

/* Lower Section */
.lower-section {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 20px;
    margin-top: 30px;
}

.video-destacado img {
    width: 100%;
    height: auto;
}

.galeria-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.galeria-tabs button {
    background: none;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.galeria-grid img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.btn-more-gallery {
    display: block;
    text-align: center;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px;
    margin-top: 10px;
    text-decoration: none;
    font-weight: bold;
}

/* Newsletter */
.newsletter-section {
    background-color: var(--primary-color);
    color: #fff;
    padding: 20px 0;
    margin-top: 40px;
}

.newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px;
    width: 300px;
    border: none;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: #fff;
    padding: 40px 0 20px 0;
    border-top: 1px solid var(--border-color);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.footer-logo img {
    max-width: 200px;
}

.footer-widget h4 {
    font-size: 16px;
    margin-top: 0;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widget ul li {
    margin-bottom: 8px;
}

.footer-widget a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: #888;
}

/* REGLETA RESPONSIVE */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr 1fr;
    }
    .hero-featured {
        grid-column: 1 / 3;
    }
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .lower-section {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .header-right {
        align-items: center;
    }
    .main-content, .lower-section {
        grid-template-columns: 1fr;
    }
    .hero-featured {
        grid-column: 1 / -1;
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
    }
    .newsletter-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    .newsletter-form input {
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
