@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

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

body {
    color: #333;
    font-family: 'Lato', sans-serif;
    font-weight: normal;
    background-color: #ffffff;
    line-height: 1.6;
}

/* ----------------------------- NAVBAR DEL HOME ----------------------------- */
header {
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 80px;
    border-bottom: 1px solid #eaeaea;
}

.navbar .logo {
    padding: 0;
}

.navbar .logo img {
    height: 50px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.navbar a {
    color: #0056a6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 1rem 1.2rem;
    display: block;
}

.navbar a:hover,
.navbar a.active {
    color: #ffd700;
    background: rgba(0, 86, 166, 0.05);
}

.btn-nav {
    background: #0056a6;
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 4px;
    font-weight: bold !important;
    margin: 0 0 0 1rem;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: #003b75 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.dropdown-arrow {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 4px 4px;
    z-index: 10;
    overflow: hidden;
    border-top: 2px solid #0056a6;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    color: #0056a6 !important;
    padding: 0.8rem 1.2rem;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: #f0f7ff;
    color: #003b75 !important;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hamburger menu - en modo móvil */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #0056a6;
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ----------------------------- CONTENIDO PRINCIPAL ESTILO SAIB ----------------------------- */
.events-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #0056a6;
    margin-bottom: 15px;
    font-weight: 700;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #0056a6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

.events-grid {
    display: grid;
    gap: 40px;
    margin-top: 30px;
}

.event-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.event-image {
    flex: 0 0 40%;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.event-content h2 {
    font-size: 1.5rem;
    color: #0056a6;
    margin-bottom: 15px;
    font-weight: 700;
}

.event-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.event-date, .event-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
}

.event-date i, .event-location i {
    color: #ffd700;
}

.event-content p {
    text-align: left;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.event-actions {
    margin-top: auto;
}

.btn-event {
    display: inline-block;
    background: #0056a6;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-event:hover {
    background: #003b75;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ----------------------------- FOOTER DEL HOME ----------------------------- */
footer {
    background: #0056a6;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
}

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

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

footer p {
    margin-bottom: 15px;
    color: #fff;
}

footer a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.2s ease;
}

footer a:hover {
    text-decoration: underline;
    color: #fff;
}

/* ----------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 992px) {
    .events-container {
        padding: 30px 15px;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-image {
        flex: 0 0 auto;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        transition: all 0.4s ease;
        padding: 1rem 0;
        gap: 0;
        overflow-y: auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .navbar a {
        color: #0056a6;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        background: #f9f9f9;
        display: none;
        margin-top: 0;
        border-radius: 0;
        animation: none;
        border-top: 1px solid #eaeaea;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle {
        justify-content: center;
    }
    
    .hamburger.active span {
        background: #0056a6;
    }
    
    .navbar {
        padding: 0 1rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .event-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .navbar .logo img {
        height: 40px;
    }
    
    .navbar {
        padding: 0 0.5rem;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .event-content h2 {
        font-size: 1.3rem;
    }
    
    .btn-event {
        width: 100%;
        text-align: center;
    }
    
    .btn-nav {
        margin: 0.5rem 0;
        padding: 0.5rem 1rem !important;
    }
}

/* ----------------------------- MEETINGS ----------------------------- */
.meetings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #0056a6;
    margin-bottom: 15px;
    font-weight: 700;
}

h3 {
    margin-bottom: 15px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #0056a6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #666;
}

.meetings-grid {
    display: grid;
    gap: 40px;
    margin-top: 30px;
}

.meeting-card {
    display: flex;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.meeting-image {
    flex: 0 0 40%;
    overflow: hidden;
    position: relative;
}

.meeting-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.meeting-card:hover .meeting-image img {
    transform: scale(1.05);
}

.meeting-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 86, 166, 0.1), rgba(0, 86, 166, 0.3));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.meeting-card:hover .meeting-image::before {
    opacity: 1;
}

.meeting-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.meeting-content h2 {
    font-size: 1.5rem;
    color: #0056a6;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.meeting-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meeting-date, .meeting-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.meeting-date i, .meeting-location i {
    color: #ffd700;
    font-size: 1.1rem;
}

.meeting-content p {
    text-align: left;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.meeting-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-meeting {
    display: inline-block;
    background: #0056a6;
    color: white;
    padding: 12px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
}

.btn-meeting:hover {
    background: #003b75;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-meeting.btn-secondary {
    background: transparent;
    color: #0056a6;
    border: 2px solid #0056a6;
}

.btn-meeting.btn-secondary:hover {
    background: #0056a6;
    color: white;
}

.meeting-card.past-event {
    opacity: 0.8;
}

.meeting-card.past-event .meeting-content h2 {
    color: #888;
}

.meeting-card.past-event .btn-meeting {
    background: #888;
    pointer-events: none;
}

.meeting-card.past-event .btn-meeting.btn-secondary {
    background: transparent;
    color: #888;
    border-color: #888;
}

/* ----------------------------- MEETINGS RESPONSIVE ----------------------------- */
@media (max-width: 992px) {
    .meetings-container {
        padding: 30px 15px;
    }
    
    .meeting-card {
        flex-direction: column;
    }
    
    .meeting-image {
        flex: 0 0 auto;
        height: 250px;
    }
    
    .meeting-actions {
        flex-direction: column;
    }
    
    .btn-meeting {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .meeting-content h2 {
        font-size: 1.3rem;
    }
    
    .meeting-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .meeting-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .meetings-container {
        padding: 20px 10px;
    }
    
    .page-header {
        margin-bottom: 30px;
    }
    
    .meetings-grid {
        gap: 30px;
    }
    
    .meeting-image {
        height: 200px;
    }
    
    .meeting-content h2 {
        font-size: 1.2rem;
    }
    
    .meeting-date, .meeting-location {
        font-size: 0.9rem;
    }
}