:root {
    --primary-color: #643d02;
    --secondary-color: rgba(146, 138, 90, 0.993);
    --accent-color: #7a5a13;
    --light-color: #f8f6f6;
    --dark-color: #212529;
    --text-color: rgba(245, 247, 248, 0.9);
    --text-color-light: rgba(252, 247, 247, 0.7);
    --hover-color: #eec231fd;
    --background-opacity: rgba(255, 255, 255, 0.3);
    --font-family: 'Garamond', serif;
}

/* Reseteo de estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family), Arial, sans-serif;
    color: var(--text-color-light);
    line-height: 1.6;
    background-color: var(--light-color);
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: var(--text-color);
    border-bottom: 2px solid var(--dark-color);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 10px;
}

.company-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--light-color);
}

.search-bar {
    display: flex;
    align-items: center;
}

#search-input {
    padding: 5px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px 0 0 5px;
    outline: none;
}

#search-button {
    padding: 6px 10px;
    background-color: var(--hover-color);
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1rem;
}

/* Sidebar */
#sidebar {
    background-color: var(--secondary-color);
    padding: 20px;
    width: 200px;
    position: fixed;
    top: 90px;
    height: 100%;
    overflow-y: auto;
}

#sidebar ul {
    list-style: none;
}

#sidebar ul li {
    margin-bottom: 10px;
}

#sidebar ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

#sidebar ul li a:hover {
    color: var(--hover-color);
}

/* Main content */
main {
    margin-left: 220px;
    padding: 20px;
    background-color: var(--light-color);
}

/* Sección de metodologías */
#metodologias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Ajuste dinámico */
    gap: 10px;
}

/* Tarjetas de metodologías */
.metodologia-card {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    background-color: var(--background-opacity);
    border-radius: 8px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.metodologia-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 5px;
}

.metodologia-card .text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.metodologia-card h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 0;
}

.metodologia-card p {
    font-size: 1rem;
    color: #555;
    margin: 5px 0 0;
    line-height: 1.6;
}

/* Botón dentro de la tarjeta */
.more-info {
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 10px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
}

.more-info:hover {
    background-color: var(--primary-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 10px 20px;
    background-color: #f5f5f5;
    border-top: 2px solid #ddd;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive design */
@media (max-width: 1024px) {
    main {
        margin-left: 0;
        padding: 20px;
    }

    #sidebar {
        width: 100%;
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    #metodologias {
        grid-template-columns: 1fr;
    }

    .metodologia-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .metodologia-card img {
        width: 80px;
        height: 80px;
    }
}
