:root {
    --color-primary: #3d2314;
    --color-secondary: #8c6239;
    --color-accent: #c68a4c;
    --color-bg: #f9f6f0;
    --color-card: #ffffff;
    --color-text: #2b2b2b;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    padding: 20px;
}

p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    font-size: 0.95rem;
    color: #4a4a4a;
}

h1, h2, h3 {
    color: var(--color-primary);
    margin-bottom: 12px;
}

header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

header h1 {
    color: white;
    font-size: 2.2rem;
}

header p {
    color: #e2d3c4;
    text-align: center;
    font-size: 1.1rem;
}

.logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

/* Sistema de rejilla equilibrado */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.col-5 {
    flex: 5 1 280px;
    background: var(--color-card);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.col-4 {
    flex: 4 1 240px;
    background: var(--color-card);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--color-secondary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.col-3 {
    flex: 3 1 200px;
    background: var(--color-card);
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 4px solid var(--color-accent);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Las imágenes llenan todo el ancho sin mostrar fondo gris vacio */
img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 2px);
    margin-top: 15px;
}

/* Adaptación para pantallas táctiles y móviles */
@media (max-width: 768px) {
    body {
        padding: 12px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .row {
        flex-direction: column;
        gap: 15px;
    }

    .col-5, .col-4, .col-3 {
        width: 100%;
        flex: 1 1 100%;
        padding: 18px;
    }

    img {
        height: 200px;
    }
}