/* Contenedor de la cuadrícula de ramos */
.ramos-grid {
    display: flex;
    flex-direction: column; /* Alinea las tarjetas una debajo de otra */
    gap: 25px;
    margin-top: 30px;
    max-width: 800px;       /* Limita el ancho para que no ocupe toda la pantalla */
    margin-left: auto;     /* Centra el bloque a la izquierda */
    margin-right: auto;    /* Centra el bloque a la derecha */
    width: 100%;           /* Permite que sea responsivo en móviles */
}

/* Tarjeta individual de ramo */
.ramo-card {
    position: relative;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

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

/* Imagen de fondo con overlay oscuro para legibilidad */
.ramo-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.6);
}

.ramo-content {
    position: relative;
    z-index: 2;
}

.ramo-content h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
}

/* Botón pequeño "Ver más" dentro de la tarjeta */
.btn-ver-ramo {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s;
}

.btn-ver-ramo:hover {
    background-color: var(--secondary-color);
}

.btn-NO {
    background-color: #9e9e9e;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
    display: inline-block;
    cursor: not-allowed;
    opacity: 0.85;
}

/* ================================================= */
/* Widget "Ramos Comunes": botón a Mallas + Consejos  */
/* ================================================= */
.ramos-comunes-caja {
    max-width: 700px;
    margin: 30px auto;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px 30px;
    text-align: center;
    box-shadow: var(--shadow-light);
}

.ramos-comunes-texto {
    color: #555;
    margin-bottom: 18px;
}

.btn-mallas {
    padding: 12px 24px;
    font-size: 1em;
    display: inline-block;
    margin-bottom: 20px;
}

.consejos-item {
    border-top: 1px dashed #ccc;
    padding-top: 15px;
    margin-top: 5px;
}

.consejos-label {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 1.05em;
}

.consejos-item p {
    color: #444;
}

.consejos-item a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: underline;
}

.consejos-item a:hover {
    color: var(--secondary-color);
}

@media (max-width: 600px) {
    .ramos-comunes-caja {
        padding: 18px 16px;
        margin: 20px auto;
        width: 92%;
    }
}