/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%);
    color: white;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    color: #2e86c1;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-subtext {
    font-size: 0.8rem;
    opacity: 0.9;
}

.header-contact {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
}

.contact-phone, .contact-email {
    margin: 3px 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 2px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Navegación */
nav {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin-top: 10px;
}

.menu {
    display: flex;
    list-style: none;
    justify-content: center;
}

.menu li {
    padding: 10px 0;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: bold;
}

.menu i {
    margin-right: 8px;
}

/* Banner de bienvenida */
.welcome-banner {
    background: linear-gradient(to right, #2e86c1, #3498db);
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.welcome-banner h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Contenido principal */
.main-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.content {
    flex: 2;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.content h1 {
    color: #2e86c1;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Formulario de login */
.login-container {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.login-container h2 {
    color: #2e86c1;
    margin-bottom: 20px;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #2e86c1;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #1a5276;
}

.login-help {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

.login-help a {
    color: #2e86c1;
    text-decoration: none;
}

/* Publicidad */
.advertisements {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.ad-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.ad-card:hover {
    transform: translateY(-5px);
}

.ad-img {
    height: 160px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 3rem;
}

.ad-content {
    padding: 15px;
}

.ad-content h3 {
    color: #2e86c1;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

footer h3 {
    margin-bottom: 15px;
}

footer p {
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 992px) {
    .header-contact {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .menu {
        flex-direction: column;
        display: none;
        width: 100%;
    }
    
    .menu.active {
        display: flex;
    }
    
    .menu li {
        width: 100%;
        text-align: center;
    }
    
    .main-content {
        flex-direction: column;
    }
    
    .advertisements {
        grid-template-columns: 1fr;
    }
}