/* CSS Template 1 - Modern Style */
:root {
    --primary-color: #0d6efd;
    /* Bootstrap blue or similar */
    --primary-dark: #0a58ca;
    --text-color: #333;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    /* Dynamic background is handled in index.php */
    background-color: transparent;
}

/* Header Container */
#encabezado {
    box-shadow: var(--shadow);
    padding: 0;
    position: relative;
    z-index: 1000;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--white);
}

/* Top Row: Logo & Name */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    border-bottom: 1px solid #eee;
    background-color: var(--white);
}

.col-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.col-nombre h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

/* Navigation Bar */
.header-menu {
    background-color: var(--white);
    padding: 0 40px;
    position: relative;
    z-index: 100;
}

.navbar {
    width: 100%;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.nav-icon {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 6px;
    opacity: 0.5;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1001;
    border-top: 2px solid var(--primary-color);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #555;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.dropdown-link:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
    /* Indent effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        display: none;
        /* Hide via JS or simple CSS toggle if we had one, for now strict hover might be tricky on mobile without JS */
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-item:hover .dropdown-menu {
        display: block;
    }
}

/* Lema Section */
.lema-container {
    padding: 60px 40px;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.lema-line-1 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.lema-line-2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
    margin: 10px 0;
    max-width: 900px;
}

.lema-line-3 {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    max-width: 700px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .lema-container {
        padding: 40px 20px;
    }

    .lema-line-2 {
        font-size: 2rem;
    }
}

/* Videocorp Section */
.videocorp-section {
    padding: 60px 20px;
    background-color: var(--white);
}

/* Noticias y Eventos Section */
.noticias-eventos-section {
    background-color: #f8fafc;
}

.news-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.news-card-img img {
    transition: transform 0.5s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.05);
}

.news-card h5 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-item {
    transition: all 0.2s ease;
}

.event-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    background-color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border: 1px solid var(--primary);
    background: transparent;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 1024px) {
    .noticias-eventos-section .lg\:flex {
        flex-direction: column;
    }
}

/* Newsletter Section */
.newsletter-section {
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
    pointer-events: none;
}

.newsletter-form input {
    height: 60px;
}

.newsletter-form button {
    height: 44px;
}

@media (max-width: 768px) {
    .newsletter-form button {
        position: static;
        width: 100%;
        margin-top: 10px;
        height: 50px;
    }

    .newsletter-form input {
        border-radius: 12px;
    }
}