body {
    background-color: #f5fcff;
}

#container {
    width: 90%;
    max-width: 1300px;
    margin: 20px auto;
}

.volver-lista {
    display: inline-block;
    color: #0b5f8a;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.volver-lista:hover {
    text-decoration: underline;
}

.tecnicas-header {
    margin-bottom: 35px;
}

.tecnicas-header h1 {
    margin-bottom: 10px;
    margin-top: 10px;
    color: #003f66;
}

.tecnicas-header p {
    margin: 0;
    color: #555;
    font-size: 1.05rem;
}

/* GRID */

.contenedor-tecnicas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* CARD */

.card-tecnica {
    display: flex;
    flex-direction: column;

    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);

    text-decoration: none;
    color: inherit;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card-tecnica:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Recortar texto*/
.card-tecnica p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}

/* IMAGEN */

.card-tecnica-img {
    width: 100%;
    aspect-ratio: 16 / 9;

    object-fit: cover;
    object-position: center;

    display: block;
}

/* CONTENIDO */

.card-tecnica-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    padding: 22px;
}

.card-tecnica h2 {
    margin: 0 0 12px;

    font-size: 1.35rem;
    color: #003f66;
}

.card-tecnica p {
    margin: 0 0 20px;

    line-height: 1.5;
    color: #555;
}

.card-tecnica-link {
    margin-top: auto;

    color: #06496d;
    font-weight: 600;
}

/* TABLET */

@media (max-width: 992px) {
    .contenedor-tecnicas {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MÓVIL */

@media (max-width: 576px) {
    #container {
        width: 92%;
        margin: 20px auto;
    }

    .contenedor-tecnicas {
        grid-template-columns: 1fr;
    }
}