/* Estilos Generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

header {
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

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

.banner {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

/* Menú Responsive */
nav {
    background-color: #2a5fab;
    padding: 0;
    position: relative;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: white;
    font-size: 24px;
    padding: 15px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    position: relative;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #1d4b8f;
}

main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    min-height: 500px;
}

footer {
    background-color: #2a5fab;
    color: white;
    text-align: center;
    padding: 25px 0;
    margin-top: 30px;
}

h1 {
    color: #2a5fab;
    border-bottom: 2px solid #2a5fab;
    padding-bottom: 10px;
    margin-top: 0;
}

h2 {
    color: #2a5fab;
    margin-top: 30px;
}

h3 {
    color: #2a5fab;
    margin-top: 20px;
}

/* Botones */
.button {
    display: inline-block;
    background-color: #2a5fab;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
    transition: all 0.3s;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #1d4b8f;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.button-secondary {
    background-color: #f0f7ff;
    color: #2a5fab;
    border: 2px solid #2a5fab;
}

.button-secondary:hover {
    background-color: #e0efff;
}

/* Tarjetas de Certificaciones - NUEVO ESTILO */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.certification-item {
    background: linear-gradient(145deg, #ffffff, #f0f7ff);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(42, 95, 171, 0.1);
    border-top: 5px solid #2a5fab;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(42, 95, 171, 0.15);
}

.certification-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eef5ff;
    padding-bottom: 15px;
}

.certification-logo-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.certification-logo-svg {
    width: 60px;
    height: 60px;
}

.certification-title {
    color: #2a5fab;
    margin: 0;
    font-size: 1.3em;
}

.certification-code {
    display: inline-block;
    background-color: #2a5fab;
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 5px;
}

.certification-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.certification-details {
    background-color: #f8fbff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
}

.detail-item {
    margin-bottom: 8px;
    display: flex;
}

.detail-label {
    font-weight: bold;
    min-width: 120px;
    color: #2a5fab;
}

.detail-value {
    color: #333;
}

.certification-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    background-color: #eef5ff;
    color: #2a5fab;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Tarjetas de Eventos */
.event-card {
    border-left: 4px solid #2a5fab;
    padding: 20px;
    margin: 20px 0;
    background-color: #f9f9f9;
    display: flex;
    align-items: flex-start;
    border-radius: 8px;
}

.event-image-container {
    flex: 0 0 250px;
    margin-right: 25px;
}

.event-image {
    width: 100%;
    height: auto;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: transform 0.3s;
}

.event-image:hover {
    transform: scale(1.02);
}

.content-container {
    flex: 1;
}

/* Tarjetas Destacadas */
.home-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.highlight-card {
    background-color: #f0f7ff;
    padding: 25px;
    border-radius: 8px;
    border-top: 4px solid #2a5fab;
    text-align: center;
    transition: transform 0.3s;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-card h3 {
    margin-top: 0;
    color: #2a5fab;
}

/* Formulario de Contacto */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2a5fab;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2a5fab;
    outline: none;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Modal para Imagen Ampliada */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    overflow: auto;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

/* Miembros */
.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.member-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-top: 3px solid #2a5fab;
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #eef5ff;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #2a5fab;
}

.member-name {
    font-weight: bold;
    color: #2a5fab;
    margin: 0;
}

.member-role {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

/* Media Queries para Responsive */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #2a5fab;
        z-index: 1000;
    }
    
    nav ul.show {
        display: flex;
    }
    
    nav ul li {
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .banner {
        max-height: 200px;
    }
    
    main {
        padding: 20px;
        margin: 20px 10px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-image-container {
        flex: 0 0 auto;
        margin-right: 0;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .home-highlights,
    .certifications-grid,
    .members-list {
        grid-template-columns: 1fr;
    }
    
    .certification-header {
        flex-direction: column;
        text-align: center;
    }
    
    .certification-logo-container {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    main {
        padding: 15px;
        margin: 10px 5px;
    }
    
    .button {
        display: block;
        text-align: center;
        margin: 10px 0;
    }
    
    .certification-item,
    .highlight-card {
        padding: 15px;
    }
}